/* ============================================================
   alfalaval-moscow.ru — стили в фирменном стиле Alfa Laval
   Тёмно-синий корпоративный + красный акцент
   ============================================================ */

:root {
  /* === Brand colors === */
  --primary: #003B73;          /* Alfa Laval corporate dark blue */
  --primary-dark: #002A52;     /* darker hover */
  --primary-light: #00629B;    /* secondary blue */
  --accent: #E4002B;           /* Alfa Laval signature red — CTA */
  --accent-dark: #B30022;
  --accent-light: #F8D7DC;

  /* === Neutrals === */
  --text: #1A1A1A;
  --text-l: #555;
  --text-m: #888;
  --bg: #fff;
  --bg-l: #F5F5F5;            /* AL grey background */
  --bg-d: #E8E8E8;
  --border: #DDD;
  --border-l: #EEE;

  /* === Typography === */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;

  /* === Layout === */
  --max-w: 1240px;
  --r: 4px;                   /* corners — AL use small radius */
  --r-lg: 8px;
  --sh: 0 2px 8px rgba(0, 0, 0, 0.06);
  --sh-h: 0 6px 24px rgba(0, 0, 0, 0.10);
  --tr: 0.2s ease;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Top bar (контактная плашка над хедером) === */
/* ============================================================
   HEADER — clean industrial design
   Десктоп: топбар + шапка с лого, навигацией и одной CTA-кнопкой
   Мобильный: только шапка + бургер → полноэкранное меню
   ============================================================ */

/* === Topbar (только десктоп) === */
.topbar {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar a {
  color: #fff;
  transition: color var(--tr);
}
.topbar a:hover { color: var(--accent); }
.topbar-info {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.topbar-tagline {
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
}
.topbar-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
}
.topbar-link svg {
  opacity: 0.7;
  transition: opacity var(--tr);
}
.topbar-link:hover svg { opacity: 1; }
span.topbar-link {
  color: rgba(255, 255, 255, 0.7);
  cursor: default;
}

/* === Main header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 80px;
  display: flex;
  align-items: center;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

/* === Logo === */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
}
.logo-mark {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.3px;
}
.logo-text small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-l);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* === Main navigation (desktop) === */
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav > li { position: relative; }
.nav > li > a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 28px 0;
  display: inline-block;
  transition: color var(--tr);
  position: relative;
}
.nav > li > a:hover,
.nav > li.active > a {
  color: var(--accent);
}
/* Underline indicator on hover */
.nav > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr);
}
.nav > li:hover > a::after,
.nav > li.active > a::after {
  transform: scaleX(1);
}

/* Submenu — only on desktop hover */
.nav .submenu {
  position: absolute;
  top: 100%;
  left: -8px;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--sh-h);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--tr), transform var(--tr), visibility var(--tr);
  list-style: none;
  margin: 0;
}
.nav > li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav .submenu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text);
  transition: background var(--tr), color var(--tr);
}
.nav .submenu a:hover {
  background: var(--bg-l);
  color: var(--primary);
}

/* === Header CTA wrapper (для burger на мобильном) === */
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r);
  letter-spacing: 0.2px;
  transition: background var(--tr);
  white-space: nowrap;
  border: 1px solid var(--primary);
}
.header-cta-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

/* === Burger button (mobile) === */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r);
  position: relative;
  cursor: pointer;
}
.burger span,
.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--primary);
  transition: all var(--tr);
}
.burger::before { top: 13px; }
.burger span { top: 19px; }
.burger::after { top: 25px; }
.burger.open::before { top: 19px; transform: rotate(45deg); }
.burger.open::after { top: 19px; transform: rotate(-45deg); }
.burger.open span { opacity: 0; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--tr);
  border: 2px solid transparent;
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
}
.btn-secondary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.btn-gray {
  background: #6B7785;
  color: #fff;
  border-color: #6B7785;
}
.btn-gray:hover {
  background: #4F5963;
  border-color: #4F5963;
  color: #fff;
}
.btn-lg {
  padding: 16px 32px;
  font-size: 15px;
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(228, 0, 43, 0.08), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(0, 98, 155, 0.15), transparent 40%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-text p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-img {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* === Sections === */
.section {
  padding: 80px 0;
}
.section-light {
  background: var(--bg-l);
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-l);
  margin-bottom: 48px;
  max-width: 720px;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .section-title { margin-bottom: 12px; }
.section-header .section-subtitle { margin: 0 auto; }

/* === Card grid === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: all var(--tr);
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--sh-h);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-l);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-m);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.card-text {
  font-size: 14px;
  color: var(--text-l);
  margin-bottom: 16px;
  flex: 1;
}
.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--tr);
}
.card-link:hover {
  gap: 10px;
}
.card-link::after {
  content: '→';
  transition: transform var(--tr);
}

/* === Product card (for catalog) === */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--tr);
}
.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--sh-h);
}
.product-card-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-l);
  border-radius: var(--r);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-m);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  display: block;
}
/* Аналогично для card-image (на главной/разводных) */
.card-image {
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* used-card-img */
.used-card-img {
  overflow: hidden;
}
.used-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.product-card-spec {
  font-size: 13px;
  color: var(--text-l);
  margin-bottom: 16px;
  flex: 1;
}
.product-card-spec li {
  padding: 4px 0;
  border-bottom: 1px solid var(--border-l);
  display: flex;
  justify-content: space-between;
}
.product-card-spec li:last-child { border-bottom: 0; }
.product-card-spec strong { color: var(--text); font-weight: 600; }

/* === Features list === */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}
.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}
.feature-text {
  font-size: 14px;
  color: var(--text-l);
}

/* === CTA block === */
.cta {
  background: var(--primary);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}
.cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cta .btn-outline {
  /* Inside dark CTA, btn-outline уже белый текст — ok */
}

/* === Tables === */
.table-wrap { overflow-x: auto; }
table.spec {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.spec th,
table.spec td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.spec thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}
table.spec tbody tr:hover {
  background: var(--bg-l);
}
table.spec td:first-child {
  font-weight: 600;
  color: var(--primary);
}

/* === Breadcrumbs === */
.breadcrumbs {
  padding: 16px 0;
  background: var(--bg-l);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-l);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li::after {
  content: '/';
  color: var(--text-m);
}
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: var(--primary-light); }
.breadcrumbs a:hover { color: var(--accent); }

/* === Page heading === */
.page-heading {
  padding: 48px 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.page-heading h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 12px;
}
.page-heading .subtitle {
  font-size: 16px;
  color: var(--text-l);
  max-width: 800px;
}

/* === SEO text block === */
.seo-text {
  padding: 64px 0;
  background: var(--bg-l);
  font-size: 15px;
  color: var(--text-l);
  line-height: 1.7;
}
.seo-text .container { max-width: 920px; }
.seo-text h2 {
  font-size: 22px;
  color: var(--primary);
  margin: 24px 0 12px;
  font-weight: 600;
}
.seo-text h2:first-child { margin-top: 0; }
.seo-text h3 {
  font-size: 18px;
  color: var(--primary);
  margin: 20px 0 10px;
  font-weight: 600;
}
.seo-text p { margin-bottom: 14px; }
.seo-text ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}
.seo-text ul li { padding: 2px 0; }

/* === Footer === */
.footer {
  background: #F5F5F5;
  color: var(--text-l);
  padding: 56px 0 0;
  font-size: 14px;
  border-top: 1px solid var(--border);
}
.footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer h4 {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.footer ul li {
  padding: 4px 0;
}
.footer a { color: var(--text-l); transition: color var(--tr); }
.footer a:hover { color: var(--primary); }
.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.footer-logo-link {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
}
.footer-about p {
  margin-bottom: 12px;
  line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-m);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 0;
  grid-template-columns: none;
}
.footer-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--text-m);
  padding: 12px 0 20px;
  font-style: italic;
}

/* === Animations === */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Forms === */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--tr);
  background: #fff;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
}
textarea.form-control { resize: vertical; min-height: 100px; }

/* === Questionnaire tabs === */
.q-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.q-nav a {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-l);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--tr);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.q-nav a:hover { color: var(--primary); }
.q-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* === Questionnaire sections === */
.q-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.q-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-l);
}
.q-section h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin: 20px 0 10px;
}
.q-section h4:first-of-type { margin-top: 8px; }

.q-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}
.q-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.q-row-1 { grid-template-columns: 1fr; }

/* Checkbox grid */
.q-check {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 16px;
}
.q-check-2 { grid-template-columns: 1fr 1fr; }
.q-check-5 { grid-template-columns: repeat(5, 1fr); }
.q-check label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-l);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  transition: all var(--tr);
}
.q-check label:hover {
  border-color: var(--primary-light);
}
.q-check input[type="checkbox"],
.q-check input[type="radio"] {
  margin: 0;
  flex-shrink: 0;
}
.q-check input:checked + span,
.q-check label:has(input:checked) {
  color: var(--primary);
  font-weight: 600;
  border-color: var(--accent);
  background: #fff;
}

/* Phase tabs (decanter — отдельный CSS-класс, чтобы не конфликтовать с .q-nav) */
.phase-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.phase-tab {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg-l);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr);
  font-size: 14px;
  color: var(--text);
}
.phase-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* === Used equipment cards === */
.used-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.used-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--tr);
}
.used-card:hover {
  border-color: var(--primary);
  box-shadow: var(--sh-h);
}
.used-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-l);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-m);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}
.used-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.used-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.used-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.used-card-year {
  font-size: 13px;
  color: var(--text-l);
  margin-bottom: 12px;
}
.used-card-spec {
  font-size: 13px;
  color: var(--text-l);
  margin-bottom: 16px;
  flex: 1;
  list-style: none;
}
.used-card-spec li {
  padding: 3px 0;
  display: flex;
  justify-content: space-between;
}
.used-card-spec strong { color: var(--text); }
.used-card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

/* === Pros/Cons split === */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
.pros, .cons {
  padding: 20px 24px;
  border-radius: var(--r);
  border-left: 3px solid;
}
.pros {
  background: #f0f8f0;
  border-left-color: #2A9D3E;
}
.cons {
  background: #fef0f1;
  border-left-color: var(--accent);
}
.pros h4, .cons h4 {
  font-size: 15px;
  margin-bottom: 10px;
  font-weight: 600;
}
.pros h4 { color: #1B7A2A; }
.cons h4 { color: var(--accent-dark); }
.pros ul, .cons ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-l);
  margin: 0;
}
.pros ul li, .cons ul li {
  padding: 3px 0;
}

/* Слоган между логотипом и бургером — виден только на мобиле */
.header-slogan { display: none; }

/* Контакты в мобильном меню — на десктопе скрыты, появляются только в выезжающем меню */
.nav-mobile-contacts { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-text h1 { font-size: 34px; }
  .hero { padding: 60px 0; }
  .footer .container { grid-template-columns: 1fr 1fr; }

  /* === Мобильное меню — .nav становится выезжающим справа === */
  .nav {
    position: fixed;
    top: 64px;
    left: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,0.12);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 95;
    border-left: 1px solid var(--border);
  }
  .nav.open {
    transform: translateX(0);
  }
  .nav > li {
    width: 100%;
    position: static;
    border-bottom: 1px solid var(--border-l);
  }
  .nav > li > a {
    display: block;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
  }
  /* Скрываем подчёркивание-индикатор на мобильном */
  .nav > li > a::after { display: none; }

  /* Submenu — статично, всегда видна */
  .nav .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--bg-l);
    border: 0;
    box-shadow: none;
    padding: 4px 0 8px;
    min-width: 0;
  }
  .nav .submenu a {
    padding: 10px 36px;
    font-size: 14px;
    color: var(--text-l);
  }
  .nav .submenu a:hover,
  .nav .submenu a:active {
    background: transparent;
    color: var(--accent);
  }

  /* Бургер показан */
  /* Скрываем CTA-кнопку на мобильном — остаётся только бургер */
  .header-cta-btn { display: none; }
  .burger { display: block; }

  /* Уменьшаем gap в шапке на мобильном чтобы влез слоган */
  .header .container { gap: 8px; }
  .header-cta { gap: 0; }

  /* Слоган между логотипом и бургером */
  .header-slogan {
    display: block;
    flex: 1;
    min-width: 0;
    text-align: left;
    font-size: 13px;
    line-height: 1.25;
    color: var(--text-l);
    letter-spacing: 0.2px;
    padding: 0 12px;
  }

  /* Топбар скрываем на всём, что меньше десктопа — экономим экран */
  .topbar { display: none; }

  /* Контакты в мобильном меню — внизу выезжающего меню */
  .nav-mobile-contacts {
    display: block !important;
    padding: 24px 20px !important;
    background: var(--bg-l);
    border-bottom: none !important;
    margin-top: 8px;
  }
  .nav-mobile-contacts a,
  .nav-mobile-contacts span {
    display: block;
    padding: 6px 0 !important;
    font-size: 15px;
    color: var(--text) !important;
    font-weight: 400 !important;
    border-bottom: none !important;
  }
  .nav-mobile-phone {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
  }
  .nav-mobile-email { color: var(--primary-light) !important; }
  .nav-mobile-addr { color: var(--text-l) !important; font-size: 14px !important; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  /* Header чуть ниже на мобильном */
  .header { height: 64px; }
  /* Логотип компактнее */
  .logo-mark { width: 40px; height: 40px; font-size: 12px; }
  .logo-text { font-size: 17px; }
  .logo-img { height: 36px; }
  .footer-logo-img { height: 40px; }
  /* Общие стили мобилки */
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .hero-text h1 { font-size: 28px; }
  .footer .container { grid-template-columns: 1fr; gap: 28px; }
  .page-heading h1 { font-size: 28px; }
  .cta h2 { font-size: 26px; }
  table.spec { font-size: 13px; }
  table.spec th, table.spec td { padding: 8px 10px; }
  .q-row, .q-row-3 { grid-template-columns: 1fr; }
  .q-check, .q-check-5 { grid-template-columns: 1fr 1fr; }
  .q-section { padding: 20px; }
  .q-nav a { padding: 12px 16px; font-size: 13px; }
  .pros-cons { grid-template-columns: 1fr; }
}

/* Совсем узкие экраны (≤380px) */
@media (max-width: 380px) {
  .logo-text small { display: none; }
  .header { height: 60px; }
  .nav { top: 60px; max-height: calc(100vh - 60px); }
  .header-slogan { font-size: 11px; padding: 0 6px; }
  .logo-img { height: 30px; }
}