/* ===========================================================
   pages.css — sub-hero, CTA-банер, карта, cookie, легал-сторінки
   =========================================================== */

/* ---------- Sub-hero (внутрішні сторінки) ---------- */
.subhero {
  position: relative;
  background: var(--graphite-950);
  color: var(--paper);
  padding: clamp(40px, 7vw, 86px) 0 clamp(36px, 6vw, 66px);
  overflow: hidden;
}
.subhero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(720px 360px at 88% -10%, rgba(255,212,0,.16), transparent 60%);
}
.subhero > .container { position: relative; z-index: 1; }
.subhero h1 { color: var(--white); margin: 12px 0 14px; }
.subhero p { color: rgba(246,247,249,.74); max-width: 58ch; font-size: 1.08rem; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; color: rgba(246,247,249,.55); }
.crumbs a { color: var(--yellow-500); }
.crumbs a:hover { color: var(--yellow-400); }
.crumbs span { color: rgba(246,247,249,.35); }

/* ---------- CTA-банер ---------- */
.cta { background: var(--white); padding: clamp(40px, 6vw, 78px) 0; }
.section--alt + .cta { background: var(--white); }
.cta__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  background: var(--graphite-900);
  border-radius: var(--r-xl);
  padding: clamp(30px, 4vw, 52px);
  color: var(--paper);
  position: relative; overflow: hidden;
}
.cta__inner::after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,212,0,.4), transparent 70%);
  pointer-events: none;
}
.cta__inner h2 { color: var(--white); margin-bottom: .35rem; }
.cta__inner p { color: rgba(246,247,249,.74); margin: 0; max-width: 48ch; }
.cta__inner .btn { position: relative; z-index: 1; white-space: nowrap; }

/* ---------- Карта ---------- */
.map {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 360px;
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ---------- Зони обслуговування ---------- */
.zones { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.zones span {
  font-size: .88rem; font-weight: 500;
  padding: .45em .9em; border-radius: 999px;
  background: var(--paper-2); color: var(--graphite-800);
}

/* ---------- Cookie-плашка ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  max-width: 780px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--graphite-900); color: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
}
.cookie p { margin: 0; font-size: .92rem; color: rgba(246,247,249,.78); flex: 1 1 280px; }
.cookie a { color: var(--yellow-500); font-weight: 600; text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.cookie .btn--ghost:hover { background: var(--white); color: var(--graphite-900); border-color: var(--white); }
.cookie[hidden] { display: none; }

/* ---------- Легал-сторінки ---------- */
.legal { padding: clamp(40px, 6vw, 80px) 0; }
.legal__content { max-width: 820px; margin: 0 auto; }
.legal__content h2 { margin: 2em 0 .6em; font-size: 1.4rem; }
.legal__content h2:first-of-type { margin-top: 0; }
.legal__content h3 { margin: 1.4em 0 .4em; font-size: 1.1rem; }
.legal__content p, .legal__content li { color: var(--slate); }
.legal__content ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1rem; display: grid; gap: 6px; }
.legal__content a { color: var(--amber-500); text-decoration: underline; }
.legal__updated {
  color: var(--graphite-800); font-size: .9rem; margin-bottom: 2em;
  padding: 11px 16px; background: var(--paper); border-left: 3px solid var(--yellow-500);
  border-radius: var(--r-xs); display: inline-block;
}

/* ---------- Футер: легал-посилання ---------- */
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a { color: rgba(246,247,249,.55); }
.footer__legal a:hover { color: var(--yellow-500); }

/* ---------- Активний пункт меню ---------- */
.nav__link[aria-current="page"] { color: var(--graphite-900); background: var(--paper); }

@media (max-width: 760px) {
  .nav__link[aria-current="page"] { background: transparent; color: var(--amber-500); }
  .cta__inner { flex-direction: column; align-items: flex-start; }
}
