/* ============================================================
   Tehservice — общий стиль сайта (v4)
   ============================================================ */

:root {
  --blue-900: #0b3a63;
  --blue-800: #0c4d80;
  --blue-700: #0d6ea7;
  --blue-600: #0ea5e9;
  --blue-500: #38bdf8;
  --blue-100: #e6f6fd;
  --blue-50: #f4fbff;
  --white: #ffffff;
  --ink: #16324a;
  --muted: #5b7690;
  --border: #d8ecf7;
  --accent: #ff9d2e;
  --accent-dark: #ef7d00;
  --shadow-sm: 0 4px 14px rgba(13, 110, 167, 0.08);
  --shadow: 0 12px 34px rgba(13, 110, 167, 0.14);
  --shadow-lg: 0 24px 60px rgba(11, 58, 99, 0.20);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--blue-900); line-height: 1.18; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.3px; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 14px; }

.lead { font-size: 1.12rem; color: var(--muted); }
.eyebrow {
  display: inline-block;
  background: rgba(14, 165, 233, 0.12);
  color: var(--blue-700);
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow.on-dark { background: rgba(255,255,255,0.16); color: #fff; }
.tag {
  display: inline-block; background: var(--blue-100); color: var(--blue-700);
  font-size: 0.78rem; font-weight: 800; padding: 5px 14px;
  border-radius: 999px; margin-bottom: 12px; letter-spacing: 0.03em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  font-family: inherit; text-align: center; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: 0 10px 24px rgba(239,125,0,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(239,125,0,.36); }
.btn-blue { background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); color: #fff; box-shadow: var(--shadow); }
.btn-blue:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--blue-700); }
.btn-light:hover { background: var(--blue-50); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: #fff; color: var(--blue-700); border-color: var(--blue-600); }
.btn-outline:hover { background: var(--blue-50); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px; max-width: 1180px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.24rem; color: var(--blue-900); flex-shrink: 0; }
.logo img { width: 58px; height: 58px; flex-shrink: 0; object-fit: contain; }
.logo .brand-sub { display: block; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.09em; color: var(--blue-600); text-transform: uppercase; margin-top: 2px; }

nav.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
nav.main-nav a {
  padding: 9px 13px; border-radius: 999px; font-weight: 600; font-size: 0.94rem; color: var(--blue-900);
  white-space: nowrap; transition: background .15s, color .15s;
}
nav.main-nav a:hover, nav.main-nav a.active { background: var(--blue-600); color: #fff; }

/* Dropdown "Услуги" */
.nav-item { display: flex; align-items: center; }
.nav-item.has-dropdown { position: relative; }
.nav-item.has-dropdown > a::after { content: "⌄"; font-size: 0.85em; margin-left: 5px; position: relative; top: -2px; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 258px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: none; flex-direction: column; gap: 2px; z-index: 70; }
.dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-item.has-dropdown:hover .dropdown { display: flex; }
.dropdown a { padding: 11px 14px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; color: var(--blue-900); white-space: nowrap; }
.dropdown a:hover { background: var(--blue-50); color: var(--blue-700); }
.dropdown-right { left: auto; right: 0; }
.dd-hours { padding: 12px 14px 6px; margin-top: 4px; border-top: 1px solid var(--border); font-size: 0.82rem; font-weight: 600; color: var(--muted); line-height: 1.5; }

/* Телефон-дропдаун в шапке */
.phone-dd { display: flex; align-items: center; }
.phone-dd > a.phone-quick::after { display: none; }
.phone-dd .dropdown a { font-weight: 800; color: var(--blue-900); }

.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.phone-quick { font-weight: 800; color: var(--blue-900); white-space: nowrap; font-size: 0.96rem; line-height: 1.1; }
.phone-quick small { display:block; font-size: 0.6rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.7rem; color: var(--blue-900); cursor: pointer; line-height: 1; }

/* Language switcher */
.lang-switch { display: inline-flex; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.lang-switch a { padding: 7px 12px; font-size: 0.78rem; font-weight: 800; color: var(--muted); letter-spacing: .04em; transition: background .15s, color .15s; }
.lang-switch a:hover { background: var(--blue-50); color: var(--blue-700); }
.lang-switch a.active { background: var(--blue-600); color: #fff; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(165deg, var(--blue-100) 0%, #fff 62%); padding: 72px 0 44px; overflow: hidden; }
.hero.compact { padding: 52px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-banner { border-radius: 26px; box-shadow: var(--shadow-lg); width: 100%; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.trust-strip { display: flex; flex-wrap: nowrap; gap: 12px 34px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--border); }
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; color: var(--blue-900); white-space: nowrap; }
.trust-item svg { width: 22px; height: 22px; color: var(--blue-600); flex-shrink: 0; }

.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--blue-700); font-weight: 600; }
.breadcrumbs span { margin: 0 6px; opacity: .6; }

/* ---------- Sections ---------- */
section { padding: 68px 0; }
section.tight { padding: 48px 0; }
section.alt { background: var(--blue-50); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .lead { margin: 0 auto; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.icon-badge {
  width: 54px; height: 54px; border-radius: 15px; background: var(--blue-100); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.icon-badge svg { width: 27px; height: 27px; }

/* ---------- Service hub cards ---------- */
.service-card {
  display: flex; flex-direction: column; overflow: hidden; padding: 0;
  border-radius: var(--radius); border: 1px solid var(--border); background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card .thumb { aspect-ratio: 16 / 10; background: var(--blue-900); }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-card .body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.service-card .card-link { margin-top: 16px; font-weight: 800; color: var(--blue-700); display: inline-flex; align-items: center; gap: 6px; }
.service-card:hover .card-link { color: var(--accent-dark); }

/* ---------- Trusted-by logos ---------- */
.logos-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; align-items: stretch; }
.logo-item {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; height: 92px;
  display: flex; align-items: center; justify-content: center; padding: 14px; box-shadow: var(--shadow-sm);
}
.logo-item img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }
.logo-item .logo-ph { font-weight: 800; color: var(--blue-900); text-align: center; font-size: 0.92rem; line-height: 1.2; }

/* ---------- Homepage price cards ---------- */
.price-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .18s, box-shadow .18s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card .p-serv { font-weight: 700; color: var(--blue-900); display: block; margin-bottom: 10px; font-size: 0.98rem; }
.price-card .p-price { font-size: 1.6rem; font-weight: 800; color: var(--blue-700); }
.price-card .p-price small { display: block; font-size: 0.68rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- About split ---------- */
.about-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.about-split img { border-radius: 22px; box-shadow: var(--shadow-lg); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,var(--blue-600),var(--blue-700)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px; box-shadow: var(--shadow-sm); }

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230ea5e9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/15px no-repeat;
}

/* ---------- Price table ---------- */
table.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
table.price-table th { background: var(--blue-700); color: #fff; text-align: left; padding: 16px 22px; font-size: 0.95rem; }
table.price-table td { padding: 15px 22px; border-bottom: 1px solid var(--border); font-size: 0.96rem; }
table.price-table tr:last-child td { border-bottom: none; }
table.price-table tr:nth-child(even) td { background: var(--blue-50); }
.price-col { font-weight: 800; color: var(--blue-700); white-space: nowrap; text-align: right; }
.price-note { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 22px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--blue-900); padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 13px; font-size: 1.5rem; color: var(--blue-600); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- Districts ---------- */
.district-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.district-list span { background: #fff; border: 1px solid var(--border); padding: 9px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--blue-900); box-shadow: var(--shadow-sm); }

/* ---------- SEO text ---------- */
.seo-text { max-width: 960px; margin: 0 auto; }
.seo-text h2, .seo-text h3 { color: var(--blue-900); }
.seo-text h3 { margin-top: 26px; }
.seo-text p { color: var(--muted); margin-bottom: 16px; line-height: 1.78; }
.seo-text a { color: var(--blue-700); font-weight: 700; }

/* ---------- Big lead form ---------- */
.form-section { background: linear-gradient(150deg, var(--blue-800), var(--blue-900)); position: relative; overflow: hidden; }
.form-section::before { content:""; position:absolute; width:420px; height:420px; border-radius:50%; background: var(--blue-600); opacity:.16; top:-120px; right:-80px; }
.form-section::after { content:""; position:absolute; width:360px; height:360px; border-radius:50%; background: var(--blue-500); opacity:.12; bottom:-140px; left:-60px; }
.form-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 48px; align-items: center; }
.form-copy h2, .form-copy h3 { color: #fff; }
.form-copy p { color: var(--blue-100); }
.form-copy .lead { color: var(--blue-100); }
.form-copy .contact-line { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; color: #fff; font-weight: 600; }
.form-copy .contact-line svg { width: 22px; height: 22px; color: var(--blue-500); flex-shrink: 0; }
.form-copy .contact-line a { color: #fff; }

.lead-card { background: #fff; border-radius: 22px; padding: 34px; box-shadow: var(--shadow-lg); }
.lead-card h3 { margin-bottom: 6px; }
.lead-card .form-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
form.request-form { display: grid; gap: 15px; }
form.request-form label { font-weight: 700; font-size: 0.86rem; color: var(--blue-900); margin-bottom: -9px; }
form.request-form input, form.request-form select, form.request-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 11px; border: 1.5px solid var(--border);
  font-size: 0.97rem; font-family: inherit; background: var(--blue-50); color: var(--ink); transition: border .15s, background .15s;
}
form.request-form input:focus, form.request-form select:focus, form.request-form textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-hint { font-size: 0.8rem; color: var(--muted); text-align: center; margin: 4px 0 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); color: #fff; border-radius: 24px; padding: 52px 40px; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--blue-100); max-width: 580px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Guarantee band ---------- */
.guarantee { display: flex; align-items: center; gap: 30px; background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); color: #fff; border-radius: 24px; padding: 40px 46px; box-shadow: var(--shadow); }
.guarantee .g-ico { flex-shrink: 0; width: 92px; height: 92px; border-radius: 22px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; }
.guarantee .g-ico svg { width: 48px; height: 48px; color: #fff; }
.guarantee h2 { color: #fff; margin-bottom: 8px; }
.guarantee p { color: var(--blue-100); margin: 0; max-width: 680px; }
.guarantee .g-body { flex: 1; }
.g-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.g-point { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 14px 16px; font-weight: 600; font-size: 0.92rem; color: #fff; }
.g-point svg { width: 20px; height: 20px; color: var(--blue-500); flex-shrink: 0; }
@media (max-width: 680px) { .guarantee { flex-direction: column; text-align: center; padding: 34px 24px; } .g-points { grid-template-columns: 1fr; } .g-point { justify-content: center; } }

/* Inline CTA под прайсом */
.price-cta { text-align: center; margin-top: 30px; }

/* ---------- Stats (карточки) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { position: relative; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 30px 20px 26px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--blue-500), var(--blue-700)); }
.stat-ico { width: 48px; height: 48px; border-radius: 13px; background: var(--blue-100); color: var(--blue-600); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.stat-ico svg { width: 24px; height: 24px; }
.stat b { display: block; font-size: 2.5rem; color: var(--blue-700); line-height: 1; margin-bottom: 6px; letter-spacing: -1px; }
.stat span { color: var(--muted); font-weight: 600; font-size: 0.92rem; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--blue-900); color: var(--blue-100); padding: 54px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 36px; margin-bottom: 34px; }
.footer-grid h4 { color: #fff; margin: 0 0 15px; font-size: 0.98rem; }
.footer-grid a, .footer-grid p { color: var(--blue-100); font-size: 0.92rem; }
.footer-grid a:hover { color: #fff; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-logo { display:flex; align-items:center; gap:10px; font-weight:800; font-size:1.2rem; color:#fff; margin-bottom:14px; }
.footer-logo img { width: 52px; height: 52px; object-fit: contain; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; font-size: 0.82rem; color: var(--blue-500); text-align: center; }
.footer-bottom a { color: var(--blue-100); text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .js-privacy { cursor: pointer; }

/* ---------- Блокировки скролла ---------- */
body.nav-open, body.modal-open { overflow: hidden; }

/* ---------- Липкая мобильная кнопка ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(13,110,167,.12); display: none; }
.mobile-cta .btn { width: 100%; }

/* ---------- Модальное окно (политика) ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(11,58,99,.55); display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 200; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 18px; max-width: 760px; width: 100%; padding: 34px 36px 30px; box-shadow: var(--shadow-lg); position: relative; }
.modal .modal-title { padding-right: 46px; margin-bottom: 6px; }
.modal h3 { font-size: 1.02rem; margin: 20px 0 6px; }
.modal p { color: var(--muted); font-size: 0.94rem; line-height: 1.7; margin: 0 0 10px; }
.modal p a { color: var(--blue-700); font-weight: 700; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: #fff; font-size: 1.4rem; line-height: 1; color: var(--blue-900); cursor: pointer; transition: background .15s; }
.modal-close:hover { background: var(--blue-50); }
.modal-thanks { max-width: 440px; text-align: center; padding-top: 40px; }
.modal-thanks .modal-title { padding: 0; margin-bottom: 8px; }
.modal-thanks p { text-align: center; font-size: 1rem; }
.thanks-ico { width: 66px; height: 66px; border-radius: 50%; background: #e6f7ec; color: #22a55b; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 800; margin: 0 auto 16px; }

/* ---------- Мобильное меню: аккуратный список ---------- */
@media (max-width: 760px) {
  nav.main-nav { align-items: stretch; gap: 0; padding: 4px 20px 14px; }
  nav.main-nav > a,
  .nav-item.has-dropdown > a {
    display: block; width: 100%; text-align: left; white-space: normal;
    padding: 14px 4px; border-radius: 0; font-size: 1rem; font-weight: 600;
    border-bottom: 1px solid var(--border);
  }
  nav.main-nav > a:hover,
  .nav-item.has-dropdown > a:hover,
  nav.main-nav a.active { background: transparent; color: var(--blue-700); }
  .nav-item.has-dropdown { width: 100%; }
  .dropdown {
    position: static; display: flex; min-width: 0; margin: 0;
    padding: 4px 0 8px; background: var(--blue-50);
    border: none; border-bottom: 1px solid var(--border); box-shadow: none;
  }
  .dropdown::before { display: none; }
  .dropdown a {
    padding: 11px 4px 11px 22px; font-size: 0.92rem;
    color: var(--muted); font-weight: 600; border-radius: 0;
  }
  .dropdown a:hover { background: transparent; color: var(--blue-700); }
  .mobile-cta { display: block; }
  .mobile-cta.is-hidden { display: none; }
}

/* ---------- Мобильный футер: 2 колонки + лого по центру ---------- */
@media (max-width: 640px) {
  .footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; text-align: left; }
  .footer-grid > div:nth-child(2) { order: 1; }
  .footer-grid > div:nth-child(3) { order: 2; }
  .footer-grid > div:nth-child(1) { order: 3; grid-column: 1 / -1; text-align: center; margin-top: 6px; }
  .footer-grid > div:nth-child(1) .footer-logo { justify-content: center; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .phone-quick, .phone-dd { display: none; }
}
@media (max-width: 1040px) {
  nav.main-nav a { padding: 9px 10px; font-size: 0.9rem; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .form-wrap { grid-template-columns: 1fr; gap: 32px; }
  .about-split { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .price-cards { grid-template-columns: repeat(2, 1fr); }
  .logos-strip { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { flex-wrap: wrap; gap: 12px 24px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; margin-left: auto; }
  .header-cta .btn { display: none; }
  nav.main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px 20px 22px; gap: 4px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 12px 14px; }
  .header-bar { position: relative; flex-wrap: wrap; }
  .nav-item, .nav-item.has-dropdown { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-item.has-dropdown > a::after { display: none; }
  .dropdown { position: static; display: flex; min-width: 0; padding: 0 0 6px 16px; background: transparent; border: none; box-shadow: none; }
  .dropdown::before { display: none; }
  .dropdown a { padding: 9px 12px; font-size: 0.92rem; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .form-row-2, .steps { grid-template-columns: 1fr; }
  .price-cards { grid-template-columns: 1fr 1fr; }
  .logos-strip { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  section { padding: 48px 0; }
  .cta-band { padding: 38px 22px; }
  .lead-card { padding: 24px; }
}
