/* ==========================================================================
   MASTERKEY.KG — собственный CSS, без фреймворков.
   Дизайн: графит/чёрный фон, белый текст, золотые акценты, светлые секции.
   Mobile-first, 320px+, без горизонтального скролла.
   ========================================================================== */

:root {
    --bg: #101216;
    --bg-2: #16181e;
    --card: #1b1e26;
    --line: #2a2e38;
    --text: #f4f5f7;
    --muted: #a9afbb;
    --gold: #d4af37;
    --gold-2: #e9c65c;
    --gold-dark: #8f7220;
    --wa: #22c15e;
    --light-bg: #f3f1ea;
    --light-line: #e2ded2;
    --light-text: #1a1c20;
    --light-muted: #5c626d;
    --radius: 14px;
    --header-h: 64px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    /* место под мобильную sticky-панель «Позвонить | WhatsApp» */
    padding-bottom: 62px;
    overflow-x: hidden;
}

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 1.15rem + 3vw, 2.8rem); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--gold-2); }
a:hover { color: var(--gold); }
ul, ol { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

::selection { background: rgba(212, 175, 55, .35); }

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 16px;
}
.container--narrow { max-width: 860px; }

.muted { color: var(--muted); font-size: .9rem; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s, transform .15s, background .15s, border-color .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }

.btn--gold {
    background: linear-gradient(180deg, var(--gold-2), #c9a227);
    color: #1c1604;
}
.btn--wa {
    background: linear-gradient(180deg, #2bd06b, #1aab52);
    color: #04240f;
}
.btn--outline {
    background: transparent;
    border-color: rgba(212, 175, 55, .65);
    color: var(--gold-2);
}
.btn--outline:hover { border-color: var(--gold); background: rgba(212, 175, 55, .08); filter: none; }
.btn--insta { background: #fff; color: #17181c; }

.btn--sm { padding: 9px 14px; font-size: .85rem; border-radius: 10px; }
.btn--lg { padding: 15px 26px; font-size: 1.02rem; }
.btn--icon { padding: 9px; width: 40px; height: 40px; flex: 0 0 auto; }

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.section--cta .cta-row { justify-content: center; }

/* ---------- Шапка ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(16, 18, 22, .9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header__in {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: var(--header-h);
    padding-top: 6px;
    padding-bottom: 6px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    flex: 0 0 auto;
}
.logo__icon { color: var(--gold); flex: 0 0 auto; }
.logo__img { display: block; height: 40px; width: auto; flex: 0 0 auto; }
.logo--footer .logo__img { height: 36px; }
@media (max-width: 480px) { .logo__img { height: 34px; } }
.logo__text {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .02em;
    line-height: 1.15;
    display: flex;
    flex-direction: column;
}
.logo__text small {
    font-size: .66rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .04em;
}

.main-nav { display: none; }
.main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 79;
    background: #131519;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .45);
}
.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    padding: 10px 6px;
    border-radius: 8px;
    white-space: nowrap;
}
.main-nav a:hover { color: var(--gold-2); }
.main-nav a.is-active { color: var(--gold-2); }

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 10px;
}
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a.is-active { color: var(--gold-2); }

.site-header__phone { white-space: nowrap; }
.site-header__phone span { display: none; }

.burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}
.burger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    background:
        linear-gradient(105deg, rgba(13, 14, 18, .92) 20%, rgba(13, 14, 18, .72) 60%, rgba(13, 14, 18, .55)),
        url("../img/hero-key.jpg") center / cover no-repeat,
        var(--bg);
    border-bottom: 1px solid var(--line);
    padding: clamp(44px, 7vw, 92px) 0;
}
.hero__content { max-width: 720px; }
.hero__sub {
    font-size: clamp(1rem, .9rem + .8vw, 1.25rem);
    color: #dfe2e8;
    margin-bottom: 22px;
}
.hero__adv {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: grid;
    gap: 9px;
}
.hero__adv li {
    position: relative;
    padding-left: 30px;
    font-weight: 600;
    font-size: .98rem;
}
.hero__adv li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: rgba(212, 175, 55, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7 9 18l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
    border: 1px solid rgba(212, 175, 55, .5);
}
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}
.hero__note {
    color: var(--muted);
    font-size: .92rem;
    max-width: 560px;
    margin: 0;
}

/* ---------- Секции ---------- */
.section { padding: clamp(40px, 6vw, 68px) 0; scroll-margin-top: calc(var(--header-h) + 10px); }
.section--light { background: var(--light-bg); color: var(--light-text); }
.section--light a { color: var(--gold-dark); }
.section--light a:hover { color: #6d5714; }
.section--cta { text-align: center; }
.section__title { font-size: clamp(1.4rem, 1.1rem + 1.8vw, 2.1rem); margin-bottom: 22px; }
.section--cta .section__title { margin-bottom: 14px; }
.section__lead { font-size: 1.05rem; margin-bottom: 20px; }
.section__note { margin-top: 22px; color: var(--muted); }
.section--light .section__note { color: var(--light-muted); }
.section--cta p { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Карточки ---------- */
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }

.card {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    color: var(--text);
    text-decoration: none;
    transition: border-color .18s, transform .18s, box-shadow .18s;
}
a.card:hover { border-color: rgba(212, 175, 55, .7); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); color: var(--text); }
.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    color: var(--gold);
    background: rgba(212, 175, 55, .1);
    border: 1px solid rgba(212, 175, 55, .35);
    margin-bottom: 12px;
}
.card__title { display: block; font-weight: 700; font-size: 1.02rem; margin-bottom: 6px; }
.card__text { display: block; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.card__more { display: inline-block; margin-top: 10px; color: var(--gold-2); font-size: .88rem; font-weight: 700; }
.card__more::after { content: " →"; }

.section--light .card { background: #fff; border-color: var(--light-line); color: var(--light-text); }
.section--light a.card:hover { color: var(--light-text); box-shadow: 0 10px 26px rgba(60, 52, 20, .12); }
.section--light .card__text { color: var(--light-muted); }
.section--light .card__icon { color: var(--gold-dark); background: rgba(212, 175, 55, .14); border-color: rgba(143, 114, 32, .35); }
.section--light .card__more { color: var(--gold-dark); }

.card--service { display: flex; flex-direction: column; }
.card--service .card__more { margin-top: auto; padding-top: 8px; }

.card--review p { font-size: .95rem; }
.card--review cite { display: block; font-style: normal; font-weight: 700; color: var(--gold-dark); margin-top: 8px; }

/* ---------- Марки ---------- */
.brands {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.brands li {
    background: #fff;
    border: 1px solid var(--light-line);
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: .92rem;
}

/* ---------- Шаги ---------- */
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
    counter-reset: step;
}
.step {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}
.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-2), #c9a227);
    color: #1c1604;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 10px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Примеры работ ---------- */
.works { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.works__item {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--light-line);
    background: #0d0f13;
}
.works__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.works__item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 12px 10px;
    background: linear-gradient(transparent, rgba(8, 9, 12, .85));
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0;
}
.faq__item summary {
    cursor: pointer;
    list-style: none;
    position: relative;
    padding: 15px 48px 15px 16px;
    font-weight: 700;
    font-size: .98rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, .5);
    color: var(--gold);
    font-weight: 700;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding: 0 16px 15px; margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Форма ---------- */
.form-card {
    background: #fff;
    color: var(--light-text);
    border: 1px solid var(--light-line);
    border-radius: 16px;
    padding: clamp(18px, 3vw, 30px);
    box-shadow: 0 14px 34px rgba(50, 44, 18, .1);
    text-align: left;
}
.lead-form__grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.field label, .field legend {
    display: block;
    font-weight: 700;
    font-size: .88rem;
    margin-bottom: 6px;
    color: var(--light-text);
}
.field em { color: #c0392b; font-style: normal; }
.field__note { font-weight: 500; color: var(--light-muted); font-size: .8rem; }
.field input[type="text"],
.field input[type="tel"],
.field textarea,
.field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d5d1c4;
    border-radius: 10px;
    background: #fdfdfb;
    color: var(--light-text);
    font: inherit;
    font-size: .95rem;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .22);
}
.field textarea { resize: vertical; min-height: 74px; }
.field--radio { border: 0; padding: 0; margin: 0; }
.field--radio .radio { margin-right: 18px; }
.radio { display: inline-flex; align-items: center; gap: 7px; font-size: .95rem; cursor: pointer; }
.radio input { accent-color: var(--gold-dark); width: 17px; height: 17px; }
input[type="file"] { font-size: .88rem; color: var(--light-muted); }

.hp { position: absolute; left: -100vw; top: 0; width: 1px; height: 1px; overflow: hidden; }

.consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 16px 0;
    font-size: .84rem;
    color: var(--light-muted);
    cursor: pointer;
}
.consent input { margin-top: 3px; accent-color: var(--gold-dark); width: 16px; height: 16px; flex: 0 0 auto; }
.consent a { color: var(--gold-dark); }

.lead-form__submit { width: 100%; }

/* ---------- Контакты ---------- */
.contacts { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 8px; }
.contacts__item {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text);
    transition: border-color .18s;
}
a.contacts__item:hover { border-color: rgba(212, 175, 55, .7); color: var(--text); }
.contacts__label { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.contacts__value { display: block; font-size: 1.12rem; font-weight: 800; color: var(--gold-2); margin-top: 2px; }

/* ---------- Заглушка карты ---------- */
.map-placeholder {
    margin-top: 18px;
    border: 1.5px dashed #c9c3b0;
    border-radius: var(--radius);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--light-muted);
    background: #eae7dc;
    font-weight: 700;
}

/* ---------- Instagram ---------- */
.insta { border-top: 1px solid var(--line); }
/* Карусель Instagram-embed */
.insta-carousel { position: relative; margin: 26px 0; width: 100%; }
.insta-carousel__track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
    padding-bottom: 8px;
}
.insta-carousel__slide {
    flex: 0 0 min(400px, 86%);
    scroll-snap-align: center;
    min-width: 0;
}
.insta-carousel__slide .instagram-media { min-width: 0 !important; }
.insta-carousel__nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}
.insta-carousel__btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--panel, #16181d);
    color: var(--gold);
    font-size: 1.15rem;
    cursor: pointer;
    transition: border-color .2s, transform .2s;
}
.insta-carousel__btn:hover { border-color: var(--gold); transform: translateY(-2px); }
.section--light .insta-carousel__btn { background: #fff; border-color: #d8d4c8; }

/* ---------- Подвал ---------- */
.site-footer {
    background: #0b0d10;
    border-top: 1px solid var(--line);
    padding: 44px 0 28px;
}
.site-footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.site-footer__title { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: 12px; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer__col a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.site-footer__col a:hover { color: var(--gold-2); }
.site-footer__city { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.logo--footer .logo__text { font-size: .98rem; }
.site-footer__warning {
    margin-top: 30px;
    padding: 12px 16px;
    border-left: 3px solid var(--gold);
    background: rgba(212, 175, 55, .07);
    border-radius: 0 10px 10px 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.55;
}
.site-footer__bottom {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    justify-content: space-between;
    color: var(--muted);
    font-size: .84rem;
}
.site-footer__bottom a { color: var(--muted); }

/* ---------- Мобильная sticky-панель ---------- */
.mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 9px 12px;
    background: rgba(13, 15, 18, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}
.mobile-bar .btn { padding: 12px 10px; font-size: .95rem; }

/* ---------- Модалка ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; overflow-y: auto; padding: 18px; }
.modal[hidden] { display: none; }
.modal__overlay { position: fixed; inset: 0; background: rgba(5, 6, 8, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal__box {
    position: relative;
    margin: auto;
    width: 100%;
    max-width: 620px;
    background: #fff;
    color: var(--light-text);
    border-radius: 16px;
    padding: clamp(18px, 3vw, 28px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #efede6;
    color: #333;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.modal__close:hover { background: #e3e0d5; }
.modal__title { font-size: 1.35rem; margin-bottom: 4px; padding-right: 40px; }
.modal__sub { color: var(--light-muted); font-size: .92rem; margin-bottom: 16px; }
body.modal-open { overflow: hidden; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    padding: 12px 0 0;
    font-size: .84rem;
}
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-2); }
.breadcrumbs + .section { padding-top: 26px; }

/* ---------- Служебные экраны (send.php, /whatsapp/) ---------- */
.notice {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(18px, 3vw, 30px);
}
.notice--error { border-color: rgba(224, 102, 102, .55); }
.notice h1 { font-size: 1.5rem; }
.notice ul { padding-left: 20px; color: #f0b8b8; }
.notice__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.wa-preview {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--wa);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 18px 0;
    font-size: .95rem;
    line-height: 1.65;
}
.wa-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 12px; }

/* ---------- Текстовые страницы (политика, согласие) ---------- */
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .muted { font-size: .85rem; }

/* ==========================================================================
   Маленькие телефоны (<480px): уплотняем шапку, чтобы не было overflow.
   Иконка WhatsApp в шапке скрыта — на мобильных всегда есть sticky-панель.
   ========================================================================== */
@media (max-width: 479.98px) {
    .site-header__in { gap: 8px; }
    .logo { min-width: 0; gap: 8px; }
    .logo__icon { width: 30px; height: 30px; }
    .logo__text { font-size: .92rem; }
    .logo__text small { display: none; }
    .site-header__actions { gap: 6px; }
    .site-header .btn--icon.btn--wa { display: none; }
    .lang-switch { padding: 4px 8px; font-size: .74rem; gap: 4px; }
    .burger { width: 36px; height: 36px; }
    .site-header__phone { padding: 9px; width: 36px; height: 36px; justify-content: center; }
}

/* Совсем узкие экраны (<375px): телефон из шапки убираем —
   кнопка «Позвонить» всегда есть в мобильной sticky-панели. */
@media (max-width: 374.98px) {
    .site-header__phone { display: none; }
    .logo__text { font-size: .88rem; }
}

/* ==========================================================================
   Планшет
   ========================================================================== */
@media (min-width: 600px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .contacts { grid-template-columns: repeat(2, 1fr); }
    .lead-form__grid { grid-template-columns: repeat(2, 1fr); }
    .field--full { grid-column: 1 / -1; }
    .lead-form__submit { width: auto; min-width: 280px; }
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
    .works { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   Десктоп
   ========================================================================== */
@media (min-width: 768px) {
    body { padding-bottom: 0; }
    .mobile-bar { display: none; }
    .site-header__phone span { display: inline; }
    .cards--problems, .cards--adv { grid-template-columns: repeat(3, 1fr); }
    .cards--reviews { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
    .burger { display: none; }
    .main-nav {
        display: flex;
        align-items: center;
        gap: 2px;
        margin: 0 auto;
        position: static;
        background: none;
        border: 0;
        box-shadow: none;
        padding: 0;
        flex-direction: row;
    }
    .main-nav a { padding: 8px 10px; font-size: .9rem; }
    .cards--services { grid-template-columns: repeat(4, 1fr); }
    .steps { grid-template-columns: repeat(5, 1fr); }
    .site-footer__grid { grid-template-columns: 1.2fr 1.4fr 1fr 1fr; }
}

/* ---------- Уменьшенная анимация ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ---------- Адрес и карта ---------- */
.address-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
}
.address-line svg { color: var(--gold); flex: 0 0 auto; }
.map-embed {
    margin-top: 22px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.map-embed iframe { display: block; width: 100%; }
