@font-face {
    font-family: "Genesis Hand";
    src: url("../fonts/bad-script.woff2") format("woff2");

    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --bg: #f6f2ea;
    --surface: #fffdf8;
    --surface-soft: #eeebe2;
    --surface-deep: #e4dfd2;

    --text: #14241f;
    --heading: #19304a;
    --muted: #5f6f68;

    --green-dark: #0d3b32;
    --green: #215948;
    --green-soft: #6b8d78;
    --green-pale: #dbe7b6;
    --olive: #9cab68;
    --accent-blue: #1e3f5b;

    --line: rgba(20, 36, 31, 0.11);
    --line-light: rgba(255, 255, 255, 0.18);

    --radius-sm: 14px;
    --radius: 26px;
    --radius-lg: 42px;
    --radius-pill: 999px;

    --shadow: 0 20px 60px rgba(10, 40, 33, 0.10);
    --shadow-soft: 0 10px 30px rgba(10, 40, 33, 0.08);

    --container: 1180px;

    --font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
    --font-hand: "Genesis Hand", "Segoe Script", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin-top: 0; }

h1, h2 {
    margin-top: 0;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--heading);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

h3 {
    margin-top: 0;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: var(--heading);
    font-size: 1.45rem;
}

h1 { font-size: clamp(3.3rem, 6vw, 6.2rem); }
h2 { font-size: clamp(2.65rem, 4.6vw, 4.85rem); }

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}
.container--narrow { max-width: 820px; }
.section { position: relative; padding: 120px 0; }
.section-heading { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.section-heading--left { margin-left: 0; text-align: left; }

.eyebrow,
.section-kicker,
.story-card__tag,
.feature-card__index,
.iodine-card__number,
.timeline__number {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 24px;
    color: #d8edbd;
    font-size: 0.86rem;
}

.section-kicker {
    margin-bottom: 18px;
    color: var(--green);
    font-size: 0.84rem;
}
.section-kicker--light { color: #cee7d6; }

.lead-text {
    font-size: 1.24rem;
    line-height: 1.6;
    color: var(--text);
}

.center { text-align: center; }

.handwritten {
    display: block;
    font-family: var(--font-hand);
    font-size: 2rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    transform: rotate(-15deg);
}

.handwritten__heart {
    display: block;
    width: fit-content;
    margin-top: 12px;
    font-size: 2.2rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.95);
    transform-origin: center center;
    transform: translateX(36px) rotate(-15deg);
}

/* HERO */
.hero {
    position: relative;
    min-height: 95vh;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(4, 35, 31, 0.94) 0%, rgba(5, 55, 48, 0.82) 38%, rgba(7, 67, 58, 0.48) 65%, rgba(7, 67, 58, 0.14) 100%),
        url("../images/hero-kelp.webp") left center / cover no-repeat;
}

.nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}
.brand__icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex: 0 0 auto;
}
.brand__text { display: flex; flex-direction: column; }
.brand__master {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
}
.brand__tagline {
    margin-top: 2px;
    color: rgba(255,255,255,0.72);
    font-size: 0.82rem;
    line-height: 1.2;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
    color: rgba(255,255,255,0.92);
    font-size: 0.95rem;
    font-weight: 600;
}
.nav__menu a { opacity: 0.92; }
.nav__menu a:hover { opacity: 1; }

.nav__contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: var(--radius-pill);
    background: rgba(16, 73, 56, 0.8);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}
.nav__contact:hover {
    background: rgba(22, 92, 70, 0.92);

    border-color: rgba(255, 255, 255, 0.22);

    transform: translateY(-1px);
}
.nav__contact-icon {
    width: 21px;
    height: 21px;
    object-fit: contain;
    filter:
        brightness(0)
        invert(1);
    opacity: 0.95;
}
.hero__content {
    position: relative;
    z-index: 4;
    min-height: calc(95vh - 86px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.hero__text {
    max-width: 940px;
    padding: 90px 0 160px;
    color: #fff;
}
.hero h1 {
    margin-bottom: 24px;
    color: #f4f6eb;
}
.hero h1 span {
    display: block;
    color: #e2edbb;
}
.hero__lead {
    max-width: 660px;
    margin-bottom: 26px;
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    line-height: 1.52;
    color: rgba(255,255,255,0.95);
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
    margin-bottom: 34px;
}
.hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    color: rgba(255,255,255,0.88);
    font-weight: 600;
}
.hero-point {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

/* Hero icons */

.hero-button-icon,
.hero-point-icon {
    display: inline-block;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}


/* Icons inside Hero buttons */

.hero-button-icon {
    width: 20px;
    height: 20px;
}

.hero-button-icon--story {
    -webkit-mask-image:
        url("../icons/hero-button-our-story.png");
    mask-image:
        url("../icons/hero-button-our-story.png");
}

.hero-button-icon--stories {
    -webkit-mask-image:
        url("../icons/hero-button-stories.png");
    mask-image:
        url("../icons/hero-button-stories.png");
}


/* Icons in informational points */

.hero-point-icon {
    width: 22px;
    height: 22px;

    color: #e4efc2;
}

.hero-point-icon--family {
    -webkit-mask-image:
        url("../icons/hero-point-family.png");
    mask-image:
        url("../icons/hero-point-family.png");
}

.hero-point-icon--stories {
    -webkit-mask-image:
        url("../icons/hero-point-stories.png");
    mask-image:
        url("../icons/hero-point-stories.png");
}

.hero-point-icon--facts {
    -webkit-mask-image:
        url("../icons/hero-point-facts.png");
    mask-image:
        url("../icons/hero-point-facts.png");
}

.hero-point-icon--no-promises {
    -webkit-mask-image:
        url("../icons/hero-pointno-promises.png");
    mask-image:
        url("../icons/hero-pointno-promises.png");
}

.hero__handwriting {
    position: absolute;
    right: -320px;
    bottom: 160px;
    width: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero__scroll {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 90px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    transform: translateX(-50%);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.hero__scroll:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.56);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transform: translateX(-50%) translateY(-1px);
}

.hero__scroll-icon {
    display: block;
    width: 15px;
    height: 15px;
    background-color: currentColor;
    -webkit-mask-image: url("../icons/hero-arrow-down.png");
    mask-image: url("../icons/hero-arrow-down.png");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: transform 0.2s ease;
}

@keyframes heroArrowBounce {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px);
    }
    100% {
        transform: translateY(1px);
    }
}

.hero__scroll:hover .hero__scroll-icon {
    animation: heroArrowBounce 0.65s ease-in-out infinite alternate;
}

.wave-divider {
    position: absolute;
    left: 0;
    width: 100%;
    line-height: 0;
    overflow: hidden;
}
.wave-divider--hero { bottom: -1px; }
.wave-divider svg { display: block; width: 100%; height: 105px; }
.wave-divider path { fill: var(--bg); }

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 24px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}
.button__icon { display: inline-block; font-size: 1rem; }
.button--primary {
    background: rgba(214, 235, 174, 0.95);
    color: #103930;
}
.button--ghost {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.45);
    color: #fff;
    backdrop-filter: blur(6px);
}

/* Hero button hover */

.hero__actions .button {
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.hero__actions .button--primary:hover {
    background: rgba(226, 242, 187, 1);

    box-shadow:
        0 10px 28px rgba(8, 45, 36, 0.14);
}

.hero__actions .button--ghost:hover {
    background: rgba(255, 255, 255, 0.14);

    border-color: rgba(255, 255, 255, 0.62);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.10);
}

.button--soft {
    background: rgba(33, 89, 72, 0.92);
    border-color: rgba(33, 89, 72, 0.15);
    color: #fff;
    box-shadow:
        0 10px 24px rgba(17, 61, 49, 0.10);
}

.button--soft:hover {
    background: rgba(40, 105, 84, 0.98);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 12px 28px rgba(17, 61, 49, 0.16);
}

.button--submit {
    background:
        linear-gradient(
            90deg,
            #2f8f4a 0%,
            #1d703d 100%
        );
    border-color: rgba(22, 97, 52, 0.15);
    color: #fff;
    box-shadow:
        0 10px 24px rgba(24, 100, 54, 0.12);
}

.button--submit:hover {
    background:
        linear-gradient(
            90deg,
            #36a153 0%,
            #237d46 100%
        );
    box-shadow:
        0 12px 30px rgba(24, 100, 54, 0.18);
}

.button--full { width: 100%; }

/* INTRO */
.intro { text-align: center; padding-top: 140px; }
.intro h2 { max-width: 780px; margin-inline: auto; margin-bottom: 28px; }
.intro .lead-text { color: var(--green-dark); }

/* layout */
.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(48px, 7vw, 110px);
    align-items: center;
}
.split-layout--reverse {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}
.split-layout__content > p { color: var(--muted); }
.visual-card {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.visual-card__content {
    position: absolute;
    z-index: 2;
    left: 36px;
    right: 36px;
    bottom: 38px;
    color: #fff;
}
.visual-card__content span {
    display: block;
    margin-bottom: 12px;
    opacity: 0.75;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.visual-card__content strong {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}
.visual-card--story {
    position: relative;
    background:
        linear-gradient(
            145deg,
            #1b4c42,
            #78916f 65%,
            #d8e0af
        );
}


/* Само семейное фото */

.visual-card--story::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        url("../images/family-story.webp")
        center center / cover no-repeat;
    transform: scale(1);
    transition:
        transform 0.8s ease,
        filter 0.8s ease;
    will-change: transform;
}


/* Затемнение для читаемости текста */

.visual-card--story::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            rgba(11, 45, 39, 0.15),
            rgba(11, 45, 39, 0.55)
        );
    pointer-events: none;
}

@media (hover: hover) {
    .visual-card--story:hover::before {
        transform: scale(1.06);
        filter:
            saturate(1.04)
            contrast(1.02);
    }

}

.timeline { margin: 38px 0 34px; }
.timeline__item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 8px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.timeline__number {
    color: var(--green-soft);
    font-size: 0.8rem;
}
.timeline__item h3 { margin-bottom: 9px; }
.timeline__item p { margin-bottom: 0; }
.disclaimer-inline {
    margin-top: 30px;
    padding: 18px 20px;
    border-left: 3px solid var(--olive);
    background: rgba(156, 171, 104, 0.10);
    font-size: 0.95rem;
    color: var(--text);
}

/* Wave transitions between sections */

.section--wave-top {
    position: relative;
}

.section-wave-top {
    position: absolute;
    z-index: 1;
    left: 0;
    top: -104px;
    width: 100%;
    height: 105px;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
}

.section-wave-top svg {
    display: block;
    width: 100%;
    height: 100%;
}

.section-wave-top path {
    fill: var(--wave-fill);
}

/* Section content must stay above the wave */

.section--wave-top > .container {
    position: relative;
    z-index: 2;
}

/* cards */
.journey {
    --wave-fill: var(--surface);
    background: var(--surface);
}

.three-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.feature-card {
    min-height: 320px;
    padding: 34px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #f8f6ef;
}
.feature-card--accent {
    background: var(--green-dark);
    color: #fff;
    transform: translateY(-18px);
}
.feature-card__index {
    display: block;
    margin-bottom: 56px;
    color: var(--green-soft);
    font-size: 0.81rem;
}
.feature-card--accent .feature-card__index { color: #d6e9b7; }
.feature-card p { color: var(--muted); margin-bottom: 0; }
.feature-card--accent h3, .feature-card--accent p { color: rgba(255,255,255,0.92); }

.quote-panel {
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(
            145deg,
            #dce3ab,
            #a4b489
        );
    color: #193b32;
    box-shadow:
        0 18px 48px rgba(20, 57, 47, 0.10);
}

/* Photo */

.quote-panel__image {
    position: relative;
    height: 235px;
    overflow: hidden;
    flex: 0 0 auto;
}

.quote-panel__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition:
        transform 0.7s ease,
        filter 0.7s ease;
}

/* Genesis colour grading + smooth transition into the card */

.quote-panel__image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(10, 55, 45, 0.04) 0%,
            rgba(10, 55, 45, 0.08) 48%,
            rgba(164, 180, 137, 0.30) 72%,
            rgba(164, 180, 137, 0.96) 100%
        );
}

/* Text part */

.quote-panel__content {
    position: relative;
    z-index: 2;
    margin-top: -10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding:
        10px
        42px
        42px;
}

.quote-panel__symbol {
    display: block;
    margin-bottom: 1px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 0.7;
    color: #16372f;
    opacity: 0.9;
}

.quote-panel p {
    margin: 0;
    font-family: var(--font-display);
    font-size:
        clamp(
            1.75rem,
            3vw,
            2.9rem
        );
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: #16372f;
}

.quote-panel strong {
    color: #102e28;
}

.quote-panel:hover .quote-panel__image img {
    transform: scale(1.035);
    filter:
        saturate(1.05)
        contrast(1.02);
}

/* iodine */
.iodine {
    background: radial-gradient(circle at 90% 10%, rgba(120, 198, 172, 0.20), transparent 28%), #0c4037;
    color: #fff;
}
.iodine h2, .iodine h3 { color: #fff; }
.iodine__heading {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 72px;
    align-items: end;
    margin-bottom: 60px;
}
.iodine__heading p:last-child { color: rgba(255,255,255,0.72); }
.iodine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.iodine-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
}
.iodine-card__top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.fact-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(220, 239, 197, 0.95);
    color: var(--green);
    flex: 0 0 auto;
}

/* Icons inside iodine cards */

.fact-icon::before {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* 01 — hormonal balance */

.fact-icon--hormonal::before {
    -webkit-mask-image:
        url("../icons/iodine-card-hormonal-balance.png");
    mask-image:
        url("../icons/iodine-card-hormonal-balance.png");
}

/* 02 — general health */

.fact-icon--health::before {
    -webkit-mask-image:
        url("../icons/iodine-card-general-health.png");
    mask-image:
        url("../icons/iodine-card-general-health.png");
}

/* 03 — cognitive development */

.fact-icon--cognitive::before {
    -webkit-mask-image:
        url("../icons/iodine-card-cognitive-development.png");
    mask-image:
        url("../icons/iodine-card-cognitive-development.png");
}

/* 04 — support throughout life */

.fact-icon--life-support::before {
    -webkit-mask-image:
        url("../icons/iodine-card-life-support.png");
    mask-image:
        url("../icons/iodine-card-life-support.png");
}

.iodine-card__number {
    color: #cde2af;
    font-size: 1.6rem;
    letter-spacing: 0;
    font-weight: 500;
    font-family: var(--font-display);
}
.iodine-card p { color: rgba(255,255,255,0.78); margin-bottom: 0; }

/* seaweed */
.seaweed {
    --wave-fill: #eeebe2;
    background: #eeebe2;
}

.visual-card--seaweed {
    position: relative;
    min-height: 520px;
    overflow: hidden;
}

/* Само изображение */
.visual-card--seaweed::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        url("../images/seaweed-kelp.webp")
        center center / cover no-repeat;
    transform: scale(1);
    transition:
        transform 0.8s ease,
        filter 0.8s ease;
    will-change: transform;
}

/* Мягкое фирменное тонирование */
.visual-card--seaweed::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(9, 61, 52, 0.06),
            rgba(9, 61, 52, 0.16)
        );
    pointer-events: none;
}

@media (hover: hover) {
    .visual-card--seaweed:hover::before {
        transform: scale(1.06);
        filter:
            saturate(1.04)
            contrast(1.02);
    }

}

.definition {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 22px 24px;
    border-radius: var(--radius-sm);
    background: rgba(252,250,246,0.68);
    border: 1px solid rgba(31,92,76,0.12);
}
.definition span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.definition strong { font-size: 1.05rem; }

/* family observation */
.family-observation { text-align: center; }
.family-observation h2 { margin-bottom: 28px; }

/* stories */
.stories {
    --wave-fill: var(--surface);
    background: var(--surface);
}
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}
.story-card {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #f5f2ea;
}
.story-card--featured { background: #fcfaf6; }
.story-card__tag {
    display: inline-block;
    margin-bottom: 60px;
    color: var(--green);
    font-size: 0.8rem;
}

.story-card__link {
    position: relative;
    width: fit-content;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-dark);
    font-weight: 800;
    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.story-card__link-icon {
    display: inline-block;
    transition:
        transform 0.2s ease;
}

.story-card__link-text {
    position: relative;
}

.story-card__link-text::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -4px;
    height: 1px;
    background: currentColor;
    transition:
        right 0.25s ease;
}

.story-card__link:hover {
    color: var(--green);
    gap: 11px;
}

.story-card__link:hover .story-card__link-icon {
    transform: translate(2px, -2px);
}

.story-card__link:hover .story-card__link-text::after {
    right: 0;
}

.story-card__quote-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.story-card__avatar {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
}
.story-card__mini {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.9rem;
}
.story-card__quote-text {
    font-style: italic;
    color: var(--muted);
}
.story-card__quote-author {
    margin-top: auto;
    color: var(--heading);
    font-weight: 700;
}


/* Landing story cards */

.story-card--landing {
    flex:
        0
        0
        calc(
            (100% - 40px)
            / 3
        );

    min-width: 0;
    min-height: 350px;

    padding:
        30px
        30px
        28px;

    background:
        linear-gradient(
            145deg,
            #f7f4ec 0%,
            #f1eee5 100%
        );

    box-shadow:
        0 12px 30px
        rgba(20, 50, 41, 0.04);

    scroll-snap-align: start;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


@media (hover: hover) {

    .story-card--landing:hover {
        transform:
            translateY(-3px);

        border-color:
            rgba(33, 89, 72, 0.18);

        box-shadow:
            0 9px 24px
            rgba(20, 50, 41, 0.09);
    }

}


.story-card--landing
.story-card__tag {
    margin-bottom: 28px;
}


.story-card--landing
.story-card__title {
    margin-bottom: 16px;

    font-size:
        clamp(
            1.55rem,
            2vw,
            1.95rem
        );

    line-height: 1.12;
}


.story-card--landing
.story-card__excerpt {
    display: -webkit-box;

    overflow: hidden;

    margin-bottom: 0;

    color: var(--muted);

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    line-clamp: 3;
}


.story-card--landing
.story-card__meta {
    margin:
        22px
        0
        0;

    color: var(--heading);

    font-size: 0.86rem;
    font-weight: 700;
}


.story-card--landing
.story-card__link {
    margin-top: auto;

    padding-top: 28px;

    appearance: none;

    border: 0;
    background: transparent;

    font-family: inherit;
    font-size: inherit;

    cursor: pointer;
}


/* Stories carousel */

.stories-carousel {
    position: relative;

    margin-bottom: 40px;
}


.stories-carousel__frame {
    display: grid;

    grid-template-columns:
        28px
        minmax(0, 1fr)
        28px;

    gap: 7px;

    align-items: stretch;
}


.stories-carousel__viewport {
    min-width: 0;

    overflow-x: auto;
    overflow-y: hidden;

    /*
     * Extra internal room for card hover + shadow.
     * Negative margins return that room to the layout,
     * so the section itself doesn't become taller.
     */
    padding:
        12px
        0
        34px;

    margin:
        -12px
        0
        -34px;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;

    overscroll-behavior-x: contain;
}


.stories-carousel__viewport::-webkit-scrollbar {
    display: none;
}


.stories-carousel__track {
    display: flex;
    gap: 20px;
    padding-inline: 1px;
}


/* Side controls */

.stories-carousel__button {
    align-self: center;

    display: grid;
    place-items: center;

    width: 28px;
    height: 72px;

    padding: 0;

    border: 0;
    background: transparent;

    color: var(--green-dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 3.3rem;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    opacity: 0.72;

    transition:
        color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.stories-carousel__button--prev {
    transform:
        scaleX(0.72)
        scaleY(1.18);
}

.stories-carousel__button--next {
    transform:
        scaleX(0.72)
        scaleY(1.18);
}

@media (hover: hover) {

    .stories-carousel__button--prev:hover:not(:disabled) {
        color: var(--green);

        opacity: 1;

        transform:
            translateX(-3px)
            scaleX(0.72)
            scaleY(1.18);
    }

    .stories-carousel__button--next:hover:not(:disabled) {
        color: var(--green);

        opacity: 1;

        transform:
            translateX(3px)
            scaleX(0.72)
            scaleY(1.18);
    }

}

.stories-carousel__button:disabled {
    color: var(--green-soft);
    opacity: 0.20;
    cursor: default;
}


/*
 * If every card fits in the viewport,
 * there is nothing to scroll.
 */

.stories-carousel.is-static
.stories-carousel__button {
    display: none;
}


.stories-carousel.is-static
.stories-carousel__frame {
    grid-template-columns:
        minmax(0, 1fr);
}


/* Stories back navigation */

.stories-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    min-height: 40px;

    padding:
        0
        16px;

    border:
        1px solid
        rgba(151, 132, 101, 0.20);

    border-radius: var(--radius-pill);

    background:
        rgba(255, 252, 244, 0.62);

    color:
        rgba(104, 91, 70, 0.72);

    font-size: 0.82rem;
    font-weight: 600;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.stories-back-link__icon {
    display: inline-block;

    font-size: 1rem;

    transition:
        transform 0.2s ease;
}


@media (hover: hover) {

    .stories-back-link:hover {
        color:
            rgba(86, 72, 51, 0.92);

        background:
            rgba(255, 250, 238, 0.92);

        border-color:
            rgba(151, 132, 101, 0.32);

        transform:
            translateY(-1px);
    }

    .stories-back-link:hover
    .stories-back-link__icon {
        transform:
            translateX(-3px);
    }

}


/* =========================================================
   GENESIS FEATURED STORY
   ========================================================= */

.genesis-story-section {
    background: var(--bg);
}


.genesis-story__heading {
    max-width: 1040px;

    margin:
        0
        auto
        42px;
}


.genesis-story__heading h1 {
    max-width: 780px;
    margin-bottom: 0;

    font-size:
        clamp(
            3rem,
            5vw,
            5.2rem
        );
}


/* Main story card */

.genesis-story {
    max-width: 1040px;
    margin-inline: auto;

    overflow: hidden;

    border:
        1px solid rgba(20, 36, 31, 0.09);
    border-radius: var(--radius-lg);

    background:
        rgba(255, 253, 248, 0.92);

    box-shadow:
        0 28px 80px rgba(13, 59, 50, 0.10);
}


/* Cover */

.genesis-story__visual {
    position: relative;

    overflow: hidden;

    aspect-ratio: 16 / 9;

    background: var(--surface-soft);
}


.genesis-story__visual::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(13, 59, 50, 0.01) 45%,
            rgba(13, 59, 50, 0.10) 100%
        );
}


.genesis-story__cover {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.8s ease,
        filter 0.8s ease;
}


@media (hover: hover) {

    .genesis-story:hover .genesis-story__cover {
        transform: scale(1.018);

        filter:
            saturate(1.025)
            contrast(1.01);
    }

}


/* Text area */

.genesis-story__content {
    position: relative;

    padding:
        clamp(32px, 5vw, 58px)
        clamp(28px, 6vw, 68px)
        clamp(34px, 5vw, 56px);
}


.genesis-story__lead {
    max-width: 800px;

    margin:
        0
        auto
        30px;

    font-family: var(--font-display);

    font-size:
        clamp(
            1.35rem,
            2vw,
            1.75rem
        );

    line-height: 1.34;
    letter-spacing: -0.025em;

    color: var(--heading);

    text-align: justify;
    text-align-last: left;
    hyphens: auto;
}


/* Full story */

.genesis-story__body-wrap {
    position: relative;

    max-width: 800px;
    margin-inline: auto;
}


.genesis-story__body {
    color: var(--text);

    font-size: 1rem;
    line-height: 1.75;

    text-align: justify;
    text-align-last: left;

    hyphens: auto;
}


.genesis-story__body p {
    margin-bottom: 1.25em;
}


.genesis-story__body p:last-child {
    margin-bottom: 0;
}


/*
 * Without JavaScript the full story remains visible.
 * JS adds .is-enhanced and enables collapsing.
 */

.genesis-story.is-enhanced
.genesis-story__body-wrap {
    max-height: 13.5rem;

    overflow: hidden;

    transition:
        max-height 0.55s ease;
}


/* Soft fade over hidden text */

.genesis-story__fade {
    display: none;
}


.genesis-story.is-enhanced:not(.is-expanded)
.genesis-story__fade {
    display: block;

    position: absolute;
    z-index: 2;

    left: 0;
    right: 0;
    bottom: 0;

    height: 110px;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(255, 253, 248, 0) 0%,
            rgba(255, 253, 248, 0.88) 68%,
            #fffdf8 100%
        );
}


/* Expand / collapse */

.genesis-story__toggle {
    display: none;

    width: 46px;
    height: 46px;

    align-items: center;
    justify-content: center;

    margin:
        18px
        auto
        0;

    padding: 0;

    border: 0;
    background: transparent;

    color: var(--green-dark);

    cursor: pointer;

    opacity: 0.72;

    transition:
        opacity 0.2s ease;
}


.genesis-story.is-enhanced
.genesis-story__toggle {
    display: flex;
}


/* Arrow */

.genesis-story__toggle-icon {
    --arrow-scale: 1.2;

    position: relative;

    display: block;

    width: 20px;
    height: 25px;

    transform:
        scale(var(--arrow-scale));

    transition:
        transform 0.3s ease;
}


/* Vertical stem */

.genesis-story__toggle-icon::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 2px;

    width: 2px;
    height: 17px;

    border-radius: 2px;

    background: currentColor;

    transform:
        translateX(-50%);
}


/* Arrow head */

.genesis-story__toggle-icon::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 2px;

    width: 9px;
    height: 9px;

    border-right:
        2px solid currentColor;

    border-bottom:
        2px solid currentColor;

    transform:
        translateX(-50%)
        rotate(45deg);
}


/* Up arrow when expanded */

.genesis-story.is-expanded
.genesis-story__toggle-icon {
    transform:
        rotate(180deg)
        scale(var(--arrow-scale));
}


/* Subtle hover movement */

@keyframes genesisStoryArrowFloat {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(4px);
    }
}


@media (hover: hover) {

    .genesis-story__toggle:hover {
        opacity: 1;

        animation:
            genesisStoryArrowFloat
            0.75s
            ease-in-out
            infinite;
    }

}


/* No toggle is needed when the story is short */

.genesis-story.is-short
.genesis-story__toggle {
    display: none;
}


@media (prefers-reduced-motion: reduce) {

    .genesis-story__toggle:hover {
        animation: none;
    }

}


/* =========================================================
   STORIES ARCHIVE
   ========================================================= */

.stories-archive {
    min-height: 100vh;
    background: var(--surface);
}


.stories-archive__title {
    max-width: 820px;
}


.stories-archive__grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;

    margin-top: 50px;
}

.stories-load-sentinel {
    height: 1px;
    margin-top: 32px;
}

.stories-pagination.is-enhanced {
    display: none;
}

.stories-archive__end {
    max-width: 620px;

    margin:
        72px
        auto
        0;

    padding:
        34px
        24px
        0;

    text-align: center;
    color: var(--muted);
    opacity: 0;

    transform:
        translateY(10px);

    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.stories-archive__end[hidden] {
    display: none;
}

.stories-archive__end.is-visible {
    opacity: 1;

    transform:
        translateY(0);
}

.stories-archive__end::before {
    content: "";
    display: block;
    width: 84px;
    height: 1px;

    margin:
        0
        auto
        28px;

    background:
        rgba(33, 89, 72, 0.16);
}

.stories-archive__end-mark {
    display: block;
    width: 42px;
    height: 42px;

    margin:
        0
        auto
        18px;

    object-fit: contain;
    opacity: 0.62;
}

.stories-archive__end h3 {
    margin-bottom: 10px;
    color: var(--heading);

    font-size:
        clamp(
            1.45rem,
            2vw,
            1.8rem
        );

    line-height: 1.2;
}

.stories-archive__end p {
    max-width: 470px;

    margin:
        0
        auto;

    font-size: 0.95rem;
    line-height: 1.65;
}

.stories-archive__end-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 24px;

    padding:
        9px
        16px;

    border:
        1px solid
        rgba(33, 89, 72, 0.18);

    border-radius:
        var(--radius-pill);

    background:
        transparent;

    color:
        rgba(33, 89, 72, 0.68);

    font-size: 0.84rem;
    font-weight: 700;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


@media (hover: hover) {

    .stories-archive__end-link:hover {
        color:
            rgba(33, 89, 72, 0.92);

        border-color:
            rgba(33, 89, 72, 0.34);

        transform:
            translateY(-1px);
    }

}

.stories-archive__end-link span {
    display: inline-block;

    transition:
        transform 0.2s ease;
}


@media (hover: hover) {

    .stories-archive__end-link:hover span {
        transform:
            translateY(-2px);
    }

}

/*
 * Archive cards reuse the main Genesis story-card style,
 * but don't inherit the fixed landing-card height.
 */

.story-card--archive {
    min-height: auto;
}


/*
 * On the landing page the large gap under the category
 * is deliberate. Archive cards contain more information,
 * so the spacing is tighter only here.
 */

.story-card--archive .story-card__tag {
    margin-bottom: 18px;
}


.story-card--archive .story-card__title {
    margin-bottom: 16px;

    font-size:
        clamp(
            1.7rem,
            2.4vw,
            2.2rem
        );

    line-height: 1.12;
    letter-spacing: -0.03em;
}


.story-card--archive .story-card__excerpt {
    margin-bottom: 0;
    color: var(--muted);
}


.story-card--archive .story-card__meta {
    margin-top: 24px;
    margin-bottom: 0;

    color: var(--heading);

    font-size: 0.9rem;
    font-weight: 700;
}


/* Original message preview */

.story-card--archive .story-card__source {
    margin-top: 26px;
}

.story-card--archive
.story-card__source-button {
    display: block;

    width: fit-content;

    padding: 0;

    appearance: none;

    border: 0;
    background: transparent;

    color: inherit;
    font: inherit;

    text-align: left;

    cursor: pointer;
}

.story-card--archive .story-card__screenshot {
    display: block;

    width: 100%;
    max-width: 180px;
    max-height: 150px;

    object-fit: cover;
    object-position: top;

    border:
        1px solid var(--line);
    border-radius: 12px;

    cursor: pointer;
}


.story-card--archive .story-card__source-label {
    display: block;

    margin-top: 8px;

    color: var(--muted);

    font-size: 0.78rem;
}


/*
 * The common .story-card__link hover animation
 * remains unchanged. Here we only reset native
 * <button> appearance.
 */

.story-card--archive .story-card__link {
    margin-top: auto;

    padding:
        28px
        0
        0;

    appearance: none;

    border: 0;
    background: transparent;

    font-family: inherit;
    font-size: inherit;
    font-weight: 800;
    line-height: inherit;

    text-align: left;

    cursor: pointer;
}


/* Archive disclaimer */

.stories-archive__notice {
    max-width: 820px;

    margin: 70px auto 0;
    padding: 28px 30px;

    border:
        1px solid var(--line);
    border-radius: var(--radius-sm);

    background:
        rgba(255, 255, 255, 0.45);
}


.stories-archive__notice strong {
    display: block;
    margin-bottom: 10px;
}


.stories-archive__notice p {
    margin-bottom: 0;
    color: var(--muted);
}


/* Empty archive state */

.stories-archive__empty {
    margin-top: 60px;
}


/* Back to Genesis button alignment */

.stories-back-nav {
    margin-bottom: 28px;
}


.stories-back-nav--our {
    max-width: 1040px;

    margin-left: auto;
    margin-right: auto;
}


.stories-back-nav--people {
    max-width: 760px;

    margin-left: 0;
    margin-right: 0;
}


/* =========================================================
   STORY OVERLAYS
   ========================================================= */

html.story-overlay-open {
    overflow: hidden;
}


/* ---------------------------------------------------------
   Story modal
   --------------------------------------------------------- */

.story-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;

    display: grid;
    place-items: center;

    padding:
        clamp(
            18px,
            4vw,
            48px
        );

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.22s ease,
        visibility 0s linear 0.22s;
}


.story-modal.is-open {
    opacity: 1;
    visibility: visible;

    transition-delay: 0s;
}


.story-modal__backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(8, 18, 15, 0.64);

    backdrop-filter:
        blur(7px);

    -webkit-backdrop-filter:
        blur(7px);
}


.story-modal__dialog {
    position: relative;
    z-index: 1;

    width:
        min(
            820px,
            calc(100vw - 96px)
        );

    max-height:
        min(
            90dvh,
            980px
        );

    padding:
        34px
        0;

    overflow: hidden;

    border:
        1px solid rgba(33, 89, 72, 0.14);

    border-radius: 30px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 253, 248, 0.995),
            rgba(246, 242, 234, 0.995)
        );

    box-shadow:
        0 32px 90px rgba(10, 25, 20, 0.30),
        0 8px 28px rgba(10, 25, 20, 0.14);

    transform:
        translateY(18px)
        scale(0.985);

    transition:
        transform 0.24s ease;
}


.story-modal.is-open
.story-modal__dialog {
    transform:
        translateY(0)
        scale(1);
}


/* Close button */

.story-modal__close {
    position: absolute;
    z-index: 5;

    top: 20px;
    right: 20px;

    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    padding: 0;

    border:
        1px solid rgba(20, 36, 31, 0.10);

    border-radius: 50%;

    background:
        rgba(255, 253, 248, 0.92);

    color: var(--green-dark);

    font-family:
        Arial,
        sans-serif;

    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 5px 18px rgba(20, 36, 31, 0.08);

    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        border-color 0.18s ease;
}


.story-modal__close:hover {
    background: var(--green);
    color: #fff;

    border-color: var(--green);

    transform:
        rotate(4deg);
}


/* Scrollable content */

.story-modal__content {
    max-height:
        calc(
            min(90dvh, 980px)
            - 68px
        );

    overflow-y: auto;
    overscroll-behavior: contain;

    padding:
        24px
        clamp(38px, 5vw, 62px)
        28px;

    scrollbar-gutter: stable;
}


.story-modal__article {
    max-width: 680px;

    margin-inline: auto;
}


.story-modal__article h2 {
    max-width: 620px;

    margin:
        0
        70px
        18px
        0;

    font-size:
        clamp(
            2.2rem,
            4.5vw,
            3.6rem
        );

    line-height: 1.08;
}


.story-modal__meta {
    margin-bottom: 34px;

    color: var(--green-dark);

    font-size: 0.92rem;
    font-weight: 700;
}


.story-modal__body {
    color: var(--text);

    font-size: 1rem;
    line-height: 1.75;
}


.story-modal__body p {
    margin-bottom: 1.3em;
}


.story-modal__body p:last-child {
    margin-bottom: 0;
}


/* Screenshot inside story */

.story-modal__source {
    display: block;

    width: fit-content;
    max-width: 100%;

    margin-top: 36px;
    padding: 0;

    appearance: none;

    border: 0;
    background: transparent;

    color: var(--green-dark);

    font: inherit;
    font-weight: 700;

    text-align: left;

    cursor: pointer;
}


.story-modal__source img {
    width: auto;
    max-width: 280px;
    max-height: 220px;

    margin-bottom: 10px;

    object-fit: contain;

    border:
        1px solid var(--line);

    border-radius: 14px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.story-modal__source:hover img {
    transform:
        translateY(-2px);

    box-shadow:
        0 12px 30px rgba(10, 40, 33, 0.10);
}


/* Story disclaimer */

.story-modal__notice {
    margin-top: 34px;

    padding:
        16px
        18px;

    border:
        1px solid
        rgba(20, 36, 31, 0.06);

    border-radius:
        var(--radius-sm);

    background:
        rgba(255, 255, 255, 0.20);
}


.story-modal__notice strong {
    display: block;

    margin-bottom: 5px;

    color:
        rgba(25, 48, 74, 0.56);

    font-size: 0.82rem;
    font-weight: 600;
}


.story-modal__notice p {
    margin-bottom: 0;

    color:
        rgba(95, 111, 104, 0.72);

    font-size: 0.80rem;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   Screenshot lightbox
   --------------------------------------------------------- */

.story-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2200;

    display: grid;
    place-items: center;

    padding:
        clamp(
            18px,
            4vw,
            48px
        );

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0s linear 0.2s;
}


.story-lightbox.is-open {
    opacity: 1;
    visibility: visible;

    transition-delay: 0s;
}


.story-lightbox__backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(5, 12, 10, 0.82);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}


.story-lightbox__dialog {
    position: relative;
    z-index: 1;

    display: grid;
    place-items: center;

    width: fit-content;
    max-width:
        calc(100vw - 72px);

    max-height:
        calc(100dvh - 72px);

    outline: none;
}


.story-lightbox__image {
    display: block;

    width: auto;
    height: auto;

    max-width:
        calc(100vw - 72px);

    max-height:
        calc(100dvh - 72px);

    object-fit: contain;

    border-radius: 14px;

    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.42);
}


.story-lightbox__close {
    position: absolute;
    z-index: 3;

    top: -18px;
    right: -18px;

    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    padding: 0;

    border:
        1px solid rgba(255, 255, 255, 0.25);

    border-radius: 50%;

    background:
        rgba(255, 253, 248, 0.94);

    color: var(--green-dark);

    font-family:
        Arial,
        sans-serif;

    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.25);
}


/* trust */
/* trust cards */

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.trust-panel {
    position: relative;
    padding: 38px 40px 40px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow:
        0 14px 38px rgba(20, 50, 41, 0.06);
}

/* Positive card */

.trust-panel--yes {
    background:
        linear-gradient(
            145deg,
            #e3edcc 0%,
            #d3e1b5 100%
        );
    border:
        1px solid rgba(70, 108, 68, 0.22);
    box-shadow:
        0 16px 42px rgba(54, 91, 65, 0.10);
}

/* Boundary card */

.trust-panel--no {
    background:
        linear-gradient(
            145deg,
            #efede7 0%,
            #e7e4dc 100%
        );
    border:
        1px solid rgba(76, 82, 77, 0.08);
    box-shadow:
        0 12px 32px rgba(40, 46, 42, 0.05);
}

/* Heading */

.trust-panel__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.trust-panel__header h3 {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1.15;
}

/* Round symbol */

.trust-panel__icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
}

.trust-panel__icon::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.trust-panel--yes .trust-panel__icon {
    background: rgba(255, 255, 255, 0.68);
    color: var(--green);
}

.trust-panel__icon--can::before {
    -webkit-mask-image:
        url("../icons/trust-card-can.png");
    mask-image:
        url("../icons/trust-card-can.png");
}

.trust-panel--no .trust-panel__icon {
    background: rgba(255, 255, 255, 0.68);
    color: #68706b;
}

.trust-panel__icon--cannot::before {
    -webkit-mask-image:
        url("../icons/trust-card-cannot.png");
    mask-image:
        url("../icons/trust-card-cannot.png");
}

/* Lists */

.trust-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust-panel li {
    position: relative;
    padding-left: 32px;
    line-height: 1.55;
}

.trust-panel li + li {
    margin-top: 17px;
}

/* Custom list symbols */

.trust-panel li::before {
    position: absolute;
    left: 0;
    top: 0.01em;
    width: 20px;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.5;
}

.trust-panel--yes li::before {
    content: "✓";
    color: #1f634f;
    font-size: 1.4rem;
    font-weight: 900;
}

.trust-panel--no li::before {
    content: "—";
    color: #69736d;
    font-weight: 900;
}

.trust-statement {
    max-width: 860px;
    margin: 60px auto 0;
    text-align: center;
}
.trust-statement p { color: var(--muted); font-size: 1.1rem; }
.trust-statement strong {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 1.2;
    letter-spacing: -0.035em;
    color: var(--heading);
}

/* contact */
.contact {
    --wave-fill: #eff2ee;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0.02)
        ),
        linear-gradient(
            180deg,
            #eff2ee 0%,
            #f7f5f0 100%
        );
}
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(42px, 8vw, 120px);
    align-items: center;
}
.contact__text { position: relative; z-index: 2; }
.contact__text h2 { margin-bottom: 16px; }
.contact__text p { color: var(--muted); }
.messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}
.messenger-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(20,36,31,0.08);
    box-shadow: var(--shadow-soft);
    font-weight: 700;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.messenger-button:hover {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(33, 89, 72, 0.28);
    box-shadow:
        0 10px 24px rgba(17, 61, 49, 0.10);
}

.messenger-button--telegram:hover {
    border-color: rgba(44, 165, 224, 0.45);
}

.messenger-button--whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.45);
}

.messenger-button--max:hover {
    border-color: rgba(79, 109, 255, 0.40);
}

.messenger-button__icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
}

.messenger-button__icon::before {
    content: "";
    display: block;
    width: 21px;
    height: 21px;
    background-color: #fff;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.messenger-button--telegram .messenger-button__icon { background: #2ca5e0; }
.messenger-button--whatsapp .messenger-button__icon { background: #25d366; }
.messenger-button--max .messenger-button__icon { background: #4f6dff; }

.messenger-button--telegram .messenger-button__icon::before {
    -webkit-mask-image: url("../icons/telegram.png");
    mask-image: url("../icons/telegram.png");
}

.messenger-button--whatsapp .messenger-button__icon::before {
    -webkit-mask-image: url("../icons/whatsapp.png");
    mask-image: url("../icons/whatsapp.png");
}

.messenger-button--max .messenger-button__icon::before {
    -webkit-mask-image: url("../icons/max.png");
    mask-image: url("../icons/max.png");
}

/* =========================================================
   CONTACT FORM
   ========================================================= */

.contact-form-card {
    position: relative;
    z-index: 2;
    padding: 34px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border:
        1px solid rgba(20, 36, 31, 0.08);
    box-shadow: var(--shadow);
}

.contact-form-card h3 {
    margin-bottom: 0;
}

.contact-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

/* ---------------------------------------------------------
   Two-column row
   --------------------------------------------------------- */

.form-row--double {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        210px;
    gap: 14px;
    align-items: start;
}

/* ---------------------------------------------------------
   Form fields
   --------------------------------------------------------- */

.form-field {
    display: grid;
    grid-template-rows:
        auto
        54px
        16px;
    gap: 5px;
    min-width: 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
    align-content: start;
}

/*
 * Input and select deliberately use exactly
 * the same height.
 */

.contact-form input:not([type="checkbox"]),
.contact-form select {
    width: 100%;
    height: 54px;
    min-width: 0;
    padding: 0 15px;
    border-radius: 11px;
    border:
        1px solid rgba(20, 36, 31, 0.12);
    background: #fff;
    color: var(--text);
    font: inherit;
    outline: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-form select {
    cursor: pointer;
}

/* Focus */

.contact-form input:not([type="checkbox"]):focus,
.contact-form select:focus {
    border-color: var(--green);
    box-shadow:
        0 0 0 3px rgba(33, 89, 72, 0.08);
}

/* ---------------------------------------------------------
   Validation
   --------------------------------------------------------- */

/*
 * IMPORTANT:
 * Field labels keep their normal colour even on error.
 */

.form-field--error > span {
    color: var(--muted);
}

.form-field--error input:not([type="checkbox"]),
.form-field--error select {
    border-color: rgba(181, 94, 83, 0.72);
    background:
        rgba(196, 111, 99, 0.07);
    box-shadow:
        0 0 0 3px rgba(196, 111, 99, 0.07);
}

.form-field--error input:not([type="checkbox"]):focus,
.form-field--error select:focus {
    border-color: #b55e53;
    box-shadow:
        0 0 0 3px rgba(181, 94, 83, 0.13);
}

/* Error text */

.form-error {
    display: block;
    min-height: 16px;
    margin: -1px 0 0;
    color: #ad665b;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.25;
}

.form-error--empty {
    visibility: hidden;
}

/* Remove visual error as soon as the field becomes valid */

.form-field--error:has(
    input:not([type="checkbox"]):valid
) input:not([type="checkbox"]) {
    border-color: rgba(20, 36, 31, 0.12);
    background: #fff;
    box-shadow: none;
}

.form-field--error:has(select:valid) select {
    border-color: rgba(20, 36, 31, 0.12);
    background: #fff;
    box-shadow: none;
}

/* Hide old server-side error text */

.form-field--error:has(
    input:not([type="checkbox"]):valid
) .form-error,
.form-field--error:has(select:valid) .form-error {
    visibility: hidden;
}

/* ---------------------------------------------------------
   Consent checkbox
   --------------------------------------------------------- */

.checkbox-field {
    display: grid;
    gap: 3px;
}

.checkbox {
    display: grid !important;
    grid-template-columns:
        18px
        minmax(0, 1fr) !important;
    align-items: start;
    gap: 10px !important;
    /*
     * This colour stays unchanged even when validation fails.
     */
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.checkbox input {
    width: auto;
    height: auto;
    margin-top: 4px;
    accent-color: var(--green);
}

.checkbox a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/*
 * On error only the container, checkbox itself
 * and error message are highlighted.
 * The consent text DOES NOT change colour.
 */

.checkbox-field--error {
    padding: 10px 12px;
    border-radius: 12px;
    background:
        rgba(196, 111, 99, 0.065);
}

.checkbox-field--error .checkbox {
    color: var(--muted);
}

.checkbox-field--error .checkbox input {
    outline:
        2px solid rgba(181, 94, 83, 0.34);
    outline-offset: 2px;
}

.form-error--checkbox {
    margin-top: 1px;
    margin-left: 28px;
    font-weight: 400;
}

.checkbox-field--error:has(input:checked) {
    padding: 0;
    background: transparent;
}

.checkbox-field--error:has(input:checked) .checkbox input {
    outline: none;
}

.checkbox-field--error:has(input:checked) .form-error {
    display: none;
}

/* ---------------------------------------------------------
   Non-field errors
   --------------------------------------------------------- */

.form-global-error {
    padding: 12px 14px;
    border-radius: 12px;
    border:
        1px solid rgba(185, 158, 79, 0.32);
    background:
        rgba(196, 196, 99, 0.18);
    color: #8a7940;
    font-size: 0.88rem;
    font-weight: 400;
    box-shadow:
        0 16px 36px rgba(26, 52, 47, 0.12),
        0 10px 14px rgba(26, 52, 47, 0.08),
        0 2px 6px rgba(26, 52, 47, 0.06);
    transform: translateY(-2px);
}

/* ---------------------------------------------------------
   Successful submission
   --------------------------------------------------------- */

.form-success {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 18px;
    margin-bottom: 5px;
    padding: 15px 17px;
    border-radius: 14px;
    border:
        1px solid rgba(72, 123, 80, 0.22);
    background:
        rgba(235, 245, 217, 0.98);
    color: var(--green-dark);
    font-size: 0.88rem;
    line-height: 1.45;
    box-shadow:
        0 15px 44px rgba(13, 59, 50, 0.18),
        0 8px 16px rgba(13, 59, 50, 0.10),
        0 2px 6px rgba(13, 59, 50, 0.06);
    transform: translateY(-3px);
}

.form-success strong {
    flex: 0 0 auto;
    font-weight: 800;
}

.contact__handwriting {
    position: absolute;
    right: 6%;
    bottom: 90px;
    max-width: 200px;
    color: var(--green-dark);
    text-align: left;
}

.button-send-icon {
    display: inline-block;
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask-image:
        url("../icons/hero-button-sent.png");
    mask-image:
        url("../icons/hero-button-sent.png");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.contact__handwriting .handwritten,
.contact__handwriting .handwritten__heart { color: rgba(33, 89, 72, 0.88); }
.contact__handwriting .handwritten__heart { margin: 10px auto 0; transform: translateX(30px) rotate(-15deg); }

/* footer */

.footer {
    padding: 36px 0 38px;
    background: #f0f2ef;
    border-top:
        1px solid rgba(20, 36, 31, 0.06);
}

.footer__inner {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        max-content
        minmax(0, 1fr);
    gap: 48px;
    align-items: end;
}

/* Description */

.footer__about > p {
    max-width: 360px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

/* Legal links */

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-self: center;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.footer__links a {
    width: fit-content;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.footer__links a:hover {
    color: var(--green);
}

/* Copyright */

.footer__copyright {
    justify-self: end;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.footer__copyright p {
    margin-bottom: 6px;
    font-weight: 600;
}

.footer__copyright span {
    display: block;
}

.brand--footer { color: var(--green-dark); margin-bottom: 16px; }
.brand--footer .brand__master { color: var(--heading); font-size: 1.8rem; }
.brand--footer .brand__tagline { color: var(--muted); }
.brand--footer .brand__icon { width: 40px; height: 40px; }

.mobile-contact { display: none; }


/* =========================================================
   Legal documents
   ========================================================= */

body.legal-modal-open {
    overflow: hidden;
}


/* Modal */

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: grid;
    place-items: center;

    padding: clamp(18px, 4vw, 48px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.22s ease,
        visibility 0s linear 0.22s;
}

.legal-modal.is-open {
    opacity: 1;
    visibility: visible;

    transition-delay: 0s;
}


.legal-modal__backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(8, 18, 15, 0.62);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}


.legal-modal__dialog {
    position: relative;
    z-index: 1;

    width:
        min(
            760px,
            calc(100vw - 96px)
        );

    max-height:
        min(
            90dvh,
            980px
        );

    padding:
        34px
        0;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(255, 253, 248, 0.995),
            rgba(246, 242, 234, 0.995)
        );

    border:
        1px solid rgba(33, 89, 72, 0.14);

    border-radius: 28px;

    box-shadow:
        0 32px 90px rgba(10, 25, 20, 0.30),
        0 8px 28px rgba(10, 25, 20, 0.14);

    transform:
        translateY(18px)
        scale(0.985);

    transition:
        transform 0.24s ease;
}

.legal-modal.is-open
.legal-modal__dialog {
    transform:
        translateY(0)
        scale(1);
}


/* Close button */

.legal-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;

    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    padding: 0;

    border:
        1px solid rgba(20, 36, 31, 0.10);

    border-radius: 50%;

    background:
        rgba(255, 253, 248, 0.88);

    color: var(--green-dark);

    font-family: Arial, sans-serif;
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 5px 18px rgba(20, 36, 31, 0.08);

    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        border-color 0.18s ease;
}

.legal-modal__close:hover {
    background: var(--green);
    color: #fff;

    border-color: var(--green);

    transform: rotate(4deg);
}

.legal-modal__close:focus-visible {
    outline:
        3px solid rgba(107, 141, 120, 0.28);

    outline-offset: 3px;
}


/* Scroll area */

.legal-modal__content {
    max-height:
        calc(
            min(90dvh, 980px)
            - 68px
        );

    overflow-y: auto;
    overscroll-behavior: contain;

    padding:
        24px
        clamp(38px, 5vw, 62px)
        28px;

    scrollbar-gutter: stable;
}


/* Legal typography */

.legal-document {
    width: 100%;
    max-width: 640px;

    margin-inline: auto;

    color: var(--text);
}

.legal-document h1 {
    max-width: 700px;

    margin:
        0
        72px
        12px
        0;

    color: var(--heading);

    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.legal-document__meta {
    margin-bottom: 34px !important;

    color: var(--green-soft);

    font-size: 0.88rem;
    letter-spacing: 0.015em;
}

.legal-document h2 {
    margin:
        36px
        0
        14px;

    color: var(--green-dark);

    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: 600;
    line-height: 1.25;
}

.legal-document p {
    margin:
        0
        0
        16px;

    color: var(--muted);

    font-size: 1rem;
    line-height: 1.72;
}

.legal-document ul {
    margin:
        4px
        0
        20px;

    padding-left: 1.4rem;

    color: var(--muted);
}

.legal-document li {
    margin-bottom: 8px;

    padding-left: 5px;

    line-height: 1.65;
}

.legal-document li::marker {
    color: var(--green-soft);
}

.legal-document a {
    color: var(--green);

    text-decoration:
        underline
        rgba(33, 89, 72, 0.36);

    text-underline-offset: 3px;

    transition:
        color 0.18s ease,
        text-decoration-color 0.18s ease;
}

.legal-document a:hover {
    color: var(--green-dark);

    text-decoration-color:
        var(--green-dark);
}


/* =========================================================
   Standalone legal page
   ========================================================= */

.legal-page {
    min-height: 100vh;

    padding:
        20px
        0
        clamp(48px, 8vw, 100px);

    background:
        linear-gradient(
            180deg,
            var(--bg),
            var(--surface-soft)
        );
}


/* Navigation above document */

.legal-page__nav {
    width:
        min(
            calc(100% - 32px),
            900px
        );

    margin:
        0
        auto
        20px;
}


/* Document sheet */

.legal-page__container {
    width:
        min(
            calc(100% - 32px),
            900px
        );

    padding:
        clamp(36px, 6vw, 68px);

    background:
        var(--surface);

    border:
        1px solid var(--line);

    border-radius: 28px;

    box-shadow:
        0 18px 55px
        rgba(20, 36, 31, 0.08);
}


/* Back link */

.legal-page__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 88px;
    height: 46px;

    border:
        1px solid rgba(33, 89, 72, 0.14);

    border-radius:
        var(--radius-pill);

    background:
        rgba(255, 253, 248, 0.96);

    color:
        var(--green-dark);

    box-shadow:
        0 6px 20px
        rgba(20, 36, 31, 0.08);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}


.legal-page__back-icon {
    width: 36px;
    height: 20px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform 0.22s ease;
}


.legal-page__back:hover {
    background:
        var(--surface);

    border-color:
        rgba(33, 89, 72, 0.24);

    box-shadow:
        0 9px 26px
        rgba(20, 36, 31, 0.11);

    transform:
        translateY(-1px);
}


.legal-page__back:hover
.legal-page__back-icon {
    transform:
        translateX(-4px);
}


.legal-page__back:active
.legal-page__back-icon {
    transform:
        translateX(-1px);
}


.legal-page__back:focus-visible {
    outline:
        3px solid
        rgba(107, 141, 120, 0.25);

    outline-offset: 3px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {

    .nav__menu {
        display: none;
    }

    .contact__handwriting {
        right: 3%;
    }
}


/* ---------------------------------------------------------
   Tablet / compact layout
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .section {
        padding: 90px 0;
    }

    .split-layout,
    .split-layout--reverse,
    .iodine__heading,
    .contact-grid,
    .story-grid,
    .stories-archive__grid,
    .trust-grid,
    .three-cards,
    .footer__inner,
    .form-row--double {
        grid-template-columns: 1fr;
    }

    .footer__links,
    .footer__copyright {
        justify-self: start;
    }

    .feature-card--accent {
        transform: none;
    }

    .iodine-grid {
        grid-template-columns: 1fr;
    }

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

    .hero__handwriting,
    .contact__handwriting {
        display: none;
    }

    .visual-card {
        min-height: 420px;
    }

    .genesis-story__heading {
        margin-bottom: 34px;
    }

    .genesis-story__visual {
        aspect-ratio: 4 / 3;
    }

    .story-card--landing {
        flex-basis:
            calc(
                (100% - 20px)
                / 2
            );
    }
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 620px) {

    .nav {
        justify-content: center;
        padding-top: 24px;
    }

    .nav__contact {
        display: none;
    }

    .brand {
        margin-inline: auto;
    }

    .brand__text {
        align-items: flex-start;
    }

    .brand__tagline {
        max-width: 170px;
        line-height: 1.25;
    }

    .brand__icon {
        width: 36px;
        height: 36px;
    }

    .container {
        width:
            min(
                calc(100% - 28px),
                var(--container)
            );
    }

    .section {
        padding: 76px 0;
    }

    .section-wave-top {
        top: -59px;
        height: 60px;
    }

    h1 {
        font-size: 3.25rem;
    }

    h2 {
        font-size: 2.55rem;
    }


    /* Hero */

    .hero {
        min-height: 100svh;
    }

    .hero__text {
        padding: 60px 0 130px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .hero__points {
        gap: 12px;
        font-size: 0.92rem;
    }

    .hero-point {
        width: calc(50% - 6px);
        white-space: normal;
    }

    .hero__scroll {
        display: none;
    }


    /* Content */

    .visual-card {
        min-height: 360px;
    }

    .visual-card__content {
        left: 26px;
        right: 26px;
        bottom: 28px;
    }

    .timeline__item {
        grid-template-columns: 42px 1fr;
    }


    /* Trust */

    .iodine-card,
    .trust-panel,
    .trust-panel__header {
        gap: 12px;
        margin-bottom: 24px;
    }

    .trust-panel__icon {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }

    .trust-panel__header h3 {
        font-size: 1.5rem;
    }

    .trust-panel li {
        padding-left: 28px;
    }

    .trust-panel li + li {
        margin-top: 14px;
    }


    /* Cards */

    .contact-form-card,
    .story-card {
        padding: 26px;
    }


    /* Contact form */

    .form-row--double {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-field {
        grid-template-rows:
            auto
            54px
            16px;
    }

    .form-success {
        display: block;
        padding: 14px 15px;
    }

    .form-success strong {
        display: inline;
    }


    /* Quote panel */

    .quote-panel {
        min-height: auto;
        border-radius: 30px;
    }

    .quote-panel__image {
        height: 200px;
    }

    .quote-panel__content {
        margin-top: -10px;

        padding:
            8px
            26px
            30px;
    }

    .quote-panel__symbol {
        font-size: 2.5rem;
    }

    .quote-panel p {
        font-size: 2rem;
        line-height: 1.18;
    }


    /* Footer */

    .footer {
        padding-bottom: 108px;
    }

    .footer__links a {
        white-space: normal;
    }


    /* Fixed mobile CTA */

    .mobile-contact {
        position: fixed;
        z-index: 50;

        display: block;

        left: 14px;
        right: 14px;
        bottom: 14px;

        padding: 14px 20px;

        border-radius: 999px;

        background: #dce8a6;
        color: #12382f;

        text-align: center;
        font-weight: 800;

        box-shadow:
            0 12px 35px
            rgba(0, 0, 0, 0.22);
    }

    .genesis-story__heading {
        margin-bottom: 28px;
    }

    .genesis-story__heading h1 {
        font-size: 2.8rem;
    }

    .genesis-story {
        border-radius: 28px;
    }

    .genesis-story__visual {
        aspect-ratio: 4 / 3;
    }

    .genesis-story__content {
        padding:
            30px
            26px
            32px;
    }

    .genesis-story__lead {
        font-size: 1.4rem;
    }

    .genesis-story__lead,
    .genesis-story__body {
        text-align: left;
        hyphens: none;
    }

    .genesis-story.is-enhanced
    .genesis-story__body-wrap {
        max-height: 15rem;
    }

        /* Story modal */

    .story-modal {
        place-items: end center;

        padding:
            18px
            0
            0;
    }

    .story-modal__dialog {
        width: 100%;

        height:
            calc(100dvh - 18px);

        max-height: none;

        padding:
            30px
            0;

        border-radius:
            26px
            26px
            0
            0;
    }

    .story-modal__content {
        height: 100%;

        max-height: none;

        overflow-y: auto;
        overscroll-behavior: contain;

        padding:
            30px
            22px
            32px;
    }

    .story-modal__article h2 {
        margin-right: 44px;

        font-size: 2.35rem;
    }

    .story-modal__close {
        top: 14px;
        right: 14px;

        width: 42px;
        height: 42px;
    }

    .story-modal__source img {
        max-width: 100%;
    }


    /* Screenshot lightbox */

    .story-lightbox {
        padding: 18px;
    }

    .story-lightbox__dialog,
    .story-lightbox__image {
        max-width:
            calc(100vw - 36px);

        max-height:
            calc(100dvh - 36px);
    }

    .story-lightbox__close {
        top: -12px;
        right: -8px;
    }

    .story-card--landing {
        flex-basis: 100%;
        min-height: 330px;
    }


    .stories-carousel__frame {
        grid-template-columns:
            22px
            minmax(0, 1fr)
            22px;

        gap: 5px;
    }


    .stories-carousel__button {
        width: 22px;
        height: 64px;
        font-size: 3rem;
    }
}


/* ---------------------------------------------------------
   Legal modal on mobile
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .legal-modal {
        place-items: end center;

        padding:
            18px
            0
            0;
    }

    .legal-modal__dialog {
        width: 100%;

        height:
            calc(100dvh - 18px);

        max-height: none;

        /*
         * Постоянная свободная зона
         * сверху и снизу документа.
         */
        padding:
            30px
            0;

        border-radius:
            24px
            24px
            0
            0;

        transform:
            translateY(24px);
    }

    .legal-modal.is-open
    .legal-modal__dialog {
        transform:
            translateY(0);
    }

    .legal-modal__content {
        height: 100%;

        max-height: none;

        overflow-y: auto;
        overscroll-behavior: contain;

        padding:
            30px
            22px
            32px;
    }

    .legal-modal__close {
        top: 14px;
        right: 14px;

        width: 42px;
        height: 42px;

        background:
            rgba(255, 253, 248, 0.94);
    }

    .legal-document h1 {
        margin:
            0
            48px
            10px
            0;

        font-size:
            clamp(
                1.75rem,
                8vw,
                2.25rem
            );

        line-height: 1.12;
    }

    .legal-document__meta {
        margin-bottom:
            28px !important;
    }

    .legal-document h2 {
        margin-top: 31px;
        font-size: 1.2rem;
    }

    .legal-document p {
        font-size: 0.96rem;
        line-height: 1.68;
    }


    /* Standalone legal page */

    .legal-page {
        padding:
            14px
            0;
    }

    .legal-page__nav {
        width:
            calc(100% - 20px);

        margin:
            0
            auto
            14px;
    }

    .legal-page__container {
        width:
            calc(100% - 20px);

        padding:
            34px
            22px;

        border-radius: 22px;
    }

    .legal-page__back {
        width: 72px;
        height: 42px;
    }


    .legal-page__back-icon {
        width: 32px;
        height: 18px;
    }
}

/* =========================================================
   STORY VIDEO — poster first, native controls after Play
   ========================================================= */

.story-video {
    width: min(100%, 340px);
}

.story-video__button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    appearance: none;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #102a23;
    cursor: pointer;
}

.story-video__poster {
    display: block;
    width: 100%;
    height: auto;
}

.story-video__play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 253, 248, 0.80);
    color: var(--green-dark);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.story-video__play::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid currentColor;
    transform: translate(3px, 0);
}

.story-video__button:hover .story-video__play {
    transform: translate(-50%, -50%) scale(1.07);
    background: rgba(255, 253, 248, 0.92);
}

.story-video__button:focus-visible {
    outline: 3px solid var(--green-dark);
    outline-offset: 4px;
}

.story-video__caption {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.story-video__player {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    background: #000;
}

.story-card--archive .story-video {
    width: min(100%, 240px);
}

.story-modal__video {
    margin-top: 36px;
}

@media (prefers-reduced-motion: reduce) {
    .story-video__play {
        transition: none;
    }
}
