/* ============================================================
   EVA30 — модельные автоковрики EVA в Астрахани
   Дизайн-система: графит + оранжевый акцент, соты EVA
   ============================================================ */

:root {
  --dark: #16191d;
  --dark-2: #1f242b;
  --dark-3: #2a3038;
  --gray-6: #444c56;
  --gray-5: #6b7683;
  --gray-4: #9aa4b0;
  --gray-3: #c9d0d8;
  --gray-2: #e6eaee;
  --gray-1: #f4f6f8;
  --white: #ffffff;
  --accent: #f57c00;
  --accent-2: #ff9d2e;
  --accent-dark: #d96d00;
  --ok: #2e7d32;
  --radius: 14px;
  --radius-s: 8px;
  --shadow: 0 6px 24px rgba(15, 18, 22, .08);
  --shadow-lg: 0 14px 40px rgba(15, 18, 22, .16);
  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; vertical-align: middle; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Типографика ---------- */
h1, h2, h3, h4 { line-height: 1.25; color: var(--dark); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.4vw, 44px); margin: 0 0 18px; }
h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 16px; }
h3 { font-size: clamp(19px, 2.4vw, 23px); margin: 0 0 10px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px 22px; }
li { margin-bottom: 6px; }
.lead { font-size: 18.5px; color: var(--gray-6); }

.section { padding: 56px 0; }
.section--gray { background: var(--gray-1); }
.section--dark { background: var(--dark); color: var(--gray-3); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section-head { max-width: 780px; margin-bottom: 30px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent-dark);
  background: rgba(245, 124, 0, .1);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--accent-2); background: rgba(255, 157, 46, .14); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: var(--white); box-shadow: 0 8px 22px rgba(245, 124, 0, .35); }
.btn--primary:hover { box-shadow: 0 12px 28px rgba(245, 124, 0, .45); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { border-color: var(--white); }
.btn--dark { background: var(--dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--dark); box-shadow: var(--shadow); }

/* ---------- Шапка ---------- */
.topbar { background: var(--dark); color: var(--gray-4); font-size: 13.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: var(--gray-3); }
.topbar b { color: var(--white); }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-2);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; color: var(--dark); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo .logo-hex { flex: 0 0 auto; }
.logo em { font-style: normal; color: var(--accent-dark); }
.logo small { display: block; font-size: 10.5px; font-weight: 600; color: var(--gray-5); letter-spacing: .08em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { list-style: none; position: relative; }
.nav a { display: block; padding: 10px 13px; font-weight: 600; font-size: 15px; color: var(--dark-2); border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a.is-active { background: var(--gray-1); color: var(--accent-dark); text-decoration: none; }

.nav-drop { position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius-s); box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease; z-index: 60; }
.nav > li:hover .nav-drop, .nav > li:focus-within .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop a { padding: 9px 12px; font-size: 14.5px; }
.nav-drop .nav-drop-note { font-size: 11.5px; color: var(--gray-5); padding: 6px 12px 4px; border-top: 1px solid var(--gray-2); margin-top: 4px; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { margin-left: 6px; }

.burger { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; padding: 8px; }
.burger span { display: block; height: 3px; background: var(--dark); border-radius: 2px; margin: 5px 0; transition: all .2s; }

/* ---------- Hero ---------- */
.hero { background: var(--dark) radial-gradient(1100px 500px at 78% -10%, rgba(245, 124, 0, .22), transparent 60%); color: var(--gray-3); overflow: hidden; position: relative; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero .lead { color: var(--gray-4); font-size: 19px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 26px; color: var(--white); font-weight: 900; }
.hero-stats div span { font-size: 13.5px; color: var(--gray-5); }
.hero-art { position: relative; }

.honeycomb-bg { position: absolute; inset: 0; opacity: .5; pointer-events: none; }

/* ---------- Карточки ---------- */
.grid { display: grid; gap: 22px; }
.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: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card h3 a { color: inherit; }
.card .card-note { color: var(--gray-5); font-size: 14px; }
.card .price { font-size: 24px; font-weight: 900; color: var(--dark); margin: 10px 0 2px; }
.card .price small { font-size: 13.5px; font-weight: 600; color: var(--gray-5); }
.card .btn { margin-top: 16px; }

.icon-tile {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 124, 0, .1);
  border-radius: 13px;
  margin-bottom: 16px;
}
.section--dark .icon-tile { background: rgba(255, 157, 46, .14); }

/* ---------- Модельные карточки ---------- */
.model-card { padding: 20px; gap: 4px; }
.model-card .mc-brand { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gray-5); }
.model-card h3 { font-size: 19px; margin: 2px 0 6px; }
.model-card .mc-price { margin-top: auto; padding-top: 10px; font-weight: 800; color: var(--accent-dark); font-size: 16.5px; }
.model-card .mc-gens { font-size: 13px; color: var(--gray-5); }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-2); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--gray-2); vertical-align: top; }
thead th { background: var(--dark); color: var(--white); font-size: 13.5px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--gray-1); }
td b { color: var(--dark); }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { font-size: 13.5px; color: var(--gray-5); padding: 16px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--gray-4); }
.breadcrumbs a { color: var(--gray-5); }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs [aria-current] { color: var(--dark-2); font-weight: 600; }

/* ---------- Отзывы ---------- */
.review { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.review .stars { color: var(--accent); letter-spacing: 2px; font-size: 17px; margin-bottom: 8px; }
.review p { font-size: 15.5px; }
.review footer { margin-top: 12px; font-size: 14px; color: var(--gray-5); font-weight: 600; }
.review .review-car { display: inline-block; background: var(--gray-1); border-radius: 100px; padding: 3px 12px; font-size: 12.5px; color: var(--gray-6); margin-top: 6px; }

.rating-summary { display: inline-flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); padding: 14px 20px; box-shadow: var(--shadow); margin-bottom: 26px; }
.rating-summary .big { font-size: 34px; font-weight: 900; color: var(--dark); line-height: 1; }
.rating-summary .stars { color: var(--accent); font-size: 18px; letter-spacing: 2px; }

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius-s); padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 16.5px; 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: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent-dark); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; color: var(--gray-6); }

/* ---------- Форма ---------- */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 13.5px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15.5px;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-3);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--dark-2);
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.form-hint { font-size: 12.5px; color: var(--gray-5); margin-top: 4px; }
.form-note { font-size: 12.5px; color: var(--gray-5); margin-top: 14px; }

/* ---------- Цвета (сваи) ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: 14px; }
.swatch { text-align: center; width: 92px; }
.swatch .dot { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 8px; border: 3px solid var(--white); box-shadow: 0 0 0 1.5px var(--gray-3), var(--shadow); }
.swatch span { font-size: 13px; color: var(--gray-6); font-weight: 600; display: block; }

/* ---------- Бейджи, заметки ---------- */
.badge { display: inline-block; font-size: 12.5px; font-weight: 700; border-radius: 100px; padding: 4px 12px; background: rgba(46, 125, 50, .1); color: var(--ok); }
.badge--orange { background: rgba(245, 124, 0, .12); color: var(--accent-dark); }
.badge--gray { background: var(--gray-2); color: var(--gray-6); }

.callout { background: rgba(245, 124, 0, .07); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-s) var(--radius-s) 0; padding: 16px 20px; margin: 18px 0; }
.callout p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.step { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-size: 26px; font-weight: 900; color: rgba(245, 124, 0, .35); margin-bottom: 8px; }

/* ---------- КТ-блок ---------- */
.cta-band { background: linear-gradient(120deg, var(--dark) 0%, #2a2015 100%); color: var(--gray-3); position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 1; padding-top: 54px; padding-bottom: 54px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { max-width: 620px; }

/* ---------- Статья ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article .meta { font-size: 13.5px; color: var(--gray-5); margin-bottom: 22px; }
.article h2 { margin-top: 38px; }
.article h3 { margin-top: 26px; }
.article ul, .article ol { margin-bottom: 18px; }
.article table { margin: 18px 0; }
.article .toc { background: var(--gray-1); border: 1px solid var(--gray-2); border-radius: var(--radius); padding: 20px 24px; margin: 22px 0; }
.article .toc b { display: block; margin-bottom: 8px; }
.article .toc ol { margin-left: 20px; }

/* ---------- Подвал ---------- */
.footer { background: var(--dark); color: var(--gray-4); font-size: 14.5px; padding: 52px 0 26px; }
.footer a { color: var(--gray-3); }
.footer a:hover { color: var(--accent-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.footer h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; }
.footer li { margin-bottom: 9px; }
.footer .logo { color: var(--white); margin-bottom: 14px; }
.footer .logo small { color: var(--gray-5); }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; color: var(--gray-5); }

/* ---------- Адаптив ---------- */
@media (max-width: 1020px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-2);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    gap: 2px;
  }
  .nav.is-open { display: flex; }
  .nav-drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .burger { display: block; }
  .header-cta .btn { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}

/* Рекламные блоки РСЯ: пустые скрыты */
.rsya{margin:26px 0;min-height:0}
.rsya:empty{display:none}
/* Cookie-баннер (включается флагом COOKIES_ENABLED) */
.cookie{position:fixed;left:16px;right:16px;bottom:16px;z-index:100;max-width:720px;margin:0 auto;background:#1c1f24;color:#e8eaed;border-radius:14px;padding:16px 18px;display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.cookie[hidden]{display:none}
.cookie p{margin:0;flex:1 1 320px;font-size:14px}
.cookie a{color:#ffb562}
