/* ==========================================================================
   AlexsWeb — style.css
   1. :root, сброс, типографика, контейнер, кнопки, формы
   2. шапка, навигация, бургер, мобильное меню, футер
   3. стили секций
   4. медиазапросы, focus-visible, prefers-reduced-motion, печать
   ========================================================================== */

/* Атрибут hidden обязан скрывать: правило класса с display перебивает
   браузерное [hidden]{display:none}, и скрытый блок остаётся видимым. */
[hidden] { display: none !important; }

:root {
    /* Палитра — снята с референса Halo Lab (см. crop_*.png в скретчпаде) */
    --navy-950: #02021E;      /* фон хиро, футера, тёмных секций */
    --navy-800: #071E4D;      /* градиентный сосед, подложки карточек статистики */
    --cream-100: #FFE8B4;     /* карточка-стикер */
    --cream-50: #FFF6E2;      /* альтернативные светлые секции */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --indigo: #3719CA;        /* основной CTA-акцент */
    --indigo-dark: #2C13A3;   /* hover/active для индиго */
    --yellow: #FDC448;        /* вторичный акцент, кнопка на тёмном */
    --yellow-dark: #E8AC2C;
    --orange: #FE835D;        /* акцент градиента, focus-ring */
    --ink: #0B0B1F;           /* текст на светлом */
    --paper: #F5F5FA;         /* текст на тёмном */
    --muted-on-dark: #A9AFC8; /* второстепенный текст на тёмном */
    --muted-on-light: #5B5F78;

    --font-display: 'Unbounded', 'Arial Narrow', sans-serif;
    --font-body: 'Golos Text', 'Segoe UI', Arial, sans-serif;
    --font-accent: 'Caveat', cursive;

    --container-max: 1280px;
    --pad-inline: 16px;
    --radius-lg: 24px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --radius-pill: 999px;

    --shadow-card: 0 12px 32px rgba(2, 2, 30, .08);
    --shadow-card-lg: 0 20px 48px rgba(2, 2, 30, .16);

    --ease: cubic-bezier(.4, 0, .2, 1);
    --dur: .25s;

    color-scheme: light;
}

@media (min-width: 900px) {
    :root { --pad-inline: 32px; }
}

@media (min-width: 1280px) {
    :root { --pad-inline: 64px; }
}

@media (min-width: 1440px) {
    :root { --pad-inline: 80px; }
}

/* ---------- сброс ---------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--off-white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, p, figure { margin: 0; }

/* ---------- типографика ---------- */

h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
    overflow-wrap: break-word;
}

h1, .h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 2.6rem); font-weight: 800; }
h2, .h2 { font-size: clamp(1.7rem, 1.35rem + 1.6vw, 2.6rem); }
h3, .h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
h4, .h4 { font-size: 1.05rem; }

p { color: var(--muted-on-light); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--indigo);
}

.section--dark .eyebrow,
.section--navy .eyebrow,
.cta-consult .eyebrow { color: var(--yellow); }

.section-head {
    max-width: 720px;
    margin-bottom: 40px;
}

.section-head__title { margin-top: 12px; }

.section-head__lead {
    margin-top: 16px;
    font-size: 1.05rem;
}

.section--center .section-head {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ---------- контейнер и bleed-секции ---------- */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--pad-inline);
}

.section {
    padding-block: clamp(48px, 6vw, 96px);
}

.section--navy, .section--dark {
    background: var(--navy-950);
    color: var(--paper);
}

.section--navy p, .section--dark p { color: var(--muted-on-dark); }

.section--cream { background: var(--cream-50); }

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

.section--tight { padding-block: clamp(32px, 4vw, 56px); }

/* ---------- кнопки ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 32px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .95rem;
    text-align: center;
    white-space: nowrap;
    border: 1.5px solid transparent;
    transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), filter var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    cursor: pointer;
}

.btn--indigo {
    background: var(--indigo);
    color: var(--white);
}
.btn--indigo:hover { background: var(--indigo-dark); transform: translateY(-2px); }
.btn--indigo:active { background: #24108A; transform: translateY(0); }

.btn--yellow {
    background: var(--yellow);
    color: var(--navy-950);
}
.btn--yellow:hover { background: #FFD87C; transform: translateY(-2px); }
.btn--yellow:active { background: var(--yellow-dark); transform: translateY(0); }

.btn--ghost-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .5);
    color: var(--paper);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }

.btn--ghost-dark {
    background: transparent;
    border-color: var(--indigo);
    color: var(--indigo);
}
.btn--ghost-dark:hover { background: rgba(55, 25, 202, .08); transform: translateY(-2px); }

.btn--sm { padding: 12px 22px; font-size: .85rem; }
.btn--block { width: 100%; }

.btn svg { flex: 0 0 auto; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--indigo);
    transition: gap var(--dur) var(--ease);
}
.link-arrow:hover { gap: 12px; }
.section--navy .link-arrow, .section--dark .link-arrow { color: var(--yellow); }

/* ---------- формы ---------- */

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.field__label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--muted-on-light);
}

.section--navy .field__label, .section--dark .field__label { color: var(--muted-on-dark); }

.field__control {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(11, 11, 31, .14);
    background: var(--white);
    color: var(--ink);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.section--navy .field__control, .section--dark .field__control {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .18);
    color: var(--paper);
}

.field__control::placeholder { color: var(--muted-on-light); opacity: .7; }
.section--navy .field__control::placeholder, .section--dark .field__control::placeholder { color: var(--muted-on-dark); }

.field__control:hover { border-color: rgba(11, 11, 31, .28); }

.field__control:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 4px rgba(55, 25, 202, .14);
}

textarea.field__control { resize: vertical; min-height: 110px; }

.form-note {
    font-size: .82rem;
    color: var(--muted-on-light);
}

.section--navy .form-note, .section--dark .form-note { color: var(--muted-on-dark); }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.form-status {
    font-size: .9rem;
    font-weight: 600;
    color: var(--indigo);
}
.form-status[data-state="error"] { color: var(--orange); }

/* ==========================================================================
   2. ШАПКА, НАВИГАЦИЯ, БУРГЕР, МОБИЛЬНОЕ МЕНЮ, ФУТЕР
   ========================================================================== */

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1000;
    background: var(--yellow);
    color: var(--navy-950);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: 72px;
    background: var(--navy-950);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--paper);
}

.site-logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--indigo), var(--orange));
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
}

.site-logo__text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.site-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav__link {
    display: inline-block;
    padding: 10px 14px;
    white-space: nowrap;
    color: var(--paper);
    font-weight: 500;
    font-size: .95rem;
    border-bottom: 2px solid transparent;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
    color: var(--white);
    border-color: var(--indigo);
}

.site-nav__link.is-active {
    color: var(--white);
    border-color: var(--yellow);
}

.site-nav__mobile-extra { display: none; }

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

.site-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: var(--paper);
    font-weight: 600;
    font-size: .9rem;
    transition: color var(--dur) var(--ease);
}
.site-header__phone:hover { color: var(--yellow); }

.btn--pill { border-radius: var(--radius-pill); white-space: nowrap; }

.burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--paper);
    flex: 0 0 auto;
}
.burger:hover { background: rgba(255, 255, 255, .08); }
.burger[aria-expanded="true"] .icon--burger { display: none; }
.burger .icon--close { display: none; }
.burger[aria-expanded="true"] .icon--close { display: block; }

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(2, 2, 30, .6);
}

/* ---------- футер ---------- */

.site-footer {
    background: var(--navy-950);
    color: var(--paper);
    padding-top: clamp(48px, 6vw, 80px);
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-col--brand { display: flex; flex-direction: column; gap: 14px; }

.site-logo--footer { margin-bottom: 4px; }

.footer-col__tagline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--yellow);
}

.footer-col__text {
    color: var(--muted-on-dark);
    font-size: .92rem;
    max-width: 320px;
}

.footer-col__title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--paper);
    margin-bottom: 18px;
}

.footer-col__list { display: flex; flex-direction: column; gap: 12px; }

.footer-col__list a {
    color: var(--muted-on-dark);
    font-size: .95rem;
    transition: color var(--dur) var(--ease);
}
.footer-col__list a:hover { color: var(--yellow); }

.footer-col__list--contacts a,
.footer-col__static {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted-on-dark);
}
.footer-col__list--contacts a:hover { color: var(--yellow); }
.footer-col__list--contacts svg,
.footer-col__static svg { flex: 0 0 auto; margin-top: 2px; color: var(--yellow); }

.footer-col__messengers {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.messenger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: var(--paper);
    transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.messenger-btn:hover { background: var(--yellow); color: var(--navy-950); transform: translateY(-2px); }

.site-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-block: 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .85rem;
    color: var(--muted-on-dark);
}

@media (min-width: 640px) {
    .site-footer__bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }
    .site-footer__bottom p { margin-right: auto; }
}

.site-footer__bottom a { color: var(--muted-on-dark); transition: color var(--dur) var(--ease); }
.site-footer__bottom a:hover { color: var(--yellow); }

/* ==========================================================================
   3. СТИЛИ СЕКЦИЙ
   ========================================================================== */

/* ---------- хлебные крошки ---------- */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--muted-on-dark);
    margin-bottom: 20px;
}
.breadcrumbs a { color: var(--muted-on-dark); transition: color var(--dur) var(--ease); }
.breadcrumbs a:hover { color: var(--yellow); }
.breadcrumbs span[aria-current] { color: var(--paper); }

/* ---------- хиро (главная) ---------- */

.hero {
    position: relative;
    background: radial-gradient(ellipse 80% 60% at 70% 0%, rgba(55, 25, 202, .35), transparent 60%), var(--navy-950);
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    padding-block: clamp(56px, 8vw, 96px);
}

.hero__eyebrow { color: var(--yellow); }

.hero__title { margin-top: 16px; max-width: 16ch; color: var(--paper); }
.hero__title em { color: var(--yellow); font-style: normal; }

.hero__lead {
    margin-top: 20px;
    max-width: 46ch;
    font-size: 1.1rem;
    color: var(--muted-on-dark);
}

.hero__phone {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
}
.hero__phone svg { color: var(--yellow); }

.hero__actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero__art {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 260px;
}

.hero__art svg { width: 100%; max-width: 420px; height: auto; }

/* ---------- полоса доверия / отраслей ---------- */

.trust-strip {
    background: var(--navy-950);
    padding-block: 36px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.trust-strip__label {
    text-align: center;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted-on-dark);
    position: relative;
    margin-bottom: 32px;
}

.trust-strip__label::before,
.trust-strip__label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 160px);
    max-width: 320px;
    height: 1px;
    background: rgba(255, 255, 255, .14);
}
.trust-strip__label::before { left: 0; }
.trust-strip__label::after { right: 0; }

.trust-strip__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 48px;
}

.trust-strip__item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted-on-dark);
    font-size: .92rem;
    font-weight: 600;
}
.trust-strip__item svg { color: var(--yellow); }

/* ---------- карточки преимуществ ---------- */

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.advantage-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px 26px;
    box-shadow: var(--shadow-card);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.advantage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-lg); }

.advantage-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--cream-100);
    color: var(--indigo);
    margin-bottom: 18px;
}

.advantage-card__title { margin-bottom: 10px; font-size: 1.1rem; }
.advantage-card__text { font-size: .92rem; }

/* ---------- карточки услуг (тизер + полные) ---------- */

.service-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    color: var(--white);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-lg); }

.service-card--indigo { background: linear-gradient(160deg, #4B2AE0 0%, var(--indigo) 55%, var(--navy-800) 100%); }
.service-card--orange { background: linear-gradient(160deg, #FE9B7D 0%, #D8562F 38%, #8E3A22 100%); }
.service-card--yellow { background: linear-gradient(160deg, #FFDD8C 0%, var(--yellow) 55%, #C98A17 100%); color: var(--ink); }

.service-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .18);
    margin-bottom: auto;
}
.service-card--yellow .service-card__icon { background: rgba(11, 11, 31, .12); }

.service-card__title { margin-top: 20px; font-size: 1.3rem; }

.service-card__text {
    margin-top: 10px;
    font-size: .92rem;
    color: rgba(255, 255, 255, .82);
}
.service-card--yellow .service-card__text { color: rgba(11, 11, 31, .72); }

.service-card__footer {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.service-card__price { font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; }

/* ---------- этапы работы (степпер) ---------- */

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.step-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-direction: column;
}

.step-card__num {
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--yellow);
}
.section--white .step-card__num, .section--cream .step-card__num { color: var(--indigo); }

.step-card__title { margin-bottom: 8px; font-size: 1.1rem; }
.step-card__text { font-size: .92rem; }

/* ---------- портфолио ---------- */

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.filter-pill {
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: 1.5px solid rgba(11, 11, 31, .14);
    font-weight: 600;
    font-size: .88rem;
    color: var(--ink);
    background: var(--white);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.filter-pill:hover { border-color: var(--indigo); }
.filter-pill.is-active { background: var(--indigo); color: var(--white); border-color: var(--indigo); }

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.portfolio-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy-950);
    aspect-ratio: 4 / 3;
    display: block;
    cursor: pointer;
    border: 0;
    width: 100%;
    text-align: left;
    padding: 0;
}

.portfolio-card__mockup {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform .5s var(--ease);
}
.portfolio-card:hover .portfolio-card__mockup { transform: scale(1.04); }

.portfolio-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background: linear-gradient(180deg, rgba(2, 2, 30, 0) 8%, rgba(2, 2, 30, .5) 32%, rgba(2, 2, 30, .82) 58%, rgba(2, 2, 30, .94) 100%);
    color: var(--white);
}

.portfolio-card__type {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--yellow);
    font-weight: 700;
}

.portfolio-card__title { margin-top: 8px; font-size: 1.15rem; }
.portfolio-card__text {
    margin-top: 8px;
    font-size: .85rem;
    color: rgba(255, 255, 255, .8);
    max-width: 34ch;
}

/* ---------- отзывы ---------- */

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.review-card {
    background: var(--white);
    border-radius: 16px;
    padding: 26px 24px;
    box-shadow: var(--shadow-card);
}

.review-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.review-card__name { font-weight: 700; font-size: .98rem; }
.review-card__niche { font-size: .82rem; color: var(--muted-on-light); }

.review-card__stars { display: flex; gap: 3px; margin-bottom: 12px; color: var(--yellow); }
.review-card__stars svg { fill: var(--yellow); stroke: var(--yellow); }
.review-card__stars .is-empty { fill: none; stroke: rgba(11, 11, 31, .2); }

.review-card__text { font-style: italic; font-size: .95rem; color: var(--ink); }

.review-card--sticker {
    background: var(--cream-100);
    transform: rotate(-2deg);
    box-shadow: var(--shadow-card-lg);
    position: relative;
}
.review-card--sticker .review-card__text {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.35;
    color: var(--ink);
}
.review-card--sticker .review-card__quote-mark { color: rgba(11, 11, 31, .18); margin-bottom: 8px; }

/* ---------- статистика доверия ---------- */

.stats-section {
    background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-800) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
    text-align: center;
}

.stat-card__value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 1.6rem + 1.6vw, 3.2rem);
    color: var(--white);
    line-height: 1;
}
.stats-section.section--white .stat-card__value,
.stats-section.section--cream .stat-card__value { color: var(--indigo); }

.stat-card__label {
    margin-top: 10px;
    font-size: .88rem;
    color: var(--muted-on-dark);
}

/* ---------- FAQ (аккордеон) ---------- */

.faq-list {
    max-width: 820px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-weight: 700;
    font-size: 1rem;
    text-align: left;
    color: var(--ink);
}

.faq-item__icon {
    flex: 0 0 auto;
    display: inline-flex;
    transition: transform var(--dur) var(--ease);
    color: var(--indigo);
}
.faq-item.is-open .faq-item__icon { transform: rotate(180deg); }

.faq-item__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--dur) var(--ease);
}
.faq-item.is-open .faq-item__panel { grid-template-rows: 1fr; }

.faq-item__panel-inner { overflow: hidden; }

.faq-item__answer {
    padding: 0 24px 22px;
    font-size: .92rem;
    color: var(--muted-on-light);
}

/* ---------- CTA / консультация ---------- */

.cta-consult {
    background: var(--navy-950);
    border-radius: var(--radius-lg);
    padding: clamp(32px, 5vw, 56px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.cta-consult__title { color: var(--white); }
.cta-consult__text { margin-top: 12px; color: var(--muted-on-dark); max-width: 42ch; }

.cta-consult__actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cta-consult__form {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---------- цены / услуги (страница услуг) ---------- */

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.pricing-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pricing-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--cream-100);
    color: var(--indigo);
}

.pricing-card__price {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--indigo);
    text-align: right;
}
.pricing-card__days { font-size: .8rem; color: var(--muted-on-light); text-align: right; margin-top: 4px; }

.pricing-card__title { margin-bottom: 16px; }

.pricing-card__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

.pricing-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .92rem;
    color: var(--muted-on-light);
}
.pricing-card__list svg { flex: 0 0 auto; margin-top: 3px; color: var(--yellow); }

.pricing-card .btn { margin-top: auto; align-self: flex-start; }

.extra-list {
    max-width: 900px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
}

.extra-list__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 4px;
    border-bottom: 1px solid rgba(11, 11, 31, .1);
    font-size: .95rem;
}
.extra-list__row:last-child { border-bottom: 0; }
.extra-list__price { font-weight: 700; color: var(--indigo); white-space: nowrap; }

/* ---------- контакты ---------- */

.contacts-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contacts-info { display: flex; flex-direction: column; gap: 22px; }

.contacts-info__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.contacts-info__item svg { flex: 0 0 auto; color: var(--yellow); margin-top: 2px; }
.contacts-info__item strong { display: block; margin-bottom: 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-on-dark); }
.contacts-info__item a, .contacts-info__item span { color: var(--paper); font-size: 1rem; }
.contacts-info__item a:hover { color: var(--yellow); }

.contacts-info__messengers { display: flex; gap: 12px; margin-top: 4px; }

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 36px);
    box-shadow: var(--shadow-card-lg);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.map-block {
    margin-top: 48px;
}

.map-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.map-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-link {
    margin-top: 14px;
    display: inline-flex;
}

/* ---------- модальное окно портфолио ---------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 2, 30, .72);
}
.modal[hidden] { display: none; }

.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 36px);
    box-shadow: var(--shadow-card-lg);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--off-white);
    color: var(--ink);
    transition: background var(--dur) var(--ease);
}
.modal__close:hover { background: var(--cream-100); }

.modal__mockup {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.modal__title { margin-bottom: 10px; }
.modal__text { margin-bottom: 22px; }

/* ---------- 404 ---------- */

.error-page {
    text-align: center;
    padding-block: clamp(64px, 10vw, 120px);
}
.error-page__code {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(4rem, 3rem + 5vw, 8rem);
    color: var(--indigo);
    line-height: 1;
}
.error-page__text { max-width: 46ch; margin: 16px auto 28px; }

/* ==========================================================================
   4. МЕДИАЗАПРОСЫ, FOCUS-VISIBLE, PREFERS-REDUCED-MOTION, ПЕЧАТЬ
   ========================================================================== */

/* ---------- focus-visible (везде) ---------- */

a:focus-visible,
button:focus-visible,
.field__control:focus-visible,
.filter-pill:focus-visible,
.faq-item__question:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn:focus-visible { outline-offset: 3px; }
.messenger-btn:focus-visible, .burger:focus-visible { outline-offset: 2px; }

/* ---------- >= 480px: базовые улучшения сеток из 2 колонок ---------- */

@media (min-width: 480px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- >= 640px ---------- */

@media (min-width: 640px) {
    .hero__actions { flex-wrap: nowrap; }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- >= 900px: навигация становится горизонтальной, контейнер расширяется ---------- */

@media (min-width: 900px) {
    .site-nav {
        position: static;
        background: none;
        display: block;
        height: auto;
        padding: 0;
        overflow: visible;
    }

    .site-nav__list { flex-direction: row; }
    .site-nav__mobile-extra { display: none !important; }

    .burger { display: none; }
    .nav-overlay { display: none !important; }

    .site-header__phone { display: inline-flex; }

    .hero__inner { grid-template-columns: 1.1fr .9fr; gap: 48px; }

    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }

    .contacts-layout { grid-template-columns: 1fr 1fr; }

    .site-footer__top { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }

    .cta-consult { grid-template-columns: 1.1fr .9fr; align-items: center; }
}

/* ---------- 900-1139px: горизонтальное меню уже включилось, но места ещё мало ----------
   Телефону в шапке места нет — он остаётся в футере и на «Контактах»,
   а пункты меню чуть поджимаются, чтобы не наезжать на кнопку заявки. */

@media (min-width: 900px) and (max-width: 1139.98px) {
    .site-header__phone { display: none; }
    .site-nav__list { gap: 2px; }
    .site-nav__link { padding: 10px 10px; font-size: .9rem; }
}

/* ---------- < 900px: скрыть телефон в шапке первым, показать бургер ---------- */

@media (max-width: 899.98px) {
    .site-header__phone { display: none; }

    .btn--pill.site-header__cta { display: none; }

    .burger {
        display: inline-flex;
    }

    .site-header__actions .btn--yellow.btn--pill:not(.btn--sm) { display: none; }

    .site-nav {
        position: fixed;
        top: 72px;
        right: 0;
        bottom: 0;
        width: min(360px, 86vw);
        background: var(--navy-950);
        padding: 28px 24px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform var(--dur) var(--ease);
        z-index: 180;
    }

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

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .site-nav__link {
        padding: 14px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        border-left: 3px solid transparent;
        font-size: 1.05rem;
    }
    .site-nav__link.is-active, .site-nav__link:hover, .site-nav__link:focus-visible {
        border-left-color: var(--yellow);
        border-bottom-color: rgba(255, 255, 255, .08);
    }

    .site-nav__mobile-extra {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    .site-nav__phone {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--paper);
        font-weight: 700;
        font-size: 1.05rem;
    }

    .nav-overlay.is-open { display: block; }
}

/* ---------- >= 1000px ---------- */

@media (min-width: 1000px) {
    .cards-grid { grid-template-columns: repeat(4, 1fr); }
    .service-card-grid { grid-template-columns: repeat(4, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
    .reviews-grid { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- >= 1280px ---------- */

@media (min-width: 1280px) {
    .hero__inner { gap: 64px; }

    /* пять шагов в ряд помещаются только здесь; узкий gap и меньшая цифра
       убирают распор сетки по min-content */
    .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 20px; }
    .step-card { gap: 14px; }
    .step-card__num { font-size: 2rem; }
}

/* ---------- prefers-reduced-motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    html { scroll-behavior: auto; }
    .advantage-card:hover,
    .btn--indigo:hover, .btn--yellow:hover, .btn--ghost-light:hover, .btn--ghost-dark:hover,
    .service-card:hover, .messenger-btn:hover {
        transform: none;
    }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- появление при скролле (базовое состояние) ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- печать ---------- */

@media print {
    .site-header, .site-footer, .burger, .nav-overlay,
    .hero__art, .cta-consult, .messenger-btn, .skip-link {
        display: none !important;
    }
    body { background: #fff; color: #000; }
    .section { padding-block: 16px; }
    a { color: #000; text-decoration: underline; }
    .container { max-width: 100%; padding-inline: 0; }
}
