:root {
    --ink: #1d1d1f;
    --muted: #6e6e73;
    --faint: #86868b;
    --line: rgba(0, 0, 0, 0.08);
    --bg: #f5f5f7;
    --paper: #ffffff;
    --blue: #0066cc;
    --blue-btn: #0071e3;
    --blue-btn-hover: #0077ed;
    --nav-h: 68px;
    --ticker-h: 44px;
    --max: 1120px;
    --sans: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

@font-face {
    font-family: "Google Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/google-sans-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Google Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/google-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.012em;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input { font: inherit; color: inherit; }

h1, h2, p { margin: 0; }

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

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip {
    position: absolute;
    left: 16px;
    top: 8px;
    z-index: 20;
    transform: translateY(-150%);
    background: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
}

.skip:focus { transform: none; }

.eyebrow {
    margin: 0 0 8px;
    color: var(--faint);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow.light { color: #a1a1a6; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 980px;
    background: var(--blue-btn);
    color: #fff;
    cursor: pointer;
}

.btn:hover { background: var(--blue-btn-hover); }

.btn.ghost {
    background: transparent;
    color: var(--blue);
}

.btn.ghost:hover { background: rgba(0, 113, 227, 0.06); }

.btn.light {
    background: #fff;
    color: #000;
}

.btn.light:hover { background: #e8e8ed; }

:focus-visible {
    outline: 2px solid var(--blue-btn);
    outline-offset: 3px;
}

.ticker {
    display: flex;
    align-items: center;
    overflow: hidden;
    height: var(--ticker-h);
    background: #045e31;
    color: #fff;
    font-size: 15px;
    letter-spacing: 0.01em;
}

.ticker-track,
.ribbon-track {
    display: flex;
    width: max-content;
    flex-shrink: 0;
    animation: marquee linear infinite;
}

.ticker-track { animation-duration: 110s; }

.ribbon-track {
    align-items: center;
    animation-duration: 45s;
}

.ticker p,
.ribbon p {
    flex-shrink: 0;
}

.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 5;
    height: var(--nav-h);
    background: rgba(251, 251, 253, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-bar {
    display: flex;
    align-items: center;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 22px;
}

.brand {
    line-height: 0;
}

.brand img {
    display: block;
    width: auto;
    height: 36.6px;
}

.nav {
    display: none;
    gap: 36px;
    margin-left: auto;
    font-size: 17px;
    color: rgba(0, 0, 0, 0.8);
}

.nav a:hover { color: #000; }

.nav-tools {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.icon-btn svg { width: 18px; height: 18px; }

.icon-btn:hover { background: rgba(0, 0, 0, 0.05); }

.nav.open {
    display: flex;
    position: absolute;
    z-index: 6;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 22px 18px;
    background: #fbfbfd;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav.open a { padding: 12px 0; }

section,
.partners {
    scroll-margin-top: calc(var(--nav-h) + 8px);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--ticker-h) - var(--nav-h));
    min-height: calc(100svh - var(--ticker-h) - var(--nav-h));
    padding: 36px 22px 48px;
    text-align: center;
    background: #ffebd2;
}

.hero h1 {
    margin: 0;
    line-height: 0;
}

.hero-logo {
    display: block;
    width: min(620px, 78vw);
    height: auto;
}

.hero-art {
    display: block;
    width: auto;
    height: min(320px, 34svh);
    max-width: 78vw;
    margin: 12px 0 4px;
}

.hero-lead {
    margin-top: 12px;
    color: var(--ink);
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.hero-note {
    margin-top: 8px;
    color: var(--ink);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.35;
}

.hero-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    margin-top: 22px;
    padding: 0 52px;
    border-radius: 980px;
    background: #ef5023;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hero-register:hover {
    background: #dc4318;
    transform-origin: top center;
    animation: bell 0.9s ease-in-out infinite;
}

@keyframes bell {
    0%, 50%, 100% { transform: rotate(0deg); }
    8% { transform: rotate(14deg); }
    16% { transform: rotate(-12deg); }
    24% { transform: rotate(8deg); }
    32% { transform: rotate(-5deg); }
    40% { transform: rotate(2deg); }
}

.story {
    padding: 96px 22px 88px;
}

.story-wrap {
    max-width: var(--max);
    margin: 0 auto;
}

.story-layout {
    display: grid;
    gap: 28px;
}

.story-side h2 {
    font-size: clamp(40px, 5vw, 52px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.story-side img {
    width: min(180px, 46vw);
    height: auto;
    margin-top: 28px;
}

.story-copy {
    font-size: 17px;
    line-height: 1.5;
    color: #1d1d1f;
}

.story-copy p + p { margin-top: 16px; }

.story-copy strong { font-weight: 600; }

.story-copy .next { color: var(--muted); }

.numbers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 48px;
}

.numbers article {
    padding: 28px 22px 22px;
    background: #f3f1ec;
    border-radius: 28px;
}

.numbers strong {
    display: block;
    font-size: clamp(44px, 6vw, 64px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.95;
    font-variant-numeric: tabular-nums;
}

.numbers span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ribbon {
    overflow: hidden;
    background: #045e31;
    color: #fff;
}


.ticker p {
    margin: 0;
    padding: 0 48px 0 0;
    line-height: 1.2;
    white-space: nowrap;
}

.ribbon p {
    padding: 22px 20px;
    white-space: nowrap;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.ribbon-mushroom {
    flex: 0 0 auto;
    width: 48px;
    max-width: none;
    height: auto;
    transform: rotate(25deg);
}

.partners {
    display: grid;
    gap: 36px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 56px 22px 28px;
}

.partner-block h2 {
    margin-bottom: 12px;
    color: var(--faint);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.partner-block.feature .logo-row { grid-template-columns: 1fr; }

.logo-tile {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 96px;
    padding: 18px 20px;
    border-radius: 22px;
    background: #f3f1ec;
    color: var(--ink);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-align: center;
}

a.logo-tile:hover {
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.logo-tile img {
    width: auto;
    max-width: 78%;
    max-height: 52px;
    object-fit: contain;
}

.logo-tile:has(img) span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.partner-block.feature .logo-tile {
    min-height: 128px;
    font-size: 22px;
}

.partner-block.feature .logo-tile img {
    max-width: 70%;
    max-height: 64px;
}

.partner-block.single .logo-row {
    grid-template-columns: minmax(0, 280px);
}

.partner-block.single .logo-tile {
    min-height: 180px;
}

.partner-block.single .logo-tile img {
    max-width: 62%;
    max-height: 132px;
}

.subscribe {
    padding: 8px 22px 72px;
    background: #fff;
}

.subscribe-card {
    display: grid;
    gap: 28px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 36px 28px;
    background: #f3f1ec;
    border-radius: 28px;
}

.subscribe h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.subscribe > .subscribe-card > div p:last-of-type {
    max-width: 28em;
    margin-top: 10px;
    color: var(--muted);
    font-size: 17px;
}

.subscribe-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subscribe input {
    flex: 1 1 220px;
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 980px;
    background: #fff;
    color: var(--ink);
}

.subscribe input::placeholder { color: #86868b; }

.subscribe .btn {
    min-height: 48px;
    background: #045e31;
}

.subscribe .btn:hover { background: #034826; }

.form-note,
.thanks {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

.form-note a { color: var(--blue); }

.form-note a:hover { text-decoration: underline; }

.thanks { color: #045e31; }

.foot {
    padding: 56px 22px 28px;
    background: var(--bg);
    color: var(--muted);
    font-size: 12px;
}

.foot-grid {
    display: grid;
    gap: 28px;
    max-width: var(--max);
    margin: 0 auto;
}

.foot h2 {
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
}

.foot li + li { margin-top: 8px; }

.foot a:hover { text-decoration: underline; }

.foot-base {
    display: grid;
    gap: 8px;
    max-width: var(--max);
    margin: 36px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.foot-warning {
    margin-top: 28px;
    color: var(--ink);
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
}

.gate,
.search-dialog {
    width: min(480px, calc(100% - 32px));
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(24px);
}

.search-dialog { width: min(640px, calc(100% - 32px)); }

.gate::backdrop,
.search-dialog::backdrop {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.gate-card,
.search-panel { padding: 32px 28px 28px; }

.gate-card { text-align: center; }

.gate h2 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.gate-card > p:not(.eyebrow) {
    margin-top: 10px;
    color: var(--muted);
}

.gate-actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.gate-actions .btn {
    width: 100%;
    min-height: 48px;
    background: #045e31;
    color: #fff;
}

.gate-actions .btn:hover { background: #034826; }

.gate-actions .btn.ghost {
    background: transparent;
    color: #045e31;
    box-shadow: inset 0 0 0 1.5px #045e31;
}

.gate-actions .btn.ghost:hover { background: rgba(4, 94, 49, 0.08); }

.search-panel input {
    width: 100%;
    min-height: 52px;
    padding: 0 4px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.search-results { margin-top: 8px; }

.search-results a,
.search-results p {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.search-results a { font-weight: 600; }

.search-results small {
    display: block;
    color: var(--faint);
    font-size: 13px;
    font-weight: 500;
}

.search-results a:hover { color: var(--blue); }

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 733px) {
    .story-side,
    .subscribe-card,
    .numbers article,
    .partner-block h2 { text-align: center; }

    .story-side img { margin-inline: auto; }

    .subscribe > .subscribe-card > div p:last-of-type { margin-inline: auto; }

    .subscribe-row,
    .partner-block.single .logo-row { justify-content: center; }
}

@media (min-width: 734px) {
    .logo-row,
    .partner-block.feature .logo-row { grid-template-columns: 1fr 1fr; }

    .partner-block.trio .logo-row,
    .partner-block.press .logo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .partner-block.single .logo-row { grid-template-columns: minmax(0, 280px); }

    .numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .story-layout {
        grid-template-columns: 200px 1fr;
        gap: 36px;
        align-items: start;
    }

    .foot-grid { grid-template-columns: repeat(4, 1fr); }

    .subscribe-card {
        grid-template-columns: 1fr 1fr;
        align-items: end;
        gap: 48px;
        padding: 48px;
    }
}

@media (min-width: 1068px) {
    .menu-btn { display: none; }

    .nav,
    .nav.open {
        display: flex;
        position: static;
        flex-direction: row;
        gap: 36px;
        margin: 0;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        font-size: 17px;
        font-weight: 400;
        letter-spacing: 0;
        justify-content: center;
    }

    .nav-bar {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .brand { justify-self: start; }

    .nav-tools {
        justify-self: end;
        margin-left: 0;
    }

    .story-layout {
        grid-template-columns: 240px 1fr;
        gap: 56px;
        align-items: start;
    }

    .hero { padding-block: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .ticker-track,
    .ribbon-track,
    .hero-register:hover { animation: none; }
}
