/* =========================================================
   TENET T8 — основной файл стилей
   Адаптив: >1200 / 960-1200 / 640-960 / 480-640 / 320-480
========================================================= */

@import url('/css/fonts.css');

/* ─────────────────────────────────────────────────────────
   ПЕРЕМЕННЫЕ
───────────────────────────────────────────────────────── */
:root {
  --red:       #d0021b;
  --red-hover: #ad0017;
  --ink:       #1a1d20;
  --muted:     #697077;
  --line:      #e6e8ea;
  --white:     #ffffff;
  --paper:     #f7f7f5;
  --gray:      #f1f2f2;
  --graphite:  #1b1e21;
  --radius:    12px;
  --shadow:    0 8px 32px rgba(0,0,0,.10);
  --page-w:    88%;
  --header-h:  94px;
  --transition: 0.25s ease;
}

/* ─────────────────────────────────────────────────────────
   СБРОС И БАЗА
───────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: 'TENETSans-Regular', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(255,255,255,.08), transparent 70%),
    linear-gradient(135deg, #717b85 0%, #25292d 48%, #a0a5aa 100%);
  background-attachment: fixed;
}

a  { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, strong, b, .btn {
  font-family: 'TENETSans-Bold', Arial, sans-serif;
}

.page-wrapper {
  width: 100%;
  max-width: var(--page-w);
  min-height: 100vh;
  margin: 0 auto;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 80px rgba(0,0,0,.4);
}

/* ─────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 50%;
  z-index: 1000;
  width: var(--page-w);
  padding: 12px 0;
  transform: translateX(-50%);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled { box-shadow: 0 5px 24px rgba(0,0,0,.15); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 2%;
  padding: 10px 36px;
  background: var(--gray);
  border: 1px solid rgb(4 8 12 / 87%);
  border-radius: 18px;
}

.header-logo { display: flex; flex-direction: column; flex-shrink: 0; gap: 4px; }
.logo-img    { width: auto; height: 38px; margin-left: -10px; }
.header-dealer {
  font-size: .58rem; line-height: 1;
  letter-spacing: .45px; text-transform: uppercase; white-space: nowrap;
}

/* ── Десктопная навигация ── */
.main-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 25px;
}
.main-nav a {
  position: relative;
  padding: 8px 0 4px;
  font-size: .82rem;
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.main-nav a::after {
  position: absolute; right: 0; bottom: 0; left: 0;
  height: 2px; content: '';
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.main-nav a:hover       { color: var(--red); }
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active      { color: var(--red); }

.header-right { display: flex; align-items: center; flex-shrink: 0; gap: 18px; }
.header-address {
  padding-right: 18px;
  color: #62676b;
  border-right: 1px solid #b9bdc0;
  font-size: .72rem; line-height: 1.4; white-space: nowrap;
}
.header-phone  { color: var(--red); font-size: .87rem; font-weight: 700; white-space: nowrap; }

.btn-pick {
  padding: 9px 20px;
  background: transparent;
  border: 1.5px solid var(--red);
  border-radius: 25px;
  font-size: .8rem; font-weight: 700;
  min-height: 40px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-pick:hover { color: var(--white); background: var(--red); }

/* ── Гамбургер (скрыт на десктопе) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1.5px solid rgba(26,29,32,.18);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Мобильное меню-дровер ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 999;
  background: var(--white);
  border-bottom: 2px solid var(--line);
  padding: 20px 24px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  transform: translateY(-110%);
  transition: transform .3s ease;
}
.mobile-nav.is-open {
  transform: translateY(0);
}
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--red); }
.mobile-nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 20px;
  background: var(--red);
  color: var(--white) !important;
  border-radius: 10px;
  font-size: 1.05rem !important;
  font-weight: 700;
  border: none !important;
  justify-content: center;
}

/* ─────────────────────────────────────────────────────────
   КНОПКИ
───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: 9px;
  font-size: .9rem;
  line-height: 1;
  min-height: 46px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-red          { color: var(--white); background: var(--red); border-color: var(--red); }
.btn-red:hover    { background: var(--red-hover); border-color: var(--red-hover); }
.btn-outline      { color: var(--ink); background: transparent; border-color: var(--ink); }
.btn-outline:hover{ color: var(--white); background: var(--ink); }
.btn-outline-light      { color: var(--white); border-color: rgba(255,255,255,.8); }
.btn-outline-light:hover{ color: var(--ink); background: var(--white); }
.wide { width: 100%; }

/* ─────────────────────────────────────────────────────────
   СЕКЦИИ — ОБЩЕЕ
───────────────────────────────────────────────────────── */
.section      { padding: 68px 50px; }
.section-white{ background: var(--white); }
.section-gray { background: var(--gray); }
.section-dark { color: var(--white); background: var(--graphite); }

.eyebrow {
  margin-bottom: 8px;
  color: var(--red);
  font-size: .76rem; font-weight: 800;
  letter-spacing: 1.15px; text-transform: uppercase;
}
h2 { margin-bottom: 9px; font-size: 1.9rem; line-height: 1.15; }
.section-sub {
  max-width: 680px;
  margin-bottom: 29px;
  color: var(--muted);
  font-size: 1rem;
}
.legal { margin-top: 16px; color: var(--muted); font-size: .72rem; }

/* ─────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 610px;
  margin: 0 2%;
  overflow: hidden;
  background: #2b2f33;
  border-radius: 18px;
}
.hero-image {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(17,19,22,.9),
      rgba(17,19,22,.62) 40%,
      rgba(17,19,22,.17) 69%,
      rgba(17,19,22,.04)),
    url('/images/tenet t8.jpg') center / cover no-repeat;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 660px;
  padding: 92px 50px;
  color: var(--white);
}
.hero-content .eyebrow { color: #ffd6db; }
.hero-content h1       { margin-bottom: 15px; font-size: 3.2rem; line-height: 1; }
.hero-content h1 span, h1 span { color: var(--red); font-size: 130%; }
.hero-subtitle { max-width: 530px; font-size: 1.06rem; color: rgba(255,255,255,.94); }
.hero-offer    { margin: 24px 0; color: #d8dbdd; font-size: 1rem; }
.hero-offer strong { color: var(--white); font-size: 1.72rem; }
.hero-offer span   { font-size: .87rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-facts   { display: flex; gap: 25px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.25); }
.hero-facts span { display: flex; flex-direction: column; color: #e2e5e7; font-size: .75rem; }
.hero-facts b    { color: var(--white); font-size: 1.15rem; }
.hero-content small { display: block; margin-top: 15px; color: rgba(255,255,255,.55); font-size: .66rem; }

/* ─────────────────────────────────────────────────────────
   СЛАЙДЕР
───────────────────────────────────────────────────────── */
.model-photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #dfe2e4;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.slider-track   { position: relative; width: 100%; height: 100%; }
.slider-slide   {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; pointer-events: none;
  transition: opacity .45s ease;
}
.slider-slide.is-active { opacity: 1; pointer-events: auto; }
.slider-button {
  position: absolute; top: 50%; z-index: 2;
  display: grid; width: 42px; height: 42px; place-items: center;
  color: #fff;
  background: rgba(20,23,26,.72);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.slider-button:hover { background: var(--red); transform: translateY(-50%) scale(1.06); }
.slider-button-prev { left: 16px; }
.slider-button-next { right: 16px; }
.slider-dots {
  position: absolute; bottom: 16px; left: 50%; z-index: 2;
  display: flex; gap: 8px;
  transform: translateX(-50%);
}
.slider-dot {
  width: 9px; height: 9px; padding: 0;
  background: rgba(255,255,255,.65);
  border: 0; border-radius: 50%;
  cursor: pointer;
  min-width: 9px;
  transition: width var(--transition), background var(--transition);
}
.slider-dot.is-active { width: 25px; background: var(--red); border-radius: 5px; }

/* ─────────────────────────────────────────────────────────
   ПРЕИМУЩЕСТВА
───────────────────────────────────────────────────────── */
.benefit-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.benefit-grid article {
  padding: 25px;
  background: var(--white);
  border: 1px solid #eceeef;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.benefit-grid span { color: var(--red); font-size: 1.2rem; }
.benefit-grid h3   { margin: 14px font-size: 1rem; }
.benefit-grid p    { color: var(--muted); font-size: .9rem; }

/* ─────────────────────────────────────────────────────────
   ДВУХКОЛОННЫЙ СПЛИТ
───────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: center; }

.check-list { display: grid; gap: 12px; margin: 22px 0 28px; list-style: none; }
.check-list li { position: relative; padding-left: 26px; font-size: 1rem; }
.check-list li::before {
  position: absolute; left: 0;
  content: '✓'; color: var(--red); font-weight: 900;
}

/* ─────────────────────────────────────────────────────────
   КОМПЛЕКТАЦИИ
───────────────────────────────────────────────────────── */
.trim-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; max-width: 900px; }
.trim-card {
  position: relative;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.trim-card.featured { border: 2px solid var(--red); box-shadow: var(--shadow); }
.trim-card .label {
  position: absolute; top: -13px; left: 26px;
  padding: 4px 10px;
  color: var(--white); background: var(--red);
  border-radius: 4px; font-size: .68rem; text-transform: uppercase;
}
.trim-name  { color: var(--muted); font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; }
.trim-card h3 { margin: 3px 0 18px; font-size: 1.35rem; }
.trim-card ul { display: grid; gap: 8px; margin: 0 0 22px; padding-left: 18px; color: #4c5257; font-size: .9rem; }
.trim-price { margin-bottom: 16px; color: var(--red); font-weight: 800; }

/* ─────────────────────────────────────────────────────────
   TRADE-IN
───────────────────────────────────────────────────────── */
.tradein-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.tradein-image  { position: relative; overflow: hidden; border-radius: var(--radius); }
.tradein-image img { width: 100%; height: 400px; object-fit: cover; }
.tradein-badge {
  position: absolute; bottom: 20px; left: 20px;
  padding: 14px 17px;
  color: var(--ink); background: var(--white);
  border-radius: 9px; font-size: .78rem;
}
.tradein-badge b { font-size: 1.05rem; }
.section-dark .eyebrow { color: #fa6d7c; }
.section-dark p { max-width: 530px; color: rgba(255,255,255,.72); font-size: .9rem; }

.steps { display: grid; gap: 15px; margin: 26px 0; list-style: none; }
.steps li { display: flex; gap: 12px; }
.steps b {
  display: grid; 0 35px;
  width: 35px; height: 35px;
  place-items: center;
  color: var(--white); background: var(--red);
  border-radius: 50%;
}
.steps span  { display: flex; flex-direction: column; color: rgba(255,255,255,.62); font-size: .8rem; }
.steps strong{ color: var(--white); font-size: .9rem; }

/* ─────────────────────────────────────────────────────────
   КАЛЬКУЛЯТОР
───────────────────────────────────────────────────────── */
.calc-box {
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.calc-form, .calc-result { padding: 34px; }
.calc-form label {
  display: block; margin-bottom: 21px;
  color: var(--muted); font-size: .74rem; font-weight: 800;
  letter-spacing: .4px; text-transform: uppercase;
}
.calc-form input[type='range'] {
  display: block; width: 100%; margin: 9px 0 4px;
  accent-color: var(--red);
}
.calc-form output {
  display: block; color: var(--ink);
  font-size: 1.08rem; font-weight: 800;
  letter-spacing: 0; text-transform: none;
}
.calc-form select {
  width: 100%; margin-top: 7px; padding: 10px;
  background: #fafafa; border: 1px solid #ddd; border-radius: 7px;
  min-height: 44px;
}
.calc-result {
  display: flex; flex-direction: column; justify-content: center;
  color: var(--white); background: #202326;
}
.calc-result > p      { color: rgba(255,255,255,.52); font-size: .74rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.calc-result > strong { margin: 5px 0; font-size: 2.35rem; }
.calc-result > span, .calc-result small { color: rgba(255,255,255,.45); font-size: .76rem; }
.calc-details { display: grid; gap: 9px; margin: 24px 0; }
.calc-details div {
  display: flex; justify-content: space-between; gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .81rem;
}
.calc-details span { color: rgba(255,255,255,.5); }
.calc-result small  { margin-top: 9px; text-align: center; font-size: .66rem; }

/* ─────────────────────────────────────────────────────────
   ТЕСТ-ДРАЙВ
───────────────────────────────────────────────────────── */
.testdrive { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.testdrive-facts {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 10px; min-width: 480px;
}
.testdrive-facts div {
  padding: 19px;
  background: var(--white);
  border-radius: 9px;
  box-shadow: var(--shadow);
}
.testdrive-facts b, .testdrive-facts span { display: block; }
.testdrive-facts b    { font-size: .9rem; }
.testdrive-facts span { margin-top: 4px; color: var(--muted); font-size: .74rem; }

/* ─────────────────────────────────────────────────────────
   КОНТАКТЫ
───────────────────────────────────────────────────────── */
.contacts-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 55px; }
.contact-form {
  padding: 34px;
  background: var(--gray);
  border-radius: var(--radius);
}
.contact-form > p:not(.eyebrow) { margin-bottom: 20px; color: var(--muted); font-size: .85rem; }
.contact-form label {
  display: block; margin-bottom: 14px;
  color: var(--muted); font-size: .72rem; font-weight: 800;
  letter-spacing: .4px; text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; margin-top: 5px;
  padding: 12px 13px;
  color: var(--ink); background: var(--white);
  border: 1px solid #dce0e2; border-radius: 8px;
  outline: none;
  font-size: 1rem;
  min-height: 46px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--red); }
.contact-form textarea { min-height: 88px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form small { display: block; margin-top: 10px; color: var(--muted); font-size: .69rem; }
.contact-form small a, .map-link { color: var(--red) !important; }
.contact-info  { padding: 30px 0; }
.contact-info h2 { margin-bottom: 0; }
.contact-title { margin-bottom: 27px; color: var(--muted); font-size: .85rem; }
.contact-info > div { display: flex; flex-direction: column; margin-bottom: 19px; }
.contact-info b  { margin-bottom: 3px; font-size: .83rem; }
.contact-info span,
.contact-info a  { color: var(--muted); font-size: .87rem; }
.contact-info a:hover { color: var(--red); }
.map-link { display: inline-block; margin-top: 8px; font-weight: 800; }

/* ─────────────────────────────────────────────────────────
   FAQ
───────────────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 32px;
}
.faq-item {
  background: var(--gray);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.faq-item.is-open {
  border-color: #c8cbce;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'TENETSans-Bold', Arial, sans-serif;
  font-size: .88rem;
  color: var(--ink);
  min-height: 44px;
  transition: color var(--transition);
}
.faq-question:hover           { color: var(--red); }
.faq-item.is-open .faq-question { color: var(--red); }
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: #dde0e2;
  border-radius: 50%;
  transition: background var(--transition);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 10px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transform: translate(-50%,-50%);
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item.is-open .faq-icon            { background: var(--red); }
.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after     { background: var(--white); }
.faq-item.is-open .faq-icon::after     { transform: translate(-50%,-50%) rotate(0deg); opacity: 0; }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item.is-open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: .85rem; line-height: 1.65;
}
.faq-answer p strong { color: var(--ink); }

/* ─────────────────────────────────────────────────────────
   КНОПКА ОБРАТНОГО ЗВОНКА
───────────────────────────────────────────────────────── */
.callback-wrap {
  position: fixed;
  bottom: 110px; right: 50px;
  z-index: 8000;
  display: flex;
  align-items: center;
  gap: 12px;
}
.callback-tip {
  position: relative;
  padding: 9px 18px;
  background: var(--graphite);
  color: var(--white);
  border-radius: 8px;
  font-family: 'TENETSans-Bold', Arial, sans-serif;
  font-size: .82rem;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity .25s ease, transform .25s ease;
}
.callback-tip::after {
  content: '';
  position: absolute; top: 50%; right: -6px;
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid var(--graphite);
  transform: translateY(-50%);
}
.callback-wrap:hover .callback-tip { opacity: 1; transform: translateX(0); }

.callback-btn {
  flex-shrink: 0;
  width: 72px; height: 72px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  border: none; border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  box-shadow:
    0 4px 22px rgba(208,2,27,.50),
    0 0 0 0 rgba(208,2,27,.45);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  animation: cbPulse 2.8s ease-in-out infinite;
}
.callback-btn:hover {
  background: var(--red-hover);
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(208,2,27,.65);
  animation: none;
}
.callback-btn:active { transform: scale(.96); }
.callback-icon {
  flex-shrink: 0;
  transform-origin: center bottom;
  animation: cbRing 3.5s ease-in-out infinite;
}
.callback-btn:hover .callback-icon { animation: none; }

@keyframes cbPulse {
  0%, 100% { box-shadow: 0 4px 22px rgba(208,2,27,.50), 0 0 0  0px rgba(208,2,27,.45); }
  55%      { box-shadow: 0 4px 22px rgba(208,2,27,.50), 0 0 0 20px rgba(208,2,27,.00); }
}
@keyframes cbRing {
  0%,45%,100% { transform: rotate(0deg);   }
  50%         { transform: rotate(-18deg); }
  55%         { transform: rotate(16deg);  }
  60%         { transform: rotate(-12deg); }
  65%         { transform: rotate(10deg);  }
  70%         { transform: rotate(-5deg);  }
  75%         { transform: rotate(0deg);   }
}

/* ─────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────── */
.footer {
  background-color: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 60px 50px 0;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  width: 100%;
  box-sizing: border-box;
}
.footer .container { width: 100%; box-sizing: border-box; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 40px;
  padding-bottom: 48px;
  width: 100%;
}
.footer-col--brand .footer-logo {
  font-size: 1.4rem; font-weight: 800;
  letter-spacing: .04em;
  color: #fff; text-transform: uppercase;
  display: inline-block; margin-bottom: 8px;
}
.footer-col--brand .footer-logo span { color: var(--red); font-size: 125%; }
.footer-tagline {
  font-size: .95rem; line-height: 1.45;
  color: rgba(255,255,255,.65);
  margin: 0 0 20px;
}
.footer-contact-info { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.footer-phone {
  display: flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none;
  font-size: .95rem; font-weight: 600;
  transition: color .2s;
}
.footer-phone:hover { color: var(--red); }
.footer-address {
  display: flex; align-items: flex-start; gap: 8px;
  font-style: normal; font-size: .875rem;
  color: rgba(255,255,255,.5); line-height: 1.5;
}
.footer-address svg { flex-shrink: 0; margin-top: 2px; }
.footer-social { display: flex; gap: 10px; }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.65);
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.social-icon svg  { width: 18px; height: 18px; }
.social-icon:hover{
  background: var(--red); border-color: var(--red);
  color: #fff; transform: translateY(-2px);
}
.footer-heading {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.35);
  margin: 0 0 20px;
}
.footer-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.footer-links a {
  color: rgba(255,255,255,.65); font-size: .9rem;
  line-height: 1.4;
  transition: color .2s, padding-left .2s;
  display: inline-block;
  min-height: 32px; display: flex; align-items: center;
}
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0; text-align: center;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.3); margin: 0; }

/* ─────────────────────────────────────────────────────────
   COOKIE BANNER
───────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9500;
  background: rgba(15,17,20,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 18px 48px;
  transform: translateY(100%);
  transition: transform .4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-inner {
  display: flex; align-items: center; gap: 36px;
  max-width: 1400px; margin: 0 auto;
}
.cookie-text {
  flex: 1;
  color: rgba(255,255,255,.68);
  font-size: .78rem; line-height: 1.6;
  margin: 0;
}
.cookie-btn {
  flex-shrink: 0;
  padding: 12px 32px;
  background: var(--red); color: var(--white);
  border: none; border-radius: 9px;
  font-family: 'TENETSans-Bold', Arial, sans-serif;
  font-size: .88rem;
  min-height: 46px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.cookie-btn:hover { background: var(--red-hover); transform: scale(1.04); }

/* =========================================================
   АДАПТИВ — 960px–1200px
========================================================= */
@media (max-width: 1200px) {
  :root { --page-w: 94%; }

  .main-nav { gap: 16px; }
  .main-nav a { font-size: .78rem; }
  .header-address { display: none; }
  .header-inner { padding: 10px 24px; }

  .benefit-grid { grid-template-columns: repeat(2,1fr); }
  .trim-grid    { max-width: 100%; }

  .footer { padding: 50px 36px 0; }
}

/* =========================================================
   АДАПТИВ — 640px–960px
========================================================= */
@media (max-width: 960px) {
  :root {
    --page-w:   100%;
    --header-h: 74px;
  }

  .page-wrapper { box-shadow: none; border-radius: 0; }

  /* Header */
  .site-header  { width: 100%; left: 0; transform: none; padding: 8px 0; }
  .header-inner { margin: 0 12px; padding: 10px 18px; border-radius: 14px; gap: 14px; }
  .main-nav     { display: none; }       /* скрываем — показываем через mobile-nav */
  .nav-toggle   { display: flex; }       /* показываем гамбургер */
  .mobile-nav   { display: block; }

  .header-right { gap: 12px; }
  .btn-pick     { display: none; }

  /* Секции */
  .section { padding: 48px 28px; }
  h2       { font-size: 1.65rem; }

  /* Hero */
  .hero-section { margin: 0 12px; border-radius: 14px; }
  .hero-content { padding: 72px 32px; }
  .hero-content h1 { font-size: 2.6rem; }

  /* Сетки → 1 колонка */
  .split,
  .tradein-layout,
  .contacts-layout { grid-template-columns: 1fr; gap: 32px; }

  .tradein-image img { height: 280px; }

  /* Тест-драйв */
  .testdrive { flex-direction: column; align-items: flex-start; gap: 28px; }
  .testdrive-facts { min-width: 0; width: 100%; }

  /* Калькулятор */
  .calc-box { grid-template-columns: 1fr; }
  .calc-result { border-radius: 0 0 var(--radius) var(--radius); }

  /* Форма */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer { padding: 40px 24px 0; }
  .footer-grid { grid-template-columns: repeat(2,1fr); gap: 32px; }

  /* Cookie */
  .cookie-banner { padding: 16px 20px; }
  .cookie-inner  { flex-direction: column; gap: 14px; align-items: flex-start; }
  .cookie-btn    { width: 100%; text-align: center; }

  /* Callback */
  .callback-wrap { bottom: 24px; right: 20px; }
}

/* =========================================================
   АДАПТИВ — 480px–640px
========================================================= */
@media (max-width: 640px) {

  /* Header */
  .header-dealer { display: none; }
  .logo-img { height: 32px; }
  .header-phone { font-size: .8rem; }
  .header-inner { padding: 8px 14px; gap: 10px; }

  /* Секции */
  .section { padding: 40px 18px; }
  h2 { font-size: 1.45rem; }
  .section-sub { font-size: .9rem; }

  /* Hero */
  .hero-section { margin: 0 8px; min-height: 500px; }
  .hero-image   { background-position: 65% center; }
  .hero-content { padding: 60px 20px; }
  .hero-content h1 { font-size: 2.1rem; }
  .hero-offer strong { font-size: 1.4rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { gap: 14px; flex-wrap: wrap; }
  .hero-facts b { font-size: .95rem; }
  .hero-facts span { font-size: .68rem; }

  /* Блоки */
  .benefit-grid { grid-template-columns: 1fr; gap: 12px; }
  .trim-grid    { grid-template-columns: 1fr; }
  .faq-grid     { grid-template-columns: 1fr; }
  .testdrive-facts { grid-template-columns: 1fr; }

  /* Карточки */
  .benefit-grid article { padding: 20px; }
  .trim-card { padding: 22px; }

  /* Калькулятор */
  .calc-form, .calc-result { padding: 22px; }
  .calc-result > strong { font-size: 1.8rem; }

  /* Контакты */
  .contact-form { padding: 22px; }

  /* Footer */
  .footer { padding: 32px 18px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Callback */
  .callback-btn  { width: 60px; height: 60px; }
  .callback-icon { width: 26px; height: 26px; }
  .callback-wrap { bottom: 18px; right: 14px; }
}

/* =========================================================
   АДАПТИВ — 320px–480px
========================================================= */
@media (max-width: 480px) {
  :root { --header-h: 68px; }

  /* Header */
  .header-inner { padding: 7px 12px; margin: 0 8px; border-radius: 12px; }
  .logo-img     { height: 28px; }
  .header-phone { font-size: .76rem; }

  /* Секции */
  .section { padding: 32px 16px; }
  h2 { font-size: 1.28rem; }

  /* Hero */
  .hero-section { margin: 0 6px; min-height: 460px; border-radius: 12px; }
  .hero-content { padding: 50px 16px; }
  .hero-content h1 { font-size: 1.85rem; }
  .hero-subtitle   { font-size: .9rem; }
  .hero-offer strong { font-size: 1.2rem; }
  .hero-facts { gap: 10px; }

  /* Кнопки — крупнее для тапа */
  .btn { padding: 14px 20px; font-size: .9rem; min-height: 48px; }
  .btn-pick { padding: 8px 14px; min-height: 38px; }

  /* Calc */
  .calc-form, .calc-result { padding: 18px; }
  .calc-result > strong { font-size: 1.6rem; }

  /* Contact */
  .contact-form { padding: 18px; }

  /* Footer */
  .footer { padding: 28px 16px 0; }
  .footer-col--brand .footer-logo { font-size: 1.2rem; }
  .footer-tagline { font-size: .85rem; }

  /* Testdrive */
  .testdrive-facts div { padding: 14px; }
  .testdrive-facts b   { font-size: .85rem; }

  /* FAQ */
  .faq-question { font-size: .82rem; padding: 15px 16px; }
  .faq-answer p { padding: 0 16px 16px; }

  /* Cookie */
  .cookie-banner { padding: 14px 16px; }
  .cookie-text   { font-size: .74rem; }

  /* Callback */
  .callback-btn  { width: 54px; height: 54px; }
  .callback-icon { width: 23px; height: 23px; }
  .callback-wrap { bottom: 14px; right: 12px; }
}