/* ==========================================================================
   На страже Родины — стили. Дизайн-система взята с rubikon-kontrakt.ru:
   бренд-синий #3B5998, тёмный графит #171F30, светло-серый бэкграунд #F5F7FB,
   Manrope 400/500/600/700/800. H1 не uppercase, кнопки radius 9px.
   ========================================================================== */

:root {
    --c-brand:    #3B5998;
    --c-brand-2:  #9DB4E8;
    --c-text:     #1A2332;
    --c-heading:  #171F30;
    --c-muted:    #5B6779;
    --c-bg:       #FFFFFF;
    --c-bg-alt:   #F5F7FB;
    --c-dark:     #171F30;
    --c-border:   #DFE4EE;
    --c-on-dark-muted: #C3CBE0;
    --c-error:    #D9534F;

    --radius-btn: 9px;
    --radius-card: 12px;
    --shadow-card: 0 6px 24px rgba(23, 31, 48, .08);

    --ff: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

    --wrap: 1200px;
    --pad-x: 24px;
}

*,*::before,*::after { box-sizing: border-box; }
html,body { margin: 0; padding: 0; }
body {
    font-family: var(--ff);
    color: var(--c-text);
    background: var(--c-bg);
    font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { font-family: var(--ff); color: var(--c-heading); margin: 0 0 16px; line-height: 1.2; }
h1 { font-size: 41.6px; font-weight: 800; }
h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: 72px 0; }
.section-alt { background: var(--c-bg-alt); }
.section > .wrap > .eyebrow,
.section .eyebrow {
    display: inline-block;
    font-size: 13.6px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--c-brand);
    margin-bottom: 12px;
}
.lead { color: var(--c-muted); font-size: 17px; max-width: 780px; margin: 0 0 32px; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-border);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--c-heading); font-size: 17px; }
.brand > span:last-child { white-space: nowrap; }
.brand__mark { width: 32px; height: 32px; border-radius: 8px; background: var(--c-brand); display:inline-flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size: 14px; }
.brand__logo { width: 34px; height: 34px; display: block; flex: 0 0 auto; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { color: var(--c-heading); font-weight: 600; font-size: 15.2px; }
.nav__cta { margin-left: 8px; }
.city-picker { color: var(--c-muted); font-weight: 500; font-size: 14px; }
.city-picker a { color: var(--c-heading); border-bottom: 1px dashed var(--c-brand); font-weight: 700; }
.header__phone { font-weight: 700; color: var(--c-heading); font-size: 15.2px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.header__phone-ico { display: none; color: var(--c-brand); }
.header__phone:hover { color: var(--c-brand); text-decoration:none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--c-brand); color: #fff; font-weight: 700; font-family: var(--ff);
    font-size: 16px; padding: 16px 32px; border-radius: var(--radius-btn);
    border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease;
    text-decoration: none;
}
.btn:hover { background: #33508a; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-nav { padding: 13px 26px; font-size: 15.2px; }
.btn-outline {
    background: rgba(255,255,255,.08); color: #fff;
    border: 1px solid rgba(255,255,255,.55);
}
.btn-outline:hover { background: rgba(255,255,255,.14); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 620px;
    background: #0f1523 url('/assets/img/hero-operator-20261120.webp') center/cover no-repeat;
    color: #fff; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(23,31,48,.55) 0%, rgba(23,31,48,.82) 60%, rgba(23,31,48,1) 100%);
    z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.hero__eyebrow { display: inline-block; padding: 6px 12px; background: rgba(157,180,232,.15); border: 1px solid rgba(157,180,232,.4); border-radius: 999px; color: var(--c-brand-2); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; margin-bottom: 20px; }
.hero h1 { color: #fff; max-width: 900px; }
.hero h1 .accent { color: var(--c-brand-2); }
.hero__lead { color: #E4E9F5; font-size: 17px; max-width: 720px; margin: 20px 0 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 1000px; }
.hero__stat { padding: 20px 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; }
.hero__stat b { display:block; color:#fff; font-size: 22.4px; font-weight: 800; margin-bottom: 4px; }
.hero__stat span { color: var(--c-on-dark-muted); font-size: 14px; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(3, 1fr); }
.card {
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-card);
    padding: 24px; box-shadow: var(--shadow-card);
}
.card__icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(59,89,152,.1); color: var(--c-brand); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card__num { font-size: 28px; font-weight: 800; color: var(--c-brand); margin-bottom: 6px; display: block; }
.card__step { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--c-brand); color:#fff; border-radius: 50%; font-weight: 800; margin-bottom: 12px; }

/* ---------- Payments block ---------- */
.pay-formula { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 12px; margin: 24px 0 32px; }
.pay-formula__op { align-self: center; font-size: 28px; font-weight: 800; color: var(--c-muted); }
.pay-cell { padding: 22px 26px; background:#fff; border: 1px solid var(--c-border); border-radius: 12px; box-shadow: var(--shadow-card); }
.pay-cell b { display:block; color: var(--c-brand); font-size: 22.4px; font-weight: 800; margin-bottom: 4px; }
.pay-cell span { color: var(--c-muted); font-size: 14px; }
.pay-cell.is-total { background: var(--c-dark); border-color: var(--c-dark); }
.pay-cell.is-total b { color:#fff; }
.pay-cell.is-total span { color: var(--c-on-dark-muted); }

.pay-table { width:100%; border-collapse: collapse; margin-top: 8px; background:#fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); }
.pay-table th, .pay-table td { text-align:left; padding: 14px 18px; }
.pay-table thead { background: var(--c-dark); color:#fff; }
.pay-table thead th { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.pay-table tbody tr + tr td { border-top: 1px solid var(--c-border); }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--c-border); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; background:#fff; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-weight: 700; color: var(--c-heading); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--c-brand); font-weight: 300; }
.faq details[open] summary::after { content: '−'; }
.faq .a { padding: 0 0 18px; color: var(--c-text); }
.faq .a p:last-child { margin: 0; }

/* ---------- Apply / dark block ---------- */
.apply { background: var(--c-dark); color: #fff; padding: 72px 0; }
.apply h2 { color:#fff; }
.apply .lead { color: var(--c-on-dark-muted); }
.apply__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.apply__phone { font-size: 28px; font-weight: 800; color:#fff; text-decoration:none; }
.apply__phone:hover { color: var(--c-brand-2); text-decoration:none; }
.apply__msgs { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.apply__msgs a { color:#fff; padding: 10px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 14px; font-weight: 600; }
.apply__msgs a:hover { background: rgba(255,255,255,.08); text-decoration:none; }

/* ---------- Form ---------- */
.form { background: #fff; color: var(--c-text); border-radius: 16px; padding: 28px; }
.form label { display:block; font-weight: 600; margin-bottom: 6px; color: var(--c-heading); font-size: 14px; }
.form input[type=text], .form input[type=tel], .form select, .form textarea {
    width: 100%; padding: 14px 16px; border: 1px solid var(--c-border); border-radius: 10px;
    font-family: var(--ff); font-size: 16px; background: #fff; color: var(--c-text);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--c-brand); outline-offset: 1px; border-color: var(--c-brand); }
.form .field { margin-bottom: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .consent { display:flex; gap:10px; align-items:flex-start; font-size: 13px; color: var(--c-muted); margin: 6px 0 14px; }
.form .consent input { margin-top: 3px; }
.form .error-msg { color: var(--c-error); font-size: 13px; margin-top: 4px; }
.form .hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; }

.notice { padding: 16px 18px; border-radius: 12px; background: #F0F4FB; border: 1px solid #DFE4EE; color: var(--c-heading); font-size: 14px; margin: 20px 0; }
.notice.is-ok { background: #E9F4EA; border-color: #B7DDBB; }
.notice.is-error { background: #FBECEA; border-color: #F1B7B4; }

/* ---------- Cities list ---------- */
.cities { columns: 4; column-gap: 24px; }
.cities a { display:block; padding: 6px 0; color: var(--c-heading); font-weight: 500; }
.cities a:hover { color: var(--c-brand); }

/* ---------- Footer ---------- */
.footer { background: var(--c-dark); color: var(--c-on-dark-muted); padding: 48px 0 24px; }
.footer__grid { display:grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer h4 { color:#fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer a { color: var(--c-on-dark-muted); display:block; padding: 4px 0; }
.footer a:hover { color:#fff; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 13px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 13px; color: var(--c-muted); padding: 20px 0 0; }
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-brand); }
.crumbs span + span::before { content: ' / '; opacity: .55; padding: 0 4px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-muted { color: var(--c-muted); }
.small { font-size: 13px; }
.hr { border: 0; border-top: 1px solid var(--c-border); margin: 32px 0; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr 1fr; }
    .apply__grid, .footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .cities { columns: 2; }
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    .hero { min-height: 520px; }
    .hero__stats { grid-template-columns: 1fr; }
    .pay-formula { grid-template-columns: 1fr; }
    .pay-formula__op { text-align: center; }
    .form .row { grid-template-columns: 1fr; }
    .nav { display: none; }
    .header__inner { justify-content: space-between; }
    .section { padding: 48px 0; }
}
@media (max-width: 540px) {
    .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
    .cities { columns: 1; }
}


/* ---------- Компактная шапка на мобильных ---------- */
@media (max-width: 760px) {
    .header__inner { height: 56px; gap: 10px; flex-wrap: nowrap; }
    .brand { gap: 8px; font-size: 14.5px; min-width: 0; }
    .brand > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .brand__mark { width: 27px; height: 27px; font-size: 12.5px; flex: 0 0 auto; border-radius: 7px; }
    .brand__logo { width: 28px; height: 28px; }
    .city-picker { display: none; }
    .header__phone { margin-left: auto; font-size: 13.5px; flex: 0 0 auto; }
    .nav__cta.btn-nav { padding: 9px 13px; font-size: 13.5px; border-radius: 9px; flex: 0 0 auto; }
}
@media (max-width: 430px) {
    .header__phone-num { display: none; }
    .header__phone-ico { display: block; }
    .header__phone { width: 36px; height: 36px; justify-content: center; border: 1px solid var(--c-border); border-radius: 50%; margin-left: auto; }
}

/* ---------- Закреплённая панель «Позвонить · MAX · Заявка» (мобильные) ---------- */
.mobile-bar { display: none; }
@media (max-width: 768px) {
    body { padding-bottom: 64px; }
    .mobile-bar {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 500;
        background: #fff;
        border-top: 1px solid var(--c-border);
        box-shadow: 0 -6px 20px rgba(23, 31, 48, .12);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .mobile-bar__item {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 8px 4px 9px;
        color: var(--c-text);
        text-decoration: none;
        font-size: 12px;
        font-weight: 700;
        border-right: 1px solid var(--c-border);
    }
    .mobile-bar__item:last-child { border-right: none; }
    .mobile-bar__item--accent { background: var(--c-brand); color: #fff; }
    .mobile-bar__ico { font-size: 18px; line-height: 1; }
}

/* 04.10.2026 (ДД5 Т): на телефоне таблица помещается в экран — плотнее ячейки и переносы длинных слов
   (/trebovaniya на 360 px была шириной 473 px — горизонтальная прокрутка всей страницы); на совсем узком экране
   таблица прокручивается сама, а не растягивает страницу */
@media (max-width: 540px) {
    .pay-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pay-table th, .pay-table td { padding: 8px; font-size: 14px; }
    .pay-table td { -webkit-hyphens: auto; hyphens: auto; }
    .pay-table thead th { font-size: 11px; letter-spacing: 0; }
}
