/* ==========================================================================
   ППР Эксперт — дизайн-система
   ========================================================================== */

:root {
    /* Цвета */
    --brand: #0b4da2;
    --brand-dark: #083a7d;
    --brand-darker: #062c5e;
    --brand-tint: #eef4fc;
    --brand-tint-2: #dbe8f9;

    --ink: #0f1b2d;
    --ink-2: #33445c;
    --muted: #64748b;

    --surface: #ffffff;
    --surface-alt: #f5f7fa;
    --line: #e3e8ef;
    --line-strong: #cbd5e1;

    --dark: #0b1626;
    --dark-2: #132234;

    --accent: #f59e0b;
    --ok: #15803d;
    --err: #dc2626;

    /* Типографика */
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

    --fs-h1: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
    --fs-h2: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem);
    --fs-h3: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
    --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
    --fs-body: 1rem;
    --fs-sm: 0.875rem;
    --fs-xs: 0.8125rem;

    /* Раскладка */
    --container: 1180px;
    --gutter: clamp(1rem, 0.6rem + 1.8vw, 2rem);
    --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;

    --shadow-xs: 0 1px 2px rgba(15, 27, 45, 0.05);
    --shadow-sm: 0 2px 8px rgba(15, 27, 45, 0.06);
    --shadow-md: 0 12px 28px -12px rgba(15, 27, 45, 0.18);
    --shadow-lg: 0 28px 60px -24px rgba(15, 27, 45, 0.28);

    --header-h: 76px;
}

/* --------------------------------------------------------------------------
   База
   -------------------------------------------------------------------------- */

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 0.6em;
    font-weight: 700;
    text-wrap: balance;
}

h1 {
    font-size: var(--fs-h1);
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1rem;
}

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

ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

li {
    margin-bottom: 0.5rem;
}

:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection {
    background: var(--brand);
    color: #fff;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--dark);
    color: #fff;
    font-weight: 600;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Раскладка
   -------------------------------------------------------------------------- */

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

.section {
    padding-block: var(--section-y);
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.section--tight {
    padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section--alt {
    background: var(--surface-alt);
    border-block: 1px solid var(--line);
}

.section--dark {
    background: var(--dark);
    color: #b9c6d6;
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: #fff;
}

.section-head {
    max-width: 46rem;
    margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem);
}

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

.section-head p {
    font-size: var(--fs-lead);
    color: var(--muted);
    margin-bottom: 0;
}

.section--dark .section-head p {
    color: #90a2b8;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.75rem;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
}

.section--dark .eyebrow {
    color: #7aa9e8;
}

.section--dark .eyebrow::before {
    background: #7aa9e8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    font-family: inherit;
    font-size: var(--fs-body);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background: var(--brand-dark);
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.btn--ghost {
    background: transparent;
    color: var(--brand);
    border-color: var(--line-strong);
}

.btn--ghost:hover {
    background: var(--brand-tint);
    border-color: var(--brand);
    color: var(--brand-dark);
    box-shadow: none;
}

.btn--light {
    background: #fff;
    color: var(--brand-dark);
}

.btn--light:hover {
    background: var(--brand-tint);
    color: var(--brand-darker);
}

.btn--ondark {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn--ondark:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    box-shadow: none;
}

.btn--lg {
    padding: 1.0625rem 2rem;
    font-size: 1.0625rem;
}

.btn--sm {
    padding: 0.6875rem 1rem;
    font-size: var(--fs-sm);
}

.btn--block {
    width: 100%;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    color: var(--brand);
}

.link-arrow::after {
    content: "→";
    transition: transform 0.2s ease;
}

.link-arrow:hover {
    text-decoration: none;
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.25s ease;
}

.header.is-scrolled {
    box-shadow: 0 6px 24px -12px rgba(15, 27, 45, 0.25);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo:hover {
    text-decoration: none;
}

.logo__mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(140deg, var(--brand) 0%, var(--brand-darker) 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.logo__name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.2;
    display: block;
}

.logo__tagline {
    font-size: var(--fs-xs);
    color: var(--muted);
    line-height: 1.2;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.nav a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav a:hover {
    background: var(--surface-alt);
    color: var(--brand);
    text-decoration: none;
}

.nav a[aria-current="page"] {
    color: var(--brand);
    background: var(--brand-tint);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.header__phone {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    text-decoration: none;
}

.header__phone:hover {
    color: var(--brand);
    text-decoration: none;
}

.burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    position: relative;
    margin-left: auto;
}

.burger span,
.burger span::before,
.burger span::after {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.burger span {
    top: 50%;
    transform: translate(-50%, -50%);
}

.burger span::before,
.burger span::after {
    content: "";
    left: 0;
    transform: none;
}

.burger span::before {
    top: -6px;
}

.burger span::after {
    top: 6px;
}

.burger[aria-expanded="true"] span {
    background: transparent;
}

.burger[aria-expanded="true"] span::before {
    transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded="true"] span::after {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
    padding-block: 1rem 1.5rem;
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu[aria-hidden="true"] {
    display: none;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-bottom: 1rem;
}

.mobile-menu nav a {
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.mobile-menu nav a:hover,
.mobile-menu nav a[aria-current="page"] {
    background: var(--brand-tint);
    color: var(--brand);
}

.mobile-menu__contacts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.mobile-menu__contacts a {
    font-weight: 700;
    color: var(--ink);
}

@media (max-width: 1319px) {
    .header .logo__tagline {
        display: none;
    }

    .nav {
        gap: 0;
    }

    .nav a {
        padding-inline: 0.5rem;
    }
}

@media (max-width: 1099px) {
    .nav,
    .header__actions {
        display: none;
    }

    .burger {
        display: block;
    }
}

/* --------------------------------------------------------------------------
   Первый экран
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 88% -8%, rgba(11, 77, 162, 0.16), transparent 62%),
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--line);
    padding-block: clamp(2.75rem, 2rem + 3.5vw, 5.5rem);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 1rem + 4vw, 4.5rem);
    align-items: center;
}

.hero h1 {
    margin-bottom: 1.125rem;
}

.hero__lead {
    font-size: var(--fs-lead);
    color: var(--ink-2);
    max-width: 34rem;
    margin-bottom: 1.75rem;
}

.hero__usp {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    display: grid;
    gap: 0.625rem;
}

.hero__usp li {
    position: relative;
    padding-left: 1.75rem;
    margin: 0;
    font-size: 0.9375rem;
    color: var(--ink-2);
}

.hero__usp li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 16px;
    height: 9px;
    border-left: 2.5px solid var(--brand);
    border-bottom: 2.5px solid var(--brand);
    transform: rotate(-45deg);
    border-radius: 1px;
}

.hero__media {
    position: relative;
}

.hero__media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    background: var(--surface-alt);
}

.hero__badge {
    position: absolute;
    left: -1.25rem;
    bottom: -1.25rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 0.875rem 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 15rem;
}

.hero__badge strong {
    font-size: 1.5rem;
    color: var(--brand);
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero__badge span {
    font-size: var(--fs-xs);
    color: var(--muted);
    line-height: 1.35;
}

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

    .hero__media {
        order: -1;
    }

    .hero__badge {
        left: 0;
        bottom: -0.875rem;
    }
}

/* Компактный первый экран внутренних страниц */
.page-hero {
    background:
        radial-gradient(800px 380px at 90% 0%, rgba(11, 77, 162, 0.14), transparent 60%),
        linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--line);
    padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
}

.page-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 1rem + 3vw, 4rem);
    align-items: center;
}

.page-hero__lead {
    font-size: var(--fs-lead);
    color: var(--ink-2);
    max-width: 34rem;
    margin-bottom: 1.75rem;
}

.page-hero__media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    background: var(--surface-alt);
}

@media (max-width: 899px) {
    .page-hero__grid {
        grid-template-columns: 1fr;
    }

    .page-hero__media {
        display: none;
    }
}

/* Хлебные крошки */
.breadcrumbs {
    font-size: var(--fs-sm);
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs li + li::before {
    content: "/";
    color: var(--line-strong);
}

/* --------------------------------------------------------------------------
   Полоса фактов
   -------------------------------------------------------------------------- */

.factbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.factbar div {
    background: #fff;
    padding: 1.5rem 1.25rem;
}

.factbar strong {
    display: block;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.factbar span {
    font-size: var(--fs-sm);
    color: var(--muted);
}

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

/* --------------------------------------------------------------------------
   Сетки и карточки
   -------------------------------------------------------------------------- */

.grid {
    display: grid;
    gap: clamp(1rem, 0.75rem + 0.8vw, 1.5rem);
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 1rem + 0.6vw, 1.75rem);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9375rem;
    color: var(--muted);
    margin-bottom: 0;
}

.card__num {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--brand);
    margin-bottom: 0.75rem;
}

.card .link-arrow {
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.9375rem;
}

.card--link:hover {
    border-color: var(--brand-tint-2);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.section--alt .card {
    background: #fff;
}

.section--dark .card {
    background: var(--dark-2);
    border-color: rgba(255, 255, 255, 0.09);
}

.section--dark .card p {
    color: #90a2b8;
}

/* Карточка с иконкой-галочкой */
.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-size: 1.125rem;
    font-weight: 700;
}

.feature h3 {
    margin-bottom: 0.375rem;
}

.feature p {
    font-size: 0.9375rem;
    color: var(--muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Процесс работы
   -------------------------------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: clamp(1.25rem, 1rem + 1vw, 2rem);
    counter-reset: step;
}

.step {
    position: relative;
    counter-increment: step;
    padding-top: 3.25rem;
}

.step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.9375rem;
    font-weight: 700;
    z-index: 1;
}

.step::after {
    content: "";
    position: absolute;
    top: 22px;
    left: 52px;
    right: -1rem;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--line-strong) 0 6px, transparent 6px 12px);
}

.step:last-child::after {
    display: none;
}

.step h3 {
    margin-bottom: 0.375rem;
}

.step p {
    font-size: 0.9375rem;
    color: var(--muted);
    margin: 0;
}

@media (max-width: 767px) {
    .step::after {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Кейсы
   -------------------------------------------------------------------------- */

.case {
    overflow: hidden;
    padding: 0;
}

.case img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
    background: var(--surface-alt);
}

.case__body {
    padding: clamp(1.25rem, 1rem + 0.6vw, 1.625rem);
}

.case__body h3 {
    margin-bottom: 0.75rem;
}

.case dl {
    margin: 0;
    display: grid;
    gap: 0.625rem;
}

.case dt {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.125rem;
}

.case dd {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
    max-width: 52rem;
    border-top: 1px solid var(--line);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 3rem 1.25rem 0;
    position: relative;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.2s ease;
}

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

.faq summary:hover {
    color: var(--brand);
}

.faq summary::after {
    content: "";
    position: absolute;
    right: 0.5rem;
    top: 1.55rem;
    width: 11px;
    height: 11px;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

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

.faq__answer {
    padding-bottom: 1.375rem;
    padding-right: 3rem;
    color: var(--muted);
    max-width: 46rem;
}

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

/* --------------------------------------------------------------------------
   Формы
   -------------------------------------------------------------------------- */

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
    box-shadow: var(--shadow-md);
}

.field {
    margin-bottom: 1.125rem;
}

.field:last-of-type {
    margin-bottom: 1.5rem;
}

.field > label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.4375rem;
}

.field__hint {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 400;
    color: var(--muted);
    margin-top: 0.125rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.8125rem 0.9375rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background-color: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: #9aa8ba;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(11, 77, 162, 0.14);
}

textarea {
    min-height: 7.5rem;
    resize: vertical;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-note {
    font-size: var(--fs-xs);
    color: var(--muted);
    margin-top: 0.875rem;
}

.form-note a {
    color: inherit;
    text-decoration: underline;
}

.form-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.consent-field {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr);
    gap: 0.625rem;
    align-items: start;
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: var(--fs-xs);
    line-height: 1.5;
    cursor: pointer;
}

.consent-field input {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0.125rem 0 0;
    accent-color: var(--brand);
}

.consent-field a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.section--dark .consent-field {
    color: #9aabc0;
}

.section--dark .consent-field a {
    color: #c9d6e6;
}

.form-message {
    margin: 1rem 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    display: none;
}

.form-message.success,
.form-message.error {
    display: block;
}

.form-message.success {
    color: var(--ok);
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.form-message.error {
    color: var(--err);
    background: #fef2f2;
    border: 1px solid #fecaca;
}

/* --------------------------------------------------------------------------
   Блок расчёта стоимости
   -------------------------------------------------------------------------- */

.quote {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 1rem + 3vw, 4rem);
    align-items: start;
}

.quote__list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 1rem;
}

.quote__list li {
    position: relative;
    padding-left: 1.875rem;
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted);
}

.quote__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-tint);
    border: 1px solid var(--brand-tint-2);
}

.quote__list li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.55em;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}

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

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

.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 1rem + 3vw, 4rem);
    align-items: start;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    display: grid;
    gap: 1.125rem;
}

.contact-list li {
    margin: 0;
}

.contact-list span {
    display: block;
    font-size: var(--fs-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7e8fa6;
    margin-bottom: 0.125rem;
}

.contact-list a,
.contact-list strong {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.contact-list a:hover {
    color: #7aa9e8;
    text-decoration: none;
}

.section--dark .form-card {
    background: var(--dark-2);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: none;
}

.section--dark .field > label {
    color: #e2e8f0;
}

.section--dark .field__hint,
.section--dark .form-note {
    color: #8194ab;
}

.section--dark input,
.section--dark select,
.section--dark textarea {
    background-color: #0b1626;
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.section--dark input::placeholder,
.section--dark textarea::placeholder {
    color: #64768d;
}

.section--dark select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2394a3b8' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.section--dark input:focus,
.section--dark select:focus,
.section--dark textarea:focus {
    border-color: #4f8ede;
    box-shadow: 0 0 0 3px rgba(79, 142, 222, 0.25);
}

.section--dark .form-message.success {
    color: #86efac;
    background: rgba(21, 128, 61, 0.15);
    border-color: rgba(134, 239, 172, 0.3);
}

.section--dark .form-message.error {
    color: #fca5a5;
    background: rgba(220, 38, 38, 0.14);
    border-color: rgba(252, 165, 165, 0.3);
}

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

/* --------------------------------------------------------------------------
   Финальный призыв
   -------------------------------------------------------------------------- */

.cta-band {
    background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand) 100%);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 1.5rem + 2vw, 3.5rem);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cta-band h2 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-width: 34rem;
}

/* --------------------------------------------------------------------------
   Прочее
   -------------------------------------------------------------------------- */

.prose {
    max-width: 46rem;
}

.prose p {
    font-size: 1.0625rem;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: 0.875rem 2rem;
}

.checklist li {
    position: relative;
    padding-left: 1.875rem;
    margin: 0;
    color: var(--ink-2);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-tint);
    border: 1px solid var(--brand-tint-2);
}

.checklist li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.55em;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}

.callout {
    border-left: 3px solid var(--brand);
    background: var(--brand-tint);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.25rem 1.5rem;
    color: var(--ink-2);
}

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

.badge-soon {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Подвал
   -------------------------------------------------------------------------- */

.footer {
    background: var(--dark);
    color: #90a2b8;
    padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) 1.5rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr;
    gap: clamp(2rem, 1rem + 3vw, 4rem);
    align-items: start;
}

.footer h4 {
    color: #fff;
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.625rem;
}

.footer li {
    margin: 0;
    font-size: 0.9375rem;
}

.footer a {
    color: #b9c6d6;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer .logo__name {
    color: #fff;
}

.footer .logo__tagline {
    color: #7e8fa6;
}

.footer__note {
    margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--fs-xs);
    color: #6d7f96;
    line-height: 1.6;
}

.footer__bottom {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: var(--fs-xs);
    color: #6d7f96;
}

.footer__legal {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.footer__legal a {
    color: #90a2b8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

/* --------------------------------------------------------------------------
   Мобильная панель действий
   -------------------------------------------------------------------------- */

.mobile-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 0.625rem var(--gutter) calc(0.625rem + env(safe-area-inset-bottom));
    gap: 0.625rem;
    box-shadow: 0 -4px 20px -8px rgba(15, 27, 45, 0.2);
}

.mobile-bar .btn {
    flex: 1;
    padding-inline: 0.75rem;
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Уведомление об аналитике
   -------------------------------------------------------------------------- */

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 200;
    width: min(calc(100% - 2rem), 58rem);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 1.125rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.cookie-banner strong {
    display: block;
    color: var(--ink);
    margin-bottom: 0.125rem;
}

.cookie-banner p {
    margin: 0;
    color: var(--muted);
    font-size: var(--fs-sm);
    line-height: 1.5;
}

.cookie-banner p a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.5rem;
}

@media (max-width: 699px) {
    .cookie-banner {
        align-items: stretch;
        flex-direction: column;
        bottom: calc(4.75rem + env(safe-area-inset-bottom));
    }

    .cookie-banner__actions .btn {
        flex: 1;
    }
}

/* --------------------------------------------------------------------------
   Юридические страницы
   -------------------------------------------------------------------------- */

.legal-page {
    max-width: 52rem;
}

.legal-page h1 {
    margin-bottom: 1rem;
}

.legal-page h2 {
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
}

.legal-page h3 {
    margin-top: 1.5rem;
}

.legal-page ul,
.legal-page ol {
    padding-left: 1.4rem;
}

.legal-meta {
    padding: 1rem 1.125rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-alt);
    color: var(--muted);
    font-size: var(--fs-sm);
}

@media (max-width: 767px) {
    .mobile-bar {
        display: flex;
    }

    body {
        padding-bottom: 4.5rem;
    }
}

/* --------------------------------------------------------------------------
   Анимация появления
   -------------------------------------------------------------------------- */

/* Скрываем только когда JS точно работает — иначе контент остался бы невидимым */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Утилиты */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.mt-lg {
    margin-top: clamp(1.5rem, 1.2rem + 1vw, 2.5rem);
}
