:root {
    --color-primary: #6b8e23;
    --color-secondary: #9acd32;
    --color-accent: #d4af37;
    --color-bg: #f7faf3;
    --color-text: #2c3a1f;
    --color-text-light: #5a6b4a;
    --color-border: #c5d4b0;
    --color-glass: rgba(255, 255, 255, 0.55);
    --color-glass-border: rgba(255, 255, 255, 0.65);
    --font-display: "Bitter", Georgia, serif;
    --font-body: "Cabin", Georgia, sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --sp-page-w: 1120px;
    --sp-header-h: 72px;
    --radius: 10px;
}

@media (max-width: 1100px) {
    :root { --sp-header-h: 64px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
    scroll-padding-top: var(--sp-header-h);
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding-top: var(--sp-header-h);
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 12% 18%, rgba(154, 205, 50, 0.12), transparent 42%),
        radial-gradient(ellipse at 88% 8%, rgba(212, 175, 55, 0.1), transparent 38%),
        repeating-linear-gradient(
            125deg,
            rgba(107, 142, 35, 0.03) 0 2px,
            transparent 2px 7px
        );
    opacity: 0.9;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

a { color: var(--color-primary); }
a:hover { color: #557019; }

.sp-container {
    width: min(100% - 2rem, var(--sp-page-w));
    margin-inline: auto;
}

.sp-prose { max-width: 760px; }
.sp-prose h1,
.sp-prose h2 { font-family: var(--font-display); color: var(--color-text); }
.sp-prose code {
    font-size: 0.92em;
    background: rgba(107, 142, 35, 0.12);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    overflow-wrap: anywhere;
}

.sp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--sp-header-h);
    background: var(--color-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sp-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    backdrop-filter: blur(10px);
    background: rgba(247, 250, 243, 0.72);
}

.sp-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    min-height: var(--sp-header-h);
    position: relative;
}

.sp-header__logo {
    order: 1;
    flex-shrink: 0;
    z-index: 1;
}

.sp-header__logo img {
    width: 180px;
    height: auto;
    display: block;
}

.sp-nav {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.55rem 0.9rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 360px);
}

.sp-nav__link {
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    color: var(--color-text);
}

.sp-header a,
.sp-header a:visited { color: var(--color-text); }

.sp-nav__link.is-active,
.sp-nav__link:hover { color: var(--color-primary); }

.sp-header__cta {
    order: 3;
    margin-left: auto;
    z-index: 1;
}

.sp-header a.sp-btn,
.sp-header a.sp-btn:visited {
    color: var(--color-primary);
}

.sp-header a.sp-btn--primary,
.sp-header a.sp-btn--primary:visited {
    color: #fff;
}

.sp-burger,
.sp-overlay,
.sp-drawer { display: none; }

.sp-burger {
    order: 4;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 10px;
}

.sp-burger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--color-text);
    border-radius: 1px;
}

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 1.1rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--color-primary);
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    position: relative;
}

.sp-btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.sp-btn:hover::after,
.sp-btn:focus-visible::after { transform: scaleX(1); }

.sp-btn--primary {
    color: #fff;
    background: var(--color-primary);
    padding-inline: 1.25rem;
}

.sp-btn--primary::after { background: var(--color-accent); }

a.sp-btn--primary,
a.sp-btn--primary:visited { color: #fff; }

.sp-card {
    position: relative;
    border-radius: 0 10px 10px 10px;
    margin-top: 22px;
    padding: var(--space-lg);
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 28px rgba(44, 58, 31, 0.06);
    min-width: 0;
}

.sp-card__tab {
    position: absolute;
    top: -22px;
    left: 0;
    height: 22px;
    padding: 0 12px;
    border-radius: 8px 8px 0 0;
    font-size: 0.75rem;
    line-height: 22px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.sp-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: var(--space-lg);
    width: min(100% - 2rem, var(--sp-page-w));
    margin: var(--space-lg) auto var(--space-xl);
    align-items: start;
}

.sp-layout__aside { position: relative; min-width: 0; }
.sp-layout__main { min-width: 0; }

.sp-aside-card__label {
    font-family: var(--font-display);
    font-weight: 600;
    margin: 0 0 var(--space-sm);
}

.sp-aside-card__text {
    margin: 0 0 var(--space-md);
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.sp-aside-card__facts {
    margin: 0 0 var(--space-md);
    padding-left: 1.1rem;
    color: var(--color-text);
}

[data-pin].is-pinned {
    position: fixed;
    top: var(--pin-top);
    width: var(--pin-w);
    z-index: 40;
}

[data-pin].is-end {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.sp-hero {
    padding: var(--space-xl) 0 var(--space-lg);
    background:
        linear-gradient(160deg, rgba(154, 205, 50, 0.18), transparent 55%),
        linear-gradient(20deg, rgba(212, 175, 55, 0.12), transparent 40%);
}

.sp-hero .sp-container { width: 100%; max-width: none; padding: 0; }
.sp-layout__main .sp-hero .sp-container { width: 100%; }

.sp-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
    line-height: 1.25;
    margin: 0 0 var(--space-lg);
    max-width: 36rem;
}

.sp-hero__figures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.sp-hero__figure {
    min-width: 0;
    padding: var(--space-md);
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(12px);
    border-radius: 0 10px 10px 10px;
    text-align: center;
}

.sp-hero__num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
}

.sp-hero__cap {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 0.35rem;
}

.sp-hero__text {
    max-width: 40rem;
    margin: 0 0 var(--space-md);
    color: var(--color-text-light);
}

.sp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.sp-hero a.sp-btn,
.sp-hero a.sp-btn:visited { color: var(--color-primary); }
.sp-hero a.sp-btn--primary,
.sp-hero a.sp-btn--primary:visited { color: #fff; }

.sp-hero__still {
    margin: 0;
    max-width: 220px;
}

.sp-hero__still img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(44, 58, 31, 0.15);
    object-fit: contain;
}

.sp-section {
    padding: var(--space-xl) 0;
}

.sp-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    margin: 0 0 var(--space-sm);
}

.sp-section__lead {
    margin: 0 0 var(--space-lg);
    color: var(--color-text-light);
}

.sp-faq__list { display: grid; gap: 0.65rem; }

.sp-faq__q {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
}

.sp-faq__q::after {
    content: "+";
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--color-primary);
}

.sp-faq__q[aria-expanded="true"]::after { content: "–"; }

.sp-faq__a {
    padding: 0.75rem 1rem 0.25rem;
    color: var(--color-text-light);
}

.sp-faq__a p { margin-top: 0; }

.sp-app__badges {
    margin: 0 0 var(--space-md);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.sp-app__head {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-md);
}

.sp-app__meta { min-width: 0; }

.sp-app__icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    flex-shrink: 0;
}

.sp-app__name {
    font-family: var(--font-display);
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

.sp-app__dev {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.sp-app__facts {
    margin: 0 0 var(--space-md);
    padding-left: 1.15rem;
}

.sp-app__facts li { margin-bottom: 0.35rem; }

.sp-app__note,
.sp-app__checked {
    color: var(--color-text-light);
    font-size: 0.92rem;
}

.sp-stills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    justify-content: center;
    gap: 20px;
    margin-top: var(--space-lg);
}

.sp-stills figure { margin: 0; }

.sp-stills img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

.sp-checklist {
    margin: 0;
    padding-left: 1.15rem;
}

.sp-checklist li { margin-bottom: 0.45rem; }

.sp-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
}

.sp-chip {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(107, 142, 35, 0.14);
    border: 1px solid var(--color-border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}

.sp-chip-defs {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.sp-chip-defs div {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.sp-chip-defs dt {
    font-weight: 700;
    font-family: var(--font-display);
}

.sp-chip-defs dd {
    margin: 0.25rem 0 0;
    color: var(--color-text-light);
}

.sp-teaser__list {
    list-style: none;
    margin: 0 0 var(--space-md);
    padding: 0;
}

.sp-teaser__list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    min-width: 0;
}

.sp-cta {
    background: linear-gradient(120deg, rgba(107, 142, 35, 0.16), rgba(212, 175, 55, 0.14));
    text-align: center;
}

.sp-cta a.sp-btn--primary,
.sp-cta a.sp-btn--primary:visited { color: #fff; }

.sp-footer {
    padding: var(--space-xl) 0 var(--space-lg);
    background: #eef4e6;
    border-top: 1px solid var(--color-border);
}

.sp-footer__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
}

.sp-footer__tag {
    margin: 0;
    color: var(--color-text-light);
    max-width: 28rem;
}

.sp-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-footer__links a,
.sp-footer__link {
    color: var(--color-text);
    text-decoration: none;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.sp-footer__links a:hover,
.sp-footer__link:hover { color: var(--color-primary); }

.sp-footer__legal,
.sp-footer__copy {
    margin: 0;
    max-width: 44rem;
    font-size: 0.88rem;
    color: var(--color-text-light);
}

.sp-cookie { display: none; }

.sp-cookie:not([hidden]) {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    gap: 12px;
    align-items: center;
    background: #1f2a16;
    color: #f7faf3;
    padding: 14px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
}

.sp-cookie__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(100% - 2rem, var(--sp-page-w));
}

.sp-cookie p { margin: 0; flex: 1 1 240px; min-width: 0; }
.sp-cookie a { color: var(--color-secondary); }

.sp-cookie__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-cookie .sp-btn {
    min-height: 44px;
    box-shadow: none;
    color: #f7faf3;
}

.sp-cookie .sp-btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.sp-cookie .sp-btn::after { background: var(--color-accent); }

body.sp-cookie-open { padding-bottom: 110px; }

.sp-lib {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-lib__item {
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--color-border);
    min-width: 0;
}

.sp-lib__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text);
}

.sp-lib__title:hover { color: var(--color-primary); }

.sp-lib__excerpt {
    margin: 0.4rem 0;
    color: var(--color-text-light);
}

.sp-lib__date {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.sp-steps {
    margin: var(--space-lg) 0;
    padding-left: 1.25rem;
}

.sp-steps h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0 0 0.35rem;
}

.sp-steps li { margin-bottom: var(--space-lg); }

.sp-contact-card { max-width: 32rem; }

.sp-az {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-lg);
}

.sp-az a {
    display: inline-flex;
    min-width: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-primary);
    font-weight: 600;
}

.sp-glossary dt {
    font-family: var(--font-display);
    font-weight: 700;
    margin-top: 1rem;
}

.sp-glossary dd {
    margin: 0.25rem 0 0;
    color: var(--color-text-light);
}

.sp-crumbs {
    margin-bottom: var(--space-md);
    font-size: 0.88rem;
}

.sp-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-crumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: var(--color-text-light);
}

.sp-article { padding: var(--space-xl) 0; }

.sp-article__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
    gap: var(--space-lg);
    align-items: start;
}

.sp-article__main { min-width: 0; }
.sp-article__main h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    margin-top: 0;
}

.sp-article__main h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.sp-article__facts ul {
    margin: 0;
    padding-left: 1.1rem;
}

.sp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.is-in {
    animation: sp-k-wipe 0.7s ease both;
    background-image: linear-gradient(90deg, var(--color-accent) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: right;
    background-repeat: no-repeat;
}

@keyframes sp-k-wipe {
    from { background-position: left; }
    to { background-position: right; }
}

@media (prefers-reduced-motion: reduce) {
    .is-in { animation: none; background-image: none; }
    .sp-btn::after { transition: none; }
}

@media (max-width: 1100px) {
    .sp-nav,
    .sp-header__cta { display: none; }

    .sp-burger { display: block; }

    .sp-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s, visibility 0.25s;
    }

    .sp-drawer {
        display: block;
        position: fixed;
        z-index: 210;
        background: var(--color-bg);
        overflow-y: auto;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    }

    .sp-drawer--top {
        top: var(--sp-header-h);
        left: 0;
        right: 0;
        max-height: calc(100dvh - var(--sp-header-h));
        padding: 56px 0 16px;
        transform: translateY(-16px);
        opacity: 0;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    }

    body.nav-open .sp-drawer--top {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    body.nav-open .sp-overlay {
        opacity: 1;
        visibility: visible;
    }

    body.nav-open { overflow: hidden; }

    .sp-drawer a {
        display: block;
        padding: 14px 20px;
        text-decoration: none;
        color: var(--color-text);
        font-weight: 600;
    }

    .sp-drawer a.sp-btn {
        margin: 12px 20px;
        width: calc(100% - 40px);
        color: #fff;
    }

    .sp-drawer__close {
        position: absolute;
        top: 12px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        font-size: 1.6rem;
        cursor: pointer;
        color: var(--color-text);
    }

    .sp-header__logo img {
        width: 120px;
    }
}

@media (max-width: 900px) {
    .sp-layout {
        grid-template-columns: 1fr;
    }

    .sp-article__grid {
        grid-template-columns: 1fr;
    }

    .sp-hero__figures {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sp-hero__actions .sp-btn {
        width: 100%;
    }

    .sp-app__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .sp-app__icon {
        width: 72px;
        height: 72px;
    }

    .sp-cookie:not([hidden]) {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        border-radius: 10px;
    }

    .sp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .sp-app__head { align-items: stretch; }
}

@media (max-width: 480px) {
    .sp-grid { grid-template-columns: 1fr; }
}
