/* Avto-Delo.by — светлая тема: красный · графит · голубой */
:root {
  --red: #e11d2e;
  --red-dark: #c41928;
  --red-soft: #fef2f3;
  --blue: #1e6fd9;
  --blue-light: #3b8beb;
  --blue-soft: #e8f3fc;
  --graphite: #2b3038;
  --graphite-mid: #5c6370;
  --graphite-light: #8b939e;
  --bg: #f5f7fa;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: var(--graphite);
  --text-muted: var(--graphite-mid);
  --shadow-sm: 0 2px 8px rgba(43, 48, 56, 0.06);
  --shadow: 0 12px 40px rgba(43, 48, 56, 0.1);
  --shadow-red: 0 12px 32px rgba(225, 29, 46, 0.22);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Onest", system-ui, sans-serif;
  --max: 1200px;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.site-header.is-menu-open {
  z-index: 10000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--graphite);
  flex-shrink: 0;
}

.header-phone-mobile {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--graphite);
  white-space: nowrap;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.header-phone-mobile:hover {
  color: var(--red);
  background: var(--red-soft);
}

.header-phone-desktop {
  display: none;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  box-shadow: var(--shadow-red);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-desktop a {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--graphite-mid);
  transition: color 0.2s, background 0.2s;
}

.nav-desktop > a:hover,
.nav-desktop > a.is-active,
.nav-desktop .nav-link:hover,
.nav-desktop .nav-link.is-active {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav-item--dropdown {
  position: relative;
}

.nav-link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--graphite-mid);
  transition: color 0.2s, background 0.2s;
}

.nav-chevron {
  transition: transform 0.2s;
}

.nav-item--dropdown.is-open .nav-chevron,
.mobile-nav__accordion[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(43, 48, 56, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 20;
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown,
.nav-item--dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--graphite-mid);
  border-radius: 0;
  transition: color 0.2s, background 0.2s;
}

.nav-dropdown a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav-dropdown__all {
  margin-top: 0.25rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.nav-dropdown__all a {
  font-weight: 600;
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--graphite);
}

.phone-link:hover {
  color: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.35rem;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(30, 111, 217, 0.28);
}

.btn-blue:hover {
  background: #1859b5;
}

.btn-outline {
  background: var(--bg-white);
  color: var(--graphite);
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--graphite);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 10001;
  background: var(--bg-white);
  padding: 1rem 1.5rem 1.5rem;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(43, 48, 56, 0.12);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav > a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--graphite);
  border-bottom: 1px solid var(--border);
}

.mobile-nav > a:hover {
  color: var(--blue);
}

.mobile-nav__group {
  border-bottom: 1px solid var(--border);
}

.mobile-nav__accordion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 0;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--graphite);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.mobile-nav__accordion:hover {
  color: var(--blue);
}

.mobile-nav__submenu {
  margin: 0;
  padding: 0 0 0.75rem;
  list-style: none;
}

.mobile-nav__submenu[hidden] {
  display: none;
}

.mobile-nav__submenu a {
  display: block;
  padding: 0.55rem 0 0.55rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--graphite-mid);
  border-left: 2px solid var(--border);
}

.mobile-nav__submenu a:hover {
  color: var(--blue);
  border-left-color: var(--blue);
}

body.is-menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(43, 48, 56, 0.45);
  pointer-events: auto;
}

body.is-menu-open main {
  position: relative;
  z-index: 0;
}

body.is-menu-open .hero-slider,
body.is-menu-open .hero,
body.is-menu-open .city-hero,
body.is-menu-open .city-hero__grid {
  z-index: 0;
}

body.is-menu-open .contact-fab {
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 899px) {
  .site-header.is-menu-open {
    backdrop-filter: none;
    background: var(--bg-white);
  }

  .header-actions .header-btn-consult,
  .header-actions .header-btn-calc {
    display: none;
  }

  .header-actions {
    flex-shrink: 0;
    gap: 0;
  }

  .header-phone-mobile {
    font-size: 0.78rem;
  }

  .logo {
    font-size: 0.92rem;
  }
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .header-phone-mobile {
    display: none;
  }

  .header-phone-desktop {
    display: block;
  }

  .menu-toggle {
    display: none;
  }
}

/* Hero (base — home extends in home.css) */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
  background: var(--bg-white);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: var(--blue-soft);
  border: 1px solid rgba(30, 111, 217, 0.15);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--graphite);
}

.hero h1 .accent-red {
  color: var(--red);
}

.hero h1 .accent-blue {
  color: var(--blue);
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.75rem;
}

.hero-phones a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--graphite);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.hero-phones a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  padding: 1.35rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.stat-card:hover {
  border-color: rgba(30, 111, 217, 0.35);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.stat-card:nth-child(odd) strong {
  color: var(--red);
}

.stat-card:nth-child(even) strong {
  color: var(--blue);
}

.stat-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--white {
  background: var(--bg-white);
}

.section--soft {
  background: var(--bg);
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--graphite);
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cards-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  padding: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(30, 111, 217, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-icon--red {
  background: var(--red-soft);
  color: var(--red);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--graphite);
}

.card p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
}

.card-link:hover {
  color: var(--red);
}

/* Form */
.form-section {
  background: linear-gradient(180deg, var(--blue-soft) 0%, var(--bg-white) 100%);
  border-block: 1px solid var(--border);
}

.form-layout {
  display: grid;
  gap: 2rem;
}

.calc-form,
.eval-form {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.calc-section {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.page-anchor {
  display: block;
  height: 0;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.calc-result {
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, var(--blue-soft) 0%, #fff 100%);
  border: 1px solid rgba(30, 111, 217, 0.25);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
}

.calc-result__label {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.calc-result__range {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.calc-result__note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--graphite-mid);
}

.header-actions .btn-outline {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

.footer-cta__consult {
  margin-left: 0.5rem;
}

.seo-chips__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--graphite-mid);
}

label .req {
  color: var(--red);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--graphite);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.15);
  background: var(--bg-white);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.messenger-block {
  padding: 1.75rem;
  background: var(--graphite);
  border-radius: var(--radius-lg);
  color: #fff;
}

.messenger-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.messenger-block > p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.messenger-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.messenger-links a {
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
}

.messenger-links a:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.messenger-block a:not(.messenger-links a) {
  color: var(--blue-light);
}

@media (min-width: 900px) {
  .form-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

/* FAQ */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--graphite);
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.faq-item.is-open .faq-question::after {
  background: var(--red);
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* Inner pages */
.page-hero {
  padding: calc(var(--header-h) + 2.5rem) 0 2rem;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--graphite);
}

.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.page-hero .breadcrumb a:hover {
  color: var(--blue);
}

.page-content {
  padding: 2.5rem 0 4rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  color: var(--graphite);
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.cta-banner {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--red-soft), var(--blue-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-banner h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--graphite);
}

.cta-banner p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

/* Blog */
.blog-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  display: block;
  padding: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.blog-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.blog-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--graphite);
}

.blog-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Cities */
.cities-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
}

.cities-grid a {
  padding: 0.65rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--graphite-mid);
  text-align: center;
}

.cities-grid a:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

/* Footer */
.site-footer {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer__top {
  padding: 2rem 0 1.5rem;
  background: linear-gradient(180deg, #1e2430 0%, var(--graphite) 100%);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--red), var(--blue), var(--red)) 1;
}

.site-footer .logo {
  color: #fff;
}

.site-footer .logo-mark {
  box-shadow: none;
}

.site-footer__top > .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand__text {
  margin: 0.75rem 0 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
  max-width: 22rem;
}

.footer-phones {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.footer-phone {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.footer-phone:hover {
  color: var(--blue-light);
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social__btn {
  min-width: 40px;
  height: 36px;
  padding: 0 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.footer-social__btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
}

/* Мобилка: 2 колонки для блоков ссылок */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1rem;
}

.footer-col__title {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.45);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: block;
  padding: 0.2rem 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-more {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-light);
}

.footer-more:hover {
  color: #fff;
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.footer-cta p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.footer-cta .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.site-footer__bottom {
  padding: 0.85rem 0;
  background: #1a1f26;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.footer-legal a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal a:hover {
  color: var(--blue-light);
}

/* Cookie banner (global) */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 150;
  width: min(calc(100% - 1.5rem), 480px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s, visibility 0.35s;
}

.cookie-banner.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-banner[hidden] {
  display: block;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(43, 48, 56, 0.18);
  border-left: 3px solid var(--red);
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 180px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--graphite-mid);
}

.cookie-banner a {
  color: var(--blue);
  font-weight: 600;
}

.cookie-banner__btn {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

body.cookie-visible {
  padding-bottom: 4.5rem;
}

@media (min-width: 768px) {
  .site-footer__top {
    padding: 3rem 0 2rem;
  }

  .site-footer__top > .container {
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 2rem;
  }

  .footer-col__title {
    margin-bottom: 0.85rem;
    font-size: 0.72rem;
  }

  .footer-links a {
    font-size: 0.88rem;
    padding: 0.28rem 0;
  }

  .footer-brand__text {
    font-size: 0.9rem;
  }
}

@media (min-width: 960px) {
  .site-footer__top > .container {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto auto;
    gap: 2rem 3rem;
  }

  .footer-brand {
    grid-row: 1 / 3;
  }

  .footer-grid {
    grid-column: 2;
  }

  .footer-cta {
    grid-column: 2;
  }
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(43, 48, 56, 0.5);
  place-items: center;
  padding: 1rem;
}

.modal-overlay.is-open {
  display: grid;
}

.modal {
  max-width: 420px;
  padding: 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
}

.modal h3 {
  margin: 0 0 0.5rem;
  color: var(--graphite);
}

.modal p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.modal--consult {
  position: relative;
  max-width: 440px;
  width: 100%;
  text-align: left;
  padding: 1.75rem 1.75rem 1.5rem;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--bg);
  color: var(--graphite-mid);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.modal__close:hover {
  background: var(--red-soft);
  color: var(--red);
}

.consult-modal__lead {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.consult-form {
  display: grid;
  gap: 0.85rem;
}

.consult-form__policy {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
}

.consult-form__policy a {
  color: var(--blue);
  font-weight: 600;
}

.consult-modal__success {
  text-align: center;
  padding: 0.5rem 0;
}

.consult-modal__success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #1859b5);
  border-radius: 50%;
}

.modal-overlay[aria-hidden="true"] {
  display: none;
}
