/* ==========================================================================
   Автовін — стилі теми (варіант 5, кольори з логотипа)
   ========================================================================== */
:root {
  --g-dark: #024B31;
  --g-mid: #076A39;
  --g-bright: #0D923F;
  --green: #0A7A3B;      /* кнопки, акценти (білий текст 5.4:1) */
  --ink: #023A27;        /* основний текст, темні блоки */
  --muted: #3D5A4C;
  --mint: #8FE6A9;
  --tint: #EEF7F1;
  --line: #DCEDE2;
  --cream: #FFF6D6;
  --viber: #6A55E0;
  --tg: #1877A8;
  --star: #B26B00;
  --white: #FFFFFF;
  --hero-grad: linear-gradient(115deg, var(--g-dark) 0%, var(--g-mid) 55%, var(--g-bright) 100%);
  --r-lg: 40px;
  --r-md: 28px;
  --r-sm: 18px;
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --plate-font: 'Roboto Condensed', 'Arial Narrow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; line-height: 1.12; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--g-bright); outline-offset: 3px; border-radius: 6px; }
.av-skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.av-skip:focus { left: 8px; }

.av-wrap { max-width: 1248px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.av-wrap--narrow { max-width: 948px; }
.av-section { padding-top: 72px; padding-bottom: 16px; }
.av-section__more { margin-top: 24px; }
.av-center { text-align: center; }
.av-h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 28px; letter-spacing: -0.3px; }
.av-h2--light { color: var(--white); }
.av-lead { font-size: 18px; color: var(--muted); margin: -16px 0 28px; }
.av-ico { width: 20px; height: 20px; flex: 0 0 auto; }

.av-grid { display: grid; gap: 16px; }
.av-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.av-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .av-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .av-grid--3, .av-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Кнопки ---------- */
.av-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background-color .15s ease; white-space: nowrap;
}
.av-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.av-btn--lg { min-height: 62px; padding: 0 32px; font-size: 18px; }
.av-btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.av-btn--block { display: flex; width: 100%; }
.av-btn--green { background: var(--green); color: var(--white); }
.av-btn--green:hover { color: var(--white); }
.av-btn--mint { background: var(--mint); color: var(--ink); }
.av-btn--mint:hover { color: var(--ink); }
.av-btn--ghost { border-color: rgba(255,255,255,.85); color: var(--white); background: transparent; }
.av-btn--ghost:hover { color: var(--white); background: rgba(255,255,255,.1); }
.av-btn--dark { background: var(--ink); color: var(--white); }
.av-btn--dark:hover { color: var(--mint); }
.av-btn--outline { border-color: var(--green); color: var(--green); background: var(--white); }
.av-btn--viber { background: var(--viber); color: var(--white); }
.av-btn--viber:hover { color: var(--white); }
.av-btn--tg { background: var(--tg); color: var(--white); }
.av-btn--tg:hover { color: var(--white); }

.av-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.av-pill--glass { background: rgba(255,255,255,.14); color: var(--white); }
.av-pill .av-ico { width: 18px; height: 18px; }

.av-badge { display: inline-flex; align-self: flex-start; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.av-badge--local { background: var(--mint); color: var(--ink); }
.av-badge--np { background: var(--cream); color: var(--ink); }

/* ---------- Шапка ---------- */
.av-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 2px 12px rgba(2,58,39,.08); }
.av-header__in { height: 96px; display: flex; align-items: center; gap: 28px; }
.av-logo { display: flex; align-items: center; flex: 0 0 auto; }
.av-logo__img { height: 76px; width: auto; }
.av-nav { display: flex; gap: 24px; flex: 1 1 auto; }
.av-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.av-nav a:hover { color: var(--green); }
.av-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--green); white-space: nowrap; }
.av-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--g-bright); }
.av-status.is-closed { color: var(--muted); }
.av-status.is-closed::before { background: #B8C4BE; }
.av-burger { display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Перший екран ---------- */
.av-hero { background: var(--hero-grad); color: var(--white); overflow: hidden; }
.av-hero__in { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 88px; }
.av-hero__text { flex: 1 1 520px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.av-hero__title { font-size: clamp(40px, 6vw, 68px); font-weight: 800; line-height: 1.02; letter-spacing: -1px; }
.av-hero__title--sm { font-size: clamp(34px, 4.6vw, 52px); }
.av-accent { color: var(--mint); }
.av-hero__lead { font-size: 20px; line-height: 1.5; color: #DDF3E6; max-width: 520px; }
.av-hero__from { font-size: 18px; color: #DDF3E6; }
.av-hero__from b { font-size: 34px; color: var(--white); }
.av-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.av-hero__trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.av-hero__trust li { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 15px; font-weight: 500; }
.av-hero__trust .av-ico { width: 16px; height: 16px; color: var(--mint); }
.av-hero__art { flex: 1 1 420px; position: relative; min-height: 400px; display: flex; min-width: 0; }
.av-hero__card { flex: 1; min-width: 0; margin: 20px 0 0 30px; border-radius: var(--r-lg); background: var(--mint); display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 380px; }
.av-hero__photo { width: 100%; height: 100%; object-fit: cover; }
.av-hero__plates { display: flex; flex-direction: column; gap: 18px; transform: rotate(-6deg); }
.av-crumbs { padding-top: 24px; font-size: 14px; color: #DDF3E6; }
.av-crumbs a { color: #DDF3E6; }
.av-hero--group .av-hero__in { padding-top: 32px; padding-bottom: 72px; }
.av-hero--group .av-hero__art, .av-hero--group .av-hero__card { min-height: 320px; }

.av-sticker { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--ink); }
.av-sticker--price { left: 0; bottom: -10px; width: 150px; height: 150px; border-radius: 50%; background: var(--cream); transform: rotate(-10deg); box-shadow: 0 10px 24px rgba(2,58,39,.25); font-size: 14px; font-weight: 500; }
.av-sticker--price b { font-size: 24px; font-weight: 800; }
.av-sticker--time { right: 10px; top: 0; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--mint); font-weight: 800; font-size: 18px; transform: rotate(8deg); }

/* ---------- Номерний знак ---------- */
.av-plate { display: flex; width: 360px; max-width: 100%; height: 78px; background: var(--white); border: 3px solid #111; border-radius: 8px; overflow: hidden; box-shadow: 0 14px 28px rgba(2,58,39,.28); }
.av-plate__ua { width: 36px; flex: 0 0 36px; background: #0057B8; color: var(--white); font-weight: 700; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.av-plate__flag { width: 20px; height: 12px; display: flex; flex-direction: column; }
.av-plate__flag i { flex: 1; background: #0057B8; border: 1px solid var(--white); }
.av-plate__flag i + i { background: #FFD500; border: 0; }
.av-plate__txt { flex: 1; display: flex; align-items: center; justify-content: center; font-family: var(--plate-font); font-weight: 700; font-size: 46px; letter-spacing: 3px; color: #111; white-space: nowrap; }
.av-plate--shift { margin-left: 36px; }
.av-plate--mini { width: 220px; height: 50px; box-shadow: none; border-width: 2px; border-radius: 6px; }
.av-plate--mini .av-plate__ua { width: 24px; flex-basis: 24px; font-size: 9px; gap: 3px; }
.av-plate--mini .av-plate__flag { width: 14px; height: 9px; }
.av-plate--mini .av-plate__txt { font-size: 28px; letter-spacing: 2px; }

/* ---------- Ситуації ---------- */
.av-sit { padding: 26px; border-radius: var(--r-md); background: var(--tint); }
.av-sit--cream { background: var(--cream); }
.av-sit__title { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.av-sit__text { color: var(--muted); }

/* ---------- Каталог ---------- */
.av-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--white); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
a.av-card:hover { border-color: var(--green); transform: translateY(-2px); color: var(--ink); }
.av-card__media { height: 130px; border-radius: 20px; background: var(--tint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.av-card__media .av-img { width: 100%; height: 100%; object-fit: cover; }
.av-card__title { font-size: 20px; font-weight: 800; }
.av-card__text { font-size: 15px; color: var(--muted); flex-grow: 1; }
.av-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.av-card__price { font-size: 21px; font-weight: 800; }
.av-card--static .av-btn { margin-top: auto; }
.av-prices { margin: 0; display: flex; gap: 24px; }
.av-prices div { display: flex; flex-direction: column; }
.av-prices dt { font-size: 14px; color: var(--muted); }
.av-prices dd { margin: 0; font-size: 22px; font-weight: 800; }

.av-note { margin-top: 16px; padding: 22px 28px; border-radius: var(--r-md); background: var(--tint); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.av-note p { flex: 1 1 360px; font-size: 17px; }
.av-note--cream { background: var(--cream); }

/* ---------- Кроки ---------- */
.av-steps { padding: 56px 48px; border-radius: var(--r-lg); background: var(--ink); color: var(--white); }
.av-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.av-step { display: flex; flex-direction: column; gap: 12px; }
.av-step__num { width: 64px; height: 64px; border-radius: 50%; background: var(--mint); color: var(--ink); font-weight: 800; font-size: 28px; display: flex; align-items: center; justify-content: center; }
.av-step__title { font-size: 22px; font-weight: 700; }
.av-step__text { color: #BFD8CB; }

/* ---------- Калькулятор ---------- */
.av-calc { display: flex; flex-wrap: wrap; gap: 16px; }
.av-calc__opts { flex: 1 1 560px; padding: 34px; border-radius: 32px; background: var(--tint); display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.av-calc__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.av-calc__step legend { font-weight: 700; margin-bottom: 12px; padding: 0; }
.av-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.av-chip { min-height: 52px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; background: var(--white); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.av-chip:hover { border-color: var(--green); }
.av-chip[aria-pressed="true"] { background: var(--green); color: var(--white); }
.av-chip:disabled { opacity: .45; cursor: not-allowed; border-color: transparent; }
.av-calc__hint { margin-top: 10px; font-size: 14px; color: var(--muted); }
.av-calc__check { display: flex; align-items: center; gap: 12px; font-weight: 500; cursor: pointer; }
.av-calc__check input { width: 22px; height: 22px; accent-color: var(--green); }
.av-calc__sum { flex: 1 1 340px; padding: 34px; border-radius: 32px; background: var(--mint); display: flex; flex-direction: column; gap: 12px; }
.av-calc__label { font-size: 15px; font-weight: 500; }
.av-calc__what { font-size: 20px; font-weight: 700; line-height: 1.35; }
.av-calc__price { font-size: 44px; font-weight: 800; line-height: 1; }
.av-calc__ready { font-weight: 500; margin-bottom: 8px; }
.av-calc__small { font-size: 13px; color: var(--ink); }

/* ---------- Чому ми ---------- */
.av-why { padding: 26px; border-radius: var(--r-md); border: 2px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.av-why__ico { width: 40px; height: 40px; border-radius: 12px; background: var(--mint); display: flex; align-items: center; justify-content: center; }
.av-why__title { font-size: 20px; font-weight: 700; }
.av-why__text { font-size: 15px; color: var(--muted); }
.av-why__photos { margin-top: 16px; }
.av-why__photos > * { height: 230px; width: 100%; border-radius: var(--r-md); object-fit: cover; }
.av-ph { background: var(--tint); display: flex; align-items: center; justify-content: center; border-radius: var(--r-md); color: var(--muted); font-size: 13px; text-align: center; padding: 12px; min-height: 120px; }

/* ---------- Відгуки ---------- */
.av-reviews { background: var(--cream); margin-top: 56px; }
.av-reviews .av-section { padding-bottom: 72px; }
.av-reviews__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.av-reviews__head .av-h2 { margin: 0; }
.av-rating { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 999px; background: var(--white); }
.av-rating b { font-size: 26px; font-weight: 800; }
.av-stars { color: var(--star); letter-spacing: 2px; }
.av-review { padding: 26px; border-radius: var(--r-md); background: var(--white); display: flex; flex-direction: column; gap: 12px; }
.av-review p { font-size: 17px; }
.av-review__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.av-review__who img, .av-review__ava { width: 44px; height: 44px; border-radius: 50%; }
.av-review__ava { background: var(--mint); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.av-review__who small { display: block; color: var(--muted); font-size: 13px; }
.av-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.av-gallery > * { aspect-ratio: 1 / 1; width: 100%; height: auto; object-fit: cover; border-radius: 22px; }
.av-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }

/* ---------- FAQ ---------- */
.av-faq { display: flex; flex-direction: column; gap: 12px; }
.av-faq__item { border-radius: var(--r-md); background: var(--tint); padding: 22px 28px; }
.av-faq__item summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 19px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.av-faq__item summary::-webkit-details-marker { display: none; }
.av-faq__plus { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: var(--mint); position: relative; }
.av-faq__plus::before, .av-faq__plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.av-faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
.av-faq__item[open] .av-faq__plus::after { transform: translate(-50%, -50%) rotate(0); }
.av-faq__a { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.av-faq__a p + p { margin-top: 8px; }

/* ---------- Фінальний заклик ---------- */
#order { padding-bottom: 72px; }
.av-cta { padding: 56px 48px; border-radius: var(--r-lg); background: var(--hero-grad); color: var(--white); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.av-cta .av-h2 { margin-bottom: 10px; }
.av-cta p { font-size: 19px; color: #DDF3E6; }
.av-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Футер ---------- */
.av-footer { background: var(--ink); color: #BFD8CB; font-size: 15px; }
.av-footer a { color: #BFD8CB; }
.av-footer a:hover { color: var(--mint); }
.av-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.av-footer__col { display: flex; flex-direction: column; gap: 8px; }
.av-footer__title { color: var(--white); font-size: 20px; font-weight: 800; }
.av-footer__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.av-footer__phone { font-size: 24px; font-weight: 800; color: var(--mint) !important; text-decoration: none; }
.av-footer__msg { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.av-footer__map { min-height: 180px; border-radius: 24px; background: #0A4A33; overflow: hidden; display: flex; }
.av-footer__map iframe { border: 0; width: 100%; min-height: 220px; }
.av-map-load { flex: 1; border: 0; background: transparent; color: var(--white); font: inherit; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.av-footer__bottom { border-top: 1px solid #0F4E36; padding-top: 18px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.av-footer__cities, .av-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---------- Контент сторінок ---------- */
.av-content { font-size: 17px; line-height: 1.7; }
.av-content p, .av-content ul, .av-content ol { margin: 0 0 16px; }
.av-content h2 { font-size: 28px; margin: 32px 0 12px; }

/* ---------- Липка панель (мобільна) ---------- */
.av-bar { display: none; }

/* ==========================================================================
   Адаптивність
   ========================================================================== */
@media (max-width: 1080px) {
  .av-status { display: none !important; }
  .av-nav { gap: 18px; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }
  .av-header__in { height: 72px; gap: 12px; }
  .av-logo__img { height: 58px; }
  .av-burger { display: inline-flex; margin-left: auto; }
  .av-header__phone { display: none; }
  .av-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; gap: 0; background: var(--white); box-shadow: 0 12px 24px rgba(2,58,39,.12); padding: 8px 24px 16px; }
  .av-nav.is-open { display: flex; }
  .av-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }

  .av-hero__in { padding-top: 32px; padding-bottom: 48px; gap: 28px; }
  .av-hero__lead { font-size: 17px; }
  .av-hero__art { min-height: 260px; flex-basis: 100%; }
  .av-hero__card { min-height: 240px; margin: 12px 0 0 20px; }
  .av-hero__plates { transform: rotate(-6deg) scale(.78); }
  .av-sticker--price { width: 118px; height: 118px; font-size: 12px; }
  .av-sticker--price b { font-size: 19px; }
  .av-sticker--time { font-size: 15px; padding: 8px 14px; }

  .av-section { padding-top: 52px; }
  .av-steps, .av-cta { padding: 36px 24px; border-radius: var(--r-md); }
  .av-calc__opts, .av-calc__sum { padding: 24px; border-radius: var(--r-md); }
  .av-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .av-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -6px 16px rgba(2,58,39,.1); }
  .av-bar .av-btn { min-height: 48px; padding: 0 8px; font-size: 15px; }
  .av-bar .av-ico { width: 18px; height: 18px; }
  body { padding-bottom: 76px; }
}

@media (max-width: 560px) {
  .av-wrap { padding-left: 16px; padding-right: 16px; }
  .av-hero__cta { width: 100%; }
  .av-hero__cta .av-btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .av-btn--lg { min-height: 56px; font-size: 17px; padding: 0 20px; }
  .av-grid--3, .av-grid--4 { grid-template-columns: 1fr; }
  .av-hero__trust li { font-size: 14px; padding: 8px 12px; }
  .av-hero__art { min-height: 220px; }
  .av-hero__card { min-height: 200px; margin: 14px 0 0 14px; overflow: hidden; }
  .av-hero__plates { transform: rotate(-6deg) scale(.56); }
  .av-plate--shift { margin-left: 24px; }
  .av-sticker--time { right: 0; top: 0; }
  .av-sticker--price { width: 104px; height: 104px; bottom: -14px; }
  .av-card { gap: 8px; padding: 14px; }
  .av-card__media { height: 76px; border-radius: 14px; }
  .av-card__media .av-plate--mini { transform: scale(.8); }
  .av-faq__item { padding: 18px 20px; }
  .av-faq__item summary { font-size: 17px; }
  .av-why__photos > * { height: 180px; }
  .av-calc__price { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .av-btn, .av-card { transition: none; }
}
