@font-face {
    font-family: "Cormorant Unicase";
    src: url("../fonts/CormorantUnicase-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Unicase";
    src: url("../fonts/CormorantUnicase-Bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Unicase";
    src: url("../fonts/CormorantUnicase-Light.ttf") format("truetype");
    font-weight: 300;
    font-display: swap;
}

:root {
    --ink: #1f2322;
    --paper: #ffffff;
    --paper-soft: #bcb4a3;
    --muted: #808080;
    --accent: #bb8156;
    --accent-light: #e2ae7b;
    --line: rgba(255, 255, 255, 0.15);
    --vignette: rgba(15, 16, 15, 0.38);
    --vignette-soft: rgba(15, 16, 15, 0.16);
    --serif: "Cormorant Unicase", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--ink);
}

@media (max-width: 1040px) {
    html { font-size: 15px; }
}

@media (max-width: 720px) {
    html { font-size: 14px; }
}

body {
    min-width: 320px;
    color: var(--paper);
    background:
        radial-gradient(circle at 15% 0%, rgba(126, 48, 55, 0.15), transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(187, 129, 86, 0.12), transparent 35%),
        var(--ink);
    font-family: var(--serif);
    line-height: 1.45;
}

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

.trilogy-hero__art,
.case-hero__art {
    position: relative;
    overflow: hidden;
}

.trilogy-hero__art::after,
.case-hero__art::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(ellipse 78% 78% at 50% 50%, transparent 38%, rgba(15, 16, 15, 0.75) 100%),
        linear-gradient(to bottom, rgba(15, 16, 15, 0.55) 0%, transparent 20%, transparent 80%, rgba(15, 16, 15, 0.6) 100%),
        linear-gradient(to right, rgba(15, 16, 15, 0.45) 0%, transparent 16%, transparent 84%, rgba(15, 16, 15, 0.45) 100%);
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

@media (min-width: 1600px) {
    .container {
        max-width: 1320px;
    }
}

.site-nav {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    padding: 20px 0;
}

.site-nav__inner {
    display: flex;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand img {
    width: 32px;
    height: 32px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--accent-light);
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 1px;
    content: "";
    background: currentColor;
}

.display {
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 2px solid var(--paper);
    border-radius: 50px;
    color: var(--paper);
    background: rgba(31, 35, 34, 0.65);
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
    color: var(--paper);
    background: var(--accent);
    border-color: var(--accent);
}

.button--ghost {
    background: transparent;
}

.button--ghost:hover {
    color: var(--paper);
    background: var(--accent);
    border-color: var(--accent);
}

.section {
    padding-block: 4rem;
}

.stats {
    display: grid;
    border: 1px solid var(--line);
    grid-template-columns: repeat(3, 1fr);
}

.stat {
    padding: 24px 28px;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-light);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1;
}

.stat span {
    color: var(--paper-soft);
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Блок покупки */
.marketplaces {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.marketplaces__copy {
    display: grid;
    padding: 32px 28px;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
    align-items: end;
}

.marketplaces__copy p {
    color: var(--paper-soft);
    font-size: 1.05rem;
    line-height: 1.5;
}

.marketplaces__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 28px;
    border-top: 1px solid var(--line);
}

.mp-btn {
    display: inline-flex;
    min-width: 11rem;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 2px solid var(--paper);
    border-radius: 50px;
    color: var(--paper);
    background: rgba(31, 35, 34, 0.65);
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.mp-btn--ozon {
    box-shadow: 0 -2px 6px #005bff, 0 2px 6px #f1117e;
}

.mp-btn--ozon:hover {
    background: #005bff;
    border-color: var(--paper);
    color: var(--paper);
}

.mp-btn--wb {
    box-shadow: 0 -2px 6px #ec238d, 0 2px 6px #8d297f;
}

.mp-btn--wb:hover {
    background: #8d297f;
    border-color: var(--paper);
    color: var(--paper);
}

.mp-btn--tg {
    box-shadow: 0 -2px 6px #fff, 0 2px 6px #24a1de;
}

.mp-btn--tg:hover {
    background: #24a1de;
    border-color: var(--paper);
    color: var(--paper);
}

.mp-btn--vk {
    box-shadow: 0 -2px 6px #0077ff, 0 2px 6px #fff;
}

.mp-btn--vk:hover {
    background: #0077ff;
    border-color: var(--paper);
    color: var(--paper);
}

.mp-btn--avito {
    box-shadow: 0 -2px 6px #97cf26, 0 2px 6px #00aaff;
}

.mp-btn--avito:hover {
    background: #97cf26;
    border-color: var(--paper);
    color: var(--paper);
}

.mp-btn--yandex {
    box-shadow: 0 -2px 6px #ffcc00, 0 2px 6px #ff1a1a;
}

.mp-btn--yandex:hover {
    background: #ffcc00;
    border-color: var(--paper);
    color: var(--paper);
}

.site-footer {
    padding: 32px 0 40px;
    border-top: 1px solid var(--line);
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.85rem;
}

.site-footer__links {
    display: flex;
    gap: 20px;
}

.site-footer a:hover {
    color: var(--paper);
}

@media (max-width: 820px) {
    .container {
        padding-inline: 16px;
    }

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

    .stat {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .stat:last-child {
        border-bottom: 0;
    }

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

    .marketplaces__buttons {
        gap: 12px;
    }

    .mp-btn {
        flex: 1 1 calc(50% - 12px);
        min-width: 0;
    }

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

@media (max-width: 480px) {
    .brand span {
        display: none;
    }

    .mp-btn {
        flex: 1 1 100%;
    }
}

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

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}
