/* avtoritet78.ru — main.css  2026-04-20
   Mobile-first. System fonts. ~15 KB target (gzip ~3-4 KB).
   ---------------------------------------------------- */

:root {
  --navy: #0E2240;
  --navy-2: #1C4070;
  --navy-3: #264e88;
  --orange: #F7931E;
  --orange-2: #FF9F2E;
  --ink: #1a2333;
  --muted: #5b6a83;
  --bg: #ffffff;
  --soft: #f5f7fb;
  --border: #e3e8f0;
  --green: #16a34a;
  --red: #dc2626;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 6px rgba(15,30,60,.07);
  --shadow: 0 8px 28px rgba(15,30,60,.10);
  --maxw: 1200px;
  --header-h: 72px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
          "Helvetica Neue", Arial, "PT Sans", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-decoration: underline;
    text-decoration-color: rgba(28,64,112,.25); text-underline-offset: 3px; }
a:hover { color: var(--orange); text-decoration-color: var(--orange); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- HEADER ---------- */
.site-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-bottom: 3px solid var(--orange);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.site-header a { color: #fff; text-decoration: none; }
.site-header a:hover { color: var(--orange); }
.header-wrap {
  display: flex; align-items: center; gap: 16px;
  min-height: var(--header-h); padding-top: 12px; padding-bottom: 12px;
}
.logo {
  display: flex; flex-direction: column; line-height: 1.1;
  font-weight: 800; letter-spacing: -.01em;
}
.logo-mark { font-size: 26px; color: #fff; }
.logo-dot { color: var(--orange); }
.logo-sub { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.72); margin-top: 2px; }

.header-phone { margin-left: auto; text-align: right; display: none; white-space: nowrap; }
.header-phone .p-num { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.header-phone .p-sub { font-size: 10.5px; color: rgba(255,255,255,.72); }

.cta-button, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: #fff !important;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none !important;
  border: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(247,147,30,.35);
  transition: transform .12s, background .12s;
}
.cta-button:hover, .btn-primary:hover {
  background: var(--orange-2); color: #fff !important; transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--navy) !important;
  padding: 11px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none !important;
  border: 2px solid var(--navy); cursor: pointer;
}
.btn-secondary:hover { background: var(--navy); color: #fff !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0; margin-left: auto;
  background: transparent; border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #fff;
  margin: 0 auto; transition: transform .15s;
}
.nav { display: none; }
.nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--navy); border-top: 1px solid rgba(255,255,255,.1); }
.nav-menu { list-style: none; margin: 0; padding: 8px 0; }
.nav-menu a {
  display: block; padding: 14px 20px; color: #fff; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-menu a:hover { background: rgba(255,255,255,.06); color: var(--orange); }
.nav-menu a[aria-current="page"] { color: var(--orange); }
.header-cta-mobile { padding: 12px 20px; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  padding: 48px 0 56px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,147,30,.18), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px; border: 1px solid var(--orange);
  border-radius: 999px; color: var(--orange); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 52px); font-weight: 800; line-height: 1.08;
  margin: 0 0 18px; color: #fff; letter-spacing: -.02em;
}
.hero-lead {
  font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,.88);
  max-width: 640px; margin-bottom: 28px;
}
.hero-features {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px;
}
/* в navy-hero — белый текст на полупрозрачной белой плашке */
.hero .hero-features span {
  display: inline-block; padding: 8px 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.9);
}
/* вне navy-hero (direction/service страницы на светлом фоне) — navy-текст на soft-плашке */
main.main .hero-features span {
  display: inline-block; padding: 8px 14px;
  background: var(--soft); border: 1px solid var(--border);
  border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--navy);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- MAIN / TYPOGRAPHY ---------- */
main.main { padding: 32px 0 48px; min-height: 60vh; }

.page-h1 {
  font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.15;
  color: var(--navy); margin: 0 0 20px; letter-spacing: -.01em;
}
h2 {
  font-size: clamp(22px, 2.8vw, 30px); font-weight: 700;
  color: var(--navy); margin: 36px 0 14px; line-height: 1.2;
  position: relative; padding-left: 16px;
}
h2::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 4px; border-radius: 2px; background: var(--orange);
}
h3 {
  font-size: clamp(18px, 2.2vw, 22px); font-weight: 700;
  color: var(--navy); margin: 24px 0 10px;
}
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 4px; }

.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--border); }
.crumbs a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.crumb-sep { margin: 0 8px; color: var(--border); }

/* ---------- CARDS ---------- */
.card-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px; margin: 24px 0;
}
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  text-decoration: none; color: inherit; display: block;
}
.card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow);
  border-color: var(--navy-3); color: inherit;
}
.card h3 { color: var(--navy); margin: 0 0 8px; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.card-more { display: inline-flex; align-items: center; gap: 4px;
  color: var(--navy-2); font-weight: 600; font-size: 14px;
  text-decoration: none; border-bottom: 1px solid currentColor; }
.card-more::after { content: " →"; }
.card-eyebrow { font-size: 12px; font-weight: 700; color: var(--orange);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }

.card-compact { padding: 16px; }
.card-compact h3 { font-size: 16px; margin: 0 0 4px; }
.card-compact p { font-size: 13px; margin: 0; }

/* ---------- TABLES ---------- */
.table-wrap { overflow-x: auto; margin: 16px 0; border-radius: var(--radius);
  border: 1px solid var(--border); background: #fff; }
table {
  width: 100%; border-collapse: collapse; font-size: 15px;
}
table th, table td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--border);
}
table th { background: var(--soft); color: var(--navy); font-weight: 700; }
table tr:last-child td { border-bottom: 0; }
table tr:hover td { background: rgba(28,64,112,.02); }

/* ---------- FORMS ---------- */
.form {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; max-width: 560px;
}
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 14px; font-weight: 600;
  color: var(--navy); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; font: inherit; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
  transition: border-color .12s, box-shadow .12s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--navy-2);
  box-shadow: 0 0 0 3px rgba(28,64,112,.12);
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-row .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row.two-col > label { grid-column: 1 / -1; }
/* honeypot — скрытое поле для ботов */
.form-row.hp { position: absolute; left: -9999px; top: -9999px; }

.form-submit { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; }
.form-success {
  background: #ecfdf5; border: 1px solid #bbf7d0; color: #14532d;
  padding: 14px 18px; border-radius: var(--radius); margin-top: 14px;
}
.form-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  padding: 14px 18px; border-radius: var(--radius); margin-top: 14px;
}

/* ---------- CALCULATOR ---------- */
.calc {
  background: linear-gradient(135deg, var(--soft), #fff);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; margin: 24px 0;
}
.calc h3 { margin-top: 0; }
.calc-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 16px;
}
.calc-result {
  background: var(--navy); color: #fff; padding: 18px 22px;
  border-radius: var(--radius); font-size: 17px;
}
.calc-result .price { font-weight: 800; font-size: 26px; color: var(--orange); }
.calc-result .hint { color: rgba(255,255,255,.72); font-size: 13px; margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq { margin: 32px 0; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px; font-weight: 600; cursor: pointer;
  list-style: none; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; color: var(--orange); font-weight: 700;
  transition: transform .15s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 20px 16px; color: var(--ink); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- SAPE BLOCK ---------- */
.sape-box {
  background: var(--soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; margin: 24px 0;
  font-size: 13px;
}
.sape-box-title { font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.sape-links { min-height: 30px; color: var(--muted); line-height: 1.5; }
.sape-links a { color: var(--muted); border-bottom: 1px dotted var(--border);
  text-decoration: none; margin-right: 4px; }
.sape-links a:hover { color: var(--navy-2); border-bottom-color: var(--navy-2); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,.82); padding: 40px 0 24px;
  margin-top: 48px;
}
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: var(--orange); }
.footer-wrap {
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
.foot-col strong { color: #fff; font-size: 16px; display: block; margin-bottom: 8px; }
.foot-col h4 { color: #fff; font-size: 15px; margin: 0 0 10px; font-weight: 700; }
.foot-links { display: flex; flex-direction: column; gap: 6px; }
.foot-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
  font-size: 13px; color: rgba(255,255,255,.55); text-align: center;
}

/* ---------- STICKY BOTTOM CTA (mobile) ---------- */
.sticky-cta {
  display: flex; align-items: center; gap: 10px;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  padding: 10px 14px; background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(15,30,60,.08);
}
.sticky-cta .phone-link {
  flex: 1; display: flex; flex-direction: column;
  color: var(--navy); text-decoration: none; line-height: 1.1;
}
.sticky-cta .phone-link .p-num { font-size: 17px; font-weight: 800; }
.sticky-cta .phone-link .p-sub { font-size: 11px; color: var(--muted); }
.sticky-cta .cta-button { padding: 11px 18px; font-size: 14px; }

/* ---------- SERVICES / VEHICLES ICON ---------- */
.icon-circle {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(247,147,30,.12); color: var(--orange);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 12px;
}

/* ---------- SECTIONS ---------- */
.section { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 28px; }
.section-title h2 { padding: 0; margin: 0 0 8px; }
.section-title h2::before { display: none; }
.section-title p { color: var(--muted); font-size: 16px; }
.section-alt { background: var(--soft); }

/* ---------- USP / BENEFITS ---------- */
.usp-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px; margin: 24px 0;
}
.usp-item {
  background: #fff; padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--border); display: flex; gap: 14px;
}
.usp-item .icon-circle { margin-bottom: 0; flex-shrink: 0; width: 44px; height: 44px; font-size: 22px; }
.usp-item h4 { margin: 0 0 4px; font-size: 16px; color: var(--navy); }
.usp-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- CTA BLOCK ---------- */
.cta-block {
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: #fff; padding: 32px; border-radius: var(--radius-lg);
  text-align: center; margin: 32px 0;
}
.cta-block h3 { color: #fff; margin: 0 0 10px; font-size: 24px; }
.cta-block p { color: rgba(255,255,255,.8); margin: 0 0 20px; font-size: 15px; }

/* ---------- LEGACY CONTENT OVERRIDES ---------- */
.legacy-content { font-size: 16px; line-height: 1.65; overflow-x: auto; }
.legacy-content img { border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 12px 0; }
.legacy-content table { background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); max-width: 100% !important; width: 100% !important;
  table-layout: auto; }
/* Kill inline width/height attributes on legacy elements */
.legacy-content [width], .legacy-content [height] { width: auto !important; }
.legacy-content img[width] { max-width: 100%; height: auto; }
.legacy-content p[align], .legacy-content div[align] { text-align: inherit !important; }
.legacy-content center { text-align: inherit; display: block; }
.legacy-content font { font-family: inherit !important; color: inherit !important; }
.legacy-content [style*="width:"] { max-width: 100% !important; }
.legacy-content [style*="font-size"] { font-size: inherit !important; }
.legacy-content [style*="color"] { color: inherit !important; }

/* avtopark.html — "Перейти на страницу" td */
.legacy-content .perehod {
  background: var(--orange) !important;
  border-radius: 8px;
}
.legacy-content .perehod a,
.legacy-content .perehod[style*="color"] a {
  color: #fff !important; text-decoration: none !important;
  display: block; padding: 10px 14px; font-weight: 700;
}
.legacy-content .perehod:hover { background: var(--orange-2) !important; }

/* avtopark.html — прячем декоративные 10px-полоски слева от названия машины */
.legacy-content td[style*="background-color:#ff7510"][style*="width:10px"] {
  display: none !important;
}
/* Название машины ("Камаз","Еврофура",...) — усилить контраст */
.legacy-content table td[style*="font-size: 30px"] {
  font-size: 24px !important; font-weight: 800; color: var(--navy) !important;
  padding: 12px 14px !important;
}

/* ceny/ — tabulous-tabs (4 прайс-таблицы), отменяем position:absolute и выводим стопкой */
.legacy-content [id^="tabs-price"] {
  position: static !important; top: auto !important; left: auto !important;
  margin: 0 0 28px !important; padding: 0;
}
.legacy-content #tabs-price { border: none !important; }
/* Дублирующие tabulous-пиллы прячем — под каждой таблицей есть navy-заголовок через ::before */
.legacy-content #tabs-price > ul,
.legacy-content .tabulous { display: none !important; }

/* перед каждой tabs-price-N таблицей — ярлык тарифа (визуальная разметка) */
.legacy-content #tabs-price-1::before { content: "Евротентами 20 тонн, 82 м³"; }
.legacy-content #tabs-price-2::before { content: "Евротентами 10–15 тонн, 40–55 м³"; }
.legacy-content #tabs-price-3::before { content: "Автомобилем 5 тонн, 25 м³"; }
.legacy-content #tabs-price-4::before { content: "Автомобилем 1,5–2 тонны, 9–12 м³"; }
.legacy-content [id^="tabs-price-"]::before {
  display: block; font-size: 18px; font-weight: 700; color: var(--navy);
  margin: 32px 0 12px; padding: 10px 14px;
  background: var(--navy); color: #fff; border-radius: 8px;
}

@media (max-width: 639px) {
  .legacy-content table,
  .legacy-content tbody,
  .legacy-content tr,
  .legacy-content td,
  .legacy-content th {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    border-right: 0 !important;
  }
  .legacy-content td, .legacy-content th { padding: 8px 4px !important; }
  .legacy-content img { width: auto !important; max-width: 100% !important; height: auto !important; }
}

/* body padding bottom to not hide behind sticky CTA on mobile */
body.has-sticky { padding-bottom: 78px; }

/* ---------- RESPONSIVE (tablet + up) ---------- */
@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .footer-wrap { grid-template-columns: 1.5fr 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr 1fr; }
  .form-row.two-col { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .usp-grid { grid-template-columns: repeat(4, 1fr); }
  body.has-sticky { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .header-phone { display: block; }
  .nav-toggle { display: none; }
  .nav {
    display: flex !important; position: static !important; background: transparent !important;
    border: none !important;
  }
  .nav-menu {
    display: flex; gap: 4px; padding: 0; background: transparent;
  }
  .nav-menu a {
    padding: 10px 14px; border-radius: 8px; border-bottom: 0 !important;
    font-size: 15px; white-space: nowrap;
  }
  .nav-menu a:hover { background: rgba(255,255,255,.1); }
  .header-cta-desktop { display: inline-flex !important; margin-left: 8px; }
  .header-cta-mobile { display: none; }
}

@media (min-width: 1100px) {
  .card-grid.g-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 639px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 32px 0 40px; }
  main.main { padding: 20px 0 28px; }
  h2 { margin: 28px 0 10px; }
  .form { padding: 18px; }
  .cta-block { padding: 22px 18px; }
  .header-cta-desktop { display: none; }
}

/* ---------- UTILITY ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mb-0 { margin-bottom: 0 !important; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.divider { height: 1px; background: var(--border); margin: 32px 0; border: 0; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(28,64,112,.08); color: var(--navy); font-size: 12px; font-weight: 600;
}
.price-from {
  display: inline-block; padding: 4px 10px;
  background: rgba(247,147,30,.12); color: #b45309;
  border-radius: 999px; font-weight: 700; font-size: 13px;
}
