/*
 * The Риелтор — Quiet Luxury & Cosmic Desert
 * Тёмная космическая тема для сайта риэлтора в Тюмени.
 * Стиль: глубокий индиго/обсидиан, акцентный сериф Cormorant Garamond,
 * плотные интерфейсные шрифты Manrope / Onest, золотисто-бежевые акценты.
 */

/* ===== Дизайн-токены ===== */
:root {
    /* Фоновая палитра — глубокий космический индиго/обсидиан */
    --bg-abyss: #05070f;          /* самый глубокий низ страницы */
    --bg-obsidian: #070a13;       /* основной фон */
    --bg-indigo: #0a0e1a;         /* верхний фон */
    --bg-panel: #0e1322;          /* поверхность карточек */
    --bg-panel-2: #121829;        /* приподнятая поверхность */

    /* Текст */
    --text: #eef1f6;             /* основной светлый текст */
    --text-soft: #b8bfce;        /* вторичный */
    --text-muted: #7b8399;       /* приглушённый */

    /* Акцент — золотисто-бежевый (песок дюн, quiet luxury) */
    --gold: #dcc5a1;             /* тёплое золото-беж (референс Cosmic Twilight) */
    --gold-bright: #ecd9b6;      /* яркий акцент при наведении */
    --sand: #dfd7cd;             /* песочный светлый */

    /* Линии и границы — тонкие светлые */
    --line: rgba(223, 215, 205, 0.14);
    --line-soft: rgba(223, 215, 205, 0.08);
    --line-gold: rgba(220, 197, 161, 0.4);
    /* Светящаяся золотая линия для полых рамок-контуров коллажа */
    --line-glow: rgba(220, 197, 161, 0.55);

    /* Радиусы */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 999px;

    /* Ритм */
    --container: 1200px;
    --space-section: clamp(64px, 9vw, 140px);

    /* Тональные (ambient) тени в цвет фона, без жёсткого чёрного */
    --shadow-ambient: 0 30px 80px -40px rgba(0, 0, 0, 0.75);
    --shadow-gold: 0 20px 60px -30px rgba(216, 195, 160, 0.25);

    /* Шрифты */
    --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-sans: 'Manrope', system-ui, sans-serif;
    --font-ui: 'Onest', 'Manrope', system-ui, sans-serif;

    --easing: cubic-bezier(0.22, 1, 0.36, 1);

    /* Motion tokens (animation-motion-map.md) */
    --motion-ease-base: cubic-bezier(0.22, 1, 0.36, 1);
    --motion-ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
    --motion-duration-fast: 0.35s;
    --motion-duration-reveal: 0.8s;
    --motion-duration-hero: 1.1s;
    --motion-stagger: 0.08s;

    /* GSAP twilight parallax (animation-motion-map.md) */
    --twilight-shift: 0px;
    --vignette-opacity: 1;
}

/* ===== База ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg-obsidian);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Фон — тюменский город на закате, ландшафт 16:9, фиксированный, без поворота */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-color: var(--bg-abyss);
    background-image: url("../img/bg-site-twilight.webp");
    background-repeat: no-repeat;
    background-position: center 58%;
    background-size: cover;
    transform: translate3d(0, var(--twilight-shift, 0px), 0);
    pointer-events: none;
}

@media (max-width: 900px) {
    body::before {
        background-position: center 62%;
    }
}

/* Виньетка и затемнение для читаемости текста поверх фото */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: var(--vignette-opacity, 1);
    background:
        linear-gradient(180deg,
            rgba(5, 7, 15, 0.32) 0%,
            rgba(5, 7, 15, 0.48) 45%,
            rgba(5, 7, 15, 0.76) 100%),
        radial-gradient(ellipse 120% 90% at 50% 40%,
            rgba(5, 7, 15, 0.1) 0%,
            rgba(5, 7, 15, 0.48) 72%,
            rgba(5, 7, 15, 0.78) 100%);
    pointer-events: none;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--easing);
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text);
}

p {
    margin: 0 0 1em;
}

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

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

/* Надзаголовок-eyebrow: мелкий трекинг, золото */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--line-gold);
}

/* ===== Кнопки: тонкие контурные пилюли ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: var(--r-pill);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.35s var(--easing);
    white-space: nowrap;
}

/* Основная контурная пилюля — прозрачная, тонкая песочная граница */
.btn--ghost {
    background: transparent;
    border-color: rgba(223, 215, 205, 0.35);
    color: var(--sand);
}

.btn--ghost:hover {
    border-color: var(--gold-bright);
    color: var(--gold-bright);
    background: rgba(216, 195, 160, 0.06);
}

/* Тёмная/золотая заливка — акцентный CTA */
.btn--dark,
.btn--gold {
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    color: #1a1508;
    border-color: transparent;
    box-shadow: var(--shadow-gold);
}

.btn--dark:hover,
.btn--gold:hover {
    background: linear-gradient(180deg, #f3e6c9, var(--gold-bright));
    transform: translateY(-2px);
}

/* Светлая контурная кнопка (на золотом/светлом фоне) */
.btn--light {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn--light:hover {
    background: #fff;
    color: var(--bg-obsidian);
}

/* Брендовые кнопки связи — приглушённые тона quiet luxury, без неонового свечения */
.btn--wa {
    background: rgba(36, 88, 64, 0.42);
    border-color: rgba(95, 211, 137, 0.22);
    color: #a8d8bc;
    box-shadow: 0 8px 22px rgba(5, 7, 15, 0.32);
}

.btn--wa:hover {
    background: rgba(44, 104, 76, 0.58);
    border-color: rgba(95, 211, 137, 0.38);
    color: #c8ead6;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(5, 7, 15, 0.42);
}

.btn--tg {
    background: rgba(30, 72, 98, 0.44);
    border-color: rgba(94, 184, 234, 0.24);
    color: #a8d4ec;
    box-shadow: 0 8px 22px rgba(5, 7, 15, 0.32);
}

.btn--tg:hover {
    background: rgba(38, 86, 116, 0.58);
    border-color: rgba(94, 184, 234, 0.4);
    color: #c5e5f5;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(5, 7, 15, 0.42);
}

.btn--max {
    background: rgba(52, 44, 96, 0.46);
    border-color: rgba(139, 114, 255, 0.26);
    color: #c8bff0;
    box-shadow: 0 8px 22px rgba(5, 7, 15, 0.32);
}

.btn--max:hover {
    background: rgba(62, 52, 112, 0.6);
    border-color: rgba(139, 114, 255, 0.42);
    color: #ddd6f7;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(5, 7, 15, 0.42);
}

.btn--call {
    background: rgba(92, 68, 36, 0.4);
    border-color: rgba(220, 197, 161, 0.32);
    color: var(--gold-bright);
    box-shadow: 0 8px 22px rgba(5, 7, 15, 0.32);
}

.btn--call:hover {
    background: rgba(108, 80, 42, 0.55);
    border-color: rgba(220, 197, 161, 0.5);
    color: #f3e6c9;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(5, 7, 15, 0.42);
}

.btn--sm {
    padding: 11px 22px;
    font-size: 13px;
}

/* ===== Шапка: ультра-тонкая, плавающая, стеклянная ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(8, 10, 20, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-gold);
    transition: padding 0.4s var(--easing), background 0.4s var(--easing), border-color 0.4s var(--easing);
}

.site-header.is-scrolled {
    padding: 11px 0;
    background: rgba(8, 10, 20, 0.82);
    border-bottom-color: var(--line-glow);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
}

/* Прозрачный логотип недвижимости (дом + ключ) */
.brand-logo {
    display: block;
    width: auto;
    height: 40px;
    max-height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(220, 197, 161, 0.28));
    transition: filter 0.35s var(--easing), transform 0.35s var(--easing);
}

.site-header__brand:hover .brand-logo {
    filter: drop-shadow(0 0 14px rgba(220, 197, 161, 0.45));
    transform: translateY(-1px);
}

.site-header__brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    line-height: 1;
    padding-top: 1px;
}

.site-header__brand-text strong {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--text);
    white-space: nowrap;
}

.site-header__brand-text span {
    font-family: var(--font-ui);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.site-header__panel {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-shrink: 0;
}

.site-header__overlay {
    display: none;
}

.site-header__menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.site-header__menu li {
    flex-shrink: 0;
}

/* Капсульные ссылки навигации */
.site-header__menu a {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-soft);
    white-space: nowrap;
    position: relative;
    transition: color 0.3s var(--easing), border-color 0.3s var(--easing), background 0.3s var(--easing);
}

.site-header__menu a:hover {
    color: var(--gold-bright);
    border-color: var(--line-gold);
    background: rgba(220, 197, 161, 0.06);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.site-header__socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-header__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 2px;
    border: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    flex-shrink: 0;
    opacity: 0.86;
    transition: opacity 0.3s var(--easing), transform 0.3s var(--easing);
}

.site-header__social svg {
    display: block;
    width: 20px;
    height: 20px;
}

.site-header__social:hover {
    opacity: 1;
    transform: translateY(-1px) scale(1.04);
}

/* Телефон в шапке — капсульная золотая кнопка */
.site-header__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-gold);
    background: rgba(220, 197, 161, 0.06);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    color: var(--gold-bright);
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
    transition: all 0.3s var(--easing);
}

.site-header__phone:hover {
    color: #1a1508;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    border-color: transparent;
}

/* Гамбургер */
.site-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}

.site-header__toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 1.5px;
    margin: 0 auto;
    background: var(--sand);
    transition: transform 0.3s var(--easing), opacity 0.3s var(--easing);
}

.site-header__toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(3.5px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-3px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}

.hero__eyebrow {
    justify-content: center;
}

.hero__eyebrow::before {
    display: none;
}

.hero__title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.hero__title em {
    font-style: italic;
    font-weight: 500;
    color: var(--gold);
}

.hero__text {
    max-width: 620px;
    margin: 0 auto 42px;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: var(--text-soft);
    font-weight: 300;
}

/* Акцентные фразы в тексте — мягкое золото вместо резкого bold */
.hero__text strong,
.service-card p em {
    font-weight: 500;
    font-style: normal;
    color: var(--gold);
}

.service-card p em {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05em;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Стрелка вниз */
.hero__scroll {
    position: absolute;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    color: var(--text-muted);
    animation: hero-bounce 2.4s var(--easing) infinite;
}

.hero__scroll:hover {
    color: var(--gold-bright);
}

@keyframes hero-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* ===== Секции ===== */
.section {
    position: relative;
    padding: var(--space-section) 0;
}

.section--tight {
    padding: clamp(48px, 6vw, 90px) 0;
}

/* Секция сразу после hero — без лишнего воздуха */
.hero + .section {
    padding-top: clamp(28px, 4vw, 48px);
}

.section__head {
    max-width: 760px;
    margin: 0 auto clamp(48px, 6vw, 80px);
    text-align: center;
}

.section__head--start {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    max-width: 640px;
}

.section__title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
    letter-spacing: -0.025em;
}

.section__title em {
    font-style: italic;
    color: var(--gold);
}

.section__text {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--text-soft);
    font-weight: 300;
}

/* ===== Редакционный манифест ===== */
.manifest {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px) 24px;
}

.manifest__divider {
    width: 60px;
    height: 1px;
    margin: 0 auto 40px;
    background: var(--line-gold);
}

.manifest__quote {
    position: relative;
    margin: 0;
    padding: 0 clamp(34px, 6vw, 72px);
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 4vw, 3rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.32;
    letter-spacing: -0.01em;
    color: var(--text);
}

/* Декоративные кавычки-ёлочки в золотом серифе */
.manifest__quote::before,
.manifest__quote::after {
    position: absolute;
    font-family: var(--font-serif);
    font-size: clamp(3.2rem, 9vw, 5.8rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1;
    color: var(--gold);
    opacity: 0.62;
    pointer-events: none;
    text-shadow: 0 0 28px rgba(220, 197, 161, 0.22);
}

.manifest__quote::before {
    content: "«";
    top: -0.12em;
    left: clamp(0px, 1vw, 8px);
}

.manifest__quote::after {
    content: "»";
    right: clamp(0px, 1vw, 8px);
    bottom: -0.28em;
}

.manifest__quote span {
    color: var(--gold);
    font-style: italic;
}

.manifest__author {
    margin-top: 40px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.manifest__author strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--sand);
}

/* ===== Сетки карточек ===== */
.cards-grid {
    display: grid;
    gap: 24px;
}

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

.cards-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Карточка услуги — Quiet Luxury */
.service-card {
    position: relative;
    padding: 0;
    background: rgba(14, 19, 34, 0.55);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s var(--easing), border-color 0.4s var(--easing), background 0.4s var(--easing), box-shadow 0.4s var(--easing);
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.service-card__content {
    position: relative;
    z-index: 1;
    padding: 40px 34px;
    transition: filter 0.4s var(--easing), opacity 0.4s var(--easing), transform 0.4s var(--easing);
}

.service-card.is-picker-open {
    border-color: var(--line-gold);
    background: rgba(18, 24, 41, 0.82);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(220, 197, 161, 0.08);
    transform: translateY(-4px);
}

.service-card.is-picker-open .service-card__content {
    filter: blur(5px);
    opacity: 0.28;
    transform: scale(0.98);
    pointer-events: none;
}

/* Панель выбора мессенджера на карточке услуги */
.service-card__picker {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 28px 24px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96);
    transition: opacity 0.35s var(--easing), visibility 0.35s var(--easing), transform 0.35s var(--easing);
    pointer-events: none;
}

.service-card.is-picker-open .service-card__picker {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

.service-card__picker-eyebrow {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
}

.service-card__picker-eyebrow::before {
    display: none;
}

.service-card__picker-title {
    margin: 0 0 6px;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    color: var(--text);
}

.service-card__picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 300px;
}

.service-card__picker-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 88px;
    padding: 14px 10px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: rgba(8, 10, 20, 0.55);
    color: var(--text-soft);
    text-align: center;
    transition: border-color 0.3s var(--easing), color 0.3s var(--easing), background 0.3s var(--easing), transform 0.3s var(--easing), box-shadow 0.3s var(--easing);
}

.service-card__picker-btn span {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.service-card__picker-btn svg {
    width: 22px;
    height: 22px;
}

.service-card__picker-btn:hover,
.service-card__picker-btn:focus-visible {
    border-color: var(--line-gold);
    color: var(--gold-bright);
    background: rgba(220, 197, 161, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -14px rgba(220, 197, 161, 0.35);
}

.service-card__picker-btn.is-disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

.service-card__picker-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 10px 18px;
    border: 1px solid var(--line-soft);
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: border-color 0.3s var(--easing), color 0.3s var(--easing), background 0.3s var(--easing);
}

.service-card__picker-close:hover,
.service-card__picker-close:focus-visible {
    border-color: var(--line-gold);
    color: var(--gold-bright);
    background: rgba(220, 197, 161, 0.06);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--easing);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--line);
    background: rgba(18, 24, 41, 0.7);
}

.service-card.is-picker-open:hover {
    transform: translateY(-4px);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card__num {
    font-family: var(--font-serif);
    font-size: 15px;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 22px;
    display: block;
}

.service-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--easing);
}

.service-card h3 a:hover {
    color: var(--gold-bright);
}

.service-card h3 {
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 14px;
}

.service-card p {
    font-size: 0.98rem;
    color: var(--text-soft);
    font-weight: 300;
    margin: 0;
    line-height: 1.65;
}

.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.service-card__tag {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    padding: 5px 12px;
    border: 1px solid var(--line-soft);
    border-radius: var(--r-pill);
}

/* ===== Блок Обо мне / Регалии ===== */
.about {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(40px, 6vw, 72px);
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
}

.about__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about__check-list {
    margin-top: 0;
}

.about__media {
    position: relative;
}

.about__cert {
    width: 100%;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-ambient);
    background: #fff;
}

.about__badge {
    position: absolute;
    bottom: -18px;
    right: -14px;
    padding: 14px 22px;
    background: rgba(7, 10, 19, 0.9);
    border: 1px solid var(--line-gold);
    border-radius: var(--r-sm);
    backdrop-filter: blur(10px);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--gold-bright);
}

.about__eeat {
    margin-top: 32px;
    display: grid;
    gap: 24px;
}

.about__eeat-title {
    margin: 0 0 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
}

.about__eeat-block p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-soft);
}

@media (min-width: 768px) {
    .about__eeat {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

.check-list {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.check-list li {
    position: relative;
    padding-left: 34px;
    font-size: 1.02rem;
    color: var(--text-soft);
    font-weight: 300;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 18px;
    height: 9px;
    border-left: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: rotate(-45deg);
}

/* ===== Гео-блок (районы Тюмени) ===== */
.geo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.geo-card {
    padding: 34px 30px;
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    background: linear-gradient(180deg, rgba(18, 24, 41, 0.45), rgba(10, 14, 26, 0.25));
    transition: border-color 0.4s var(--easing), transform 0.4s var(--easing);
}

.geo-card:hover {
    border-color: var(--line-gold);
    transform: translateY(-4px);
}

.geo-card__name {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.geo-card__name em {
    font-style: italic;
    color: var(--gold);
}

.geo-card p {
    font-size: 0.95rem;
    color: var(--text-soft);
    font-weight: 300;
    margin: 0;
}

.geo-note {
    max-width: 760px;
    margin: clamp(28px, 4vw, 44px) auto 0;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.75;
    font-weight: 300;
    color: var(--text-soft);
}

/* ===== Блог: карточки статей (миниатюры без обрезки) ===== */
.post-card {
    display: flex;
    flex-direction: column;
    background: rgba(14, 19, 34, 0.55);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: transform 0.4s var(--easing), border-color 0.4s var(--easing);
}

.post-card:hover {
    transform: translateY(-6px);
    border-color: var(--line);
}

.post-card__media {
    position: relative;
    display: block;
    background: var(--bg-panel);
    line-height: 0;
}

/* Миниатюры отображаются полностью, без обрезки (contain) */
.post-card__media img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    background: #0a0e1a;
    transition: transform 0.6s var(--easing);
}

.post-card:hover .post-card__media img {
    transform: scale(1.03);
}

.post-card__glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(5, 7, 15, 0.55));
    pointer-events: none;
}

.post-card__placeholder {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #0e1322, #121829);
}

.post-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px 26px 28px;
    flex: 1;
}

.post-card__date {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
}

.post-card__title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    flex: 1;
}

.post-card__title a:hover {
    color: var(--gold-bright);
}

.post-card__excerpt {
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 300;
}

.post-card__category {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

.post-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--sand);
}

.post-card__link svg {
    transition: transform 0.3s var(--easing);
}

.post-card:hover .post-card__link {
    color: var(--gold-bright);
}

.post-card:hover .post-card__link svg {
    transform: translateX(4px);
}

/* Компактные карточки в архиве блога: 3 миниатюры в ряд, фото целиком */
.post-card--compact .post-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 10px;
    background: #0a0e1a;
}

.post-card--compact .post-card__media img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.post-card--compact .post-card__glow {
    background: linear-gradient(180deg, transparent 70%, rgba(5, 7, 15, 0.45));
}

.post-card--compact .post-card__body {
    gap: 8px;
    padding: 16px 18px 18px;
}

.post-card--compact .post-card__date {
    font-size: 11px;
}

.post-card--compact .post-card__title {
    font-size: 1.02rem;
    line-height: 1.35;
}

.post-card--compact .post-card__link {
    margin-top: 2px;
    font-size: 12px;
}

.blog-cta {
    text-align: center;
    margin-top: 56px;
}

/* ===== FAQ ===== */
.faq {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.faq-item {
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
    background: rgba(14, 19, 34, 0.4);
    padding: 0 28px;
    transition: border-color 0.3s var(--easing);
}

.faq-item[open] {
    border-color: var(--line-gold);
    background: rgba(18, 24, 41, 0.55);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-right: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: rotate(45deg);
    transition: transform 0.3s var(--easing);
}

.faq-item[open] summary::after {
    transform: rotate(-135deg);
}

.faq-item p {
    margin: 0 0 24px;
    color: var(--text-soft);
    font-weight: 300;
    font-size: 1rem;
}

.faq-item code {
    font-family: monospace;
    font-size: 0.85em;
    color: var(--gold-bright);
    background: rgba(216, 195, 160, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ===== CTA-band ===== */
.cta-band {
    position: relative;
    margin: var(--space-section) 24px 0;
    padding: clamp(56px, 8vw, 90px) clamp(28px, 5vw, 70px);
    border: 1px solid var(--line-gold);
    border-radius: var(--r-lg);
    background:
        radial-gradient(ellipse at top, rgba(216, 195, 160, 0.1), transparent 60%),
        rgba(10, 14, 26, 0.7);
    text-align: center;
    max-width: calc(var(--container) - 48px);
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.cta-band h2 {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 400;
    margin-bottom: 18px;
}

.cta-band p {
    max-width: 560px;
    margin: 0 auto 36px;
    color: var(--text-soft);
    font-weight: 300;
    font-size: 1.1rem;
}

.cta-band__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-band__actions .btn {
    padding: 14px 22px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cta-band__actions .btn svg {
    opacity: 0.92;
    flex-shrink: 0;
}

/* Плавающая панель связи: круглые иконки справа, стыковка в CTA на главной */
.contact-rail {
    position: fixed;
    z-index: 90;
    pointer-events: none;
    transition: top 0.35s var(--easing), left 0.35s var(--easing), width 0.35s var(--easing), height 0.35s var(--easing), opacity 0.3s var(--easing);
}

.contact-rail__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.contact-rail.is-floating {
    top: 50%;
    right: max(14px, env(safe-area-inset-right, 0px));
    left: auto;
    width: auto;
    height: auto;
    transform: translateY(-50%);
}

.contact-rail.is-docked {
    transform: none;
}

.contact-rail.is-docked .contact-rail__inner {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    align-items: center;
    gap: 12px;
}

.contact-rail__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 0.3s var(--easing), box-shadow 0.3s var(--easing), background 0.3s var(--easing), border-color 0.3s var(--easing);
    box-shadow: 0 10px 28px rgba(5, 7, 15, 0.45);
}

.contact-rail__btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.contact-rail__btn--wa {
    background: rgba(36, 88, 64, 0.88);
    border-color: rgba(95, 211, 137, 0.35);
    color: #d4f0df;
}

.contact-rail__btn--tg {
    background: rgba(30, 72, 98, 0.9);
    border-color: rgba(94, 184, 234, 0.35);
    color: #c5e5f5;
}

.contact-rail__btn--max {
    background: linear-gradient(160deg, rgba(96, 72, 158, 0.94), rgba(58, 42, 104, 0.96));
    border-color: rgba(139, 114, 255, 0.34);
    padding: 5px;
    overflow: hidden;
}

.icon-max-brand {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 22%;
    opacity: 0.9;
    filter: saturate(0.72) brightness(0.9) contrast(0.95);
    transition: filter 0.3s var(--easing), opacity 0.3s var(--easing);
}

.contact-rail__btn--max .icon-max-brand {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    opacity: 0.92;
    filter: saturate(0.7) brightness(0.9) contrast(0.94);
}

.contact-rail__btn--max:hover .icon-max-brand {
    opacity: 0.96;
    filter: saturate(0.78) brightness(0.94) contrast(0.98);
}

.icon-max-brand--header {
    width: 30px;
    height: 30px;
    border-radius: 24%;
}

.site-header__social--max .icon-max-brand--header {
    width: 30px;
    height: 30px;
}

.icon-max-brand--footer {
    width: 18px;
    height: 18px;
    border-radius: 24%;
    filter: saturate(0.65) brightness(0.86) contrast(0.92);
}

.contact-rail__btn--call {
    background: rgba(18, 22, 36, 0.92);
    border-color: rgba(216, 195, 160, 0.35);
    color: var(--gold-bright);
}

.contact-rail__btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 14px 34px rgba(5, 7, 15, 0.55);
}

.has-contact-rail .cta-band__actions .btn {
    visibility: hidden;
    pointer-events: none;
}

/* ===== Подвал ===== */
.site-footer {
    position: relative;
    margin-top: var(--space-section);
    padding: clamp(70px, 8vw, 110px) 0 40px;
    border-top: 1px solid var(--line-soft);
    background: rgba(5, 7, 15, 0.6);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 0.85fr 1fr 1.15fr;
    gap: 40px;
}

.site-footer__brand-head {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.site-footer__brand-head .brand-logo {
    height: 44px;
    width: auto;
}

.site-footer__brand-head strong {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
}

.site-footer__brand p {
    color: var(--text-soft);
    font-weight: 300;
    font-size: 0.98rem;
    max-width: 340px;
}

.site-footer__title {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 22px;
}

.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.site-footer__list a {
    color: var(--text-soft);
    font-size: 0.98rem;
    font-weight: 300;
}

.site-footer__list a:hover {
    color: var(--gold-bright);
}

.site-footer__social-block {
    margin-top: 28px;
}

.site-footer__social-lead {
    margin: 0 0 16px;
    max-width: 340px;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.65;
    font-weight: 300;
}

.site-footer__socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
}

.site-footer__socials a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-gold);
    background: rgba(220, 197, 161, 0.05);
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s var(--easing), border-color 0.3s var(--easing), background 0.3s var(--easing), transform 0.3s var(--easing);
}

.site-footer__socials a svg {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.9;
}

.site-footer__social-name {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-soft);
    line-height: 1.2;
}

.site-footer__socials a:hover {
    color: var(--gold-bright);
    border-color: rgba(236, 217, 182, 0.55);
    background: rgba(220, 197, 161, 0.1);
    transform: translateY(-1px);
}

.site-footer__socials a:hover .site-footer__social-name {
    color: var(--gold-bright);
}

/* Форма связи в подвале */
.footer-form {
    display: grid;
    gap: 12px;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(14, 19, 34, 0.6);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    transition: border-color 0.3s var(--easing);
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: var(--text-muted);
}

.footer-form input:focus,
.footer-form textarea:focus {
    outline: none;
    border-color: var(--line-gold);
}

.footer-form textarea {
    min-height: 90px;
    resize: vertical;
}

.footer-form .btn {
    width: 100%;
    margin-top: 4px;
}

/* Модальное окно выбора мессенджера */
.contact-dialog {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s var(--easing), visibility 0.35s var(--easing);
}

.contact-dialog.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contact-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 15, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-dialog__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: clamp(28px, 5vw, 36px);
    border: 1px solid var(--line-gold);
    border-radius: var(--r-lg);
    background:
        radial-gradient(ellipse at top, rgba(216, 195, 160, 0.14), transparent 68%),
        rgba(8, 11, 22, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.35s var(--easing);
}

.contact-dialog.is-open .contact-dialog__panel {
    transform: translateY(0) scale(1);
}

.contact-dialog__eyebrow {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: 10px;
}

.contact-dialog__title {
    font-size: clamp(1.5rem, 4vw, 1.9rem);
    font-weight: 400;
    margin-bottom: 12px;
}

.contact-dialog__text {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 24px;
}

.contact-dialog__actions {
    display: grid;
    gap: 12px;
}

.contact-dialog__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 22px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(223, 215, 205, 0.22);
    background: rgba(255, 255, 255, 0.03);
    color: var(--sand);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color 0.3s var(--easing), border-color 0.3s var(--easing), background 0.3s var(--easing), transform 0.3s var(--easing);
}

.contact-dialog__btn svg {
    display: block;
    opacity: 0.9;
}

.contact-dialog__btn:hover,
.contact-dialog__btn:focus-visible {
    color: var(--gold-bright);
    border-color: var(--line-gold);
    background: rgba(216, 195, 160, 0.08);
    transform: translateY(-1px);
}

.contact-dialog__btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.contact-dialog__close {
    margin-top: 18px;
    padding: 8px 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.3s var(--easing);
}

.contact-dialog__close:hover,
.contact-dialog__close:focus-visible {
    color: var(--gold-bright);
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 60px;
    padding-top: 28px;
    border-top: 1px solid var(--line-soft);
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Внутренние страницы (статья / блог / архивы) ===== */
.page-shell {
    padding: 160px 0 80px;
}

.article-page {
    padding: 140px 0 60px;
}

.article-page__shell {
    max-width: 820px;
}

.article-page__top {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
}

.article-page__back {
    color: var(--text-soft);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.article-page__back:hover {
    color: var(--gold-bright);
}

.article-page__back--muted {
    color: var(--text-muted);
}

.article-page__date {
    display: block;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.article-page__title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 36px;
}

.article-page__cover {
    margin: 0 0 44px;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--line);
}

.article-page__cover img {
    width: 100%;
    height: auto;
}

.article-page__content {
    font-size: 1.12rem;
    line-height: 1.85;
    color: var(--text-soft);
    font-weight: 300;
}

.article-page__content h2 {
    font-size: 2rem;
    color: var(--text);
    margin: 48px 0 18px;
    font-weight: 500;
}

.article-page__content h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin: 36px 0 14px;
    font-weight: 500;
}

.article-page__content p {
    margin: 0 0 24px;
}

.article-page__content a {
    color: var(--gold-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--line-gold);
}

.article-page__content a:hover {
    text-decoration-color: var(--gold-bright);
}

/* Картинки в тексте статьи — полностью, без обрезки */
.article-page__content img,
.article-inline-image {
    width: 100%;
    height: auto !important;
    max-width: 100%;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    margin: 32px 0;
    object-fit: contain;
}

.article-page__content ul,
.article-page__content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.article-page__content li {
    margin-bottom: 10px;
}

.article-page__content blockquote {
    margin: 32px 0;
    padding: 20px 28px;
    border-left: 2px solid var(--line-gold);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--text);
}

.article-page__footer {
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid var(--line-soft);
}

.article-page__footer-cta {
    max-width: 640px;
}

.article-page__footer-title {
    margin: 0 0 12px;
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 500;
    color: var(--text);
}

.article-page__footer-text {
    margin: 0 0 24px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-soft);
}

.article-page__footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.page-content {
    max-width: 820px;
    font-size: 1.12rem;
    line-height: 1.85;
    color: var(--text-soft);
    font-weight: 300;
}

.page-content h1 {
    margin-bottom: 32px;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-soft);
    transition: all 0.3s var(--easing);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    border-color: var(--line-gold);
    color: var(--gold-bright);
    background: rgba(216, 195, 160, 0.06);
}

/* 404 */
.error-page {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 24px 80px;
}

.error-page__code {
    font-family: var(--font-serif);
    font-size: clamp(6rem, 20vw, 14rem);
    font-weight: 300;
    line-height: 1;
    color: var(--gold);
    letter-spacing: -0.04em;
}

.error-page__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    margin: 12px 0 18px;
}

.error-page__text {
    max-width: 480px;
    margin: 0 auto 36px;
    color: var(--text-soft);
    font-weight: 300;
}

/* Анимация scroll-reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--easing), transform 0.8s var(--easing);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
    .hero__atmosphere {
        display: none;
    }
    :root {
        --twilight-shift: 0px !important;
        --vignette-opacity: 1 !important;
    }
}

/* ===== Адаптивность ===== */
@media (max-width: 1024px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "intro intro"
            "socials form"
            "nav contacts";
        gap: 40px;
    }

    .site-footer__brand {
        display: contents;
    }

    .site-footer__brand-main {
        grid-area: intro;
    }

    .site-footer__social-block {
        grid-area: socials;
        margin-top: 0;
        align-self: start;
    }

    .site-footer__col--nav {
        grid-area: nav;
    }

    .site-footer__col--contacts {
        grid-area: contacts;
    }

    .site-footer__col--form {
        grid-area: form;
        align-self: start;
    }
}

@media (max-width: 1100px) {
    .cards-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    /* backdrop-filter ломает position:fixed у дочерних элементов — отключаем на мобильном */
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(8, 10, 20, 0.94);
    }

    .site-header.is-menu-open {
        z-index: 220;
    }

    .site-header__toggle {
        display: flex;
        position: relative;
        z-index: 230;
        flex-shrink: 0;
    }

    .site-header__overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 200;
        border: 0;
        padding: 0;
        margin: 0;
        background: rgba(5, 7, 15, 0.78);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s var(--easing), visibility 0.35s var(--easing);
        cursor: pointer;
    }

    body.nav-open .site-header__overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-header__panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(360px, 90vw);
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding:
            calc(76px + env(safe-area-inset-top, 0px))
            24px
            calc(24px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(180deg, rgba(10, 14, 26, 0.98) 0%, rgba(7, 10, 19, 0.99) 100%);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--line-gold);
        box-shadow: -24px 0 80px rgba(0, 0, 0, 0.45);
        z-index: 210;
        transform: translateX(100%);
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .site-header__panel.is-open {
        transform: translateX(0);
    }

    .site-header__nav {
        width: 100%;
    }

    .site-header__menu {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
    }

    .site-header__menu a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 48px;
        padding: 12px 18px;
        font-size: 22px;
        font-family: var(--font-serif);
        border-radius: 14px;
        white-space: normal;
    }

    .site-header__actions {
        margin-top: auto;
        padding-top: 28px;
        border-top: 1px solid var(--line-soft);
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        width: 100%;
    }

    .site-header__socials {
        justify-content: flex-start;
        gap: 16px;
    }

    .site-header__social svg {
        width: 24px;
        height: 24px;
    }

    .site-header__phone {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 16px;
    }

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

@media (max-width: 640px) {
    .cards-grid--3 {
        grid-template-columns: 1fr;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__media {
        max-width: 460px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 18px;
    }

    .hero {
        min-height: 92vh;
        padding: 130px 0 90px;
    }

    /* Фон: стабильный cover на телефонах без background-attachment: fixed */
    body::before {
        background-size: cover;
        background-position: center center;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        grid-template-areas: none;
        gap: 36px;
    }

    .site-footer__brand {
        display: block;
    }

    .cta-band {
        margin-left: 18px;
        margin-right: 18px;
    }

    .contact-rail.is-floating {
        top: auto;
        bottom: max(18px, env(safe-area-inset-bottom, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
        transform: none;
    }

    .contact-rail__btn {
        width: 46px;
        height: 46px;
    }

    .contact-rail__btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ===== Skip link ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 10px 16px;
    border-radius: var(--r-pill);
    background: var(--gold);
    color: var(--bg-abyss);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s var(--easing);
}

.skip-link:focus {
    top: 16px;
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
}

/* ===== Hero motion atmosphere ===== */
.hero__atmosphere {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__atmosphere canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===== Cookie banner ===== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 14, 26, 0.92);
    border-top: 1px solid var(--line-gold);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
}

.cookie-banner.is-hidden {
    display: none;
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner__text {
    margin: 0;
    flex: 1 1 320px;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.55;
}

.cookie-banner__text a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner__accept {
    flex-shrink: 0;
}

/* ===== Footer legal row ===== */
.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.site-footer__legal a {
    color: var(--text-soft);
    text-decoration: none;
}

.site-footer__legal a:hover {
    color: var(--gold);
}

.site-footer__legal-sep {
    opacity: 0.5;
}

/* ===== Footer form consent ===== */
.footer-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
}

.footer-form__consent input {
    margin-top: 3px;
    accent-color: var(--gold);
}

.footer-form__consent a {
    color: var(--gold);
}

.footer-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.footer-form__consent.is-invalid {
    color: #e57373;
}

/* ===== Legal pages ===== */
.site-main--legal {
    padding: clamp(96px, 12vw, 140px) 0 var(--space-section);
}

.legal-page__title {
    margin-bottom: 12px;
}

.legal-page__eyebrow {
    justify-content: flex-start;
    margin-bottom: 16px;
}

.legal-page__updated {
    margin: 0 0 28px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.legal-page__content table.legal-table {
    width: 100%;
    margin: 1.2em 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.legal-page__content table.legal-table th,
.legal-page__content table.legal-table td {
    padding: 12px 14px;
    border: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: top;
}

.legal-page__content table.legal-table th {
    font-family: var(--font-ui);
    font-weight: 500;
    color: var(--text);
    background: rgba(216, 195, 160, 0.04);
}

.legal-page__content h2,
.legal-page__content h3 {
    margin-top: 1.6em;
    font-family: var(--font-serif);
    color: var(--text);
}

.legal-page__content a {
    color: var(--gold);
}

@media (max-width: 640px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__accept {
        width: 100%;
    }
}

.about__more {
    margin-top: 24px;
}

.about__more a {
    color: var(--gold);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(220, 197, 161, 0.35);
}

.about__more a:hover {
    color: var(--gold-bright);
}

.site-footer__nap {
    margin: 0 0 14px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ===== Header dropdown (Phase 2) ===== */
.site-header__menu .menu-item-has-children {
    position: relative;
}

.site-header__menu-parent,
.site-header__menu .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    background: transparent;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-soft);
    cursor: pointer;
}

.site-header__menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    margin: 0;
    padding: 10px;
    list-style: none;
    border-radius: 16px;
    border: 1px solid var(--line-soft);
    background: rgba(8, 10, 20, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s var(--easing), transform 0.25s var(--easing), visibility 0.25s;
    z-index: 40;
}

.site-header__menu .menu-item-has-children.is-open > .sub-menu,
.site-header__menu .menu-item-has-children:hover > .sub-menu,
.site-header__menu .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header__menu .sub-menu a {
    display: block;
    width: 100%;
    white-space: normal;
    border-radius: 12px;
}

.site-header__menu .current-menu-item > a,
.site-header__menu .current-menu-ancestor > .site-header__menu-parent {
    color: var(--gold-bright);
    border-color: var(--line-gold);
}

/* ===== Service landing pages (Phase 2) ===== */
.site-main--landing {
    padding: clamp(96px, 12vw, 132px) 0 var(--space-section);
}

.service-landing__shell {
    max-width: 920px;
}

.service-landing__nav {
    margin-bottom: 28px;
}

.service-landing__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.92rem;
    text-decoration: none;
}

.service-landing__back:hover {
    color: var(--gold);
}

.service-landing__hero {
    margin-bottom: 48px;
    text-align: center;
}

.service-landing__eyebrow {
    justify-content: center;
    margin-bottom: 16px;
}

.service-landing__title {
    margin: 0 0 20px;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.1;
    color: var(--text);
}

.service-landing__lead {
    max-width: 720px;
    margin: 0 auto 28px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-soft);
}

.service-landing__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.service-landing__geo,
.service-landing__body .service-landing__section {
    margin-bottom: 36px;
    padding: 28px 30px;
    border-radius: 20px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.02);
}

.glass-panel {
    backdrop-filter: blur(12px);
}

.service-landing__h2 {
    margin: 0 0 16px;
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    color: var(--text);
}

.service-landing__h2--center {
    text-align: center;
}

.service-landing__answer,
.service-landing__section p {
    margin: 0 0 14px;
    line-height: 1.7;
    color: var(--text-soft);
}

.service-landing__section p:last-child {
    margin-bottom: 0;
}

.service-landing__list {
    margin: 0 0 14px;
}

.service-landing__steps-inline {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-soft);
}

.service-landing__steps-inline li + li {
    margin-top: 8px;
}

.landing-process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.landing-process__item {
    padding: 20px 18px;
    border-radius: 16px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.02);
}

.landing-process__num {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--gold);
}

.landing-process__title {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--text);
}

.landing-process__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.landing-trust {
    margin: 40px 0;
}

.landing-trust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: end;
}

.landing-trust__figure {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
}

.landing-trust__figure img {
    display: block;
    width: 100%;
    height: auto;
}

.landing-trust__figure--portrait img {
    max-height: 420px;
    object-fit: cover;
}

.landing-trust__caption {
    margin: 16px 0 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

.landing-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.landing-related__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid var(--line-soft);
    text-decoration: none;
    transition: border-color 0.3s var(--easing), background 0.3s var(--easing);
}

.landing-related__card:hover {
    border-color: var(--line-gold);
    background: rgba(220, 197, 161, 0.04);
}

.landing-related__title {
    color: var(--text);
    font-weight: 500;
}

.landing-related__context {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.service-landing__cta {
    margin-top: 48px;
}

.service-landing__nap {
    margin: 18px 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.service-landing__nap a {
    color: var(--gold);
}

.service-landing__body a,
.service-landing__geo a,
.faq--landing a {
    color: var(--gold);
}

@media (max-width: 900px) {
    .landing-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-header__menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-top: 8px;
        box-shadow: none;
    }

    .site-header__menu .menu-item-has-children.is-open > .sub-menu {
        display: block;
    }
}

@media (max-width: 640px) {
    .landing-process {
        grid-template-columns: 1fr;
    }

    .service-landing__geo,
    .service-landing__body .service-landing__section {
        padding: 22px 20px;
    }
}

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