/* ============================================================
   components.css — hero, картки, scroll-snap, ціни, кнопки, cookie
   ============================================================ */

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .98rem;
  padding: 13px 22px;
  border-radius: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-s); }
.btn--primary:hover { background: var(--accent-deep); box-shadow: var(--shadow-m); }
.btn--primary svg { fill: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ============================================================
   HERO — асиметрія: текст з ціною + велике вертикальне фото
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}
.hero__body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(26px, 3.4vw, 46px);
  display: flex;
  flex-direction: column;
}
.hero h1 { margin-top: 14px; }
.hero__pricecard {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  padding-top: 26px;
  border-top: 1px dashed var(--line);
}
.hero__pricecard .label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 2px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero__media {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  min-height: 340px;
  background: var(--surface-2);
}
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero__badge {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(4px);
  border-radius: 14px;
  padding: 12px 16px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-s);
}
.hero__badge .ring {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--accent);
  border-top-color: var(--accent-mint);
  flex: 0 0 auto;
}

/* ---------- Стрічка міні-фактів під hero ---------- */
.factstrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 16px 18px;
}
.fact b {
  font-family: var(--ff-head);
  font-size: 1.5rem;
  display: block;
  color: var(--accent-deep);
  letter-spacing: -.02em;
}
.fact span { font-size: .86rem; color: var(--ink-soft); }

/* ============================================================
   ПОСЛУГИ — горизонтальний ряд карток зі scroll-snap
   ============================================================ */
.snap-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(262px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  margin: 0 calc(-1 * 4px);
  padding-inline: 4px;
  scrollbar-width: thin;
}
.snap-row::-webkit-scrollbar { height: 8px; }
.snap-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.scard {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.scard__ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.scard__ico svg { width: 24px; height: 24px; stroke: var(--accent-deep); fill: none; }
.scard h3 { font-size: 1.12rem; }
.scard p { font-size: .94rem; color: var(--ink-soft); margin-bottom: 16px; }
.scard__price {
  margin-top: auto;
  font-family: var(--ff-head);
  font-weight: 800;
  color: var(--accent-deep);
  font-size: 1.04rem;
}
.scroll-hint {
  font-size: .82rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.scroll-hint svg { width: 16px; height: 16px; }

/* ============================================================
   Блок «процес» — вертикальна шкала зліва (не нумеровані картки)
   ============================================================ */
.timeline { display: grid; gap: 0; }
.tl-step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.tl-step:last-child { border-bottom: 0; }
.tl-num {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent-deep);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid; place-items: center;
}
.tl-step h3 { font-size: 1.1rem; margin-bottom: 4px; }
.tl-step p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ============================================================
   Інфо-панель (грід характеристик / переваг)
   ============================================================ */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(22px, 3vw, 38px);
}
.panel--accent {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff;
  border: none;
}
.panel--accent h2, .panel--accent h3 { color: #fff; }
.panel--accent .lead, .panel--accent p { color: rgba(255,255,255,.88); }

.checklist { display: grid; gap: 12px; }
.checklist li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
}
.checklist .tick {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft);
  display: grid; place-items: center;
  flex: 0 0 auto;
  margin-top: 1px;
}
.checklist .tick svg { width: 14px; height: 14px; stroke: var(--accent-deep); fill: none; }
.panel--accent .checklist .tick { background: rgba(255,255,255,.18); }
.panel--accent .checklist .tick svg { stroke: #fff; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
}
.split__media {
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface-2);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Прайс-таблиця (сторінка послуг)
   ============================================================ */
.price-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.price-row:last-child { border-bottom: 0; }
.price-row:nth-child(odd) { background: #fafcfb; }
.price-row__name { font-weight: 600; }
.price-row__name span { display: block; font-size: .85rem; color: var(--ink-soft); font-weight: 400; }
.price-row__val {
  font-family: var(--ff-head);
  font-weight: 800;
  color: var(--accent-deep);
  white-space: nowrap;
}
.price-note {
  font-size: .86rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ============================================================
   Галерея робіт
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery figcaption { padding: 12px 15px; font-size: .9rem; color: var(--ink-soft); }
.gallery figcaption b { color: var(--ink); font-family: var(--ff-head); display: block; }

/* ============================================================
   Контакти
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.contact-card .label {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-card .big {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.32rem;
  margin-top: 4px;
}
.contact-card a.big { color: var(--ink); }
.map-frame {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Текстові сторінки (політики) ---------- */
.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(24px, 4vw, 48px);
  max-width: 820px;
}
.prose h2 { margin-top: 1.6em; }
.prose h2:first-of-type { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

/* ============================================================
   Cookie-плашка
   ============================================================ */
.cookie {
  position: fixed;
  left: 16px; right: 16px;
  bottom: 16px;
  z-index: 80;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-m);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  max-width: 720px;
  margin: 0 auto;
}
.cookie p { margin: 0; font-size: .92rem; flex: 1 1 280px; color: var(--ink-soft); }
.cookie__btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .cookie { bottom: 86px; }
}

/* ============================================================
   Адаптив компонентів
   ============================================================ */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { min-height: 240px; order: -1; }
  .factstrip { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .factstrip { grid-template-columns: 1fr 1fr; }
  .hero__pricecard { gap: 14px; }
}
