/* ================= ДИЗАЙН-ТОКЕНЫ ================= */
:root {
    --bg-color: #0e1012;
    /* Глубокий темный фон */
    --text-main: #E2E2E5;
    /* Смягченный белый для чтения засечек без рези в глазах */
    --text-muted: #95959E;
    /* Приглушенный серый */
    --border-color: #2A2A2F;
    /* Цвет тонких линий сетки */
    --grad-start: #FFFFFF;
    /* Яркий белый */
    --grad-mid: #C5C5CE;
    /* Сталь с контрастом */
    --grad-end: #D4B895;
    /* Более акцентный шампань/золото */
}

html,
body {
    /* Цвет фона должен строго совпадать с theme-color */
    background-color: #0c0d0f !important;

    /* Отключает белые вспышки и фоновые зазоры при скролле в Safari */
    overscroll-behavior-y: none;
}

/* ================= ТЕМИЗАЦИЯ ================= */
.b2b-theme {
    --grad-start: #FFFFFF;
    --grad-mid: #8E9BA8;
    --grad-end: #5A6978;
    /* Corporate slate - more contrast */
}

/* ================= НАВИГАЦИЯ ================= */
.top-nav {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 13, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 16px;
}

.nav-link {
    font-family: monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--grad-start);
}

.nav-link.active {
    border-bottom: 1px solid var(--grad-end);
    padding-bottom: 2px;
}

@media (min-width: 768px) {
    .nav-logo {
        display: none;
    }

    .nav-inner {
        justify-content: flex-end;
    }

    .top-nav {
        padding: 24px 0;
    }

    .nav-links {
        gap: 24px;
    }

    .nav-link {
        font-size: 13px;
        letter-spacing: 0.1em;
    }
}

/* ================= ТИПОГРАФИКА ДЛЯ РУССКОГО ТЕКСТА ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Charter, 'Bitstream Charter', Georgia, serif;
    font-weight: 400;
    font-size: 18px;
    /* Увеличенный базовый кегль для засечек */
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.55;
    /* Журнальный интерлиньяж */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Заголовки */
h1,
h2,
h3,
h4 {
    font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
    font-weight: 600;
    line-height: 1.05;
    /* Плотный интерлиньяж для крупных заголовков */
    margin-bottom: 0.6em;
    text-wrap: balance;
    /* Умный перенос без висячих слов (Реформатор-style) */
}

p {
    margin-bottom: 1.2em;
    /* Правильная отбивка абзацев */
    max-width: 75ch;
    /* Комфортная длина строки для чтения (~75 символов) */
}

p:last-child {
    margin-bottom: 0;
}

/* Металлический градиент */
.gradient-text {
    background: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-mid) 50%, var(--grad-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

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

section {
    padding: 56px 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-child {
    border-bottom: none;
}

/* Кнопки (Журнальный стиль) */
.btn {
    display: block;
    width: 100%;
    text-align: center;
    font-family: Charter, 'Bitstream Charter', Georgia, serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    /* Широкий трекинг для капса (Обязательно для антиквы) */
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn:hover {
    border-color: var(--grad-end);
    color: var(--grad-end);
    background: rgba(229, 217, 197, 0.03);
}

/* Аккуратная ссылка на скачивание презентации над кнопкой */
.hero-download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: Charter, 'Bitstream Charter', Georgia, serif;
    font-size: 15px;
    font-style: italic;
    color: var(--grad-end);
    text-decoration: none;
    border-bottom: 1px solid rgba(229, 217, 197, 0.35);
    padding-bottom: 3px;
    margin-top: 28px;
    transition: all 0.25s ease;
}

.hero-download-link:hover {
    color: var(--grad-start);
    border-bottom-color: var(--grad-start);
}

.hero-download-link svg {
    transition: transform 0.25s ease;
}

.hero-download-link:hover svg {
    transform: translateY(2px);
}

.img-placeholder {
    background-color: #15171a;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    font-family: Charter, 'Bitstream Charter', Georgia, serif;
    font-style: italic;
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
}

.hero-image {
    position: relative;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image picture {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-image img,
.service-image img {
    width: 100%;
    height: auto;
    max-height: 560px;
    display: block;
    border: 1px solid var(--border-color);
    object-fit: contain;
    background-color: #121417;
    transition: opacity 0.2s ease;
}

.service-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-image picture {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-photo-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(12, 13, 15, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--grad-end);
    font-size: 11px;
    font-family: Charter, 'Bitstream Charter', Georgia, serif;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 2px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.hero-image:hover .hero-photo-badge {
    background: rgba(12, 13, 15, 0.95);
    border-color: var(--grad-end);
    color: var(--grad-start);
}

/* ================= СЕТКА (MOBILE FIRST) ================= */

/* 1. Hero Экран */
.hero {
    background-color: rgb(14, 15, 10);
}

.hero-image img {
    background-color: rgb(14, 15, 10);
}

.b2b-theme .hero,
.b2b-theme .hero-image img {
    background-color: rgb(2, 2, 2);
}

.b2b-theme .hero-image img {
    padding-bottom: 10px;
}

.b2b-theme .service,
.b2b-theme .service-image img {
    background-color: rgb(14, 19, 15);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.tagline {
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grad-end);
    font-size: 14px;
    margin-bottom: 16px;
    display: block;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

/* Уменьшенный h1 для B2B */
.hero h1.b2b-title {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    margin-bottom: 16px;
}

.hero .subtitle {
    font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
    font-size: clamp(1.25rem, 3.8vw, 1.8rem);
    font-weight: 600;
    font-style: italic;
    margin-bottom: 24px;
    color: var(--grad-end);
}

.hero .desc {
    color: var(--text-muted);
}

/* 2. Манифест */
.manifesto-title {
    font-size: clamp(1.6rem, 5vw, 3rem);
    margin-bottom: 40px;
    max-width: 900px;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.grid-3 {
    gap: 48px;
}

.grid-3 h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--grad-start);
    letter-spacing: 0;
}

.grid-4 h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--grad-start);
    letter-spacing: 0;
}

.grid-2 p,
.grid-3 p,
.grid-4 p {
    font-size: 1.05rem;
    color: var(--text-muted);
}


/* 3. Услуга */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.service-image {
    order: 2;
}

.service-content h2 {
    font-size: clamp(1.8rem, 5vw, 3.6rem);
    margin-bottom: 12px;
}

.service-content h2.b2b-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
}

.service-content .price {
    font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    color: var(--grad-end);
    margin-bottom: 8px;
}

.service-content .muted {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 40px;
}

/* Типографика списков */
.service-features {
    list-style: none;
}

.service-features li {
    margin-bottom: 24px;
    font-size: 1.05rem;
    padding-left: 32px;
    position: relative;
    color: var(--text-muted);
    /* добавлено из b2b */
}

.service-features li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--grad-mid);
    font-weight: bold;
}

.service-features strong {
    font-weight: 500;
    color: var(--text-main);
}

/* 4. Процесс (4 шага) */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 48px;
}

.process-step {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.process-step span {
    display: block;
    font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
    font-size: 1.5rem;
    color: var(--grad-end);
    margin-bottom: 12px;
}

.process-step h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-main);
    font-family: Charter, 'Bitstream Charter', Georgia, serif;
}

.process-step p {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.process-step p:last-child {
    margin-bottom: 0;
}

.process-step strong {
    color: var(--grad-start);
    font-weight: normal;
}

/* 5. Логотипы / Контакты */
.logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    opacity: 0.4;
    font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 56px;
    justify-content: center;
}

.privacy-box {
    background-color: #121417;
    border: 1px solid var(--border-color);
    padding: 40px 20px;
    text-align: left;
    margin-bottom: 56px;
}

.privacy-box h3 {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    margin-bottom: 20px;
}

.privacy-box p {
    color: var(--text-muted);
    margin: 0 0 16px 0;
    font-size: 1.05rem;
    max-width: 820px;
}

.privacy-box p:last-of-type {
    margin-bottom: 36px;
}

.privacy-box p a {
    color: var(--grad-end);
    text-decoration: none;
    border-bottom: 1px solid rgba(229, 217, 197, 0.4);
    padding-bottom: 2px;
    transition: all 0.25s ease;
}

.privacy-box p a:hover {
    color: var(--grad-start);
    border-bottom-color: var(--grad-start);
}

.contact-buttons,
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.contact-buttons .btn,
.hero-actions .btn,
.hero-actions .hero-download-link {
    margin-top: 0;
}

/* ================= ДЕСКТОП ================= */
@media (min-width: 768px) {
    section {
        padding: 80px 0;
    }

    .btn {
        display: inline-block;
        width: auto;
        padding: 18px 36px;
        margin-top: 0;
    }

    /* Больше воздуха на десктопе */
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }

    .hero-grid .hero-image {
        order: 2;
    }

    .b2b-theme .hero-grid .hero-image {
        order: -1;
    }

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

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

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

    .manifesto-title {
        margin-bottom: 56px;
    }

    .service-grid {
        grid-template-columns: 1fr 1fr;
        gap: 100px;
    }

    .service-grid .service-image {
        order: -1;
    }

    .process-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }

    .logos {
        gap: 40px;
        font-size: 1.8rem;
        margin-bottom: 100px;
    }

    .privacy-box {
        padding: 72px 48px;
        text-align: center;
    }

    .privacy-box p {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 24px;
    }

    .hero-actions {
        flex-direction: row;
        align-items: center;
        gap: 32px;
    }
}