/* HL Wash Detail Studio */

:root {
  --ink: #0A1B3D;        /* темно-синій з банера */
  --ink-soft: #3B4B6B;
  --blue: #1560D4;       /* фірмовий синій */
  --blue-deep: #0D3F97;
  --sky: #3D8BFF;
  --water: #E6F1FD;      /* світла вода */
  --foam: #F5FAFF;
  --line: #C7DBF3;
  --white: #FFFFFF;

  --display: "Montserrat", "Arial Black", Arial, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 9vw, 112px);
  --r-lg: 20px;
  --r-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { top: 8px; }

h1, h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 4.6vw, 3rem); }

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--body); text-decoration: none; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn--main { background: var(--blue); color: var(--white); }
.btn--main:hover { background: var(--blue-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--blue-deep); }

/* ── Шапка ── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; gap: 24px; min-height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo__mark {
  position: relative;
  font: 900 1.75rem/1 var(--display); letter-spacing: -0.04em; color: var(--ink);
  padding-bottom: 7px;
}
.logo__mark svg { position: absolute; left: -2px; right: -2px; bottom: 0; width: calc(100% + 4px); height: 8px; color: var(--blue); }
.logo__name { font: 800 .75rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }

.nav { display: none; gap: 28px; }
.nav a { font-weight: 600; font-size: .9375rem; text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--blue); }

.top__tel {
  font: 700 1rem/1 var(--body); text-decoration: none; white-space: nowrap;
  padding: 11px 16px; border-radius: 999px; background: var(--water); color: var(--blue-deep);
}
.top__tel:hover { background: var(--line); }

/* ── Перший екран ── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--foam) 55%, var(--water) 100%);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.hero__in { display: grid; gap: 8px; }

.hero__img {
  margin-inline: calc(var(--gutter) * -1);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.hero__img img { width: 100%; height: auto; }

.hero__text { order: 2; }
.hero h1 { font-size: clamp(2.125rem, 9.2vw, 4.5rem); }
.hero__lead { margin-top: 18px; max-width: 34em; color: var(--ink-soft); font-size: 1.0625rem; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__cta .btn { flex: 1 1 220px; }

.facts {
  display: grid; gap: 14px; margin-top: 34px; padding-top: 22px;
  border-top: 2px solid var(--ink);
  font-size: .9375rem; color: var(--ink-soft); line-height: 1.35;
}
.facts strong { display: block; font: 800 1.25rem/1.15 var(--display); color: var(--ink); margin-bottom: 3px; }

.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(28px, 5vw, 64px); fill: var(--white); }

/* ── Послуги ── */
.services { padding-block: var(--section); }
.services__list { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 48px); }
.services__list li { border-top: 4px solid var(--blue); padding-top: 16px; }
.services__list h3 { font: 800 1.375rem/1.15 var(--display); letter-spacing: -0.01em; }
.services__list p { margin-top: 10px; color: var(--ink-soft); max-width: 30em; }

/* ── Прайс ── */
.price { background: var(--ink); color: var(--white); padding-block: var(--section); }
.price__head { display: grid; gap: 14px; margin-bottom: clamp(24px, 4vw, 40px); }
.price__head p { max-width: 36em; color: #C4D3EE; }

.sheet {
  background: var(--white); color: var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(16px, 2.6vw, 28px);
}
.sheet h3 {
  font: 800 1.1875rem/1.2 var(--display); letter-spacing: -0.005em;
  padding-bottom: 12px; margin-bottom: 4px; border-bottom: 3px solid var(--blue);
}
.sheet__note { margin-top: 14px; font-size: .875rem; color: var(--ink-soft); }

.wash { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.wash caption {
  caption-side: top; text-align: left;
  font: 800 1.1875rem/1.2 var(--display); padding-bottom: 12px;
}
.wash thead th {
  font: 600 .8125rem/1.2 var(--body); color: var(--ink-soft);
  text-align: right; vertical-align: bottom;
  padding: 0 0 10px 10px; border-bottom: 3px solid var(--blue);
}
.wash thead th:first-child { text-align: left; padding-left: 0; }
.wash tbody th { text-align: left; font-weight: 600; padding: 14px 0; }
.wash tbody td { text-align: right; padding: 14px 0 14px 10px; white-space: nowrap; }
.wash tbody tr + tr > * { border-top: 1px solid var(--line); }

.p { color: var(--ink-soft); font-size: .9375rem; white-space: nowrap; }
.p b { font: 800 1.125rem/1 var(--display); color: var(--ink); }

.sheets { display: grid; gap: 16px; margin-top: 16px; }

.rows li { padding: 13px 0; }
.rows li + li { border-top: 1px solid var(--line); }
.rows__line { display: flex; align-items: baseline; gap: 10px; }
.rows__name { font-weight: 500; min-width: 0; }
.rows__dots { flex: 1 1 12px; min-width: 12px; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.rows__note { margin-top: 4px; font-size: .875rem; line-height: 1.4; color: var(--ink-soft); max-width: 34em; }

.price__foot { margin-top: 24px; font-size: .9375rem; color: #C4D3EE; }
.price__fallback { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: 20px; }

/* ── Відгуки ── */
.reviews { background: var(--water); padding-block: clamp(48px, 7vw, 88px); }
.reviews__in { display: grid; gap: 24px; align-items: center; }
.reviews__score { color: var(--blue); }
.reviews__score span { display: block; font: 900 clamp(4.5rem, 16vw, 8rem)/.85 var(--display); letter-spacing: -0.04em; color: var(--ink); }
.reviews__score svg { width: 150px; height: 30px; margin-top: 14px; }
.reviews__text h2 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); }
.reviews__text p { margin: 14px 0 22px; max-width: 32em; color: var(--ink-soft); }

/* ── Контакти ── */
.contacts { padding-block: var(--section); }
.contacts__in { display: grid; gap: 32px; }
.contacts dl { margin-top: 28px; display: grid; gap: 0; }
.contacts dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.contacts dl > div:last-child { border-bottom: 1px solid var(--line); }
.contacts dt { font-size: .9375rem; color: var(--ink-soft); }
.contacts dd { font-weight: 600; overflow-wrap: anywhere; }
.contacts dd a { color: var(--blue-deep); text-underline-offset: 3px; }
.contacts__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contacts__cta .btn { flex: 1 1 220px; }

.contacts__map { border-radius: var(--r-lg); overflow: hidden; background: var(--water); min-height: 320px; }
.contacts__map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ── Підвал ── */
.foot { background: var(--ink); color: #C4D3EE; font-size: .9375rem; padding-block: 28px 100px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot a { color: var(--white); font-weight: 700; text-decoration: none; }

/* ── Нижня панель на телефоні ── */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.bar.is-on { transform: none; }
.bar .btn { flex: 1; min-height: 48px; padding: 10px 14px; }

/* ── Від планшета ── */
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .services__list { grid-template-columns: repeat(2, 1fr); gap: 36px 40px; }
  .sheets { display: block; columns: 2; column-gap: 16px; }
  .sheets .sheet { break-inside: avoid; margin-bottom: 16px; }
  .wash { table-layout: fixed; }
  .wash thead th:first-child { width: 31%; }
  .reviews__in { grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 80px); }
  .hero__cta .btn, .contacts__cta .btn { flex: 0 0 auto; }
  .wash thead th { font-size: .9375rem; }
  .wash tbody th { font-size: 1.0625rem; }
  .p b { font-size: 1.25rem; }
}

/* ── Десктоп ── */
@media (min-width: 1000px) {
  .nav { display: flex; }
  .logo { margin-right: 0; }
  .nav { margin-inline: auto; }
  .bar { display: none; }
  .foot { padding-bottom: 28px; }

  .hero { padding-top: clamp(32px, 5vw, 64px); }
  .hero__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px; }
  .hero__text { order: 0; }
  .hero h1 { font-size: clamp(3rem, 5.1vw, 4.5rem); }
  .hero__img {
    margin-inline: -40px calc(var(--gutter) * -1 - 60px);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, #000 78%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%), linear-gradient(180deg, #000 78%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-composite: intersect;
  }
  .services__list { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .price__head { grid-template-columns: auto 1fr; align-items: end; gap: 48px; }
  .price__head p { justify-self: end; }
  .contacts__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: stretch; }
}

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

@media print {
  .top, .bar, .hero__cta, .contacts__map, .contacts__cta, .wave { display: none; }
  .price { background: none; color: var(--ink); }
  .sheet { border: 1px solid var(--line); break-inside: avoid; }
}
