:root {
    --ink: #171b2f;
    --muted: #647084;
    --line: #dfe4ee;
    --paper: #f5f7fb;
    --paper-strong: #edf0f7;
    --white: #ffffff;
    --primary: #4a4fa7;
    --primary-dark: #333879;
    --primary-soft: #eceefd;
    --gold: #c6944d;
    --gold-soft: #fff4df;
    --green: #2f7d68;
    --danger: #9f1d1d;
    --shadow: 0 18px 48px rgba(24, 29, 56, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

[id] {
    scroll-margin-top: 128px;
}

.anchor-alias {
    display: block;
    height: 0;
    overflow: hidden;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 24px rgba(24, 29, 56, 0.06);
    backdrop-filter: blur(12px);
}

.topbar {
    background: #171b2f;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
}

.topbar__inner {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar__contacts {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 14px;
}

.topbar a,
.site-footer a {
    text-decoration: none;
}

.topbar a:hover,
.site-footer a:hover,
.nav a:hover,
.phone-link:hover {
    color: var(--gold);
}

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

.site-header__inner {
    min-height: 86px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    font-weight: 700;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 194px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

.nav {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #30364f;
    font-size: 13px;
    font-weight: 700;
}

.nav a,
.phone-link {
    text-decoration: none;
}

.nav-toggle {
    display: none;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
}

.nav-toggle::before {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
    content: "";
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    border-color: var(--primary);
    color: var(--primary);
    outline: none;
}

.phone-link {
    color: var(--primary);
    font-weight: 800;
    white-space: nowrap;
}

.phone-link--large {
    display: inline-flex;
    width: fit-content;
    margin: 10px 0 18px;
    color: var(--white);
    font-size: 22px;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.city-trigger {
    display: inline-flex;
    min-width: 126px;
    min-height: 44px;
    flex-direction: column;
    justify-content: center;
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.city-trigger:hover,
.city-trigger:focus-visible {
    border-color: var(--primary);
    outline: none;
}

.city-trigger__label {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.1;
}

.city-trigger__name {
    max-width: 160px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.city-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(18, 22, 44, 0.48);
    opacity: 0;
    transition: opacity 180ms ease;
}

.city-drawer-backdrop[hidden] {
    display: none;
}

.city-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 80;
    display: flex;
    width: min(440px, 100vw);
    height: 100dvh;
    flex-direction: column;
    padding: 30px;
    border-left: 1px solid var(--line);
    background: var(--white);
    box-shadow: -18px 0 40px rgba(23, 32, 51, 0.16);
    transform: translateX(100%);
    transition: transform 220ms ease;
}

.city-drawer[aria-hidden="true"] {
    display: none;
    visibility: hidden;
    width: 0;
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
    overflow: hidden;
    pointer-events: none;
}

.city-drawer-open {
    overflow: hidden;
}

.city-drawer-open .city-drawer-backdrop {
    opacity: 1;
}

.city-drawer-open .city-drawer {
    visibility: visible;
    transform: translateX(0);
}

.city-drawer__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.city-drawer__head h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
}

.city-drawer__eyebrow {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.city-drawer__close {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
}

.city-drawer__close::before,
.city-drawer__close::after {
    position: absolute;
    top: 20px;
    left: 11px;
    width: 18px;
    height: 2px;
    background: var(--ink);
    content: "";
}

.city-drawer__close::before {
    transform: rotate(45deg);
}

.city-drawer__close::after {
    transform: rotate(-45deg);
}

.city-search {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.city-search input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
}

.city-search input:focus {
    border-color: var(--primary);
    outline: none;
}

.city-drawer__status {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.city-list {
    display: grid;
    gap: 8px;
    overflow-y: auto;
    padding-right: 4px;
}

.city-option {
    display: grid;
    min-height: 58px;
    align-content: center;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
}

.city-option:hover,
.city-option:focus-visible {
    border-color: var(--primary);
    outline: none;
}

.city-option.is-selected {
    border-color: rgba(74, 79, 167, 0.45);
    background: var(--primary-soft);
}

.city-option__name {
    font-weight: 800;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(18, 22, 44, 0.94), rgba(30, 36, 78, 0.82) 48%, rgba(30, 36, 78, 0.55)),
        url("/site-assets/hero.webp") center / cover;
    color: var(--white);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 56px;
    align-items: center;
    padding: 92px 0;
}

.hero__content {
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.14;
}

h1 {
    max-width: 860px;
    font-size: 54px;
}

h2 {
    font-size: 38px;
}

h3 {
    font-size: 21px;
}

.lead {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
    background: var(--primary-dark);
    outline: none;
    transform: translateY(-1px);
}

.button--small {
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
}

.button--wide {
    width: 100%;
}

.button--ghost {
    border-color: rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.08);
}

.button--ghost:hover,
.button--ghost:focus-visible {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.14);
}

.hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 48px;
}

.hero__facts div {
    min-height: 108px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.hero__facts strong {
    display: block;
    color: var(--gold);
    font-size: 28px;
    line-height: 1;
}

.hero__facts span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.hero-card {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(23, 27, 47, 0.82);
    box-shadow: var(--shadow);
}

.hero-card__label {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--gold-soft);
    color: #6b4b1b;
    font-size: 12px;
    font-weight: 800;
}

.hero-card h2 {
    font-size: 28px;
}

.hero-card p {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.service-strip {
    background: var(--paper);
}

.service-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.service-strip__item {
    display: grid;
    min-height: 168px;
    align-content: start;
    gap: 10px;
    padding: 28px 24px;
    background: var(--white);
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
}

.service-strip__item span {
    color: var(--primary);
    font-weight: 800;
}

.service-strip__item strong {
    font-size: 21px;
    line-height: 1.16;
}

.service-strip__item small {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.service-strip__item:hover,
.service-strip__item:focus-visible {
    background: var(--primary);
    color: var(--white);
    outline: none;
}

.service-strip__item:hover span,
.service-strip__item:hover small,
.service-strip__item:focus-visible span,
.service-strip__item:focus-visible small {
    color: rgba(255, 255, 255, 0.82);
}

.service-strip__item--accent {
    background: var(--primary);
    color: var(--white);
}

.service-strip__item--accent span,
.service-strip__item--accent small {
    color: rgba(255, 255, 255, 0.82);
}

.section {
    padding: 78px 0;
}

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

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.section-head p {
    max-width: 540px;
    margin: 0;
    color: var(--muted);
}

.section-head .eyebrow,
.section-kicker .eyebrow,
.order-copy .eyebrow {
    margin-bottom: 12px;
}

.split {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
    gap: 54px;
    align-items: start;
}

.section-kicker {
    position: sticky;
    top: 148px;
}

.split__content p {
    margin: 0 0 18px;
    color: #30364f;
    font-size: 18px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 32px;
}

.trust-grid article {
    min-height: 150px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.trust-grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
}

.trust-grid span {
    color: var(--muted);
    font-size: 14px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

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

.category-children {
    margin-bottom: 34px;
}

.card,
.feature-card,
.license-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(24, 29, 56, 0.06);
}

.card {
    min-height: 190px;
    padding: 24px;
}

.feature-card {
    min-height: 264px;
    padding: 24px;
}

.feature-card span {
    display: inline-flex;
    margin-bottom: 26px;
    color: var(--primary);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.card--image {
    overflow: hidden;
    padding: 0;
}

.card--image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.card__body {
    padding: 22px;
}

.service-category-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.service-category-card img {
    height: clamp(190px, 20vw, 240px);
}

.service-category-card .card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
}

.service-category-card h3,
.service-category-card p {
    margin: 0;
}

.service-category-card a {
    margin-top: auto;
}

.card p,
.feature-card p {
    color: var(--muted);
}

.card a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

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

.process__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.process__grid article {
    min-height: 220px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.process__grid span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 800;
}

.process__grid p {
    color: var(--muted);
}

.license-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.license-card {
    padding: 22px;
}

.license-card a {
    display: block;
    margin-bottom: 18px;
    text-decoration: none;
}

.license-card img {
    width: 100%;
    max-height: 520px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    object-fit: contain;
}

.license-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.license-card p {
    margin: 0;
    color: var(--muted);
}

.content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 46px;
    align-items: start;
}

.content--order {
    align-items: center;
}

.order-copy p {
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
}

.contact-card {
    display: grid;
    width: min(100%, 520px);
    gap: 6px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.contact-card a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.contact-stack {
    display: grid;
    width: min(100%, 560px);
    gap: 16px;
    margin-top: 28px;
}

.yandex-map {
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 28px rgba(24, 29, 56, 0.06);
}

.yandex-map__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.yandex-map__head strong,
.yandex-map__head span {
    display: block;
}

.yandex-map__head span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.yandex-map__head a {
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.lazy-frame {
    display: grid;
    min-height: clamp(320px, 38vw, 420px);
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(74, 79, 167, 0.12), rgba(196, 154, 74, 0.16));
}

.lazy-frame.is-loaded {
    display: block;
    min-height: 0;
    padding: 0;
    background: transparent;
}

.lazy-frame__button {
    display: grid;
    max-width: 360px;
    gap: 8px;
    padding: 18px 20px;
    border: 1px solid rgba(74, 79, 167, 0.24);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 14px 34px rgba(24, 29, 56, 0.1);
    cursor: pointer;
    text-align: center;
}

.lazy-frame__button span {
    color: var(--primary);
    font-weight: 900;
}

.lazy-frame__button small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.yandex-map iframe,
.lazy-frame iframe {
    display: block;
    width: 100%;
    height: clamp(320px, 38vw, 420px);
    border: 0;
}

.article {
    max-width: 860px;
}

.article img {
    width: 100%;
    max-height: 420px;
    margin: 0 0 28px;
    border-radius: 8px;
    object-fit: cover;
}

.article > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 18px;
}

.article-body {
    color: #2d3748;
}

.article-body h2,
.article-body h3 {
    margin: 30px 0 12px;
}

.article-body p,
.article-body ul,
.article-body ol {
    margin: 0 0 16px;
}

.article-body ul,
.article-body ol {
    padding-left: 22px;
}

.article-body a {
    color: var(--primary);
    font-weight: 700;
}

.article-body iframe,
.map-frame iframe {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.side-panel {
    position: sticky;
    top: 128px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.side-panel h3 {
    margin-bottom: 16px;
}

.lead-form {
    display: grid;
    gap: 12px;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus {
    border-color: var(--primary);
    outline: none;
}

.lead-form textarea {
    min-height: 116px;
    resize: vertical;
}

.consent-field {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.lead-form .consent-field input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
    padding: 0;
    accent-color: var(--primary);
}

.consent-field a {
    color: var(--primary);
    font-weight: 700;
}

.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.lead-form .hp {
    width: 1px;
    min-height: 0;
    padding: 0;
    border: 0;
}

.alert {
    padding: 14px 0;
    background: #eaf6f1;
    color: var(--green);
}

.errors {
    color: var(--danger);
    font-size: 14px;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #171b2f;
    color: var(--white);
}

.site-footer__inner {
    min-height: 220px;
    padding: 36px 0;
    align-items: flex-start;
}

.site-footer p {
    max-width: 340px;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer .brand-logo {
    width: 198px;
    max-height: none;
    filter: brightness(0) invert(1);
}

.footer-contact {
    display: grid;
    max-width: 360px;
    gap: 8px;
    color: rgba(255, 255, 255, 0.76);
}

.footer-contact strong,
.footer-contact span:first-child {
    color: var(--white);
    font-weight: 800;
}

.footer-contact--right {
    text-align: right;
}

@media (max-width: 1180px) {
    .site-header__inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .nav {
        justify-content: flex-start;
    }

    .site-header__actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-card {
        max-width: 560px;
    }

    .grid--features,
    .process__grid,
    .service-strip__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    [id] {
        scroll-margin-top: 160px;
    }

    .topbar__inner,
    .site-footer__inner,
    .section-head,
    .split {
        align-items: flex-start;
        flex-direction: column;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .topbar__inner {
        padding: 10px 0;
    }

    .topbar__contacts {
        gap: 8px 14px;
    }

    .brand-logo {
        width: 210px;
    }

    .hero {
        min-height: 0;
    }

    .hero__grid {
        padding: 70px 0;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    .hero__facts,
    .grid,
    .license-grid,
    .content,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .section-kicker,
    .side-panel {
        position: static;
    }

    .site-footer__inner {
        display: grid;
        gap: 26px;
    }

    .footer-contact--right {
        text-align: left;
    }
}

@media (max-width: 760px) {
    [id] {
        scroll-margin-top: 128px;
    }

    .topbar__inner {
        display: block;
        min-height: 0;
        padding: 8px 0;
    }

    .topbar__contacts {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 6px 10px;
    }

    .topbar__contacts span,
    .topbar__inner > span {
        display: none;
    }

    .topbar a {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-header__inner {
        min-height: 0;
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 0;
    }

    .brand-logo {
        width: 168px;
        max-height: 54px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav {
        order: 3;
        display: none;
        width: 100%;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
        padding: 6px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: 0 14px 34px rgba(24, 29, 56, 0.12);
    }

    .site-header.is-menu-open .nav {
        display: grid;
    }

    .nav a {
        padding: 8px 10px;
        border-radius: 6px;
    }

    .nav a:hover,
    .nav a:focus-visible {
        background: var(--primary-soft);
        color: var(--primary);
        outline: none;
    }

    .site-header__actions {
        order: 4;
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
    }

    .city-trigger,
    .button--small {
        min-height: 42px;
    }

    .button--small {
        width: 100%;
        padding: 0 10px;
    }

    .hero {
        background-position: 58% center;
    }

    .hero__grid {
        padding: 42px 0 46px;
    }

    .hero-card {
        display: none;
    }

    .hero__facts {
        gap: 8px;
        margin-top: 32px;
    }

    .hero__facts div {
        min-height: 0;
        padding: 14px;
    }

    .section-head {
        gap: 12px;
        margin-bottom: 24px;
    }

    .section {
        padding: 44px 0;
    }

    .content {
        gap: 28px;
    }

    .article img {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .yandex-map__head {
        flex-direction: column;
        gap: 10px;
    }

    .yandex-map__head a {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .topbar {
        font-size: 12px;
    }

    .nav {
        gap: 12px;
        font-size: 13px;
    }

    .city-trigger {
        min-width: 0;
        flex: 1 1 154px;
    }

    .city-trigger__name {
        max-width: 100%;
    }

    .city-drawer {
        width: 100vw;
        padding: 22px 18px;
        border-left: 0;
    }

    .button--small {
        flex: 1 1 160px;
    }

    .hero__grid {
        padding: 54px 0;
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 28px;
    }

    .lead {
        font-size: 18px;
    }

    .actions,
    .actions .button {
        width: 100%;
    }

    .hero__facts,
    .grid--features,
    .process__grid,
    .service-strip__grid {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .side-panel,
    .card,
    .feature-card,
    .process__grid article,
    .license-card {
        padding: 20px;
    }

    .service-strip__item {
        min-height: 140px;
        padding: 22px 20px;
    }

    .section {
        padding: 42px 0;
    }
}

@media (max-width: 420px) {
    h1 {
        font-size: 31px;
    }

    h2 {
        font-size: 25px;
    }

    h3 {
        font-size: 19px;
    }

    .hero__grid {
        padding: 34px 0 40px;
    }

    .section {
        padding: 34px 0;
    }

    .lead,
    .article > p:not(.eyebrow),
    .order-copy p,
    .split__content p {
        font-size: 16px;
    }

    .card,
    .feature-card,
    .process__grid article,
    .license-card,
    .side-panel {
        padding: 18px;
    }

    .city-drawer__head h2 {
        font-size: 24px;
    }
}
