/* avtoelektrik.dp.ua — design system. Tokens and rationale: docs/03-design.md */

/* ---------- tokens ---------- */
:root {
  --red-600: #B8121B; --red-700: #8F0E15; --red-50: #FBECEC;
  --ink-900: #17191D; --ink-700: #3A3F47; --ink-500: #6B7280;
  --paper-50: #F7F5F0; --paper-100: #EFEBE3; --white: #fff; --line: #E2DDD3;
  --amber-500: #F5B301; --night-900: #101214; --night-800: #1A1D21;
  --shadow-1: 0 1px 2px rgb(23 25 29 / .06), 0 1px 3px rgb(23 25 29 / .08);
  --shadow-2: 0 4px 12px rgb(23 25 29 / .08), 0 12px 32px rgb(23 25 29 / .10);
  --shadow-red: 0 8px 24px rgb(184 18 27 / .28);
  --display: "Fira Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Fira Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1200px; --gutter: 24px;
  --sect: 64px;
  --r-sm: 4px; --r: 8px; --r-lg: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 600ms;
}
@media (min-width: 768px) { :root { --gutter: 40px; --sect: 96px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper-50); color: var(--ink-900);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; text-wrap: pretty;
}
@media (max-width: 767px) { body { font-size: 16px; line-height: 1.55; } }
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red-600); text-decoration: none; }
a:hover { color: var(--red-700); }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 2px; border-radius: var(--r-sm); }
.section--night :focus-visible, .footer :focus-visible, .topbar :focus-visible { outline-color: #fff; }
::selection { background: var(--red-50); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink-900); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.skip-link:focus { left: 8px; }

/* ---------- type ---------- */
.display { font-size: clamp(40px, 3.2vw + 24px, 64px); line-height: 1; }
.display--md { font-size: clamp(34px, 2.6vw + 20px, 56px); }
.h2 { font-size: clamp(30px, 2vw + 18px, 44px); font-weight: 700; }
.h2--md { font-size: clamp(26px, 1.4vw + 16px, 36px); }
.h3 { font-size: 24px; font-weight: 700; line-height: 1.15; }
.h3--lg { font-size: 28px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink-700); }
.small { font-size: 15px; line-height: 1.5; }
.muted { color: var(--ink-500); }
@media (max-width: 767px) { .h3 { font-size: 22px; } .h3--lg { font-size: 24px; } .lead { font-size: 18px; } .small { font-size: 14px; } }

/* ---------- motifs ---------- */
.slab {
  display: inline-block; background: var(--red-600); color: #fff; font: 600 13px/1 var(--body);
  letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px 5px; border-radius: var(--r-sm); white-space: nowrap;
}
@media (max-width: 767px) { .slab { font-size: 12px; } }
.spark {
  display: block; width: 48px; height: 4px; margin-top: 14px; background: var(--amber-500);
  clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%); transform-origin: left;
}
.chip { display: inline-block; background: var(--amber-500); color: var(--ink-900); font: 600 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 8px 5px; border-radius: var(--r-sm); }

/* ---------- icons ---------- */
.ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.ico-xs { width: 14px; height: 14px; }
.ico-lg { width: 28px; height: 28px; }
.ico-fill { fill: currentColor; }
.tile { width: 56px; height: 56px; border-radius: var(--r); background: var(--paper-100); color: var(--red-600); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: background .2s, color .2s; }
.tile--sm { width: 36px; height: 36px; border-radius: 6px; }
.tile--night { background: var(--night-800); color: var(--amber-500); }
.stars { display: inline-flex; gap: 2px; color: var(--amber-500); }
.stars .ico { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.stars--lg { gap: 4px; }
.stars--lg .ico { width: 26px; height: 26px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: var(--r); font: 600 16px/1 var(--body); white-space: nowrap; border: 1.5px solid transparent;
  transition: background .2s, color .2s, box-shadow .2s, transform .12s, border-color .2s;
}
.btn--lg { height: 52px; padding: 0 24px; }
.btn--sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn--primary { background: var(--red-600); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover { background: var(--red-700); color: #fff; box-shadow: 0 10px 28px rgb(184 18 27 / .34); }
.btn--outline { background: transparent; color: var(--ink-900); border-color: var(--ink-900); }
.btn--outline:hover { background: var(--ink-900); color: #fff; }
.btn--white { background: #fff; color: var(--red-600); }
.btn--white:hover { background: var(--paper-50); color: var(--red-700); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .7; pointer-events: none; }
.iconbtn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-900); transition: background .2s, color .2s; }
.iconbtn:hover { background: var(--ink-900); color: #fff; }
.linkbtn { display: inline-flex; align-items: center; gap: 8px; color: var(--red-600); font-weight: 500; }
.linkbtn:hover { color: var(--red-700); }

/* ---------- cards & lists ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.marks { display: flex; flex-direction: column; gap: 10px; }
.marks li { position: relative; padding-left: 20px; }
.marks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--red-600); }

/* ---------- topbar ---------- */
.topbar { background: var(--night-900); color: #fff; font-size: 14px; }
.topbar__in { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__contacts { display: flex; align-items: center; gap: 28px; min-width: 0; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: rgb(255 255 255 / .75); white-space: nowrap; }
.topbar__phones a { color: rgb(255 255 255 / .75); }
.topbar__phones a.is-main { color: #fff; font-weight: 500; }
.topbar__phones a + a { margin-left: 8px; }
.topbar__phones a:hover { color: #fff; }
.topbar .ico { color: rgb(255 255 255 / .6); }
.langs { display: flex; gap: 16px; font-weight: 600; letter-spacing: .06em; }
.langs__item { color: rgb(255 255 255 / .55); padding: 10px 0 8px; border-bottom: 2px solid transparent; line-height: 1; }
.langs__item:hover { color: #fff; }
.langs__item.is-active { color: #fff; border-bottom-color: var(--red-600); }
@media (max-width: 1023px) { .topbar__hours { display: none; } }
@media (max-width: 767px) {
  .topbar__in { min-height: 36px; }
  .topbar__addr, .topbar__phones a:not(.is-main) { display: none; }
  .topbar__contacts { gap: 12px; }
}

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--paper-50); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.is-stuck { box-shadow: var(--shadow-1); }
.header__in { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: inherit; min-width: 0; }
.brand__mark { width: 40px; height: 50px; flex: none; }
.brand__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand__name { font: 800 26px/1 var(--display); color: var(--red-600); letter-spacing: .01em; }
.brand__tag { font-size: 13px; line-height: 1; color: var(--ink-500); }
.brand--light { color: #fff; }
.brand--light .brand__name { color: #fff; font-size: 24px; }
.brand--light .brand__mark { width: 32px; height: 40px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav > a { color: var(--ink-900); font: 500 16px var(--body); position: relative; padding: 4px 0; }
.nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red-600); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.nav > a:hover::after { transform: scaleX(1); }
.nav__langs { display: none; }
.header__call { flex: none; box-shadow: none; }
.header__burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink-900); }
.header__burger-close { display: none; }
.header__burger[aria-expanded="true"] .header__burger-open { display: none; }
.header__burger[aria-expanded="true"] .header__burger-close { display: block; }
@media (max-width: 1023px) {
  .header__in { height: 64px; gap: 12px; }
  .brand__tag { display: none; }
  .brand__mark { width: 32px; height: 40px; }
  .brand__name { font-size: 20px; }
  .header__call span { display: none; }
  .header__call { width: 44px; padding: 0; }
  .header__burger { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-50); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    padding: 8px var(--gutter) 16px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav > a::after { display: none; }
  .nav__langs { display: flex; gap: 20px; padding-top: 14px; font-size: 15px; }
  .nav__langs .is-active { font-weight: 600; }
}

/* ---------- hero ---------- */
.hero { padding-top: 56px; }
.hero__in { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; padding-bottom: 56px; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__copy .display { max-width: 640px; }
.hero__copy .lead { max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero__art { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 480px; }
.hero__spot { position: absolute; bottom: 20px; width: 400px; height: 400px; border-radius: 50%; background: var(--paper-100); }
.hero__car { position: relative; width: 368px; height: auto; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) { .hero__car { animation: rock 6s ease-in-out infinite; } }
@keyframes rock { 0%, 100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg); } }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 64px; }
.trust__item { padding: 24px 0; display: flex; flex-direction: column; gap: 4px; }
.trust__item + .trust__item { padding-left: 32px; border-left: 1px solid var(--line); }
.trust__num { font: 800 40px/1 var(--display); display: inline-flex; align-items: center; gap: 8px; }
.trust__star { width: 28px; height: 28px; fill: var(--amber-500); stroke: none; }
.trust__label { font-size: 15px; color: var(--ink-500); }
@media (max-width: 1023px) {
  .hero__in { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero__art { height: 380px; }
  .hero__spot { width: 300px; height: 300px; }
  .hero__car { width: 280px; }
}
@media (max-width: 767px) {
  .hero { padding-top: 28px; }
  .hero__in { grid-template-columns: 1fr; gap: 20px; padding-bottom: 32px; }
  .hero__art { order: -1; height: 250px; }
  .hero__spot { width: 220px; height: 220px; bottom: 8px; }
  .hero__car { width: 196px; }
  .hero__actions { flex-direction: column; align-self: stretch; }
  .hero__actions .btn { width: 100%; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 32px; }
  .trust__item { padding: 16px 0; }
  .trust__item + .trust__item { padding-left: 20px; border-left: 1px solid var(--line); }
  .trust__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .trust__num { font-size: 34px; }
  .trust__star { width: 22px; height: 22px; }
}

/* ---------- banner ---------- */
.banner { overflow: hidden; height: clamp(220px, 24vw, 420px); }
.banner__img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.banner__desktop, .banner__mobile { height: 100%; }
.banner__desktop picture, .banner__mobile picture { height: 100%; }
.banner__mobile { display: none; }
@media (prefers-reduced-motion: no-preference) and (min-width: 1024px) { .banner__img { will-change: transform; transform: translateY(var(--parallax, 0)); height: calc(100% + 32px); margin-top: -16px; } }
@media (max-width: 767px) { .banner { height: 230px; } .banner__desktop { display: none; } .banner__mobile { display: block; } }

/* ---------- sections ---------- */
.section { padding: var(--sect) 0; }
.section--paper { background: var(--paper-100); }
.section--white { background: var(--white); }
.section--night { background: var(--night-900); color: #fff; }
.section--cta { padding-top: 32px; }
.section__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; }
.section__head .h2 { margin-top: 0; }
.section__head--split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section__head--split > div { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.section__intro { max-width: 380px; font-size: 16px; color: var(--ink-500); }
@media (max-width: 767px) { .section__head { gap: 14px; margin-bottom: 24px; } .section__head--split { flex-direction: column; align-items: flex-start; } .section__intro { display: none; } }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.svc { padding: 24px; display: flex; flex-direction: column; gap: 16px; color: inherit; transition: transform .2s var(--ease), box-shadow .2s; }
.svc:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: inherit; }
.svc:hover .tile { background: var(--red-600); color: #fff; }
.svc__body { display: flex; flex-direction: column; gap: 6px; }
.svc__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--red-600); font: 600 15px var(--body); }
.wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.wide__card { border-radius: var(--r); overflow: hidden; display: grid; grid-template-columns: 1fr 220px; }
.wide__card--dark { background: var(--night-900); color: #fff; }
.wide__card--dark .small { color: rgb(255 255 255 / .72); }
.wide__body { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.wide__tags { display: flex; align-items: center; gap: 12px; }
.wide__media { position: relative; min-height: 220px; }
.wide__media picture, .wide__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wide__card--dark .wide__media img { object-position: center 30%; }
@media (max-width: 1023px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wide { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .services { gap: 12px; }
  .svc { padding: 16px; gap: 12px; }
  .svc .tile { width: 44px; height: 44px; }
  .svc .tile .ico { width: 22px; height: 22px; }
  .svc .h3 { font-size: 19px; }
  .svc .small, .svc__more { display: none; }
  .wide { gap: 16px; margin-top: 16px; }
  .wide__card { grid-template-columns: 1fr; }
  .wide__media { order: -1; min-height: 160px; }
  .wide__body { padding: 22px; }
}

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.why__col { display: flex; flex-direction: column; gap: 18px; }
.why__cta { margin-top: 48px; display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
@media (max-width: 1023px) { .why { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 767px) { .why { grid-template-columns: 1fr; gap: 28px; } .why__cta { margin-top: 28px; } .why__cta .btn { width: 100%; } }

/* ---------- partners ---------- */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.partners__pandora { display: flex; gap: 28px; align-items: flex-start; }
.partners__cert { width: 200px; height: auto; flex: none; border-radius: var(--r); border: 1px solid rgb(255 255 255 / .12); }
.partners__text, .partners__buckler { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.partners__text { padding-top: 8px; }
.partners__text .small { color: rgb(255 255 255 / .7); }
.partners__buckler p { color: rgb(255 255 255 / .8); max-width: 620px; }
.partners__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; width: 100%; }
.partners__photos img { width: 100%; height: 150px; object-fit: cover; border-radius: var(--r); }
@media (max-width: 1023px) { .partners { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 767px) {
  .partners { gap: 40px; }
  .partners__pandora { gap: 18px; }
  .partners__cert { width: 130px; }
  .partners__photos { gap: 10px; }
  .partners__photos img { height: 76px; border-radius: 6px; }
}

/* ---------- google ---------- */
.google { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.google__summary { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.google__rating { font: 800 112px/.9 var(--display); }
.google__list { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.google__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.google__nav { display: flex; gap: 8px; }
.greviews { display: flex; align-items: flex-start; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.greviews::-webkit-scrollbar { display: none; }
.greview { width: 320px; flex: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; scroll-snap-align: start; }
.greview__head { display: flex; align-items: center; gap: 12px; }
.greview__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.greview__name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.greview__g { width: 22px; height: 22px; stroke: none; }
.greview__text { color: var(--ink-700); display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.greview.is-open .greview__text { display: block; -webkit-line-clamp: unset; }
.greview__more { align-self: flex-start; font: 600 14px var(--body); color: var(--red-600); }
.greview__more:hover { color: var(--red-700); }
.greview.is-open .greview__more, .greview__more[hidden] { display: none; }
.greview__reply { border-top: 1px solid var(--line); padding-top: 10px; }
.greview__reply span { font-weight: 500; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--paper-100); color: var(--ink-700); display: inline-flex; align-items: center; justify-content: center; font: 600 16px var(--body); flex: none; }
@media (max-width: 1023px) {
  .google { grid-template-columns: 1fr; gap: 28px; }
  .google__rating { font-size: 80px; }
  .greviews { margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter); }
  .greview { width: 280px; padding: 18px 20px; }
}
@media (max-width: 767px) { .google__summary .btn { width: 100%; } .google__nav { display: none; } }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
.reviews__form { position: sticky; top: 100px; }
.masonry { columns: 2; column-gap: 24px; }
.review { break-inside: avoid; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px 18px; margin-bottom: 24px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.review__q { width: 22px; height: 22px; fill: var(--red-600); stroke: none; }
.review__text { overflow-wrap: anywhere; }
.review__photo { display: block; width: 120px; border-radius: 6px; overflow: hidden; }
.review__photo img { width: 100%; height: 160px; object-fit: cover; transition: transform .3s var(--ease); }
.review__photo:hover img { transform: scale(1.04); }
.review__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; color: var(--ink-500); }
.review__name { font-weight: 500; color: var(--ink-700); }
.review__name.is-anon { font-weight: 400; font-style: italic; color: var(--ink-500); }
.review.is-new { border-left: 3px solid var(--amber-500); animation: fresh 3s var(--ease) forwards; }
@keyframes fresh { 0% { border-left-color: var(--amber-500); box-shadow: 0 0 0 4px rgb(245 179 1 / .25); } 100% { border-left-color: var(--line); box-shadow: none; } }
.reviews__more { display: flex; justify-content: center; margin-top: 8px; }
.rform { padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-1); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 500 14px var(--body); color: var(--ink-700); }
.field textarea, .field input { width: 100%; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper-50); padding: 12px 14px; font: 400 16px/1.5 var(--body); color: var(--ink-900); transition: border-color .2s, background .2s; }
.field textarea { resize: vertical; min-height: 132px; }
.field textarea:focus, .field input:focus { outline: none; border-color: var(--ink-900); background: #fff; }
.field.is-invalid textarea, .field.is-invalid input { border-color: var(--red-600); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.rform__submit { position: relative; width: 100%; }
.rform__spinner { display: none; width: 20px; height: 20px; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.rform.is-sending .rform__label { opacity: 0; position: absolute; }
.rform.is-sending .rform__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.rform__status { min-height: 1.5em; margin-top: -8px; }
.rform__status.is-error { color: var(--red-600); }
.rform__status.is-ok { color: #1F7A3A; }
.rform__note { text-align: center; margin-top: -8px; }
.rform__google { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.rform__google span { font-weight: 500; }
.rform__google a { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 1023px) { .reviews { grid-template-columns: 1fr; gap: 24px; } .reviews__form { position: static; } .masonry { columns: 2; } }
@media (max-width: 767px) { .masonry { columns: 1; column-gap: 0; } .review { padding: 18px 20px 14px; margin-bottom: 12px; } .rform { padding: 22px; gap: 14px; } .reviews__more .btn { width: 100%; } }

/* ---------- map ---------- */
.map { position: relative; height: 460px; border-radius: var(--r-lg); overflow: hidden; background: #E6E2D8; }
.map__frame { width: 100%; height: 100%; border: 0; }
.map__card { position: absolute; left: 32px; top: 32px; width: 340px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-2); }
.map__row { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.map__row .ico { color: var(--red-600); margin-top: 2px; }
.map__row a { color: inherit; }
.map__card .btn { box-shadow: none; }
.map__video-btn { align-self: center; font-size: 15px; }
.video { margin-top: 24px; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.video video { width: 100%; height: auto; }
@media (max-width: 767px) {
  .map { height: auto; background: none; overflow: visible; border-radius: 0; }
  .map__frame { height: 220px; border-radius: var(--r-lg); }
  .map__card { position: static; width: auto; margin-top: 16px; box-shadow: none; padding: 20px; }
}

/* ---------- footer ---------- */
.footer { background: var(--night-900); color: #fff; padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgb(255 255 255 / .12); }
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__quote { font-size: 15px; color: rgb(255 255 255 / .6); max-width: 360px; }
.footer__h { font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .5); margin-bottom: 16px; }
.footer__list { display: flex; flex-direction: column; gap: 8px; }
.footer__list a { color: #fff; }
.footer__list a:hover { color: var(--amber-500); }
.footer__list .is-active { color: rgb(255 255 255 / .6); }
.footer__addr { font-size: 15px; color: rgb(255 255 255 / .6); margin-top: 6px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 14px; color: rgb(255 255 255 / .5); }
@media (max-width: 1023px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 767px) { .footer { padding: 40px 0 100px; } .footer__grid { grid-template-columns: 1fr; gap: 28px; } .footer__bottom { flex-direction: column; gap: 4px; } }

/* ---------- mobile bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: rgb(247 245 240 / .96); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgb(23 25 29 / .08); backdrop-filter: blur(6px); transition: transform .25s var(--ease);
  }
  .mobile-bar .btn { box-shadow: none; }
  .mobile-bar.is-hidden { transform: translateY(110%); }
}

/* ---------- service page ---------- */
.page { padding-top: 40px; }
.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--red-600); }
.crumbs span { color: var(--ink-900); }
.page__grid { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start; }
.page__main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.page__head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.page__head .display { max-width: 720px; }
.page__head .lead { max-width: 680px; }
.page__head .lead strong { font-weight: 600; color: var(--ink-900); }
.page__hero { border-radius: var(--r-lg); overflow: hidden; height: 360px; }
.page__hero picture, .page__hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 20px; }
.prose p { line-height: 1.65; }
.prose strong { font-weight: 600; }
.prose h2 { font-size: 30px; font-weight: 700; margin-top: 12px; }
.prose h3 { font-size: 24px; font-weight: 700; margin-top: 8px; }
.prose ul { display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--red-600); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.page__side { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 108px; }
.side { padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-1); }
.side__phone { font: 800 30px/1.1 var(--display); color: var(--ink-900); }
.side__phone:hover { color: var(--red-600); }
.side__row { display: flex; gap: 10px; align-items: flex-start; }
.side__row .ico { color: var(--red-600); margin-top: 2px; }
.side--links { padding: 20px 28px 12px; box-shadow: none; gap: 0; }
.side__label { font: 600 13px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 8px; }
.side__link { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-900); font: 500 16px var(--body); }
.side__link:last-child { border-bottom: 0; }
.side__link:hover { color: var(--red-600); }
.side__link:hover .tile { background: var(--red-600); color: #fff; }
.ctaband { background: var(--red-600); color: #fff; border-radius: var(--r-lg); padding: 44px 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.ctaband__text { display: flex; flex-direction: column; gap: 8px; }
.ctaband__text .h2 { color: #fff; }
.ctaband__text p { color: rgb(255 255 255 / .8); }
.ctaband__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.ctaband__link { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.ctaband__link:hover { color: var(--amber-500); }
@media (max-width: 1023px) { .page__grid { grid-template-columns: 1fr; gap: 40px; } .page__side { position: static; } }
@media (max-width: 767px) {
  .page { padding-top: 24px; }
  .crumbs { margin-bottom: 20px; }
  .page__main { gap: 28px; }
  .page__hero { height: 220px; }
  .prose h2 { font-size: 26px; }
  .side { padding: 22px; }
  .ctaband { flex-direction: column; align-items: stretch; padding: 28px 24px; }
  .ctaband__actions { align-items: stretch; }
}

/* ---------- 404 ---------- */
.notfound__in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; max-width: 640px; }
.notfound__car { width: 160px; height: auto; }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 16px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
  .reveal.is-in { opacity: 1; transform: none; }
  .reveal .spark { transform: scaleX(0); transition: transform .5s var(--ease) .25s; }
  .reveal.is-in .spark { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
