/* ============ БАЗА ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #f6f1e7;
    --cream-2: #efe7d8;
    --ink: #1d2820;
    --ink-soft: #3d4a41;
    --muted: #6f7a72;
    --emerald: #1f5c4a;
    --emerald-2: #2d7a63;
    --gold: #b8894a;
    --gold-2: #d6a960;
    --line: #ddd3bf;
    --white: #fffdf8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}

a {
    color: var(--emerald);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-narrow {
    max-width: 780px;
}

/* ============ TOPBAR ============ */
.topbar {
    background: var(--ink);
    color: #cbd3cc;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    padding: 8px 24px;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============ HEADER ============ */
.header {
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: var(--emerald);
    color: var(--cream);
    border-radius: 50%;
    font-size: 0.95rem;
}

.brand-name {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.brand-accent {
    color: var(--emerald);
    font-style: italic;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    color: var(--ink-soft);
    font-size: 0.93rem;
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
}

.nav a:hover {
    color: var(--emerald);
    border-bottom-color: var(--gold);
    text-decoration: none;
}

.burger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ink);
    cursor: pointer;
}

/* ============ HERO ============ */
.hero {
    padding: 90px 0 70px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 90% 20%, rgba(184, 137, 74, 0.10), transparent 55%),
        radial-gradient(circle at 10% 90%, rgba(31, 92, 74, 0.08), transparent 55%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 22px;
}

.hero p {
    font-size: 1.08rem;
    color: var(--ink-soft);
    max-width: 560px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform .2s, background .2s, color .2s, border-color .2s;
}

.btn-primary {
    background: var(--emerald);
    color: var(--cream);
}

.btn-primary:hover {
    background: var(--emerald-2);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--cream);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: var(--cream);
    text-decoration: none;
}

/* Hero art */
.hero-art {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.art-ring {
    width: 78%;
    height: 78%;
    border: 1.5px dashed var(--gold);
    border-radius: 50%;
    position: absolute;
    animation: spin 60s linear infinite;
}

.art-center {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--emerald);
    color: var(--cream);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    z-index: 2;
    box-shadow: 0 12px 40px rgba(31, 92, 74, 0.3);
}

.art-card {
    position: absolute;
    width: 78px;
    height: 108px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: var(--ink);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.art-card-1 {
    top: 8%;
    left: 20%;
    transform: rotate(-14deg);
    color: var(--ink);
}

.art-card-2 {
    top: 40%;
    right: 4%;
    transform: rotate(10deg);
    color: #b13535;
}

.art-card-3 {
    bottom: 6%;
    left: 32%;
    transform: rotate(-4deg);
    color: var(--ink);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============ NUMBERS ============ */
.numbers {
    background: var(--ink);
    color: var(--cream);
    padding: 40px 0;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.numbers-grid div strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    color: var(--gold-2);
    margin-bottom: 4px;
}

.numbers-grid div span {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #b6bfb8;
}

/* ============ SECTION ============ */
.section {
    padding: 90px 0;
}

.section-tinted {
    background: var(--cream-2);
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    margin-bottom: 14px;
}

.section-head p {
    color: var(--muted);
    font-size: 1.02rem;
}

/* ============ STORIES ============ */
.stories {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.story {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}

.story:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(29, 40, 32, 0.08);
}

.story-cover {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    font-size: 3.4rem;
    color: var(--cream);
    font-family: 'Fraunces', serif;
}

.cover-spades {
    background: linear-gradient(135deg, #1d2820, #2d7a63);
}

.cover-hearts {
    background: linear-gradient(135deg, #7a2d2d, #b13535);
}

.cover-diamonds {
    background: linear-gradient(135deg, #8a5f22, #d6a960);
}

.story-featured .story-cover {
    aspect-ratio: 16 / 9;
    font-size: 4.4rem;
}

.story-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.story-tag {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}

.story-body h3 {
    font-size: 1.2rem;
    line-height: 1.3;
}

.story-featured .story-body h3 {
    font-size: 1.5rem;
}

.story-body p {
    color: var(--muted);
    font-size: 0.94rem;
    flex: 1;
}

.story-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--emerald);
    align-self: flex-start;
    margin-top: 8px;
}

/* ============ WHEEL GRID ============ */
.wheel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.wheel-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px 24px;
    text-align: center;
    transition: transform .25s, border-color .25s;
}

.wheel-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.wheel-icon {
    font-size: 2.4rem;
    color: var(--emerald);
    margin-bottom: 16px;
    line-height: 1;
}

.wheel-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.wheel-card p {
    color: var(--muted);
    font-size: 0.92rem;
}

/* ============ EDITORIAL ============ */
.editorial {
    padding: 90px 0;
    background: var(--ink);
    color: var(--cream);
}

.editorial-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
}

.editorial h2 {
    color: var(--cream);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin: 14px 0 20px;
}

.editorial p {
    color: #c8d0c9;
    margin-bottom: 24px;
    font-size: 1.02rem;
}

.editorial .section-tag {
    color: var(--gold-2);
}

.editorial-quote {
    border-left: 3px solid var(--gold);
    padding-left: 24px;
}

.editorial-quote p {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.4;
    color: var(--cream);
    margin-bottom: 12px;
}

.editorial-quote span {
    color: var(--gold-2);
    font-size: 0.88rem;
    letter-spacing: 0.05em;
}

/* ============ PAGE (privacy, terms, about) ============ */
.page {
    padding: 70px 0 90px;
}

.page h1 {
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    margin: 8px 0 20px;
    line-height: 1.15;
}

.page-lead {
    color: var(--ink-soft);
    font-size: 1.08rem;
    margin-bottom: 30px;
}

.page h2 {
    font-size: 1.3rem;
    margin: 36px 0 12px;
    color: var(--emerald);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.page p,
.page li {
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.page ul {
    margin-left: 22px;
    margin-bottom: 18px;
}

.muted {
    color: var(--muted);
    font-style: italic;
    margin-bottom: 24px;
}

/* ============ CONTACTS ============ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 30px 0 50px;
}

.contact-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px 24px;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.contact-item p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.contact-item a {
    font-weight: 600;
}

.contact-form-title {
    text-align: center;
    margin-bottom: 20px;
}

/* ============ FORM ============ */
.form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form input,
.form textarea {
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 14px 18px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(31, 92, 74, 0.12);
}

.form .btn {
    align-self: flex-start;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--ink);
    color: #b6bfb8;
    padding: 60px 0 24px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer .brand-name {
    color: var(--cream);
}

.footer-desc {
    margin-top: 14px;
    font-size: 0.92rem;
    max-width: 280px;
}

.footer h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-2);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer a {
    display: block;
    color: #b6bfb8;
    font-size: 0.93rem;
    margin-bottom: 8px;
    transition: color .2s;
}

.footer a:hover {
    color: var(--cream);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #2f3a32;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #8b968e;
}

/* ============ МОДАЛЬНОЕ ОКНО ПРИВАТНОСТИ ============ */
.privacy-modal {
    position: fixed;
    inset: 0;
    background: rgba(29, 40, 32, 0.55);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
    animation: fadeIn .25s ease;
}

.privacy-modal.show {
    display: flex;
}

.privacy-box {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 34px 34px 26px;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(29, 40, 32, 0.35);
    animation: popIn .35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    position: relative;
}

.privacy-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 34px;
    right: 34px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--emerald));
    border-radius: 0 0 3px 3px;
}

.privacy-head {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.privacy-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    background: var(--emerald);
    color: var(--cream);
    border-radius: 50%;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.privacy-head h3 {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.privacy-sub {
    font-size: 0.85rem;
    color: var(--muted);
}

.privacy-text {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 26px;
}

.privacy-text a {
    color: var(--emerald);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.privacy-foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--muted);
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.privacy-foot a {
    color: var(--muted);
}

.privacy-foot a:hover {
    color: var(--emerald);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        transform: translateY(20px) scale(0.96);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ============ АДАПТИВ ============ */
@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-art {
        max-width: 380px;
        margin: 0 auto;
    }

    .stories {
        grid-template-columns: 1fr 1fr;
    }

    .story-featured {
        grid-column: 1 / -1;
    }

    .wheel-grid {
        grid-template-columns: 1fr 1fr;
    }

    .numbers-grid {
        grid-template-columns: 1fr 1fr;
    }

    .editorial-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .topbar-inner {
        justify-content: center;
        text-align: center;
    }

    .nav {
        display: none;
    }

    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 78px;
        right: 24px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 18px 24px;
        gap: 14px;
        min-width: 220px;
        box-shadow: 0 20px 50px rgba(29, 40, 32, 0.15);
        z-index: 100;
    }

    .burger {
        display: block;
    }

    .hero {
        padding: 60px 0 50px;
    }

    .section {
        padding: 60px 0;
    }

    .stories,
    .wheel-grid {
        grid-template-columns: 1fr;
    }

    .numbers-grid {
        grid-template-columns: 1fr 1fr;
    }

    .privacy-box {
        padding: 26px 22px;
    }

    .privacy-actions {
        flex-direction: column-reverse;
    }

    .privacy-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}