/* ============================================================
   Digital Studio — тёмная тема в духе Apple: минимум цвета,
   крупная спокойная типографика, хайрлайны вместо рамок.
   Каждая страница задаёт свой акцент через body[data-page].
   ============================================================ */

@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(../fonts/inter-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(../fonts/inter-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #000000;
    --bg-alt: #0a0a0c;
    --surface: #141416;
    --surface-2: #1d1d20;

    --hairline: rgba(255, 255, 255, 0.09);
    --hairline-strong: rgba(255, 255, 255, 0.18);

    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #6e6e73;

    --accent: #7c6bff;
    --accent-soft: rgba(124, 107, 255, 0.14);
    --danger: #ff6b6b;
    --success: #30d158;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-pill: 980px;

    --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --header-h: 56px;
    --section-y: clamp(72px, 9vw, 132px);
    --gutter: 22px;
    --container: 1140px;

    --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
    --dur: 0.32s;
}

/* акцент страницы */
body[data-page="services"] { --accent: #8b7bff; --accent-soft: rgba(139, 123, 255, 0.14); }
body[data-page="portfolio"] { --accent: #5aa2ff; --accent-soft: rgba(90, 162, 255, 0.14); }
body[data-page="about"] { --accent: #35d0b0; --accent-soft: rgba(53, 208, 176, 0.14); }
body[data-page="reviews"] { --accent: #ffb340; --accent-soft: rgba(255, 179, 64, 0.14); }
body[data-page="contacts"] { --accent: #7c6bff; --accent-soft: rgba(124, 107, 255, 0.14); }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--surface-2);
    border-radius: var(--radius-pill);
    transform: translateY(-200%);
    transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ===== Типографика ===== */
.eyebrow {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.eyebrow--accent { color: var(--accent); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.section__head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: none;
}

h1, h2, h3 { text-wrap: balance; }

.section__title {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.032em;
    margin-top: 12px;
}

.section__lead {
    margin-top: 16px;
    font-size: clamp(1rem, 1.4vw, 1.1875rem);
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 62ch;
}

.text-link { color: var(--accent); }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding-inline: 26px;
    border: 0;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
                border-color var(--dur) var(--ease), transform 0.14s var(--ease), opacity var(--dur) var(--ease);
}
.btn--primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 28px rgba(255, 255, 255, 0.08);
}
.btn--primary:hover { background: #e8e8ed; }
.btn--secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--hairline-strong);
}
.btn--secondary:hover { background: var(--surface); border-color: rgba(255, 255, 255, 0.3); }
.btn--accent { background: var(--accent); color: #0b0b0d; }
.btn--accent:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.975); }
.btn--compact { height: 36px; padding-inline: 16px; font-size: 0.875rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.btn__loader { display: none; }
.btn.is-loading .btn__text { display: none; }
.btn.is-loading .btn__loader { display: block; }

.spinner { width: 20px; height: 20px; animation: rotate 1s linear infinite; }
.spinner .path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: dash 1.4s ease-in-out infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-size: 1.0625rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: color var(--dur) var(--ease);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }

.icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { color: var(--text); border-color: var(--hairline-strong); background: var(--surface); }
.icon-btn[disabled] { opacity: 0.35; pointer-events: none; }

.chip {
    height: 38px;
    padding-inline: 18px;
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--hairline-strong); }
.chip.is-active { background: var(--text); border-color: var(--text); color: #000; }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== Шапка ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur) var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--hairline); }

.header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 28px;
}

.wordmark { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.wordmark span { color: var(--text-secondary); }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; gap: 26px; }
.nav__link {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color var(--dur) var(--ease);
}
.nav__link:hover, .nav__link[aria-current] { color: var(--text); }

.header__cta { margin-inline-start: 4px; }

.burger {
    display: none;
    width: 40px;
    height: 40px;
    margin-inline-start: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: none;
    border: 0;
    cursor: pointer;
}
.burger span {
    width: 18px;
    height: 1.5px;
    background: var(--text);
    transition: transform var(--dur) var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    padding-block: clamp(64px, 11vh, 128px) 0;
    overflow: hidden;
}
.hero__glow {
    position: absolute;
    inset: -30% -10% auto -10%;
    height: 900px;
    background:
        radial-gradient(38% 55% at 50% 30%, var(--accent-soft), transparent 70%),
        radial-gradient(30% 45% at 78% 12%, rgba(236, 72, 153, 0.06), transparent 70%);
    pointer-events: none;
}
.hero__inner { position: relative; max-width: 860px; }

.hero__title {
    margin-top: 20px;
    font-size: clamp(2.35rem, 6.2vw, 4.35rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.038em;
}
.hero__lead {
    margin-top: 22px;
    max-width: 60ch;
    font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
    line-height: 1.45;
    color: var(--text-secondary);
}
.hero__actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 34px;
    flex-wrap: wrap;
}

/* hero внутренних страниц */
.page-hero { padding-block: clamp(56px, 9vh, 104px) 0; position: relative; overflow: hidden; }
.page-hero__glow {
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 700px;
    background: radial-gradient(32% 55% at 30% 40%, var(--accent-soft), transparent 70%);
    pointer-events: none;
}
.page-hero__inner { position: relative; max-width: 940px; }
.page-hero__title {
    margin-top: 18px;
    font-size: clamp(2.1rem, 5.4vw, 3.75rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.035em;
}
.page-hero__lead {
    margin-top: 20px;
    max-width: 62ch;
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
}
.page-hero__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ===== Показатели ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: clamp(48px, 8vw, 96px);
    padding-top: 32px;
    border-top: 1px solid var(--hairline);
}
.stats__value {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.stats__label { margin-top: 10px; font-size: 0.875rem; color: var(--text-secondary); }

/* ===== Сетка услуг: 2 крупные + 4 компактные ===== */
.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}
.card {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { background: var(--surface-2); border-color: var(--hairline-strong); transform: translateY(-2px); }
.card--wide { grid-column: span 6; padding: 32px; min-height: 220px; }

.card__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--text-secondary);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke var(--dur) var(--ease);
}
.card:hover .card__icon svg { stroke: var(--text); }
.card__title { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; }
.card--wide .card__title { font-size: 1.4375rem; margin-top: 4px; }
.card__text { font-size: 0.9375rem; line-height: 1.5; color: var(--text-secondary); }
.card--wide .card__text { max-width: 46ch; }
.card__link { margin-top: auto; padding-top: 14px; font-size: 0.875rem; font-weight: 500; color: var(--accent); }
.card__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== Портфолио ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

.cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.cases--two { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.case {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.case:hover { border-color: var(--hairline-strong); }
.case.is-hidden { display: none; }

/* фон чисто чёрный, чтобы макеты без полей сливались с карточкой */
.case__media {
    aspect-ratio: 4 / 3;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}
.case__media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.7s var(--ease);
}
.case--bleed .case__media img { width: 100%; height: 100%; object-fit: cover; }
.case:hover .case__media img { transform: scale(1.03); }

.case__body { padding: 22px 24px 26px; border-top: 1px solid var(--hairline); }
.case__title { margin-top: 12px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.case__text { margin-top: 8px; font-size: 0.9375rem; line-height: 1.5; color: var(--text-secondary); }
.case__metric { margin-top: 16px; font-size: 0.875rem; font-weight: 500; color: var(--accent); }

/* ===== О нас ===== */
.about {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}
.about__media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--hairline);
}
.about__text {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.55;
}
.feature-list { margin-top: 32px; border-top: 1px solid var(--hairline); }
.feature { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.feature__title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.feature__text { margin-top: 6px; font-size: 0.9375rem; color: var(--text-secondary); }

/* ===== Команда ===== */
.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}
.member {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
}
.member__avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.member__avatar img { width: 100%; height: 100%; object-fit: cover; }
.member__name { margin-top: 16px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.member__role { margin-top: 4px; font-size: 0.8125rem; color: var(--accent); }
.member__text { margin-top: 10px; font-size: 0.875rem; line-height: 1.5; color: var(--text-secondary); }

/* ===== Этапы работы ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.step { padding-top: 22px; border-top: 1px solid var(--hairline); }
.step__num { font-size: 0.8125rem; font-weight: 600; color: var(--accent); letter-spacing: 0.06em; }
.step__title { margin-top: 12px; font-size: 1.0625rem; font-weight: 600; }
.step__text { margin-top: 8px; font-size: 0.9375rem; line-height: 1.5; color: var(--text-secondary); }

/* ===== Подробности услуг ===== */
.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 56px);
    padding-block: clamp(28px, 4vw, 44px);
    border-top: 1px solid var(--hairline);
}
.service-row:last-of-type { border-bottom: 1px solid var(--hairline); }
.service-row__title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; }
.service-row__text { margin-top: 12px; color: var(--text-secondary); }
.service-row__list { display: grid; gap: 12px; align-content: start; }
.service-row__list li {
    display: flex;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}
.service-row__list svg { width: 16px; height: 16px; flex: none; margin-top: 3px; stroke: var(--accent); fill: none; stroke-width: 2; }

/* ===== Вопросы и ответы ===== */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    cursor: pointer;
    font-size: 1.0625rem;
    font-weight: 500;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    width: 10px;
    height: 10px;
    flex: none;
    border-right: 1.5px solid var(--text-secondary);
    border-bottom: 1.5px solid var(--text-secondary);
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq p { padding-bottom: 22px; color: var(--text-secondary); max-width: 78ch; }

/* ===== Отзывы: сводка ===== */
.review-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding: clamp(22px, 3vw, 32px);
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
}
.review-summary__score {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: clamp(24px, 3vw, 48px);
    border-right: 1px solid var(--hairline);
}
.review-summary__value {
    font-size: clamp(2.75rem, 5vw, 3.75rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}
.review-summary__meta { font-size: 0.875rem; color: var(--text-secondary); }
.review-summary__bars { display: grid; gap: 10px; }
.bar {
    display: grid;
    grid-template-columns: 46px 1fr 34px;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}
.bar__track { height: 6px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar__fill { height: 100%; width: 0; border-radius: var(--radius-pill); background: var(--text); transition: width 0.7s var(--ease); }
.bar__count { text-align: right; font-variant-numeric: tabular-nums; }

/* ===== Отзывы: карточки ===== */
.carousel__buttons { display: flex; gap: 10px; }

.carousel__track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-block: 2px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }

.review {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.review:hover { border-color: var(--hairline-strong); }
.carousel__track .review { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; user-select: none; }

.review__top { display: flex; align-items: center; gap: 12px; }
.review__avatar {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 15px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--hairline);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review__name { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.review__role { font-size: 0.8125rem; color: var(--text-tertiary); }
.review__stars { margin-inline-start: auto; display: flex; gap: 2px; color: var(--text); }
.review__stars svg { width: 13px; height: 13px; }

.review__quote {
    font-size: 1.125rem;
    line-height: 1.5;
    letter-spacing: -0.018em;
    color: var(--text);
}
.review__foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.review__metric { font-size: 0.875rem; font-weight: 500; color: var(--accent); }
.review__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}
.review__badge svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.review-wall { columns: 3; column-gap: 20px; }
.review-wall .review { break-inside: avoid; margin-bottom: 20px; }

.carousel__dots { display: flex; gap: 8px; margin-top: 24px; }
.carousel__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--hairline-strong);
    cursor: pointer;
    transition: width var(--dur) var(--ease), background var(--dur) var(--ease);
}
.carousel__dot.is-active { width: 26px; background: var(--text); }
.carousel__dots:empty { display: none; }

.reviews__note { margin-top: 24px; font-size: 0.9375rem; color: var(--text-secondary); }
.reviews__note strong { color: var(--text); font-weight: 600; }

/* ===== Контакты и формы ===== */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.contact__list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid var(--hairline);
}
.contact__label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}
.contact__list a { font-size: 1.0625rem; transition: color var(--dur) var(--ease); }
.contact__list a:hover { color: var(--accent); }
.contact__value { font-size: 1.0625rem; }

.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(22px, 3vw, 34px);
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
}
.field--trap {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.field__label { display: block; margin-bottom: 8px; font-size: 0.875rem; color: var(--text-secondary); }
.field__label span { color: var(--text-tertiary); }

.field__input {
    width: 100%;
    padding: 13px 15px;
    background: var(--bg-alt);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field__input::placeholder { color: var(--text-tertiary); }
.field__input:hover { border-color: var(--hairline-strong); }
.field__input:focus {
    outline: none;
    background: #101012;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.field__input.is-invalid { border-color: var(--danger); }
textarea.field__input { resize: vertical; min-height: 116px; }

.field__error { margin-top: 7px; font-size: 0.8125rem; color: var(--danger); }
.field__error:empty { display: none; }

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
}
.checkbox input {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* выбор оценки в форме отзыва */
.rating-input { display: flex; gap: 6px; }
.rating-input button {
    width: 34px;
    height: 34px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color var(--dur) var(--ease), transform 0.14s var(--ease);
}
.rating-input button svg { width: 100%; height: 100%; }
.rating-input button.is-on { color: #ffd166; }
.rating-input button:hover { transform: scale(1.08); }

/* ===== Финальный призыв ===== */
.cta-band {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 6vw, 72px);
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    text-align: center;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: -60% 20% auto 20%;
    height: 420px;
    background: radial-gradient(40% 60% at 50% 50%, var(--accent-soft), transparent 70%);
    pointer-events: none;
}
.cta-band__title {
    position: relative;
    font-size: clamp(1.6rem, 3.4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.cta-band__text {
    position: relative;
    margin: 16px auto 0;
    max-width: 56ch;
    color: var(--text-secondary);
}
.cta-band__actions { position: relative; margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Подвал ===== */
.footer { border-top: 1px solid var(--hairline); padding-top: 56px; }
.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 40px;
}
.footer__text { margin-top: 14px; max-width: 34ch; font-size: 0.9375rem; color: var(--text-secondary); }
.footer__nav, .footer__contacts { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a, .footer__contacts a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color var(--dur) var(--ease);
}
.footer__nav a:hover, .footer__contacts a:hover { color: var(--text); }
.footer__bottom {
    padding-block: 22px;
    border-top: 1px solid var(--hairline);
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* ===== Тосты ===== */
.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(360px, calc(100vw - 40px));
}
.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(28, 28, 30, 0.92);
    backdrop-filter: blur(18px);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    animation: toast-in 0.36s var(--ease);
}
.toast.is-leaving { animation: toast-out 0.24s var(--ease) forwards; }
.toast__icon { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.toast--success .toast__icon { color: var(--success); }
.toast--error .toast__icon { color: var(--danger); }
.toast__title { font-size: 0.9375rem; font-weight: 600; }
.toast__text { margin-top: 2px; font-size: 0.875rem; color: var(--text-secondary); }
.toast__close {
    margin-inline-start: auto;
    background: none;
    border: 0;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 1.125rem;
    line-height: 1;
    padding: 2px 4px;
}
.toast__close:hover { color: var(--text); }

@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(0.98); } }

/* ===== Появление блоков при скролле =====
   Прогресс анимации зависит от положения элемента в окне, а не от событий,
   поэтому контент не может «застрять» скрытым. Браузеры без поддержки
   scroll-driven анимаций просто показывают блоки сразу. */
@keyframes reveal-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        [data-reveal] {
            animation: reveal-up linear both;
            animation-timeline: view();
            animation-range: entry 8% entry 65%;
        }
    }
}

/* ===== Планшеты ===== */
@media (max-width: 1024px) {
    .about { grid-template-columns: 1fr; }
    .service-row { grid-template-columns: 1fr; gap: 20px; }
    .review-summary { grid-template-columns: 1fr; gap: 24px; }
    .review-summary__score { flex-direction: row; align-items: center; gap: 16px; padding-right: 0; padding-bottom: 20px; border-right: 0; border-bottom: 1px solid var(--hairline); }
    .carousel__track .review { flex-basis: calc((100% - 20px) / 2); }
    .review-wall { columns: 2; }
    .card { grid-column: span 6; }
    .card--wide { grid-column: span 12; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
}

/* ===== Мобильные ===== */
@media (max-width: 860px) {
    :root { --header-h: 52px; }

    .nav {
        position: fixed;
        inset: 0;
        margin: 0;
        display: grid;
        place-items: center;
        background: rgba(0, 0, 0, 0.94);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
    }
    .nav.is-open { opacity: 1; visibility: visible; }
    .nav__list { flex-direction: column; gap: 24px; text-align: center; }
    .nav__link { font-size: 1.5rem; font-weight: 500; color: var(--text); }

    .header__cta { display: none; }
    .burger { display: flex; }

    .contact { grid-template-columns: 1fr; }
    .cases, .cases--two { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
    .carousel__track .review { flex-basis: 86%; }
    .review-wall { columns: 1; }
    .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
    .card, .card--wide { grid-column: span 12; }
    .hero__actions { flex-direction: column; align-items: stretch; gap: 16px; }
    .hero__actions .btn { width: 100%; }
    .page-hero__actions { flex-direction: column; align-items: stretch; }
    .page-hero__actions .btn { width: 100%; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stats__value { font-size: 1.85rem; }
    .toast-stack { right: 16px; left: 16px; bottom: 16px; max-width: none; }
    .cta-band__actions .btn { width: 100%; }
}

/* ===== Доступность: меньше движения ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] { animation: none !important; opacity: 1 !important; transform: none !important; }
    .carousel__track { scroll-behavior: auto; }
}
