:root {
  --bmw-black: #030507;
  --surface-1: #080c12;
  --surface-2: #0d131c;
  --surface-3: #151e2a;
  --bmw-blue: #1c69d4;
  --bmw-blue-dark: #064fba;
  --bmw-cyan: #00a3e0;
  --text: #f5f7fa;
  --text-soft: #c3ccd8;
  --text-muted: #8995a5;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --radius: 14px;
  --shadow-sm: 0 16px 40px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 36px 90px rgba(0, 0, 0, 0.42);
}

html {
  scroll-padding-top: 92px;
}

body {
  font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(1100px 580px at 78% -12%, rgba(28, 105, 212, 0.2), transparent 62%),
    linear-gradient(180deg, #030507 0%, #080c12 52%, #030507 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.page-wrap,
body > .site-header,
body > main,
body > .footer {
  width: min(100% - 40px, 1360px);
}

.page-wrap {
  margin-block: 20px;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(3, 6, 10, 0.8);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.58);
}

.topbar,
.site-header {
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 86px;
  padding: 20px 54px;
  background: rgba(3, 5, 8, 0.82);
}

.logo {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.logo::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bmw-blue), var(--bmw-cyan), transparent 78%);
}

.menu,
.nav {
  gap: clamp(18px, 3vw, 46px);
}

.menu a,
.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.phone,
.phone-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
}

.hero h1,
.lux-title,
.section-title {
  text-wrap: balance;
  letter-spacing: -0.03em;
}

/* Uppercase home headline: tight tracking crowds caps — keep it near-neutral */
.home-page .hero h1 {
  letter-spacing: -0.005em;
  word-spacing: 0.02em;
}

.home-page .hero {
  min-height: 670px;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: 0;
  padding: 72px 54px 62px;
  isolation: isolate;
}

.home-page .hero::before {
  right: 44%;
  top: 90px;
  width: 150px;
  height: 410px;
  border: 0;
  background:
    linear-gradient(115deg, transparent 0 41%, rgba(0, 163, 224, 0.56) 42% 43%, transparent 44%),
    linear-gradient(115deg, transparent 0 55%, rgba(28, 105, 212, 0.9) 56% 61%, transparent 62%);
  box-shadow: none;
  transform: none;
}

.home-page .hero::after {
  content: "IAUTO";
  position: absolute;
  right: 4%;
  bottom: -5%;
  z-index: -1;
  color: rgba(255, 255, 255, 0.022);
  font-size: clamp(150px, 19vw, 280px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

.home-page .hero-left {
  padding-right: 12px;
}

.kicker,
.hero-tag {
  position: relative;
  padding-left: 30px;
  color: #66b6ff;
  letter-spacing: 0.13em;
}

.kicker::before,
.hero-tag::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--bmw-blue), var(--bmw-cyan));
}

.home-page .hero h1 {
  max-width: 660px;
  font-size: clamp(50px, 5vw, 76px);
  line-height: 0.99;
  font-weight: 700;
}

.lead,
.lux-sub {
  line-height: 1.65;
}

.home-page .hero-right.fx-panel {
  min-height: 540px;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.home-page .hero-right.fx-panel::before {
  content: "";
  position: absolute;
  inset: 7% -8% -2% 4%;
  background:
    radial-gradient(ellipse at 62% 54%, rgba(28, 105, 212, 0.25), transparent 44%),
    linear-gradient(120deg, transparent 52%, rgba(255, 255, 255, 0.11) 52.2%, transparent 52.8%);
}

.home-page .hero-right::after {
  background: linear-gradient(90deg, rgba(3, 5, 8, 0.52), transparent 35%);
}

.home-page .fx-car,
.home-page .fx-car img {
  width: 100%;
  height: 100%;
}

.home-page .fx-car img {
  object-fit: contain;
  object-position: center right;
  transform: scale(1.16) translateX(2%);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 15%, #000 100%),
    linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 15%, #000 100%),
    linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
  mask-composite: intersect;
  filter: contrast(1.12) brightness(0.87) saturate(0.85) drop-shadow(0 40px 70px rgba(0, 0, 0, 0.72));
}

.btn,
.card-btn {
  min-height: 54px;
  border-radius: 7px;
  padding-inline: 26px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.btn-primary,
.btn-primary-bmw,
.fx-btn--primary {
  background: linear-gradient(135deg, #2479ea, #0751b9) !important;
  box-shadow:
    0 16px 34px rgba(28, 105, 212, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

.btn-primary:hover,
.btn-primary-bmw:hover,
.fx-btn--primary:hover {
  box-shadow:
    0 22px 50px rgba(28, 105, 212, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
}

.btn-secondary,
.btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.025);
}

.services-grid {
  counter-reset: iauto-services;
  gap: 14px;
  padding: 0 54px;
}

.service-card {
  counter-increment: iauto-services;
  min-height: 330px;
  padding: 30px;
  border-radius: 12px !important;
  background: #0a0f16 !important;
}

.service-card::after {
  content: "0" counter(iauto-services);
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.34);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.service-card:nth-child(2) {
  transform: translateY(26px);
}

.service-card:nth-child(2):hover {
  transform: translateY(20px);
}

.service-card .card-bg {
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.38;
  filter: grayscale(0.5) saturate(0.72) brightness(0.58) contrast(1.18);
  mask-image: linear-gradient(100deg, transparent 15%, #000 68%);
}

.service-card::before {
  z-index: 1;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: 75%;
  background: linear-gradient(to top, rgba(4, 7, 11, 0.97), transparent);
}

.service-card p {
  max-width: 86%;
  margin-top: 24px;
}

.service-card .card-btn {
  margin-top: auto;
  border: 0;
  border-bottom: 1px solid rgba(66, 154, 255, 0.66);
  border-radius: 0;
  padding: 0 0 5px;
  background: transparent;
}

.trust-row {
  margin: 54px 54px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.trust-item.fx-panel {
  padding-block: 25px;
  border: 0 !important;
  border-right: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.trust-item:last-child {
  border-right: 0 !important;
}

.trust-item strong {
  color: #fff;
  letter-spacing: 0.06em;
}

.consult {
  margin: 22px 54px 0;
  padding: 34px 38px;
  border-color: rgba(54, 143, 244, 0.35) !important;
  border-radius: 12px !important;
  background:
    linear-gradient(100deg, rgba(28, 105, 212, 0.19), transparent 64%),
    #0b1017 !important;
}

.footer {
  margin-top: 58px;
  padding: 42px 54px;
}

/* Inner landing pages */
.section-page > .site-header {
  margin-top: 20px;
  border-radius: 18px 18px 0 0;
  background: rgba(3, 5, 8, 0.84);
}

.section-page .header-inner {
  min-height: 84px;
  padding-block: 16px;
}

.section-page .nav {
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
}

.section-page .nav a {
  white-space: nowrap;
}

.section-page > main {
  background: linear-gradient(180deg, rgba(4, 7, 11, 0.96), rgba(8, 12, 18, 0.98));
}

.section-page .section {
  position: relative;
  padding-block: 96px;
}

.section-page .section:nth-child(odd):not(.hero) {
  background: rgba(255, 255, 255, 0.012);
}

.section-page .section.hero {
  padding-top: 30px;
}

.hero-premium {
  min-height: 650px;
  border: 0 !important;
  border-radius: 12px !important;
  padding: clamp(42px, 6vw, 82px);
  background: #060a0f !important;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.4) !important;
}

.hero-premium::before {
  background:
    linear-gradient(116deg, transparent 0 53%, rgba(0, 163, 224, 0.6) 53.1% 53.35%, transparent 53.5%),
    linear-gradient(116deg, transparent 0 63%, rgba(28, 105, 212, 0.86) 63.1% 64%, transparent 64.2%);
  opacity: 0.7;
}

.hero-premium::after {
  background-size: min(820px, 66vw) auto;
  background-position: right -70px center;
  opacity: 0.68;
  filter: grayscale(0.2) brightness(0.7) contrast(1.2) saturate(0.88);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}

.hero-service::after {
  background-position: right center;
}

.hero-detailing::after {
  background-position: right center;
}

.detailing-page .section.hero {
  padding-bottom: 34px;
}

.detailing-page .hero-premium {
  min-height: clamp(430px, 42vw, 560px);
  padding-block: clamp(56px, 6vw, 86px);
}

.detailing-page #prices {
  padding-top: clamp(48px, 5vw, 68px);
}

.section-page .lux-title {
  max-width: 780px;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.01;
}

.section-page .lux-sub {
  font-size: 19px;
}

.badges {
  gap: 9px;
}

.badges span {
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: rgba(3, 7, 12, 0.5);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.section-title {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
}

.section-page .container > .text-muted {
  max-width: 790px;
  font-size: 18px;
  line-height: 1.7;
}

.policy-content {
  max-width: 920px;
  padding: clamp(28px, 5vw, 56px);
}

.policy-content h1 {
  margin-top: 16px;
}

.policy-content h2 {
  margin: 30px 0 10px;
  color: #fff;
  font-size: 24px;
}

.policy-content p,
.policy-content li {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.72;
}

.policy-content ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.policy-content a {
  color: #66b6ff;
}

.kv {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kv > * {
  min-width: 0;
}

.kv-item,
.review,
.person,
.before-after,
.related-card,
.detailing-price-card,
.prices,
.repair-row {
  border-radius: 10px !important;
}

.kv-item.fx-panel,
.review.fx-panel,
.person.fx-panel,
.before-after.fx-panel,
.related-card.fx-panel {
  background: linear-gradient(150deg, #121923, #090d13) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22) !important;
}

.kv-item {
  min-height: 210px;
  padding: 28px;
}

.kv-item h3 {
  font-size: 21px;
}

.reviews-grid {
  gap: 12px;
}

.review {
  padding: 0;
  overflow: hidden;
}

.review-photo {
  position: relative;
  overflow: hidden;
}

.review-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(4, 7, 11, 0.66));
  pointer-events: none;
}

.review-photo > span {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(3, 6, 10, 0.62);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review .real-photo {
  width: 100%;
  height: 230px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06) brightness(0.88);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.review:hover .real-photo {
  transform: scale(1.025);
}

.review-body {
  padding: 24px 26px 26px;
}

.review-body p,
.review-body p:first-of-type {
  min-height: 112px;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.review-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(78, 155, 243, 0.45);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, rgba(28, 105, 212, 0.42), rgba(8, 14, 22, 0.9));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.review-author strong,
.review-author small {
  display: block;
}

.review-author strong {
  color: #fff;
  font-size: 14px;
}

.review-author small {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
}

.cta-final {
  padding: clamp(34px, 5vw, 60px);
  border: 1px solid rgba(28, 105, 212, 0.3);
  background:
    radial-gradient(circle at 88% 50%, rgba(0, 163, 224, 0.15), transparent 30%),
    linear-gradient(120deg, rgba(28, 105, 212, 0.16), transparent 58%),
    #0a0f16;
}

.related-card {
  min-height: 300px;
  padding: 34px;
}

.repair-row {
  background: linear-gradient(100deg, rgba(28, 105, 212, 0.08), transparent 42%), #0b1017;
}

.price-table-wrap {
  border-radius: 8px;
}

.before-after-pairs {
  gap: 12px;
}

.before-after {
  padding: 0;
  overflow: hidden;
}

.before-after .real-photo {
  width: 100%;
  height: 270px;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.1) brightness(0.84);
}

.before-after .meta {
  margin: 20px 22px 24px;
}

.floating-wa {
  border-radius: 8px;
  letter-spacing: 0.04em;
}

.fx-panel:hover {
  transform: translateY(-4px);
}

.fx-glow {
  background: radial-gradient(circle, rgba(28, 105, 212, 0.12), transparent 68%);
}

.fx-orbit {
  opacity: 0.45;
}

@media (max-width: 1080px) {
  .home-page .hero {
    min-height: 620px;
    grid-template-columns: 1fr 0.88fr;
  }

  .home-page .hero h1 {
    font-size: 54px;
  }

  .home-page .fx-car img {
    transform: scale(1.3) translateX(5%);
  }

  .service-card {
    min-height: 310px;
  }
}

@media (max-width: 1320px) and (min-width: 901px) {
  .home-page .hero {
    grid-template-columns: minmax(0, 0.94fr) minmax(500px, 1.06fr);
  }

  .home-page .hero h1 {
    font-size: 58px;
  }
}

@media (max-width: 900px) {
  .page-wrap,
  body > .site-header,
  body > main,
  body > .footer {
    width: min(100% - 24px, 1360px);
  }

  .topbar {
    grid-template-columns: 1fr auto;
    padding-inline: 28px;
  }

  .topbar .menu {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .home-page .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 58px 30px 20px;
  }

  .home-page .hero-left {
    max-width: 720px;
  }

  .home-page .hero-right.fx-panel {
    min-height: 430px;
    margin-top: -24px;
  }

  .home-page .fx-car img {
    transform: scale(1.04);
    object-position: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
    padding-inline: 30px;
  }

  .service-card:nth-child(2),
  .service-card:nth-child(2):hover {
    transform: none;
  }

  .trust-row,
  .consult {
    margin-inline: 30px;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .trust-item.fx-panel {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .trust-item:last-child {
    border-bottom: 0 !important;
  }

  .kv {
    grid-template-columns: 1fr;
  }

  .hero-premium {
    min-height: 700px;
    justify-content: flex-start;
  }

  .hero-premium::after {
    background-size: 760px auto;
    background-position: center bottom -90px;
    opacity: 0.42;
    mask-image: linear-gradient(to bottom, transparent 14%, #000 58%);
  }

  .section-page .lux-title {
    font-size: 50px;
  }
}

@media (max-width: 640px) {
  .page-wrap,
  body > .site-header,
  body > main,
  body > .footer {
    width: 100%;
  }

  .page-wrap,
  .section-page > .site-header {
    margin: 0;
    border-radius: 0;
  }

  .topbar {
    min-height: auto;
    gap: 12px;
    padding: 15px 18px;
  }

  .topbar .menu {
    width: 100%;
    gap: 4px;
    justify-content: space-between;
  }

  .menu a,
  .nav a {
    min-height: 46px;
    font-size: 11px;
  }

  .topbar .phone {
    font-size: 13px;
  }

  .home-page .hero {
    padding: 48px 20px 10px;
  }

  .home-page .hero h1 {
    max-width: 100%;
    font-size: clamp(37px, 10.5vw, 42px);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .home-page .kicker {
    max-width: 330px;
    padding-left: 24px;
    font-size: 10px;
    line-height: 1.55;
  }

  .home-page .hero-right.fx-panel {
    min-height: 300px;
    margin-top: 0;
  }

  .home-page .fx-car img {
    transform: scale(1.18);
  }

  .services-grid {
    padding-inline: 16px;
  }

  .service-card {
    min-height: 300px;
    padding: 24px;
  }

  .trust-row,
  .consult {
    margin-inline: 16px;
  }

  .consult {
    padding: 28px 22px;
  }

  .footer {
    padding-inline: 22px;
  }

  .section-page .header-inner {
    padding-inline: 18px;
  }

  .section-page .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 5px;
  }

  .section-page .section {
    padding-block: 66px;
  }

  .section-page .section.hero {
    padding: 14px 0 0;
  }

  .detailing-page .section.hero {
    padding-bottom: 24px;
  }

  .detailing-page #prices {
    padding-top: 42px;
  }

  .hero-premium {
    min-height: 700px;
    padding: 34px 22px;
    border-radius: 0 !important;
  }

  .detailing-page .hero-premium {
    min-height: 520px;
    padding-block: 44px;
  }

  .section-page .lux-title {
    font-size: clamp(36px, 10.5vw, 46px);
  }

  .section-title {
    font-size: 32px;
  }

  .badges span {
    width: auto;
  }

  .kv-item {
    min-height: auto;
  }

  .before-after .real-photo,
  .review .real-photo {
    height: 230px;
  }

  .floating-wa {
    right: 12px;
    min-height: 54px;
    left: auto;
    width: auto;
    max-width: calc(100% - 24px);
    padding-inline: 18px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-panel,
  .fx-btn,
  .card-bg,
  .fx-arr {
    transition: none !important;
  }

}

/* ─── Stats row ─────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 54px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-item {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  text-align: center;
  transition: background 0.3s;
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item:hover {
  background: rgba(28, 105, 212, 0.05);
}

.stat-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  line-height: 1;
}

.stat-num {
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  color: var(--bmw-blue);
}

.stat-label {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.03em;
}

/* ─── Hamburger / mobile menu ────────────────────────────────────── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Service card gradient border on hover ─────────────────────── */
.service-card {
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s cubic-bezier(0.22,1,0.36,1), border-color 0.3s !important;
}

.service-card::after {
  transition: opacity 0.3s;
}

/* ─── Floating Telegram icon alignment ──────────────────────────── */
.floating-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ─── Cookie consent ────────────────────────────────────────────── */
.cookie-consent {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(18px, env(safe-area-inset-left));
  z-index: 10020;
  max-width: 980px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-inline: auto;
  padding: 22px;
  border: 1px solid rgba(102, 182, 255, 0.28);
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 95% 20%, rgba(28, 105, 212, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(16, 24, 35, 0.96), rgba(3, 6, 10, 0.96));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.cookie-consent__text strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.cookie-consent__text p {
  max-width: 720px;
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-consent__text a {
  display: inline-flex;
  margin-top: 9px;
  color: #66b6ff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.cookie-consent__text a:hover {
  color: #fff;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookie-consent__btn {
  min-height: 48px;
  border-radius: 9px;
  padding: 0 18px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.cookie-consent__btn:hover {
  transform: translateY(-1px);
}

.cookie-consent__btn--primary {
  border: 1px solid rgba(102, 182, 255, 0.56);
  color: #fff;
  background: linear-gradient(135deg, #2479ea, #0751b9);
  box-shadow: 0 14px 34px rgba(28, 105, 212, 0.32);
}

.cookie-consent__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
}

.cookie-consent__btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

/* ─── Detailing promo popup ─────────────────────────────────────── */
.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.promo-popup.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.promo-popup__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 58% 42%, rgba(28, 105, 212, 0.18), transparent 34%),
    rgba(1, 3, 6, 0.72);
  backdrop-filter: blur(14px) saturate(118%);
  -webkit-backdrop-filter: blur(14px) saturate(118%);
}

.promo-popup__card {
  position: relative;
  z-index: 1;
  width: min(92vw, 760px);
  max-height: calc(100dvh - 36px);
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(220px, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid rgba(92, 164, 255, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(17, 26, 38, 0.98), rgba(4, 7, 11, 0.98)),
    #070b11;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: translateY(18px) scale(0.985);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.promo-popup.is-visible .promo-popup__card {
  transform: translateY(0) scale(1);
}

.promo-popup__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 56%, rgba(0, 163, 224, 0.26) 56.2% 56.8%, transparent 57%),
    radial-gradient(circle at 82% 14%, rgba(28, 105, 212, 0.22), transparent 32%);
}

.promo-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(3, 6, 10, 0.62);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.promo-popup__close:hover {
  transform: rotate(90deg);
  border-color: rgba(102, 182, 255, 0.55);
  background: rgba(28, 105, 212, 0.28);
}

.promo-popup__media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.promo-popup__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 46%, rgba(6, 10, 15, 0.92)),
    linear-gradient(180deg, transparent 48%, rgba(2, 4, 7, 0.36));
}

.promo-popup__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(0.16) contrast(1.12) brightness(0.82);
  transform: scale(1.02);
}

.promo-popup__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 54px);
}

.promo-popup__eyebrow {
  margin-bottom: 14px;
  color: #66b6ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.promo-popup__content h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.promo-popup__content p {
  max-width: 410px;
  margin: 0 0 26px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.62;
}

.promo-popup__button {
  width: fit-content;
  min-width: 190px;
  justify-content: center;
}

/* ─── Header scroll state (home + sub-pages) ────────────────────── */
.topbar.is-scrolled,
.site-header.is-scrolled {
  background: rgba(3, 5, 8, 0.96) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.38);
}

/* ─── Active nav link ───────────────────────────────────────────── */
.menu a.is-active,
.nav a.is-active {
  color: #fff;
}

.menu a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ─── Stats mobile ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    margin-inline: 30px;
  }

  .stat-item:nth-child(2) {
    border-right: 0;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .menu-toggle {
    display: flex;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .topbar .menu {
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    transition: max-height 0.38s cubic-bezier(0.22,1,0.36,1), padding 0.3s;
  }

  .topbar .menu.is-open {
    max-height: 300px;
    padding: 8px 0 16px;
    gap: 2px;
  }

  .topbar .menu a {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    min-height: 48px;
  }

  .topbar .menu a:last-child {
    border-bottom: 0;
  }

  .topbar .phone {
    justify-self: end;
    font-size: 14px;
  }

  /* Sub-page header: keep section links visible on tablets */
  .section-page .header-inner {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .section-page .menu-toggle {
    display: none;
    order: 2;
  }

  .section-page .phone-link {
    margin-left: auto;
    order: 1;
  }

  .section-page .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    max-height: none;
    overflow: visible;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 20px;
    flex-wrap: wrap;
  }

  .section-page .nav a {
    width: auto;
    padding: 8px 0;
    border-bottom: 0;
    min-height: 42px;
  }

  .section-page .nav a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .stats-row {
    margin-inline: 16px;
  }

  .stat-item {
    padding: 22px 16px;
  }

  .cookie-consent {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
    border-radius: 16px;
  }

  .cookie-consent__text p {
    font-size: 13px;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-consent__btn {
    width: 100%;
  }

  .section-page .menu-toggle {
    display: flex;
  }

  .section-page .nav {
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    flex-wrap: nowrap;
    transition: max-height 0.38s cubic-bezier(0.22,1,0.36,1);
  }

  .section-page .nav.is-open {
    max-height: 360px;
  }

  .section-page .nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    min-height: 48px;
  }

  .section-page .nav a:last-child {
    border-bottom: 0;
  }

  .promo-popup {
    align-items: end;
    padding: 14px 12px max(14px, env(safe-area-inset-bottom));
  }

  .promo-popup__card {
    width: min(100%, 430px);
    max-height: calc(100dvh - 28px);
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .promo-popup__media {
    min-height: 0;
    height: clamp(170px, 42vh, 260px);
  }

  .promo-popup__media::after {
    background: linear-gradient(180deg, transparent 38%, rgba(6, 10, 15, 0.94));
  }

  .promo-popup__content {
    padding: 24px 22px 22px;
  }

  .promo-popup__content h2 {
    font-size: clamp(32px, 10vw, 40px);
  }

  .promo-popup__content p {
    font-size: 15px;
    line-height: 1.52;
    margin-bottom: 18px;
  }

  .promo-popup__button {
    width: 100%;
    min-height: 56px;
  }
}
