/* ===========================================================
   pages.css — секції: about, features, steps, gallery, prices,
   stats, cta, contacts, легальні сторінки
   =========================================================== */

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.about__media { position: relative; }
.about__img {
  width: 100%; border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5; object-fit: cover;
}
.about__chip {
  position: absolute; right: -14px; bottom: 26px;
  background: var(--ink); color: #fff;
  border-radius: var(--r-md); padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.about__chip strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--lime-400); display: block; }
.about__chip span { font-size: .82rem; color: #aec4be; }

/* ---------- Features (Чому ми) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}
.feature {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 13px;
  background: rgba(159,240,62,.14); color: var(--lime-400);
  margin-bottom: 16px;
}
.feature h3 { color: #fff; margin-bottom: .35em; }
.feature p { color: rgba(217,232,227,.7); font-size: .95rem; margin: 0; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; margin-top: clamp(34px, 5vw, 56px);
}
.stat {
  text-align: center;
  padding: 24px 14px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
}
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--lime-400); }
.stat span { font-size: .85rem; color: rgba(217,232,227,.72); }

/* ---------- Steps (Етапи) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(16px, 2.4vw, 26px); counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 24px 26px;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.05rem; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, var(--aqua-500), var(--lime-500));
  margin-bottom: 18px;
}
.step h3 { margin-bottom: .3em; }
.step p { color: var(--slate); font-size: .95rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: clamp(12px, 2vw, 18px);
}
.gallery__item {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--soft);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--lg { grid-column: span 2; grid-row: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__cap {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(14,27,26,.78); color: #fff;
  font-size: .82rem; font-weight: 600;
  padding: 7px 14px; border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}

/* ---------- Прайс-таблиця ---------- */
.price {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price__row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 16px; align-items: center;
  padding: 17px 24px;
  border-bottom: 1px solid var(--line);
}
.price__row:last-child { border-bottom: none; }
.price__row:nth-child(odd) { background: var(--bg); }
.price__name { font-weight: 600; color: var(--ink-2); }
.price__name small { display: block; color: var(--slate); font-weight: 400; font-size: .85rem; }
.price__val { font-family: var(--font-display); font-weight: 700; color: var(--ink); white-space: nowrap; }
.price__note { color: var(--slate); font-size: .9rem; margin-top: 16px; text-align: center; }

/* ---------- CTA ---------- */
.cta { padding: clamp(40px, 6vw, 70px) 0; }
.cta__inner {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.cta__inner::before {
  content: ""; position: absolute; inset: auto -10% -60% auto;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(159,240,62,.3), transparent 70%);
}
.cta__inner h2 { color: #fff; margin-bottom: .25em; position: relative; }
.cta__inner p { color: rgba(217,232,227,.78); margin: 0; max-width: 460px; position: relative; }
.cta__inner .btn { position: relative; }

/* ---------- Page hero (внутрішні сторінки) ---------- */
.pagehero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px);
  background:
    radial-gradient(700px 320px at 92% -20%, rgba(159,240,62,.14), transparent 60%),
    radial-gradient(600px 360px at -5% 10%, rgba(31,214,163,.12), transparent 60%);
}
.pagehero__crumbs { font-size: .86rem; color: var(--slate); margin-bottom: 12px; }
.pagehero__crumbs a:hover { color: var(--aqua-600); }
.pagehero h1 { max-width: 760px; }
.pagehero p { color: var(--slate); max-width: 620px; font-size: 1.08rem; }

/* ---------- Contacts ---------- */
.contacts__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(26px, 4vw, 50px); align-items: start; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 26px; box-shadow: var(--shadow-sm);
}
.contact-list { display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic {
  flex: none; width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--soft); color: var(--aqua-600);
}
.contact-list strong { display: block; font-family: var(--font-display); color: var(--ink); }
.contact-list a { color: var(--ink-2); font-weight: 600; }
.contact-list a:hover { color: var(--aqua-600); }
.contact-list span { color: var(--slate); font-size: .94rem; }
.msgr-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.msgr-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: var(--r-pill);
  font-weight: 700; font-size: .95rem;
  border: 1.5px solid var(--line); color: var(--ink);
}
.msgr-btn:hover { border-color: var(--aqua-500); color: var(--aqua-600); background: var(--surface); }
.msgr-btn svg { color: var(--aqua-600); }

.map-frame {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

.zones { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.zones span {
  background: var(--soft); color: var(--ink-2);
  font-size: .85rem; font-weight: 600;
  padding: 6px 13px; border-radius: var(--r-pill);
}

/* ---------- Легальні сторінки ---------- */
.legal { padding: clamp(34px, 5vw, 60px) 0 clamp(50px, 7vw, 90px); }
.legal__body { max-width: 800px; margin: 0 auto; }
.legal__body h2 { margin-top: 2em; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.legal__body h2:first-of-type { margin-top: 0; }
.legal__body p, .legal__body li { color: var(--ink-2); }
.legal__body ul { list-style: none; display: grid; gap: 10px; margin: 0 0 1rem; }
.legal__body ul li { position: relative; padding-left: 24px; }
.legal__body ul li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--aqua-500);
}
.legal__updated { color: var(--slate); font-size: .9rem; margin-bottom: 28px; }

/* ---------- Адаптив сторінок ---------- */
@media (max-width: 920px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contacts__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery__item--lg { grid-column: span 2; grid-row: span 1; }
  .gallery__item--tall { grid-row: span 1; }
}
@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--lg { grid-column: span 1; }
  .price__row { padding: 15px 18px; }
}
