/* ==========================================================================
   Коняев Строй Групп — Main Stylesheet v2
   Brand: Gold #FDC33B · Dark Graphite #2A2A2A · Light #F1F1F1
   Fonts: Russo One (headings) · Roboto (body)
   ========================================================================== */

/* --- Reset ------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}
@media (min-width: 768px) {
    html { scroll-behavior: smooth; }
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; transition: color .35s cubic-bezier(0.4, 0, 0.2, 1); }
ul,ol { list-style: none; }

button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* Remove blue tap flash on touch devices (mobile/tablet). */
@media (hover: none) and (pointer: coarse) {
    a,
    button,
    .btn,
    [role="button"],
    input[type="button"],
    input[type="submit"] {
        -webkit-tap-highlight-color: transparent;
    }
}

/* --- CSS Custom Properties -------------------------------------------- */
:root {
    /* Brand */
    --color-gold:       #FDC33B;
    --color-gold-hover: #e6ae2a;
    --color-gold-light: rgba(253, 195, 59, .12);
    --color-gold-glow:  rgba(253, 195, 59, .35);
    --color-dark:       #1e1e1e;
    --color-dark-2:     #2a2a2a;
    --color-dark-3:     #333;
    --color-gray-light: #F3F4F6;
    --color-gray-mid:   #7a7a7a;
    --color-white:      #FFFFFF;

    /* Typography */
    --font-heading: 'Russo One', Arial Black, sans-serif;
    --font-body:    'Roboto', Arial, sans-serif;

    /* Spacing */
    --section-py:    clamp(4rem, 7vw, 6rem);
    --gap:           1.5rem;
    --gap-lg:        2.5rem;

    /* Layout */
    --container:     1200px;
    --header-height: 76px;

    /* Design tokens */
    --radius:        4px;
    --radius-lg:     6px;
    --radius-xl:     10px;
    --shadow-sm:     0 2px 12px rgba(0,0,0,.06);
    --shadow:        0 6px 30px rgba(0,0,0,.09);
    --shadow-hover:  0 14px 50px rgba(0,0,0,.15);
    --shadow-gold:   0 8px 32px rgba(253,195,59,.3);
    --transition:    .45s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: .28s cubic-bezier(0.4, 0, 0.2, 1);

    /* Header */
    --header-bg: #191919;

    /* Hero stats strip approximate height */
    --hero-stats-height: 97px;
}

/* --- Typography ------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
h4 { font-size: clamp(1rem, 1.6vw, 1.2rem); }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-gold);
    margin-bottom: .75rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-gold);
    border-radius: 2px;
}

.section-title {
    text-align: center;
    margin-bottom: .75rem;
    color: var(--color-dark);
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--color-gray-mid);
    font-size: 1.05rem;
    line-height: 1.7;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.section-header--compact {
    margin-bottom: 1.35rem;
}

.section-header--compact .section-subtitle {
    display: none;
}

.section-header .section-label { justify-content: center; }

/* Hide secondary subtitle lines under section titles sitewide */
.section-subtitle {
    display: none !important;
}

/* Gold underline */
.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 3px;
    margin: .8rem auto 0;
}

/* --- Layout ----------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.section { padding: var(--section-py) 0; }

.section--dark {
    background: var(--color-dark);
    color: var(--color-white);
}
.section--dark h1,.section--dark h2,.section--dark h3,.section--dark h4 { color: var(--color-white); }
.section--dark .section-subtitle { color: rgba(255,255,255,.55); }

.section--gray { background: var(--color-gray-light); }

.section--dark-2 {
    background: var(--color-dark-2);
    color: var(--color-white);
}

/* --- Buttons ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .9rem 2rem;
    font-family: var(--font-heading);
    font-size: .875rem;
    letter-spacing: .04em;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background var(--transition-fast);
}

.btn:hover::after { background: rgba(255,255,255,.07); }
.btn:active { transform: scale(.97); }
.btn--block { width: 100%; }

.btn--primary {
    background: var(--color-gold);
    color: var(--color-dark);
    box-shadow: 0 4px 16px rgba(253,195,59,.25);
}

.btn--primary:hover {
    background: var(--color-gold-hover);
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}

.btn--outline {
    border: 1.5px solid var(--color-gold);
    color: var(--color-gold);
    background: transparent;
}

.btn--outline:hover {
    background: var(--color-gold);
    color: var(--color-dark);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}

.btn--ghost {
    border: 1.5px solid rgba(255,255,255,.3);
    color: var(--color-white);
    background: transparent;
}

.btn--ghost:hover {
    border-color: var(--color-white);
    background: rgba(255,255,255,.1);
}

.btn--sm  { padding: .55rem 1.3rem; font-size: .8rem; }
.btn--lg  { padding: 1.05rem 2.6rem; font-size: .95rem; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: box-shadow var(--transition);
    background: #191919; /* всегда тёмный, никакой прозрачности */
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.site-header.scrolled {
    box-shadow: 0 2px 24px rgba(0,0,0,.55);
    border-bottom-color: rgba(253,195,59,.12); /* тонкий золотой акцент при скролле */
}

/* Gold bottom accent line */
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-gold) 40%, var(--color-gold) 60%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.site-header.scrolled::after { opacity: .4; }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

/* --- Logo --- */
.site-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    /* Охранная зона брендбука: min 50px со всех сторон.
       В контексте шапки применяем горизонтально — от соседних элементов */
    margin-right: .5rem;
}

/* Логотип-изображение */
.site-header__logo-img {
    display: block;
    /* Высота вписывается в шапку с отступом (76px шапка − 28px отступы = 48px макс) */
    height: clamp(36px, 5vw, 46px);
    width: auto;
    /* Убираем возможный белый фон если PNG с bg */
    mix-blend-mode: normal;
    transition: opacity .35s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header__logo:hover .site-header__logo-img { opacity: .85; }

/* Текстовый фолбэк (если нет файла логотипа) */
.site-header__brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-header__brand-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-white);
    letter-spacing: .01em;
}

.site-header__brand-sub {
    font-family: var(--font-heading);
    font-size: .65rem;
    color: var(--color-gold);
    letter-spacing: .15em;
    text-transform: uppercase;
    opacity: .9;
}

/* --- Desktop Navigation --- */
.site-nav { display: flex; }

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.site-nav__list > li { position: relative; }

.site-nav__list > li > a {
    display: block;
    padding: .6rem 1.1rem;
    font-size: 1rem;
    font-weight: 400;
    white-space: nowrap;
    color: rgba(255,255,255,.8);
    border-radius: var(--radius);
    transition: color var(--transition-fast);
    letter-spacing: .01em;
}

.site-nav__list > li > a:hover,
.site-nav__list > li.current-menu-item > a,
.site-nav__list > li.current-menu-ancestor > a,
.site-nav__list > li.current-page-ancestor > a {
    color: var(--color-gold);
}

/* Active indicator dot */
.site-nav__list > li.current-menu-item > a::after,
.site-nav__list > li.current-menu-ancestor > a::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: var(--color-gold);
    border-radius: 50%;
    margin: 2px auto 0;
}

/* Sub-menu */
.site-nav__list .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: var(--color-dark-2);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius);
    padding: .5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
    z-index: 100;
}

/* Hover bridge: keeps parent hovered while moving cursor into dropdown */
.site-nav__list > li.menu-item-has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
}

.site-nav__list .sub-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--color-dark-2);
    border-top: none;
}

.site-nav__list > li:hover > .sub-menu { display: block; }
.site-nav__list .sub-menu > li:hover > .sub-menu { display: block; }

.site-nav__list .sub-menu li a {
    display: block;
    padding: .6rem 1rem;
    font-size: .85rem;
    color: rgba(255,255,255,.7);
    border-radius: calc(var(--radius) - 2px);
    transition: all var(--transition-fast);
}

.site-nav__list .sub-menu li a:hover {
    color: var(--color-gold);
    background: rgba(253,195,59,.08);
}

/* 3rd level dropdown on desktop */
.site-nav__list .sub-menu > li { position: relative; }
.site-nav__list .sub-menu > li.menu-item-has-children::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 10px;
    height: 100%;
}

.site-nav__list .sub-menu .sub-menu {
    top: -0.5rem;
    left: 100%;
    transform: none;
    min-width: 240px;
}

.site-nav__list .sub-menu .sub-menu::before {
    display: none;
}

/* --- Header Actions --- */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    /* разделитель между элементами */
}

/* Вертикальный разделитель между телефоном и почтой */
.site-header__actions > a + a {
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255,255,255,.12);
}

.site-header__phone {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

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

/* Одинаковый размер иконок у обоих */
.site-header__phone .icon,
.site-header__phone svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--color-gold);
    position: relative;
    top: 0; /* сброс возможного смещения */
}

/* .site-header__cta удалена, вместо неё — email */

/* --- Hamburger — чистые три одинаковые полоски, без фона и рамки ---- */
.hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    z-index: 1010;
    flex-shrink: 0;
    padding: 0;
    position: relative;
    pointer-events: auto;
    touch-action: manipulation;
}

.hamburger__line {
    display: block;
    width: 26px; /* все три одинаковые */
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1), opacity .4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Анимация в X при открытии */
.hamburger.active .hamburger__line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger__line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Mobile Overlay — прозрачный click-catcher, без затемнения -------- */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 999; /* below header/menu stacking context, above page content */
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Fixed header without global body offset to avoid top gap */
body { padding-top: 0; }

/* These blocks exist in the drawer HTML but must be invisible on desktop */
.site-nav__drawer-head,
.site-nav__mobile-cta { display: none; }

/* =====================================================================
   MOBILE MENU DRAWER
   ===================================================================== */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .site-header__actions .site-header__cta { display: none; }

    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(340px, 88vw);
        height: 100dvh;
        z-index: 1008;
        transition: right .5s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        background-color: #191919;
        border-left: 1px solid rgba(253,195,59,.12);
        box-shadow: -24px 0 80px rgba(0,0,0,.7);
    }

    .site-nav.open { right: 0; }

    /* Убираем псевдоэлемент-заглушку */
    .site-nav::before { display: none; }

    /* ---- Header area in drawer (logo + close zone) ---- */
    .site-nav__drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1.25rem;
        height: var(--header-height);
        flex-shrink: 0;
        border-bottom: 1px solid rgba(253,195,59,.1);
        background: rgba(0,0,0,.25);
    }

    .site-nav__drawer-logo {
        display: flex;
        align-items: center;
        text-decoration: none;
    }

    /* Логотип в drawer чуть крупнее */
    .site-nav__drawer-logo-img {
        height: 44px;
        width: auto;
        display: block;
    }

    .site-nav__drawer-logo img {
        height: 44px;
        width: auto;
    }

    .site-nav__drawer-brand {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
    }

    .site-nav__drawer-brand-name {
        font-family: var(--font-heading);
        font-size: 1.1rem;
        color: var(--color-white);
    }

    .site-nav__drawer-brand-sub {
        font-family: var(--font-heading);
        font-size: .6rem;
        color: var(--color-gold);
        letter-spacing: .15em;
        text-transform: uppercase;
    }

    .site-nav__drawer-close {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255,255,255,.5);
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.08);
        border-radius: var(--radius);
        transition: color var(--transition-fast), background var(--transition-fast);
    }

    .site-nav__drawer-close:hover {
        color: var(--color-white);
        background: rgba(255,255,255,.12);
    }

    /* ---- Nav list ---- */
    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1rem .5rem;
        gap: 2px;
    }

    .site-nav__list > li {
        border-bottom: 1px solid rgba(255,255,255,.04);
    }

    .site-nav__list > li:last-child { border-bottom: none; }

    .site-nav__list > li > a {
        padding: .95rem 1rem;
        font-size: .975rem;
        font-family: var(--font-heading);
        letter-spacing: .02em;
        border-radius: var(--radius);
        color: rgba(255,255,255,.75);
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: color var(--transition-fast), background var(--transition-fast);
    }

    .site-nav__list > li > a:hover {
        color: var(--color-gold);
        background: rgba(253,195,59,.06);
    }

    .site-nav__list > li.current-menu-item > a {
        color: var(--color-gold);
        background: rgba(253,195,59,.08);
    }

    .site-nav__list > li.current-menu-item > a::after { display: none; }

    /* Gold left bar on active item */
    .site-nav__list > li.current-menu-item {
        border-left: 2px solid var(--color-gold);
        border-radius: 0 var(--radius) var(--radius) 0;
        margin-left: -1rem;
        padding-left: calc(1rem - 2px);
    }

    /* Submenu */
    .site-nav__list .sub-menu {
        position: static;
        display: block;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,.2);
        border-radius: var(--radius);
        padding: .25rem .5rem .5rem;
        margin: 0 0 .5rem .5rem;
    }

    .site-nav__list .sub-menu::before { display: none; }

    .site-nav__list .sub-menu li a {
        padding: .6rem 1rem;
        font-size: .875rem;
        color: rgba(255,255,255,.55);
        font-family: var(--font-body);
        border-radius: var(--radius);
    }

    .site-nav__list .sub-menu li a:hover {
        color: var(--color-gold);
        background: rgba(253,195,59,.06);
    }

    .site-nav__list .sub-menu .sub-menu {
        margin: .35rem 0 .5rem .75rem;
        background: rgba(0,0,0,.16);
    }

    /* ---- Bottom CTA block ---- */
    .site-nav__mobile-cta {
        padding: 1.25rem;
        margin-top: auto;
        border-top: 1px solid rgba(253,195,59,.1);
        background: rgba(0,0,0,.2);
        display: flex;
        flex-direction: column;
        gap: .75rem;
    }

    .site-nav__mobile-phone {
        display: flex;
        align-items: center;
        justify-content: center; /* центрируем */
        gap: .65rem;
        color: rgba(255,255,255,.8);
        font-size: .95rem;
        font-weight: 500;
        padding: .85rem 1rem;
        background: rgba(255,255,255,.05);
        border: 1px solid rgba(255,255,255,.08);
        border-radius: var(--radius);
        transition: border-color var(--transition-fast), color var(--transition-fast);
        text-align: center;
    }

    .site-nav__mobile-phone:hover {
        color: var(--color-gold);
        border-color: rgba(253,195,59,.3);
    }

    .site-nav__mobile-phone svg { color: var(--color-gold); flex-shrink: 0; }

    .site-nav__mobile-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        background: var(--color-gold);
        color: var(--color-dark);
        font-family: var(--font-heading);
        font-size: .9rem;
        letter-spacing: .04em;
        border-radius: var(--radius);
        transition: background var(--transition-fast), box-shadow var(--transition-fast);
        box-shadow: 0 4px 20px rgba(253,195,59,.3);
    }

    .site-nav__mobile-btn:hover {
        background: var(--color-gold-hover);
        box-shadow: 0 6px 28px rgba(253,195,59,.45);
    }
}

/* iOS/Android: prevent first-tap hover trap in mobile drawer links */
@media (max-width: 900px) and (hover: none) and (pointer: coarse) {
    .site-nav__list > li > a:hover {
        color: rgba(255,255,255,.75);
        background: transparent;
    }

    .site-nav__list .sub-menu li a:hover {
        color: rgba(255,255,255,.55);
        background: transparent;
    }

    .site-nav__mobile-phone:hover {
        color: rgba(255,255,255,.8);
        background: rgba(255,255,255,.05);
        border-color: rgba(255,255,255,.08);
    }

    .site-nav__mobile-btn:hover {
        background: var(--color-gold);
        color: var(--color-dark);
        box-shadow: 0 4px 20px rgba(253,195,59,.3);
    }
}

/* =====================================================================
   HERO SECTION
   ===================================================================== */
.hero {
    position: relative;
    /* hero на весь экран + 63px чтобы плашка чуть ниже */
    min-height: calc(100dvh + 63px);
    height: calc(100dvh + 63px);
    display: flex;
    align-items: center;
    background: var(--color-dark);
    overflow: hidden;
    padding: 0;
}

@media (min-width: 901px) {
    .home .hero {
        min-height: calc(100dvh + 91px);
        height: calc(100dvh + 91px);
    }
}

/* Background layers */
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
}

/* Gradient overlay - always present */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(20,20,20,.92) 0%,
        rgba(20,20,20,.78) 45%,
        rgba(20,20,20,.35) 100%
    );
    z-index: 1;
}

/* Decorative diagonal line */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: 15%;
    width: 2px;
    height: 130%;
    background: linear-gradient(180deg, transparent, var(--color-gold) 40%, var(--color-gold) 60%, transparent);
    opacity: .12;
    transform: rotate(15deg);
    z-index: 1;
}

/* Gold corner accent */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle at top right, rgba(253,195,59,.12) 0%, transparent 65%);
    z-index: 1;
}

/* Decorative logo — behind text/buttons, above bg overlay */
.hero__logo-bg {
    position: absolute;
    bottom: var(--hero-stats-height, 160px);
    left: 0;
    z-index: 1; /* below hero__content (z-index:2) — не перекрывает текст и кнопки */
    pointer-events: none;
    width: clamp(220px, 30vw, 460px);
    height: auto;
    opacity: .18;
    transform-origin: bottom left;
}

/* Push content to the right half, away from logo */
.hero__container {
    display: flex;
    justify-content: flex-end;
}

.hero__content {
    position: relative;
    z-index: 2;
    width: min(620px, 55%);
    padding: 2rem 0 5rem;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--color-gold);
    margin-bottom: 1.25rem;
    padding: .4rem 1rem .4rem .7rem;
    background: rgba(253,195,59,.1);
    border-left: 2px solid var(--color-gold);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.hero__eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    border-radius: 50%;
    animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .6; transform: scale(.85); }
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -.01em;
}

.hero__title em {
    font-style: normal;
    color: var(--color-gold);
}

.hero__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255,255,255,.7);
    margin-bottom: 2.25rem;
    line-height: 1.7;
    max-width: 540px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-bottom: 3rem;
}

/* Stats strip inside hero */
.hero__stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    /* фон в цвет hero — тёмный с лёгким градиентом, без чёрного */
    background: linear-gradient(
        to right,
        rgba(20, 20, 20, .88) 0%,
        rgba(28, 28, 28, .82) 50%,
        rgba(20, 20, 20, .88) 100%
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(253, 195, 59, .15); /* золотая линия вместо серой */
}

.hero__stats-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-evenly;
}

.hero__stat {
    flex: 1;
    padding: 1.25rem 1rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.06);
}

.hero__stat:last-child { border-right: none; }

.hero__stat-value {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: .2rem;
}

.hero__stat-label {
    font-size: .75rem;
    color: rgba(255,255,255,.5);
    letter-spacing: .04em;
}

/* =====================================================================
   COMMON SECTION BLOCKS
   ===================================================================== */

/* --- Advantages (base for single-service etc.) -------------------------- */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.advantage-card {
    position: relative;
    padding: 2rem 1.75rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-gold);
    border-radius: 0 3px 0 0;
    transition: width .5s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(253,195,59,.2);
}

.advantage-card:hover::before { width: 100%; }

.advantage-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold-light);
    border-radius: var(--radius);
    color: var(--color-gold);
    transition: background var(--transition), transform var(--transition);
}

.advantage-card:hover .advantage-card__icon {
    background: var(--color-gold);
    color: var(--color-dark);
    transform: scale(1.05);
}

.advantage-card__icon svg { width: 26px; height: 26px; }

.advantage-card__title {
    font-size: 1.05rem;
    margin-bottom: .5rem;
    color: var(--color-dark);
}

.advantage-card__text {
    font-size: .875rem;
    color: var(--color-gray-mid);
    line-height: 1.65;
}

/* --- Advantages block on front page: большие карточки, современный вид --- */
#advantages.section {
    padding-top: clamp(3rem, 6vw, 4.5rem);
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

#advantages .section-label { display: none; }

/* ========== Блок «Наши услуги» — фон как у hero, цвета под тёмный фон ========== */
#services {
    position: relative;
    background: var(--color-dark);
    color: var(--color-white);
    overflow: hidden;
}
#services::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(
            ellipse 28% 65% at left 38%,
            rgba(253,195,59,.045) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 90% 80% at 50% 50%,
            transparent 35%,
            rgba(0, 0, 0, .4) 100%
        ),
        linear-gradient(
            105deg,
            rgba(20,20,20,.92) 0%,
            rgba(20,20,20,.78) 45%,
            rgba(20,20,20,.35) 100%
        );
    pointer-events: none;
}
#services::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at top right, rgba(253,195,59,.08) 0%, transparent 70%);
    pointer-events: none;
}
#services .container { position: relative; z-index: 1; }

/* Decorative horse logo — как в hero */
.services-home__logo-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    width: clamp(140px, 18vw, 280px);
    height: auto;
    opacity: .12;
    transform-origin: bottom left;
}

#services .section-header { margin-bottom: clamp(1.5rem, 3vw, 2rem); }
#services .section-title { color: var(--color-white); }
#services .section-subtitle { color: rgba(255,255,255,.65); }
#services p[style*="color: var(--color-gray-mid)"] { color: rgba(255,255,255,.5) !important; }

.services-home__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    max-width: 100%;
    margin: 0 auto;
}

.services-home__card {
    border-radius: 4px;
    overflow: hidden;
    background: rgba(40, 40, 40, .85);
    border: 1px solid rgba(253,195,59,.1);
    transition: transform .45s cubic-bezier(0.4, 0, 0.2, 1), border-color .85s cubic-bezier(0.25, 0.46, 0.45, 0.94), background .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-home__card:hover {
    transform: translateY(-6px);
    border-color: rgba(253,195,59,.22);
    background: rgba(48, 48, 48, .92);
}

.services-home__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.services-home__img-wrap {
    position: relative;
    width: 100%;
    height: 280px;
    flex-shrink: 0;
    background: rgba(30, 30, 30, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.services-home__img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 70% at 50% 50%,
        transparent 40%,
        rgba(0, 0, 0, .35) 100%
    );
    pointer-events: none;
}

.services-home__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .55s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-home__card:hover .services-home__img {
    transform: scale(1.02);
}

.services-home__body {
    position: relative;
    padding: clamp(1rem, 2vw, 1.5rem);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, .95) 0%,
        rgba(30, 30, 30, .9) 40%,
        rgba(45, 42, 35, .92) 100%
    );
}

.services-home__body::before {
    content: '';
    position: absolute;
    top: -15%;
    right: 12%;
    width: 2px;
    height: 130%;
    background: linear-gradient(180deg, transparent, var(--color-gold) 40%, var(--color-gold) 60%, transparent);
    opacity: .12;
    transform: rotate(15deg);
    z-index: 1;
    pointer-events: none;
}

.services-home__title {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    font-weight: 400;
    margin-bottom: .6rem;
    line-height: 1.25;
    color: var(--color-white);
}

.services-home__excerpt {
    font-size: .9rem;
    color: rgba(255,255,255,.65);
    line-height: 1.6;
    margin-bottom: .75rem;
    flex: 1;
    min-height: 0;
}

.services-home__footer {
    margin-top: auto;
}

.services-home__price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-gold);
}

/* Кнопка «Все услуги» — ширина как у грида (2 колонки на ПК, 1 на мобиле) */
.services-home__btn-wrap {
    margin-top: 2.5rem;
    width: 100%;
}
.services-home__btn-wrap .btn {
    width: 100%;
    justify-content: center;
}
#services .services-home__btn-wrap .btn--outline {
    background: var(--color-gold);
    color: var(--color-dark);
    border-color: var(--color-gold);
}
#services .services-home__btn-wrap .btn--outline:hover {
    background: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
}

@media (min-width: 900px) {
    #services .container { max-width: 1320px; }
    .services-home__img-wrap { height: 340px; }
}

#advantages .section-header {
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

#advantages .section-subtitle {
    max-width: 640px;
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 0;
}

#advantages .advantages__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 2.25rem);
    max-width: 1100px;
    margin: 0 auto;
}

#advantages .advantage-card {
    padding: clamp(2rem, 4vw, 3rem) clamp(1.75rem, 3.5vw, 2.5rem);
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 4px 24px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
    transition: transform .45s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .5s cubic-bezier(0.4, 0, 0.2, 1), border-color .4s cubic-bezier(0.4, 0, 0.2, 1);
}

#advantages .advantage-card::before {
    height: 4px;
    border-radius: 0 4px 0 0;
}

#advantages .advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,0,0,.1), 0 8px 24px rgba(253,195,59,.08);
    border-color: rgba(253,195,59,.25);
}

/* На мобильных: тот же эффект при появлении карточки в зоне видимости (класс добавляет JS, текст остаётся в HTML) */
@media (max-width: 900px) {
    #advantages .advantage-card.advantage-card--in-view {
        transform: translateY(-8px);
        box-shadow: 0 20px 48px rgba(0,0,0,.1), 0 8px 24px rgba(253,195,59,.08);
        border-color: rgba(253,195,59,.25);
    }
    #advantages .advantage-card.advantage-card--in-view::before { width: 100%; }
    #advantages .advantage-card.advantage-card--in-view .advantage-card__icon {
        background: var(--color-gold);
        color: var(--color-dark);
        transform: scale(1.05);
    }
}

#advantages .advantage-card__icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

#advantages .advantage-card__icon svg {
    width: 32px;
    height: 32px;
}

#advantages .advantage-card__title {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    margin-bottom: .65rem;
    color: var(--color-dark);
    letter-spacing: .02em;
}

#advantages .advantage-card__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-mid);
}

/* --- Services Cards --------------------------------------------------- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.service-card__thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.service-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card__thumb img { transform: scale(1.06); }

.service-card__thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,20,20,.5) 0%, transparent 50%);
}

.service-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card__icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.service-card__icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.service-card__title {
    font-size: 1.05rem;
    margin-bottom: .5rem;
}

.service-card__title a { color: var(--color-dark); }
.service-card__title a:hover { color: var(--color-gold); }

.service-card__excerpt {
    font-size: .875rem;
    color: var(--color-gray-mid);
    margin-bottom: 1.25rem;
    flex: 1;
    line-height: 1.65;
}

.service-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.service-card__price {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-gold);
}

/* --- Portfolio / Project Cards --------------------------------------- */
.portfolio__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: .5rem 1.2rem;
    font-size: .82rem;
    font-weight: 500;
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 4px;
    background: var(--color-white);
    color: var(--color-dark-3);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.filter-btn:hover { border-color: var(--color-gold); color: var(--color-gold); }

.filter-btn.active {
    border-color: var(--color-gold);
    background: var(--color-gold);
    color: var(--color-dark);
}

/* Dark section filter buttons */
.section--gray .filter-btn { background: var(--color-white); }

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,.06);
    background: var(--color-white);
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.project-card__thumb {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.project-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card__thumb img { transform: scale(1.06); }

.project-card__badge {
    position: absolute;
    top: .85rem;
    left: .85rem;
    padding: .28rem .75rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: var(--color-gold);
    color: var(--color-dark);
    border-radius: 4px;
}

.project-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.project-card__title { margin-bottom: .5rem; font-size: 1rem; }
.project-card__title a { color: var(--color-dark); }
.project-card__title a:hover { color: var(--color-gold); }

.project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .9rem;
    font-size: .8rem;
    color: var(--color-gray-mid);
}

.project-card__meta span {
    display: flex;
    align-items: center;
    gap: .28rem;
}

/* ========== Portfolio home — слайдер на главной ========== */
#portfolio .section-label { display: none; }

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

.portfolio-home {
    position: relative;
    width: 100%;
    margin-bottom: 2.5rem;
    overflow: visible;
}

/* Карточки: плавный кроссфейд при переключении */
.portfolio-home__cards {
    display: grid;
    position: relative;
}
.portfolio-home__cards .portfolio-home__card {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity .55s ease;
}
.portfolio-home__cards .portfolio-home__card:first-child { opacity: 1; pointer-events: auto; }
.portfolio-home[data-current="1"] .portfolio-home__cards .portfolio-home__card { opacity: 0; pointer-events: none; }
.portfolio-home[data-current="1"] .portfolio-home__cards .portfolio-home__card:nth-child(1) { opacity: 1; pointer-events: auto; }
.portfolio-home[data-current="2"] .portfolio-home__cards .portfolio-home__card:nth-child(2) { opacity: 1; pointer-events: auto; }
.portfolio-home[data-current="3"] .portfolio-home__cards .portfolio-home__card:nth-child(3) { opacity: 1; pointer-events: auto; }
.portfolio-home[data-current="4"] .portfolio-home__cards .portfolio-home__card:nth-child(4) { opacity: 1; pointer-events: auto; }
.portfolio-home[data-current="5"] .portfolio-home__cards .portfolio-home__card:nth-child(5) { opacity: 1; pointer-events: auto; }
.portfolio-home[data-current="6"] .portfolio-home__cards .portfolio-home__card:nth-child(6) { opacity: 1; pointer-events: auto; }

.portfolio-home__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,.06);
    transition: box-shadow var(--transition), transform var(--transition);
}
.portfolio-home__link:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,.1);
}

.portfolio-home__img-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--color-gray-light);
}
.portfolio-home__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-home__link:hover .portfolio-home__img { transform: scale(1.02); }

.portfolio-home__body {
    padding: clamp(1.25rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.portfolio-home__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.portfolio-home__title {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 400;
    color: var(--color-dark);
    line-height: 1.25;
    flex: 1;
    min-width: 0;
}
.portfolio-home__excerpt {
    font-size: .9rem;
    color: var(--color-gray-mid);
    line-height: 1.6;
}
.portfolio-home__footer {
    margin-top: .25rem;
}
.portfolio-home__price {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-gold);
}
.portfolio-home__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-gold);
    transition: transform var(--transition);
}
.portfolio-home__link:hover .portfolio-home__arrow { transform: translateX(4px); }

/* Стрелки навигации — вне карточки, по вертикали по центру картинки */
.portfolio-home__nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    pointer-events: none;
    z-index: 10;
}
@media (min-width: 768px) {
    .portfolio-home__nav {
        top: 22%;
        left: 0;
        right: 0;
        height: 38%;
    }
}
.portfolio-home__arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    color: rgba(90, 90, 90, .85);
    transition: color var(--transition);
    z-index: 2;
}
.portfolio-home__arrow-btn--prev { left: -64px; }
.portfolio-home__arrow-btn--next { right: -64px; }
.portfolio-home__arrow-btn:hover { color: rgba(50, 50, 50, 1); }

.portfolio-home__arrow-btn svg {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.portfolio-home__nav .portfolio-home__arrow-btn--from-1 { display: flex; }
.portfolio-home[data-current="2"] .portfolio-home__nav .portfolio-home__arrow-btn--from-1 { display: none; }
.portfolio-home[data-current="2"] .portfolio-home__nav .portfolio-home__arrow-btn--from-2,
.portfolio-home[data-current="2"] .portfolio-home__nav .portfolio-home__arrow-btn--to-2 { display: flex; }
.portfolio-home[data-current="3"] .portfolio-home__nav .portfolio-home__arrow-btn--from-1 { display: none; }
.portfolio-home[data-current="3"] .portfolio-home__nav .portfolio-home__arrow-btn--from-3,
.portfolio-home[data-current="3"] .portfolio-home__nav .portfolio-home__arrow-btn--to-3 { display: flex; }
.portfolio-home[data-current="4"] .portfolio-home__nav .portfolio-home__arrow-btn--from-1 { display: none; }
.portfolio-home[data-current="4"] .portfolio-home__nav .portfolio-home__arrow-btn--from-4,
.portfolio-home[data-current="4"] .portfolio-home__nav .portfolio-home__arrow-btn--to-4 { display: flex; }
.portfolio-home[data-current="5"] .portfolio-home__nav .portfolio-home__arrow-btn--from-1 { display: none; }
.portfolio-home[data-current="5"] .portfolio-home__nav .portfolio-home__arrow-btn--from-5,
.portfolio-home[data-current="5"] .portfolio-home__nav .portfolio-home__arrow-btn--to-5 { display: flex; }
.portfolio-home[data-current="6"] .portfolio-home__nav .portfolio-home__arrow-btn--from-1 { display: none; }
.portfolio-home[data-current="6"] .portfolio-home__nav .portfolio-home__arrow-btn--to-6 { display: flex; }

/* Кнопка «Все проекты» — как «Все услуги» */
.portfolio-home__btn-wrap {
    width: 100%;
}
.portfolio-home__btn-wrap .btn {
    width: 100%;
    justify-content: center;
}
#portfolio .portfolio-home__btn-wrap .btn--outline {
    background: var(--color-gold);
    color: var(--color-dark);
    border-color: var(--color-gold);
}
#portfolio .portfolio-home__btn-wrap .btn--outline:hover {
    background: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
}

/* Мобильная версия: все карточки в столбец, без слайдера */
@media (max-width: 767px) {
    .portfolio-home { margin-bottom: 2rem; }
    .portfolio-home__cards {
        display: flex;
        flex-direction: column;
    }
    .portfolio-home__cards .portfolio-home__card {
        grid-column: auto;
        grid-row: auto;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    .portfolio-home__card:not(:first-child) { margin-top: 1.5rem; }
    .portfolio-home__nav { display: none; }
}

/* --- Steps / How We Work — тёмный стиль как «Наши услуги» ------------ */
#process {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-dark);
    color: var(--color-white);
    overflow: hidden;
}
#process::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(
            ellipse 28% 65% at left 38%,
            rgba(253,195,59,.045) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 90% 80% at 50% 50%,
            transparent 35%,
            rgba(0, 0, 0, .4) 100%
        ),
        linear-gradient(
            105deg,
            rgba(20,20,20,.92) 0%,
            rgba(20,20,20,.78) 45%,
            rgba(20,20,20,.35) 100%
        );
    pointer-events: none;
}
#process::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at top right, rgba(253,195,59,.08) 0%, transparent 70%);
    pointer-events: none;
}
#process .container { position: relative; z-index: 1; }

.process__logo-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    width: clamp(140px, 18vw, 280px);
    height: auto;
    opacity: .12;
    transform-origin: bottom left;
}

#process .section-header { margin-bottom: clamp(1.5rem, 3vw, 2rem); }
#process .section-title { color: var(--color-white); }
#process .section-title::after { background: var(--color-gold); }
#process .section-subtitle { color: rgba(255,255,255,.65); }
#process .section-label { display: none; }

.steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    position: relative;
}


.step-card {
    text-align: center;
    padding: 2rem 1.25rem 2.5rem;
    position: relative;
    z-index: 1;
}

.step-card__number {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold);
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(253,195,59,.12), 0 0 0 12px rgba(253,195,59,.05);
    transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover .step-card__number {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(253,195,59,.18), 0 4px 20px rgba(253,195,59,.35);
}

.step-card__title {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    margin-bottom: .6rem;
    color: var(--color-dark);
}

.step-card__text {
    font-size: clamp(.9rem, 1.2vw, 1rem);
    color: var(--color-gray-mid);
    line-height: 1.6;
}

#process .step-card__title { color: var(--color-white); }
#process .step-card__text { color: rgba(255,255,255,.65); }

/* --- Reviews ---------------------------------------------------------- */
.reviews__slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1rem;
}

.review-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--color-gold-light);
}

.review-card__avatar--fallback {
    background: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-gold);
}

.review-card__name {
    font-family: var(--font-heading);
    font-size: .95rem;
    margin-bottom: .15rem;
}

.review-card__source {
    font-size: .78rem;
    color: var(--color-gray-mid);
}

.review-card__source-link { color: var(--color-gold); }

.review-card__stars {
    display: flex;
    gap: .15rem;
    margin-bottom: .85rem;
    color: var(--color-gold);
}

.review-card__text {
    font-size: .875rem;
    color: var(--color-dark-3);
    flex: 1;
    line-height: 1.7;
}

.review-card__screenshot { margin-top: 1rem; }
.review-card__screenshot-img { border-radius: var(--radius); max-width: 100%; }

/* Quote icon */
.review-card::before {
    content: '"';
    display: block;
    font-family: Georgia, serif;
    font-size: 3.5rem;
    color: var(--color-gold);
    opacity: .2;
    line-height: .6;
    margin-bottom: .5rem;
}

/* Temporary mock of Yandex Maps reviews widget */
.yandex-widget-mock {
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: clamp(1rem, 2vw, 1.4rem);
    margin: 0 0 2rem;
}

/* Home reviews fallback widget should not collapse to a single grid column */
#reviews .reviews__slider > .yandex-widget-mock {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 960px;
    margin: 0 auto 2rem;
}

.yandex-widget-mock__head {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,.07);
    padding-bottom: .95rem;
    margin-bottom: .95rem;
}

.yandex-widget-mock__brand {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.yandex-widget-mock__logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FC3F1D;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
}

.yandex-widget-mock__title {
    font-family: var(--font-heading);
    font-size: .95rem;
    color: var(--color-dark);
}

.yandex-widget-mock__company {
    font-size: .82rem;
    color: var(--color-gray-mid);
}

.yandex-widget-mock__rating { text-align: right; }

.yandex-widget-mock__rating-value {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-dark);
    line-height: 1.1;
}

.yandex-widget-mock__stars {
    letter-spacing: .08em;
    color: var(--color-gold);
    font-size: .86rem;
    line-height: 1.2;
}

.yandex-widget-mock__count {
    font-size: .74rem;
    color: var(--color-gray-mid);
}

.yandex-widget-mock__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}

.yandex-widget-mock__item {
    border: 1px solid rgba(0,0,0,.07);
    border-radius: var(--radius);
    padding: .75rem .85rem;
    background: #fafafa;
}

.yandex-widget-mock__name {
    font-size: .9rem;
    margin-bottom: .35rem;
}

.yandex-widget-mock__text {
    font-size: .83rem;
    color: var(--color-gray-mid);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Guarantees — ширина как у кнопки «Все проекты» ------------------- */
#guarantees .section-label { display: none; }

.guarantees__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 100%;
}

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

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

@media (max-width: 520px) {
    .guarantees__grid { grid-template-columns: 1fr; }
}

.guarantee-card {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1.75rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius-lg);
    transition: background var(--transition), border-color var(--transition);
}

.guarantee-card:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(253,195,59,.2);
}

.guarantee-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold);
    color: var(--color-dark);
    border-radius: var(--radius);
}

.guarantee-card__icon svg { width: 20px; height: 20px; }

.guarantee-card__title { color: var(--color-white); font-size: .95rem; margin-bottom: .35rem; }
.guarantee-card__text  { font-size: .82rem; color: rgba(255,255,255,.55); line-height: 1.6; }

/* --- Единый тёмный блок: Гарантии + FAQ + CTA (без стыков) ------------ */
.dark-unified {
    position: relative;
    background: var(--color-dark);
    color: var(--color-white);
    overflow: hidden;
}
.dark-unified::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 28% 65% at left 38%, rgba(253,195,59,.045) 0%, transparent 70%),
        radial-gradient(ellipse 90% 80% at 50% 50%, transparent 35%, rgba(0,0,0,.4) 100%),
        linear-gradient(105deg, rgba(20,20,20,.92) 0%, rgba(20,20,20,.78) 45%, rgba(20,20,20,.35) 100%);
    pointer-events: none;
}
.dark-unified::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at top right, rgba(253,195,59,.08) 0%, transparent 70%);
    pointer-events: none;
}

.dark-unified__logo-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    width: clamp(140px, 18vw, 280px);
    height: auto;
    opacity: .12;
    transform-origin: bottom left;
}

.dark-unified .container { position: relative; z-index: 1; }

/* Убираем отдельные фоны у вложенных секций */
.dark-unified #faq,
.dark-unified .cta-block {
    background: none !important;
}
.dark-unified #faq::before,
.dark-unified #faq::after,
.dark-unified .cta-block::before,
.dark-unified .cta-block::after { display: none !important; }

.dark-unified .dark-unified__section { padding: var(--section-py) 0; }
.dark-unified #guarantees { padding-top: var(--section-py); }
.dark-unified #faq { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.dark-unified .cta-block { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: var(--section-py); }

.dark-unified .section-title { color: var(--color-white); }
.dark-unified .section-title::after { background: var(--color-gold); }
.dark-unified .section-subtitle { color: rgba(255,255,255,.65); }

/* --- FAQ (standalone) + CTA (standalone) — когда не в dark-unified ----- */
#faq:not(.dark-unified__section) {
    position: relative;
    overflow: hidden;
}
#faq::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 28% 65% at left 38%, rgba(253,195,59,.045) 0%, transparent 70%),
        radial-gradient(ellipse 90% 80% at 50% 50%, transparent 35%, rgba(0,0,0,.4) 100%),
        linear-gradient(105deg, rgba(20,20,20,.92) 0%, rgba(20,20,20,.78) 45%, rgba(20,20,20,.35) 100%);
    pointer-events: none;
}
#faq::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at top right, rgba(253,195,59,.08) 0%, transparent 70%);
    pointer-events: none;
}
#faq .container { position: relative; z-index: 1; }
#faq .section-title::after { background: var(--color-gold); }

.cta-block::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 28% 65% at left 38%, rgba(253,195,59,.045) 0%, transparent 70%),
        radial-gradient(ellipse 90% 80% at 50% 50%, transparent 35%, rgba(0,0,0,.4) 100%),
        linear-gradient(105deg, rgba(20,20,20,.92) 0%, rgba(20,20,20,.78) 45%, rgba(20,20,20,.35) 100%);
    pointer-events: none;
}
.cta-block::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at top right, rgba(253,195,59,.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-block__logo-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    width: clamp(140px, 18vw, 280px);
    height: auto;
    opacity: .12;
    transform-origin: bottom left;
}

/* --- FAQ Accordion ---------------------------------------------------- */
.faq__list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.faq-item {
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item.active {
    border-color: rgba(253,195,59,.35);
    box-shadow: 0 4px 20px rgba(253,195,59,.1);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-heading);
    font-size: .95rem;
    text-align: left;
    gap: 1rem;
    color: var(--color-dark);
    transition: color var(--transition-fast);
}

.faq-item.active .faq-item__question { color: var(--color-gold); }

.faq-item__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-light);
    border-radius: 50%;
    color: var(--color-dark);
    font-size: 1.1rem;
    line-height: 1;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.faq-item.active .faq-item__icon {
    background: var(--color-gold);
    color: var(--color-dark);
    transform: rotate(45deg);
}

.faq-item__answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height .45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-item__answer { max-height: var(--faq-open-height, 500px); }

.faq-item__answer-inner {
    padding: 0 1.5rem 1.25rem;
    font-size: .9rem;
    color: var(--color-gray-mid);
    line-height: 1.75;
    border-top: 1px solid rgba(0,0,0,.05);
    padding-top: 1rem;
}

/* --- CTA Block -------------------------------------------------------- */
.cta-block {
    padding: var(--section-py) 0;
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-block .container { position: relative; z-index: 1; }
.cta-block__title { color: var(--color-white); margin-bottom: .75rem; }
.cta-block__text  { color: rgba(255,255,255,.6); margin-bottom: 2.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-block textarea { resize: none; }

/* --- Forms ------------------------------------------------------------ */
.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .4rem;
    color: var(--color-dark);
}

.form-input {
    width: 100%;
    padding: .875rem 1.1rem;
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: var(--radius);
    background: var(--color-white);
    font-size: .95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(253,195,59,.15);
}

.form-input--dark {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    color: var(--color-white);
}

.form-input--dark::placeholder { color: rgba(255,255,255,.35); }

.form-input--dark:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(253,195,59,.15);
    background: rgba(255,255,255,.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-message { padding: .8rem 1rem; border-radius: var(--radius); font-size: .88rem; margin-top: .75rem; display: none; }
.form-message--success { display: block; background: rgba(74,222,128,.1); color: #166534; border: 1px solid rgba(74,222,128,.3); }
.form-message--error   { display: block; background: rgba(248,113,113,.1); color: #991b1b; border: 1px solid rgba(248,113,113,.3); }

.form-privacy {
    font-size: .75rem;
    color: var(--color-gray-mid);
    margin-top: .5rem;
}

.form-privacy a { text-decoration: underline; }

.text-muted { color: var(--color-gray-mid); }

/* --- Quiz — стиль светлых блоков -------------------------------- */
#quiz-section .section-label { display: none; }

/* Меньше отступ между калькулятором и отзывами (оба section--gray) */
#quiz-section { padding-bottom: clamp(2rem, 4vw, 3rem); }
#reviews { padding-top: clamp(2rem, 4vw, 3rem); }

.quiz {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,.06);
    max-width: 720px;
    margin: 0 auto;
}

.quiz__progress {
    display: flex;
    gap: .5rem;
    margin-bottom: 2rem;
}

.quiz__progress-step {
    flex: 1;
    height: 3px;
    background: rgba(0,0,0,.08);
    border-radius: 3px;
    transition: background .4s ease;
}

.quiz__progress-step.active { background: var(--color-gold); }

.quiz__step { display: none; }
.quiz__step.active { display: block; }

.quiz__steps-wrap {
    flex: 0 0 auto;
}

.quiz__step-title {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-dark);
}

.quiz__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.quiz__option {
    padding: 1.25rem 1rem;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
    font-size: .95rem;
    color: var(--color-dark);
    background: var(--color-white);
}

.quiz__option:hover {
    border-color: rgba(253,195,59,.4);
    background: rgba(253,195,59,.04);
}

.quiz__option.selected {
    border-color: var(--color-gold);
    background: rgba(253,195,59,.08);
    box-shadow: 0 0 0 2px rgba(253,195,59,.15);
}

.quiz .form-group { margin-bottom: 1.25rem; }
.quiz .form-group:last-of-type { margin-bottom: 0; }

.quiz__nav {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,.06);
    width: 100%;
}

.quiz__btn-next,
.quiz__btn-prev {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    padding: .875rem 1.5rem;
    font-size: 1rem;
}

.quiz__btn-prev:disabled {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}

.quiz__result { text-align: center; padding: 2rem 0 1rem; }
.quiz__result h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--color-dark); }
.quiz__result-price { font-family: var(--font-heading); font-size: 2rem; font-weight: 500; color: var(--color-gold); margin: 1rem 0; }

#quiz-message.form-message--success {
    background: rgba(253,195,59,.12);
    color: var(--color-dark);
    border: 1px solid rgba(253,195,59,.4);
}

/* --- Before/After ----------------------------------------------------- */
.ba-gallery {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    aspect-ratio: 16/9;
    cursor: ew-resize;
    user-select: none;
    box-shadow: var(--shadow);
}

.ba-gallery__before,.ba-gallery__after { position: absolute; inset: 0; }
.ba-gallery__before img,.ba-gallery__after img { width:100%; height:100%; object-fit:cover; }
.ba-gallery__before { z-index: 2; clip-path: inset(0 50% 0 0); }

.ba-gallery__slider {
    position: absolute; top:0; bottom:0; left:50%;
    width: 3px;
    background: var(--color-gold);
    z-index: 3;
    transform: translateX(-50%);
}

.ba-gallery__handle {
    position: absolute; top:50%; left:50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    background: var(--color-gold);
    border-radius: 50%;
    display: flex; align-items:center; justify-content:center;
    box-shadow: 0 2px 12px rgba(0,0,0,.35), 0 0 0 3px rgba(253,195,59,.3);
}

.ba-gallery__label {
    position: absolute; bottom: 1rem;
    padding: .3rem .9rem;
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em;
    background: rgba(20,20,20,.75); backdrop-filter: blur(6px);
    color: var(--color-white);
    border-radius: 4px;
    z-index: 4;
}

.ba-gallery__label--before { left: 1rem; }
.ba-gallery__label--after  { right: 1rem; }

/* --- Breadcrumbs ------------------------------------------------------ */
.breadcrumbs {
    padding: .9rem 0;
    font-size: .82rem;
    color: rgba(255,255,255,.88);
    background: var(--color-dark);
    border-bottom: 1px solid rgba(255,255,255,.07);
    position: relative;
    overflow: hidden;
}

.breadcrumbs::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 28% 65% at left 38%, rgba(253,195,59,.045) 0%, transparent 70%),
        radial-gradient(ellipse 90% 80% at 50% 50%, transparent 35%, rgba(0,0,0,.4) 100%),
        linear-gradient(105deg, rgba(20,20,20,.92) 0%, rgba(20,20,20,.78) 45%, rgba(20,20,20,.35) 100%);
    pointer-events: none;
}
.breadcrumbs::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at top right, rgba(253,195,59,.08) 0%, transparent 70%);
    pointer-events: none;
}
.breadcrumbs .container { position: relative; z-index: 1; }

.breadcrumbs a { color: rgba(255,255,255,.92); }
.breadcrumbs a:hover { color: var(--color-gold); }
.breadcrumbs .separator { margin: 0 .4rem; opacity: .75; }
.breadcrumbs .current   { color: var(--color-white); font-weight: 500; }

/* Breadcrumbs inside page-header: без отдельного фона */
.breadcrumbs--in-header {
    padding: 0;
    margin-bottom: .9rem;
    background: transparent;
    border: none;
}
.breadcrumbs--in-header::before,
.breadcrumbs--in-header::after { display: none; }
.breadcrumbs--in-header .container { padding: 0; max-width: none; }

/* --- Page Header ------------------------------------------------------ */
.page-header {
    background: var(--color-dark);
    padding: clamp(6rem, 12vw, 10rem) 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(253,195,59,.08) 0%, transparent 60%);
}

.page-header::after {
    content: '';
    position: absolute;
    left: -9px;
    bottom: -16px;
    width: clamp(160px, 20vw, 280px);
    height: clamp(160px, 20vw, 280px);
    background: url('../images/hero-logo.png') no-repeat left bottom/contain;
    opacity: .14;
    pointer-events: none;
}

.page-header .container { position: relative; z-index: 1; }

.page-header__icon {
    width: 100px;
    height: 100px;
    margin-bottom: 1.25rem;
}

.page-header__icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.page-header__title    { color: var(--color-white); margin-bottom: .5rem; }
.page-header__subtitle { color: rgba(255,255,255,.6); font-size: 1.05rem; margin-top: .5rem; }

/* --- About ------------------------------------------------------------ */
.about-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
    text-align: center;
}

.about-number__value {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: var(--color-gold);
    line-height: 1;
}

.about-number__label {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    margin-top: .35rem;
    letter-spacing: .04em;
}

.about-principles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.about-principle {
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.2rem;
    box-shadow: var(--shadow-sm);
}

.about-principle__title {
    font-size: 1rem;
    margin-bottom: .45rem;
}

.about-principle__text {
    font-size: .9rem;
    color: var(--color-gray-mid);
    line-height: 1.7;
}

/* About page: principles block in dark style like CTA/FAQ section */
.page-template-page-about .about-principles-dark {
    position: relative;
    overflow: hidden;
    color: var(--color-white);
    background: var(--color-dark);
}

.page-template-page-about .about-principles-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 28% 65% at left 38%, rgba(253,195,59,.045) 0%, transparent 70%),
        radial-gradient(ellipse 90% 80% at 50% 50%, transparent 35%, rgba(0,0,0,.4) 100%),
        linear-gradient(105deg, rgba(20,20,20,.92) 0%, rgba(20,20,20,.78) 45%, rgba(20,20,20,.35) 100%);
    pointer-events: none;
}

.page-template-page-about .about-principles-dark::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at top right, rgba(253,195,59,.08) 0%, transparent 70%);
    pointer-events: none;
}

.page-template-page-about .about-principles-dark .container {
    position: relative;
    z-index: 1;
}

.page-template-page-about .about-principles-dark .section-title {
    color: var(--color-white);
}

.page-template-page-about .about-principles-dark .section-title::after {
    background: var(--color-gold);
}

.page-template-page-about .about-principles-dark .section-subtitle {
    color: rgba(255,255,255,.68);
}

.page-template-page-about .about-principles-dark .about-principle {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.08);
    box-shadow: none;
}

.page-template-page-about .about-principles-dark .about-principle__title {
    color: var(--color-white);
}

.page-template-page-about .about-principles-dark .about-principle__text {
    color: rgba(255,255,255,.78);
}

.page-template-page-about .about-dark-unified {
    position: relative;
    overflow: hidden;
    background: var(--color-dark);
    color: var(--color-white);
}

.page-template-page-about .about-dark-unified::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 28% 65% at left 38%, rgba(253,195,59,.045) 0%, transparent 70%),
        radial-gradient(ellipse 90% 80% at 50% 50%, transparent 35%, rgba(0,0,0,.4) 100%),
        linear-gradient(105deg, rgba(20,20,20,.92) 0%, rgba(20,20,20,.78) 45%, rgba(20,20,20,.35) 100%);
    pointer-events: none;
}

.page-template-page-about .about-dark-unified::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at top right, rgba(253,195,59,.08) 0%, transparent 70%);
    pointer-events: none;
}

.page-template-page-about .about-dark-unified__section {
    position: relative;
    z-index: 1;
}

.page-template-page-about .about-dark-unified .about-principles-dark,
.page-template-page-about .about-dark-unified .about-numbers-unified {
    background: none !important;
}

.page-template-page-about .about-dark-unified .about-principles-dark::before,
.page-template-page-about .about-dark-unified .about-principles-dark::after,
.page-template-page-about .about-dark-unified .about-numbers-unified::before,
.page-template-page-about .about-dark-unified .about-numbers-unified::after {
    display: none !important;
}

@media (min-width: 1024px) {
    .page-template-page-about .about-dark-unified {
        min-height: 100vh;
    }

    .page-template-page-about .about-dark-unified .about-principles-dark {
        padding-top: clamp(7rem, 10vw, 9rem);
        padding-bottom: clamp(3rem, 5vw, 4rem);
    }

    .page-template-page-about .about-dark-unified .about-numbers-unified {
        padding-top: clamp(3rem, 5vw, 4rem);
        padding-bottom: clamp(7rem, 10vw, 9rem);
    }
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 2rem;
}

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

.team-card__photo {
    width: 150px; height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--color-gold);
    box-shadow: 0 0 0 6px rgba(253,195,59,.12);
}

.team-card__photo--fallback {
    background: var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-gold);
}

.team-card__name  { margin-bottom: .25rem; font-size: 1rem; }
.team-card__role  { font-size: .85rem; color: var(--color-gold); }
.team-card__exp   { font-size: .78rem; color: var(--color-gray-mid); margin-top: .2rem; }

.about-legal {
    max-width: 500px;
    margin: 2rem auto 0;
    font-size: .95rem;
    color: var(--color-gray-mid);
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius-lg);
    padding: 1rem 1.2rem;
    box-shadow: var(--shadow-sm);
}

.timeline {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px; top: 8px; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-gold), transparent);
}

.timeline__item { position: relative; padding-bottom: 2rem; padding-left: 1.5rem; }

.timeline__item::before {
    content: '';
    position: absolute;
    left: -2.5rem; top: .55rem;
    width: 12px; height: 12px;
    background: var(--color-gold);
    border: 2px solid var(--color-white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(253,195,59,.2);
}

.timeline__year { font-family: var(--font-heading); color: var(--color-gold); margin-bottom: .25rem; }
.timeline__text { font-size: .9rem; color: var(--color-gray-mid); }

/* About page: tighter gap between timeline and team sections */
.page-template-page-about .about-section--timeline {
    padding-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}

.page-template-page-about .about-section--team {
    padding-top: clamp(1.5rem, 3.5vw, 2.25rem);
}

.page-template-page-about .about-section--timeline .timeline__text {
    color: #111111 !important;
}

/* --- Pricing ---------------------------------------------------------- */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid rgba(0,0,0,.07);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(253,195,59,.3);
}

.pricing-card--featured {
    border-color: var(--color-gold);
    background: linear-gradient(135deg, #fff 0%, rgba(253,195,59,.04) 100%);
}


.pricing-card--featured::before {
    content: 'Популярный';
    position: absolute;
    top: 1.1rem;
    right: -2.8rem;
    background: var(--color-gold);
    color: var(--color-dark);
    padding: .42rem 3.2rem;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
    white-space: nowrap;
    text-transform: none;
    transform: rotate(42deg);
    transform-origin: center;
}


.pricing-card__title { margin-bottom: .5rem; }
.pricing-card__price { font-family: var(--font-heading); font-size: 2.25rem; color: var(--color-gold); margin-bottom: .2rem; }
.pricing-card__unit  { font-size: .82rem; color: var(--color-gray-mid); margin-bottom: 1.75rem; }

.pricing-card__features { text-align: left; margin-bottom: 2rem; }

.pricing-card__features li {
    padding: .55rem 0;
    font-size: .88rem;
    display: flex; align-items: flex-start; gap: .6rem;
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.pricing-card__features li::before {
    content: '';
    width: 16px; height: 16px; flex-shrink: 0; margin-top: .1rem;
    background: var(--color-gold-light);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FDC33B' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

.pricing-card > .btn {
    margin-top: auto;
    align-self: center;
}

.price-table { width: 100%; border-collapse: collapse; margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }

.price-table th {
    background: var(--color-dark);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: .85rem;
    padding: 1rem 1.25rem;
    text-align: left;
}

.price-table td {
    padding: .9rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,.05);
    font-size: .88rem;
}

.price-table tr:nth-child(even) td { background: var(--color-gray-light); }
.price-table td:last-child { font-weight: 700; color: var(--color-gold); white-space: nowrap; }

.prices-trust {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
}

.prices-trust__item {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius-lg);
    padding: .9rem 1rem;
    text-align: center;
}

.prices-trust__value {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.1rem;
    margin-bottom: .2rem;
}

.prices-trust__label {
    font-size: .8rem;
    color: var(--color-gray-mid);
}

.prices-factors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.prices-factor {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.2rem;
}

.prices-factor__title {
    margin-bottom: .45rem;
    font-size: 1rem;
}

.prices-factor__text {
    font-size: .9rem;
    color: var(--color-gray-mid);
    line-height: 1.7;
}

.prices-note {
    margin-top: 1rem;
    font-size: .85rem;
    color: var(--color-gray-mid);
    text-align: right;
}

.prices-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.prices-step {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius-lg);
    padding: 1.05rem 1.1rem;
}

.prices-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-gold-light);
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: .85rem;
    margin-bottom: .7rem;
}

.prices-step__title {
    font-size: .95rem;
    margin-bottom: .45rem;
}

.prices-step__text {
    font-size: .86rem;
    color: var(--color-gray-mid);
    line-height: 1.7;
}

/* Prices page: tighter vertical rhythm + stronger contrast */
.page-template-page-prices .section {
    padding: clamp(2.1rem, 4vw, 3.1rem) 0;
}

.page-template-page-prices .section-header {
    margin-bottom: 1.4rem;
}

.page-template-page-prices .section-subtitle {
    margin: 0 auto 1rem;
    color: #4f5865;
}

.page-template-page-prices .pricing-card {
    border-width: 1.5px;
    border-color: rgba(0,0,0,.28);
    box-shadow: 0 10px 26px rgba(0,0,0,.09);
}

.page-template-page-prices .pricing-card__unit,
.page-template-page-prices .prices-trust__label,
.page-template-page-prices .prices-factor__text,
.page-template-page-prices .prices-step__text,
.page-template-page-prices .prices-note {
    color: #4f5865;
}

.page-template-page-prices .price-table {
    margin-top: 1.1rem;
    border: 1px solid rgba(0,0,0,.12);
}

.page-template-page-prices .price-table th {
    background: #171a1f;
}

.page-template-page-prices .price-table td {
    border-bottom-color: rgba(0,0,0,.12);
}

.page-template-page-prices .prices-trust {
    margin-top: 1.15rem;
}

.page-template-page-prices .prices-trust__item {
    border-width: 1.5px;
    border-color: rgba(0,0,0,.28);
}

/* Prices page dark block (factors + price table) like home hero style */
.page-template-page-prices .prices-dark-unified {
    position: relative;
    background: #161616;
    overflow: hidden;
}

.page-template-page-prices .prices-dark-unified::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top right, rgba(253,195,59,.055) 0%, transparent 68%),
        linear-gradient(105deg, rgba(20,20,20,.92) 0%, rgba(20,20,20,.78) 45%, rgba(20,20,20,.35) 100%);
    pointer-events: none;
}

.page-template-page-prices .prices-dark-unified::after {
    content: '';
    position: absolute;
    left: -12px;
    bottom: -12px;
    width: clamp(170px, 24vw, 300px);
    height: clamp(170px, 24vw, 300px);
    background-image: url('../images/hero-logo.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left bottom;
    opacity: .16;
    pointer-events: none;
}

.page-template-page-prices .prices-dark-unified .container {
    position: relative;
    z-index: 1;
}

.page-template-page-prices .prices-dark-unified .section-title,
.page-template-page-prices .prices-dark-unified .prices-factor__title {
    color: var(--color-white);
}

.page-template-page-prices .prices-dark-unified .section-subtitle,
.page-template-page-prices .prices-dark-unified .prices-factor__text,
.page-template-page-prices .prices-dark-unified .prices-note {
    color: rgba(255,255,255,.72);
}

.page-template-page-prices .prices-dark-unified .prices-factor {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, .95) 0%,
        rgba(30, 30, 30, .9) 40%,
        rgba(45, 42, 35, .92) 100%
    );
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.page-template-page-prices .prices-dark-unified .prices-factor::before {
    content: '';
    position: absolute;
    top: -15%;
    right: 12%;
    width: 2px;
    height: 130%;
    background: linear-gradient(180deg, transparent, var(--color-gold) 40%, var(--color-gold) 60%, transparent);
    opacity: .12;
    transform: rotate(15deg);
    z-index: 1;
    pointer-events: none;
}

.page-template-page-prices .prices-dark-unified .prices-factor__title,
.page-template-page-prices .prices-dark-unified .prices-factor__text {
    position: relative;
    z-index: 2;
}

.page-template-page-prices .prices-dark-unified .price-table {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, .95) 0%,
        rgba(30, 30, 30, .9) 40%,
        rgba(45, 42, 35, .92) 100%
    );
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 14px 34px rgba(0,0,0,.35);
}

.page-template-page-prices .prices-dark-unified .price-table::before {
    content: '';
    position: absolute;
    top: -18%;
    right: 11%;
    width: 2px;
    height: 136%;
    background: linear-gradient(180deg, transparent, var(--color-gold) 40%, var(--color-gold) 60%, transparent);
    opacity: .1;
    transform: rotate(15deg);
    pointer-events: none;
}

.page-template-page-prices .prices-dark-unified .price-table th {
    background: #12151a;
    color: #f8f8f8;
}

.page-template-page-prices .prices-dark-unified .price-table td {
    color: #e7e9ee;
    border-bottom-color: rgba(255,255,255,.12);
    background: transparent;
}

.page-template-page-prices .prices-dark-unified .price-table tr:nth-child(even) td {
    background: rgba(255,255,255,.03);
}

.page-template-page-prices .prices-dark-unified .price-table td:last-child {
    color: #ffd15f;
}

/* --- Contact ---------------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: stretch; }

.contact__socials-title {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.contact__socials {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.contact__form-title { margin-bottom: 1.5rem; }

.contact__info-item {
    display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--color-gray-light);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,.05);
    transition: border-color var(--transition-fast);
}

.contact__info-item:hover { border-color: rgba(253,195,59,.3); }

.contact__info-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-gold);
    color: var(--color-dark);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(253,195,59,.25);
}

.contact__info-label { font-size: .75rem; color: var(--color-gray-mid); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .15rem; }
.contact__info-value { font-weight: 500; font-size: .95rem; }
.contact__info-value a:hover { color: var(--color-gold); }

.contact__map { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16/9; margin-top: 2rem; box-shadow: var(--shadow-sm); }
.contact__map iframe { width: 100%; height: 100%; border: none; display: block; }

/* Contacts page: stronger contrast and clearer form hierarchy */
.page-template-page-contacts .section--gray {
    background: #ffffff;
}

.contact__grid > div:first-child,
.contact__grid > div:last-child {
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,.12);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact__info-item {
    background: #f7f8fa;
    border: 1px solid rgba(0,0,0,.14);
}

.contact__info-item:hover {
    border-color: rgba(253,195,59,.55);
    box-shadow: 0 6px 16px rgba(0,0,0,.07);
}

.contact__info-label {
    color: #4a5260;
}

.contact__info-value,
.contact__info-value a {
    color: #0f141a;
}

.contact__info-value--legal {
    line-height: 1.65;
}

.contact__form-title {
    color: #0f141a;
}

.contact__grid .form-group label {
    color: #1c232c;
    font-weight: 600;
}

.contact__grid .form-input {
    background: #ffffff;
    border: 1.5px solid rgba(0,0,0,.3);
    color: #0f141a;
}

.contact__grid .form-input::placeholder {
    color: #5c6472;
}

.contact__grid .form-input:focus {
    border-color: #c8961a;
    box-shadow: 0 0 0 3px rgba(253,195,59,.22);
}

.contact__grid .form-privacy {
    color: #525a65;
}

.contact__grid .form-privacy a {
    color: #2a2f36;
    text-decoration: underline;
}

/* --- Blog ------------------------------------------------------------- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.post-card__thumb { aspect-ratio: 16/10; overflow: hidden; }
.post-card__thumb img { width:100%; height:100%; object-fit:cover; transition: transform .75s cubic-bezier(0.4, 0, 0.2, 1); }
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
.post-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(253,195,59,.22) 0%, transparent 55%),
        linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
}

.post-card__body {
    padding: 1.5rem;
    background: var(--color-white);
    display: block;
}
.post-card__title { margin-bottom: .5rem; font-size: 1rem; }
.post-card__title a:hover { color: var(--color-gold); }
.post-card__excerpt { font-size: .875rem; color: var(--color-gray-mid); margin-bottom: 1rem; }
.post-card__title a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: .55rem;
}

.post-card__date {
    font-size: .8rem;
    color: var(--color-gray-mid);
    white-space: nowrap;
}

/* "Read" buttons in blog cards: always in active/hover visual state */
.posts-grid .post-card .btn--outline.btn--sm {
    background: var(--color-gold);
    color: var(--color-dark);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-gold);
}

.posts-grid .post-card .btn--outline.btn--sm:hover {
    background: var(--color-gold);
    color: var(--color-dark);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-gold);
    transform: none;
}

/* Blog archive (/blog/): larger cards, 2 per row on desktop */
@media (min-width: 901px) {
    .page-template-page-blog .posts-grid,
    .blog .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }

    .page-template-page-blog .post-card__thumb,
    .blog .post-card__thumb {
        aspect-ratio: 16 / 9;
    }

    .page-template-page-blog .post-card__body,
    .blog .post-card__body {
        padding: 1.7rem;
    }

    .page-template-page-blog .post-card__title,
    .blog .post-card__title {
        font-size: 1.18rem;
        margin-bottom: .7rem;
    }

    .page-template-page-blog .post-card__excerpt,
    .blog .post-card__excerpt {
        font-size: .96rem;
    }
}

.post-single__hero { max-width: 860px; margin: 0 auto 2.5rem; text-align: left; }
.post-single__breadcrumbs { margin-bottom: 1rem; }
.post-single__title {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    line-height: 1.15;
    margin-bottom: .9rem;
}
.post-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    font-size: .82rem;
    color: var(--color-gray-mid);
    margin-bottom: 1.25rem;
}
.post-single__meta-item {
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.05);
}
.post-single__cover {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.post-single__cover img {
    display: block;
    width: 100%;
    height: auto;
}

/* Single post nav buttons: always in active black-gold style */
.post-single__nav .btn--outline.btn--sm {
    background: var(--color-gold);
    color: var(--color-dark);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-gold);
}

.post-single__nav .btn--outline.btn--sm:hover {
    background: var(--color-gold);
    color: var(--color-dark);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-gold);
    transform: none;
}

.post-single__content { max-width: 780px; margin: 0 auto; font-size: 1.02rem; }
.post-single__content p   { margin-bottom: 1.25rem; line-height: 1.8; }
.post-single__content h2,.post-single__content h3 { margin: 2.5rem 0 1rem; }
.post-single__content img { border-radius: var(--radius-lg); margin: 2rem 0; }
.post-single__content ul,.post-single__content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.post-single__content ul { list-style: disc; }
.post-single__content ol { list-style: decimal; }
.post-single__content li { margin-bottom: .5rem; }

/* Default page content (used by page.php, incl. privacy page) */
.page-single {
    max-width: 980px;
    margin: 0 auto;
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.2rem, 2.5vw, 2rem);
}

.page-single__content {
    max-width: none;
    font-size: 1rem;
    line-height: 1.8;
}

.page-single__content p {
    margin-bottom: 1rem;
}

/* Unified service page template */
.service-unified-hero .page-header__subtitle {
    margin-bottom: .6rem;
}

.service-unified-hero__snippet {
    max-width: 860px;
    margin: 0;
    color: rgba(255,255,255,.85);
    font-size: 1.02rem;
    line-height: 1.7;
}

.service-unified.service-unified__seo {
    max-width: 980px;
    border: 1px solid rgba(13, 18, 28, .08);
    background:
        linear-gradient(135deg, rgba(253,195,59,.08) 0%, rgba(253,195,59,0) 42%),
        #fff;
    box-shadow: 0 14px 32px rgba(8, 12, 20, .08);
}

.service-unified .service-unified__block {
    position: relative;
}

.service-unified .service-unified__block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 4px;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--color-gold) 0%, rgba(253,195,59,.18) 100%);
}

.service-unified__block-head {
    margin-bottom: .5rem;
}

.service-unified__block-kicker {
    display: inline-flex;
    align-items: center;
    padding: .3rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #6c4a00;
    background: rgba(253,195,59,.24);
    border: 1px solid rgba(253,195,59,.5);
}

.service-unified .service-unified__block h2 {
    margin-bottom: .85rem;
}

.service-unified-why .section-header {
    align-items: flex-start;
    text-align: left;
}

.service-unified-why .section-title::after {
    margin-left: 0;
    margin-right: 0;
}

.service-unified-reasons-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.service-unified-reason-card {
    position: relative;
    padding: 1.5rem 1.35rem 1.3rem;
    border: 1px solid rgba(13,18,28,.1);
    background:
        linear-gradient(160deg, rgba(253,195,59,.05) 0%, rgba(253,195,59,0) 50%),
        #fff;
}

.service-unified-reason-card::before {
    width: 100%;
    height: 2px;
    opacity: .7;
}

.service-unified-reason-card__num {
    position: absolute;
    top: .85rem;
    right: .9rem;
    font-family: var(--font-heading);
    font-size: .85rem;
    line-height: 1;
    color: rgba(20, 27, 39, .42);
    background: rgba(253,195,59,.28);
    border: 1px solid rgba(253,195,59,.5);
    border-radius: 999px;
    padding: .28rem .45rem;
}

.service-unified-reason-card .advantage-card__title {
    margin-bottom: .45rem;
    padding-right: 2.7rem;
}

.service-unified-reason-card .advantage-card__text {
    color: #445064;
}

.service-unified--benefits,
.service-unified--client {
    border: 1px solid rgba(253,195,59,.24) !important;
    background:
        radial-gradient(circle at 14% 12%, rgba(253,195,59,.04) 0%, rgba(253,195,59,0) 36%),
        linear-gradient(120deg, rgba(253,195,59,.025) 0%, rgba(253,195,59,0) 42%),
        #161616 !important;
    box-shadow: 0 16px 34px rgba(0,0,0,.34);
    color: var(--color-white);
}

.service-unified--benefits .service-unified__block::before,
.service-unified--client .service-unified__block::before {
    background: linear-gradient(180deg, rgba(253,195,59,.98) 0%, rgba(253,195,59,.28) 100%);
}

.service-unified--benefits h2,
.service-unified--client h2 {
    color: var(--color-white) !important;
}

.service-unified--benefits .service-unified__block-kicker,
.service-unified--client .service-unified__block-kicker {
    color: #251c05;
    background: rgba(253,195,59,.95);
    border-color: rgba(253,195,59,.98);
}

.service-unified--benefits .page-single__content,
.service-unified--client .page-single__content,
.service-unified--benefits .page-single__content p,
.service-unified--client .page-single__content p,
.service-unified--benefits .page-single__content li,
.service-unified--client .page-single__content li {
    color: rgba(255,255,255,.9) !important;
}

.service-unified-why {
    position: relative;
    background:
        radial-gradient(circle at 76% 10%, rgba(253,195,59,.06) 0%, rgba(253,195,59,0) 35%),
        #161616;
    color: var(--color-white);
    padding-top: clamp(6rem, 10vw, 8.5rem);
    padding-bottom: clamp(6.5rem, 11vw, 9rem);
}

@media (min-width: 1024px) {
    .service-unified-why {
        min-height: 100vh;
        padding-top: clamp(7rem, 10vw, 9rem);
        padding-bottom: clamp(7rem, 10vw, 9rem);
    }
}

.service-unified-why .section-title {
    color: var(--color-white);
}

.service-unified-why .section-subtitle {
    color: rgba(255,255,255,.7);
}

.service-unified-why .service-unified--client {
    margin-top: clamp(2rem, 4vw, 3rem);
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.service-unified-reason-card {
    border: 1px solid rgba(253,195,59,.2);
    background:
        linear-gradient(165deg, rgba(253,195,59,.035) 0%, rgba(253,195,59,0) 46%),
        rgba(255,255,255,.03);
    box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

.service-unified-reason-card .advantage-card__title {
    color: var(--color-white);
}

.service-unified-reason-card .advantage-card__text {
    color: rgba(255,255,255,.82);
}

.service-unified-reason-card__num {
    color: #1c1400;
    background: rgba(253,195,59,.95);
    border-color: rgba(253,195,59,.98);
}

@media (max-width: 767px) {
    .service-unified .service-unified__block::before {
        left: -.6rem;
        width: 3px;
    }

    .service-unified-reasons-grid {
        grid-template-columns: 1fr;
    }
}

.post-single__footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-light);
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}
.post-single__tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.post-single__tag {
    display: inline-flex;
    align-items: center;
    padding: .4rem .8rem;
    border-radius: 999px;
    background: rgba(253,195,59,.12);
    color: var(--color-dark);
    border: 1px solid rgba(253,195,59,.35);
    font-size: .8rem;
}
.post-single__tag:hover { background: rgba(253,195,59,.2); }
.post-single__nav { display: flex; justify-content: space-between; gap: 1rem; }

/* --- Pagination ------------------------------------------------------- */
.pagination .nav-links { display: flex; justify-content: center; gap: .4rem; margin-top: 3.5rem; flex-wrap: wrap; }

.pagination .page-numbers {
    display: flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 .5rem;
    border-radius: var(--radius);
    font-size: .875rem; font-weight: 500;
    border: 1.5px solid rgba(0,0,0,.1);
    transition: all var(--transition-fast);
}

.pagination .page-numbers:hover, .pagination .page-numbers.current {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-dark);
}

/* --- 404 -------------------------------------------------------------- */
.error-hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-dark);
}

.error-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 28% 65% at left 38%, rgba(253,195,59,.045) 0%, transparent 70%),
        radial-gradient(ellipse 90% 80% at 50% 50%, transparent 35%, rgba(0,0,0,.4) 100%),
        linear-gradient(105deg, rgba(20,20,20,.92) 0%, rgba(20,20,20,.78) 45%, rgba(20,20,20,.35) 100%);
    pointer-events: none;
}

.error-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at top right, rgba(253,195,59,.08) 0%, transparent 70%);
    pointer-events: none;
}

.error-hero__logo-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: clamp(140px, 18vw, 280px);
    height: auto;
    opacity: .12;
    z-index: 0;
    pointer-events: none;
}

.error-hero__container {
    position: relative;
    z-index: 1;
}

.error-hero__content {
    max-width: 760px;
}

.error-hero__code {
    font-family: var(--font-heading);
    font-size: clamp(4.8rem, 12vw, 9rem);
    color: var(--color-gold);
    line-height: .9;
    margin-bottom: .65rem;
}

.error-hero__title {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.error-hero__text {
    max-width: 620px;
    color: rgba(255,255,255,.72);
    margin-bottom: 2rem;
    line-height: 1.75;
}

.error-hero__actions {
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .error-hero {
        min-height: 100dvh;
    }

    .error-hero__content {
        text-align: center;
    }

    .error-hero__text {
        margin-left: auto;
        margin-right: auto;
    }

    .error-hero__actions {
        justify-content: center;
    }
}

/* 404 layout: no white gap below footer */
html:has(body.error404),
html:has(body .error-hero) {
    background: var(--color-dark);
}

body.error404,
body:has(.error-hero) {
    background: var(--color-dark) !important;
}

body.error404 .site-main,
body:has(.error-hero) .site-main {
    flex: 0 0 auto;
}

/* --- Lightbox --------------------------------------------------------- */
.lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.95);
    z-index: 2000; align-items: center; justify-content: center; padding: 2rem;
}

.lightbox.active { display: flex; }

.lightbox__img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius-lg); }

.lightbox__close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-white); font-size: 1.4rem;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
}

.lightbox__close:hover { background: var(--color-gold); color: var(--color-dark); }

.lightbox__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
    color: var(--color-white); border-radius: 50%; font-size: 1.3rem;
}

.lightbox__nav:hover { background: var(--color-gold); color: var(--color-dark); }
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,.7);
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
    gap: 3rem;
    padding-bottom: 3rem;
    position: relative;
}

.site-footer__logo { display: inline-block; margin-bottom: 1.1rem; }
.site-footer__logo img { height: 42px; width: auto; }

.site-footer__desc { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.5); max-width: 280px; }

.site-footer__heading {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: .9rem;
    letter-spacing: .04em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.site-footer__links { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.site-footer__links li { margin-bottom: .55rem; }

.site-footer__links a {
    font-size: .875rem;
    color: rgba(255,255,255,.5);
    transition: color var(--transition-fast);
    display: flex; align-items: center; gap: .4rem;
}

.site-footer__links a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width .4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.site-footer__links a:hover { color: var(--color-gold); }
.site-footer__links a:hover::before { width: 12px; }

.site-footer__contacts li {
    display: flex; align-items: flex-start; gap: .65rem;
    margin-bottom: .9rem; font-size: .875rem;
    color: rgba(255,255,255,.55);
}

.site-footer__contacts .icon { color: var(--color-gold); flex-shrink: 0; margin-top: .1rem; }
.site-footer__contacts a:hover { color: var(--color-gold); }

.site-footer__socials { display: flex; gap: .55rem; margin-top: 1.5rem; }

.site-footer__social-link {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    color: rgba(255,255,255,.6);
    transition: all var(--transition-fast);
}

.site-footer__social-link:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-dark);
    transform: translateY(-2px);
}

.site-footer__bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: .8rem;
    color: rgba(255,255,255,.35);
    position: relative;
}

.site-footer__bottom a { color: rgba(255,255,255,.35); }
.site-footer__bottom a:hover { color: var(--color-gold); }

.site-footer__horse {
    position: absolute;
    bottom: -10%;
    right: -2%;
    width: 35%;
    height: 90%;
    opacity: .025;
    background-image: url('../images/horse-silhouette.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    pointer-events: none;
}

/* =====================================================================
   SCROLL ANIMATION
   ===================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s cubic-bezier(0.4, 0, 0.2, 1), transform .8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }

/* Staggered delay for grid children */
.advantages__grid .animate-on-scroll:nth-child(2)  { transition-delay: .1s; }
.advantages__grid .animate-on-scroll:nth-child(3)  { transition-delay: .2s; }
.advantages__grid .animate-on-scroll:nth-child(4)  { transition-delay: .3s; }

.services__grid .animate-on-scroll:nth-child(2)    { transition-delay: .08s; }
.services__grid .animate-on-scroll:nth-child(3)    { transition-delay: .16s; }
.services__grid .animate-on-scroll:nth-child(4)    { transition-delay: .24s; }
.services-home__grid .animate-on-scroll:nth-child(2) { transition-delay: .05s; }
.services-home__grid .animate-on-scroll:nth-child(3) { transition-delay: .1s; }
.services-home__grid .animate-on-scroll:nth-child(4) { transition-delay: .15s; }
.services-home__grid .animate-on-scroll:nth-child(5) { transition-delay: .2s; }
.services-home__grid .animate-on-scroll:nth-child(6) { transition-delay: .25s; }

.portfolio__grid .animate-on-scroll:nth-child(2)   { transition-delay: .08s; }
.portfolio__grid .animate-on-scroll:nth-child(3)   { transition-delay: .16s; }

/* =====================================================================
   UTILITIES
   ===================================================================== */
.text-center  { text-align: center; }
.text-gold    { color: var(--color-gold); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2.5rem; }

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

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* Tablet landscape */
/* Компактная шапка 900–1100px */
@media (max-width: 1100px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

    .site-nav__list > li > a { padding: .6rem .85rem; font-size: .9rem; }
    .site-header__phone { font-size: .82rem; }
    .site-header__actions > a + a { padding-left: 1rem; }
}

/* Tablet portrait */
@media (max-width: 900px) {
    /* Раскладка: лого слева, иконки + бургер вместе справа */
    .site-header__inner {
        justify-content: flex-start;
        gap: 0;
    }
    .site-header__actions {
        margin-left: auto; /* толкает иконки вправо */
        gap: 0.5rem; /* одинаковое расстояние между телефоном, почтой и бургером */
        align-items: stretch; /* все элементы одной высоты */
    }
    /* Иконки без текста, единая высота 44px */
    .site-header__phone span { display: none; }
    .site-header__phone {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
    }
    .site-header__phone .icon,
    .site-header__phone svg { width: 22px; height: 22px; color: var(--color-gold); }
    /* Разделитель убираем */
    .site-header__actions > a + a { padding-left: 0; border-left: none; }
    /* Бургер той же высоты, чуть больший отступ от иконки почты */
    .hamburger {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        margin-left: 0.5rem;
    }

    .hero { min-height: calc(100dvh + 63px); height: calc(100dvh + 63px); padding: 0; }
    .hero__content { padding-bottom: 5rem; }
    .hero__container { justify-content: flex-start; }
    .hero__content   { width: min(580px, 75%); }

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

    .contact__grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* Tablet: блок преимуществ в 1 колонку для удобства чтения */
@media (max-width: 720px) {
    #advantages .advantages__grid { grid-template-columns: 1fr; }
}

/* Услуги на главной: 1 колонка на узких экранах */
@media (max-width: 700px) {
    .services-home__grid { grid-template-columns: 1fr; }
    .services-home__img-wrap { height: 200px; }
}

@media (max-width: 900px) {
    .yandex-widget-mock__head {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .yandex-widget-mock__rating { text-align: left; }
    .yandex-widget-mock__list { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 680px) {
    :root { --header-height: 68px; }

    .hero { min-height: calc(100dvh + 63px); height: calc(100dvh + 63px); }

    /* На мобиле контент занимает всю ширину */
    .hero__container { justify-content: flex-start; }
    .hero__content   { width: 100%; }

    /* Логотип поменьше и чуть прозрачнее чтобы не мешал тексту */
    .hero__logo-bg { width: clamp(160px, 55vw, 260px); opacity: .1; }

    .hero__title { font-size: clamp(1.75rem, 7vw, 2.4rem); }

    .hero__actions .btn { width: 100%; justify-content: center; }

    .hero__stats-inner { flex-wrap: wrap; }
    .hero__stat { min-width: 50%; border-bottom: 1px solid rgba(255,255,255,.06); }
    .hero__stat:nth-child(2n) { border-right: none; }
    /* На мобиле 2 строки статов — поднимаем логотип выше */
    .hero__logo-bg { bottom: 170px; }

    .advantages__grid  { grid-template-columns: 1fr; }
    #advantages .advantages__grid { gap: 1.25rem; }
    #advantages .advantage-card   { padding: 2rem 1.5rem; }
    .services__grid    { grid-template-columns: 1fr; }
    .portfolio__grid   { grid-template-columns: 1fr; }
    .reviews__slider   { grid-template-columns: 1fr; }
    .guarantees__grid  { grid-template-columns: 1fr; }
    .steps__grid       { grid-template-columns: 1fr 1fr; }
    .pricing__grid     { grid-template-columns: 1fr; }
    .prices-trust      { grid-template-columns: 1fr 1fr; }
    .prices-factors    { grid-template-columns: 1fr; }
    .prices-steps      { grid-template-columns: 1fr 1fr; }
    .posts-grid        { grid-template-columns: 1fr; }
    .yandex-widget-mock__list { grid-template-columns: 1fr; }
    .team__grid        { grid-template-columns: 1fr 1fr; }

    .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .site-footer__desc { max-width: 100%; }

    .site-footer__bottom { flex-direction: column; gap: .5rem; text-align: center; }

    .quiz { padding: 1.5rem; border-radius: var(--radius-lg); }
    .quiz__options { grid-template-columns: 1fr 1fr; }

    .about-numbers { grid-template-columns: 1fr 1fr; }
    .about-principles { grid-template-columns: 1fr; }

    .section-title::after { margin: .65rem auto 0; }

    .page-header { padding: 5rem 0; }
    .page-header::after {
        width: clamp(120px, 32vw, 200px);
        height: clamp(120px, 32vw, 200px);
        left: -5px;
        bottom: -10px;
        background-position: left bottom;
        opacity: .1;
    }
}

@media (max-width: 400px) {
    .steps__grid { grid-template-columns: 1fr; }
    .prices-trust { grid-template-columns: 1fr; }
    .prices-steps { grid-template-columns: 1fr; }
    .team__grid  { grid-template-columns: 1fr; }
    .quiz__options { grid-template-columns: 1fr; }
    .hero__stat { min-width: 100%; }
    #advantages .advantages__grid { gap: 1rem; }
    #advantages .advantage-card   { padding: 1.5rem 1.25rem; border-radius: 6px; }
    #advantages .advantage-card__icon { width: 60px; height: 60px; margin-bottom: 1.25rem; }
    #advantages .advantage-card__icon svg { width: 28px; height: 28px; }
}