/* =====================================================================
   СМАРТПРО — оформление сайта
   ===================================================================== */

@font-face {
    font-family: 'Cy Grotesk';
    src: url('fonts/Cy-Grotesk-Grand-Dark.otf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #1d1632;
    --ink-soft: #5d5675;
    --brand: #6c519e;
    --brand-dark: #4d3779;
    --accent: #2f6bff;
    --night: #120727;
    --bg: #f4f1fa;
    --card: #ffffff;
    --line: #e2dcf0;
    --ok: #22c55e;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(36, 18, 78, .10);
    --font-head: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    --font-brand: 'Cy Grotesk', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3, h4 { margin: 0; }

:focus-visible {
    outline: 3px solid rgba(47, 107, 255, .55);
    outline-offset: 2px;
}

/* =====================================================================
   Кнопки
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border: 0;
    border-radius: 14px;
    font: 600 1rem var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #7a5cd6 0%, #3d6bff 100%);
    box-shadow: 0 8px 22px rgba(79, 82, 230, .38);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79, 82, 230, .5); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-lg { padding: 17px 38px; font-size: 1.15rem; border-radius: 16px; }

.btn-ghost {
    color: var(--brand-dark);
    background: #efeaf9;
    border: 1px solid var(--line);
}
.btn-ghost:hover { background: #e5ddf6; }

/* =====================================================================
   Шапка
   ===================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(18, 7, 39, .78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

.logoimg img { display: block; width: 46px; height: 46px; object-fit: contain; }

.company-info { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.company-info strong { font-family: var(--font-brand); font-size: 1.25rem; letter-spacing: .04em; }
.company-info span { font-size: .8rem; color: rgba(255, 255, 255, .72); }

.navbar-right { display: flex; align-items: center; gap: 22px; }

.nav-support {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 600;
    background: rgba(255, 255, 255, .10);
    transition: background .2s;
}
.nav-support:hover { background: rgba(255, 255, 255, .2); }
.nav-support img { width: 20px; height: 20px; }

.contact-block { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }

.status { font-size: .78rem; color: rgba(255, 255, 255, .78); display: flex; align-items: center; gap: 7px; }

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.phone-number {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .01em;
}
.phone-number:hover { color: #cdbfff; }

.nav-call, .menu-icon { display: none; }

.menu-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .10);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.menu-icon span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }

.nav-call {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #7a5cd6, #3d6bff);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 66px;
    right: 12px;
    width: min(320px, calc(100% - 24px));
    z-index: 1000;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(18, 7, 39, .35);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.mobile-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-menu .close-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
}

.mobile-contact { display: flex; flex-direction: column; padding-top: 22px; }
.mobile-contact a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 10px;
    border-radius: 12px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}
.mobile-contact a:hover { background: #f1ecfb; }
.mobile-contact a i { width: 20px; text-align: center; color: var(--brand); }
.mobile-contact a img { width: 20px; height: 20px; }
.mobile-status { margin: 8px 10px 4px; font-size: .85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }

/* =====================================================================
   Главный экран
   ===================================================================== */
.hero {
    position: relative;
    margin-top: -67px;               /* картинка уходит под прозрачную шапку */
    padding: 150px 24px 110px;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(18, 7, 39, .70) 0%, rgba(18, 7, 39, .55) 45%, rgba(18, 7, 39, .92) 100%),
        url("img/fon-opt.jpg") center 30% / cover no-repeat,
        var(--night);
    animation: rise .8s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-inner { max-width: 860px; margin: 0 auto; }

.hero-eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
}

.hero h2 {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 5vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -.01em;
    font-weight: 700;
    text-wrap: balance;
}

.hero-lead {
    max-width: 640px;
    margin: 22px auto 34px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, .86);
}

.promo-button { margin-bottom: 38px; }

.hero-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.hero-chips li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    font-size: .92rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
}
.hero-chips i { color: #b9a4ff; }

/* =====================================================================
   Как оформить заказ
   ===================================================================== */
.steps-section { max-width: 1100px; margin: 0 auto; padding: 56px 24px 0; }

.section-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    text-align: center;
    margin: 0 0 24px;
    color: var(--ink);
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.steps li {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px 22px;
    box-shadow: var(--shadow);
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 12px;
    font-family: var(--font-head);
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7a5cd6, #3d6bff);
}
.steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* =====================================================================
   Форма заявки
   ===================================================================== */
.order-section { padding: 40px 24px 72px; }

.application-form {
    max-width: 760px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(36, 18, 78, .14);
    padding: 36px 36px 30px;
}

.application-form h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
}
.form-lead { margin: 8px 0 26px; text-align: center; color: var(--ink-soft); }

.form-block {
    border: 0;
    margin: 0 0 26px;
    padding: 0;
    min-width: 0;
}
.form-block legend {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 1.1rem;
}
.legend-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: .9rem;
    color: #fff;
    background: var(--brand);
}

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 14px; }
.field-grid-3 { grid-template-columns: repeat(3, 1fr); }
.span-2 { grid-column: span 2; }

.input-group { position: relative; min-width: 0; }
.input-group label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.input-group label::after { content: " *"; color: #e5484d; }

.application-form input:not([type="checkbox"]),
.application-form select,
.support-modal-content input,
.support-modal-content select,
.support-modal-content textarea {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    font: 1rem var(--font-body);
    color: var(--ink);
    background: #faf9fd;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.application-form input::placeholder { color: #a49dba; }

.application-form input:not([type="checkbox"]):focus,
.application-form select:focus,
.support-modal-content input:focus,
.support-modal-content select:focus,
.support-modal-content textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(47, 107, 255, .15);
}

.application-form select,
.support-modal-content select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236c519e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

/* ---- Ключи ---- */
.key-selection {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: center;
    padding: 18px;
    margin-bottom: 18px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #faf8ff, #f1ecfb);
}
.key-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: zoom-in;
    transition: transform .2s;
}
.key-image img:hover { transform: scale(1.03); }
.key-details h4 { font-size: 1.1rem; margin-bottom: 4px; }
.key-details p { margin: 0 0 14px; color: var(--ink-soft); font-size: .92rem; }

.quantity-wrapper { display: inline-flex; align-items: center; gap: 10px; }
.qty-btn {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 12px;
    font-size: 1.5rem;
    line-height: 1;
    color: #fff;
    background: var(--brand);
    cursor: pointer;
    transition: background .15s, transform .1s;
}
.qty-btn:hover { background: var(--brand-dark); }
.qty-btn:active { transform: scale(.94); }

.application-form .quantity-wrapper input[type="number"] {
    width: 74px;
    height: 46px;
    padding: 0;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    -moz-appearance: textfield;
    appearance: textfield;
}
.quantity-wrapper input[type="number"]::-webkit-outer-spin-button,
.quantity-wrapper input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.hint { margin: 0 0 14px; font-size: .88rem; color: var(--ink-soft); }

/* ---- Карточки товаров ---- */
.tube-selection-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tube-option {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.tube-option:hover { border-color: #c5b6e8; box-shadow: 0 8px 22px rgba(36, 18, 78, .10); transform: translateY(-2px); }

.tube-option.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(47, 107, 255, .14), 0 10px 26px rgba(47, 107, 255, .18);
}

.tick {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    color: #fff;
    border-radius: 50%;
    background: var(--accent);
    transform: scale(0);
    transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.tube-option.selected .tick { transform: scale(1); }

.tube-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    padding: 12px;
    background: linear-gradient(180deg, #f7f4fd, #efeaf9);
}
.tube-option img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform .2s;
}
.tube-option img:hover { transform: scale(1.06); }

.tube-body { display: flex; flex-direction: column; flex: 1; padding: 14px 14px 16px; }
.tube-body p { margin: 0; }
.tube-title { font-weight: 700; font-size: .95rem; line-height: 1.3; margin-bottom: 6px !important; }
.tube-spec { font-size: .82rem; color: var(--ink-soft); line-height: 1.4; }
.tube-price { margin-top: auto !important; padding-top: 12px; font-size: 1.2rem; font-weight: 800; color: var(--brand-dark); }

/* ---- Итого и кнопка "Далее" ---- */
.summary {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    border: 1.5px solid var(--line);
    box-shadow: 0 12px 30px rgba(36, 18, 78, .16);
}
.total-price { font-size: 1.05rem; color: var(--ink-soft); }
.total-price strong { margin-left: 8px; font-size: 1.6rem; color: var(--ink); }
.btn-next { margin-left: auto; }

/* ---- Договор и оплата ---- */
.contract-section {
    margin-top: 26px;
    padding: 24px;
    border-radius: var(--radius);
    background: #faf8ff;
    border: 1.5px solid var(--line);
    text-align: center;
    animation: rise .5s ease both;
}
.contract-section h4 { font-size: 1.15rem; margin-bottom: 14px; }

.checkbox-wrapper { margin: 18px 0; text-align: left; display: inline-block; }
.checkbox-wrapper label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: .95rem;
    cursor: pointer;
}
.application-form input[type="checkbox"] {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    accent-color: var(--accent);
    cursor: pointer;
}

#captchaContainer { display: flex; justify-content: center; margin: 12px 0; }

.btn-pay { width: 100%; padding: 17px; font-size: 1.2rem; margin-top: 6px; }
.secure-note { margin: 12px 0 0; font-size: .82rem; color: var(--ink-soft); }

/* =====================================================================
   Подвал и карта
   ===================================================================== */
.footer { background: var(--night); color: #fff; }

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
    align-items: stretch;
}

.contacts {
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
}
.contacts h2 { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; margin-bottom: 18px; }
.contacts p { margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.contacts i { width: 20px; text-align: center; color: #b9a4ff; }
.contacts a { color: #fff; text-decoration: none; }
.contacts a:hover { text-decoration: underline; }

.map { border-radius: 22px; overflow: hidden; min-height: 320px; background: #1d1136; }
#map { width: 100%; height: 100%; min-height: 320px; }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 28px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .88rem;
    color: rgba(255, 255, 255, .65);
    border-top: 1px solid rgba(255, 255, 255, .10);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* =====================================================================
   Всплывающие окна
   ===================================================================== */
.support-modal,
.key-modal,
#contractModal.modal {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(12, 5, 28, .82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: fadeInModal .25s ease;
}
.support-modal { z-index: 1000; }
.key-modal { z-index: 99999; }
#contractModal.modal { z-index: 100000; }

@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes zoomEffect { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }

.key-modal-content {
    display: block;
    max-width: 94vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    animation: zoomEffect .25s ease;
}

.close-key-btn {
    position: absolute;
    top: 14px;
    right: 22px;
    font-size: 44px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    transition: transform .15s, opacity .15s;
}
.close-key-btn:hover { transform: scale(1.12); opacity: .8; }

#contractModal .modal-content,
.support-modal-content {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow: auto;
    padding: 30px 28px 26px;
    background: #fff;
    color: var(--ink);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    animation: slideUp .3s ease;
}
#contractModal h2, .support-modal-content h2 { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; margin-bottom: 14px; padding-right: 30px; }

#contractModal .close,
.support-modal-content .close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    color: #8c84a6;
    cursor: pointer;
    transition: color .15s, transform .15s;
}
#contractModal .close:hover, .support-modal-content .close-btn:hover { color: #000; transform: scale(1.1); }

#contractModal .contract-scroll { max-height: 55vh; overflow-y: auto; padding-right: 6px; color: #333; }

.support-modal-content form { display: flex; flex-direction: column; gap: 8px; }
.support-modal-content label { font-size: .88rem; font-weight: 600; color: var(--ink-soft); margin-top: 4px; }
.support-modal-content textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.send-btn {
    margin-top: 10px;
    padding: 14px;
    border: 0;
    border-radius: 12px;
    font: 700 1rem var(--font-body);
    color: #fff;
    background: linear-gradient(135deg, #7a5cd6, #3d6bff);
    cursor: pointer;
}
.send-btn:hover { filter: brightness(1.08); }

/* =====================================================================
   Адаптивность
   ===================================================================== */
@media (max-width: 1024px) {
    .nav-support, .contact-block { display: none; }
    .nav-call, .menu-icon { display: flex; }
    .navbar-right { gap: 10px; }
    .footer-content { grid-template-columns: 1fr; padding: 40px 24px; }
    .tube-selection-container { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) {
    .mobile-menu { display: none; }
}

@media (max-width: 720px) {
    .navbar-inner { padding: 8px 14px; }
    .company-info span { display: none; }
    .logoimg img { width: 40px; height: 40px; }
    .mobile-menu { top: 58px; }
    .hero { margin-top: -59px; padding: 120px 18px 90px; }
    .hero-chips li { font-size: .84rem; padding: 8px 13px; }
    .steps { grid-template-columns: 1fr; gap: 12px; }
    .steps li { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; padding: 18px; }
    .steps .step-num { grid-row: span 2; margin: 0; }
    .steps h3 { margin: 0 0 2px; }
    .steps-section { padding: 40px 14px 0; }
    .order-section { padding: 36px 12px 48px; }
    .application-form { padding: 24px 16px 20px; border-radius: 20px; }
    .field-grid { grid-template-columns: 1fr; }
    .field-grid-3 { grid-template-columns: 1fr 1fr; }
    .field-grid-3 .input-group:last-child { grid-column: span 2; }
    .span-2 { grid-column: auto; }
    .key-selection { grid-template-columns: 1fr; text-align: center; padding: 16px; }
    .key-image { max-width: 240px; margin: 0 auto; }
    .tube-selection-container { gap: 10px; }
    .tube-photo { height: 120px; }
    .tube-body { padding: 10px 10px 12px; }
    .tube-title { font-size: .86rem; }
    .tube-spec { font-size: .76rem; }
    .tube-price { font-size: 1.05rem; }
    .summary { bottom: 8px; padding: 12px 14px; }
    .btn-next { width: 100%; }
    .contract-section { padding: 18px 14px; }
    .footer-content { padding: 32px 14px; }
    .footer-bottom { padding: 18px 14px 26px; flex-direction: column; }
    #contractModal .modal-content, .support-modal-content { padding: 26px 18px 20px; }
}

@media (max-width: 380px) {
    .tube-selection-container { grid-template-columns: 1fr; }
    .tube-photo { height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Навигация по страницам (общая для всех страниц сайта)
   ===================================================================== */
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-links a.active { color: #fff; background: rgba(255, 255, 255, .14); }
.nav-links a.nav-shop {
    color: #fff;
    background: linear-gradient(135deg, #7a5cd6, #3d6bff);
    box-shadow: 0 6px 18px rgba(79, 82, 230, .45);
}
.nav-links a.nav-shop:hover { filter: brightness(1.1); }
.mobile-contact a.mobile-shop {
    color: #fff;
    background: linear-gradient(135deg, #7a5cd6, #3d6bff);
    margin: 4px 0;
}
.mobile-contact a.mobile-shop i { color: #fff; }
.mobile-contact hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
@media (max-width: 1400px) { .nav-support { display: none; } }
.status { white-space: nowrap; }
@media (max-width: 1024px) { .nav-links { display: none; } }

/* Шапка: ничего не налезает друг на друга (широкий фирменный шрифт) */
.navbar-inner { max-width: 1400px; gap: 14px; }
.navbar-left { flex: none; }
.company-info { flex: none; }
.company-info strong { white-space: nowrap; }
.navbar-right { flex: none; gap: 16px; }
.nav-links { gap: 2px; }
.nav-links a { padding: 9px 12px; }
.contact-block, .phone-number { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1120px) {
    .nav-links, .nav-support, .contact-block { display: none; }
    .nav-call, .menu-icon { display: flex; }
    .navbar-right { gap: 10px; }
    .mobile-menu { display: block; }
}
