/* =========================================================
   ВСІ ПАНСІОНАТИ — дизайн-система «Реєстр перевірених закладів»
   Палітра:  глибокий інституційний синьо-графітовий (довіра)
             + спокійний «турботливий» зелений (перевірено)
             + прохолодний паперовий фон
             + стриманий тепло-бурштиновий акцент (ціни / дія)
   Шрифти:   Golos Text (дисплей) + Inter (текст) — повна кирилиця
   ========================================================= */

:root {
  --paper:      #EEF2F3;
  --paper-2:    #F6F8F9;
  --surface:    #FFFFFF;
  --ink:        #14212A;
  --ink-2:      #46565F;
  --ink-3:      #6D7B82;

  --primary:    #123B54;   /* глибокий синьо-графітовий */
  --primary-600:#1C5C7E;
  --primary-700:#0D2C40;
  --primary-100:#E1EBF0;
  --primary-50: #EFF4F6;

  --care:       #1B7A55;   /* «перевірено» */
  --care-600:   #15633F;
  --care-100:   #E2F0E9;

  --accent:     #C0812F;   /* тепло-бурштиновий — ціни/CTA */
  --accent-600: #A86C22;
  --accent-100: #F6ECD8;

  --danger:     #B4462F;

  --line:       #D6DEE2;
  --line-2:     #C3CED3;

  --shadow-sm:  0 1px 2px rgba(18,59,84,.06), 0 1px 3px rgba(18,59,84,.05);
  --shadow-md:  0 8px 24px rgba(18,59,84,.10), 0 2px 6px rgba(18,59,84,.06);
  --shadow-lg:  0 24px 60px rgba(13,44,64,.16);

  --radius:     14px;
  --radius-sm:  9px;
  --radius-lg:  22px;

  --maxw:       1200px;
  --gutter:     clamp(1rem, 4vw, 2.2rem);

  --display: "Golos Text", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:    ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
svg { max-width: 100%; }
/* базовий розмір інлайн-іконок; компонентні правила нижче перевизначають */
svg { width: 1em; height: 1em; flex: none; vertical-align: -0.15em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
ul { list-style: none; padding: 0; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -.015em; color: var(--ink); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 6.5vw, 5.5rem); }
.section--tight { padding-block: clamp(2.2rem, 4vw, 3.4rem); }
.section--paper2 { background: var(--paper-2); }
.section--white { background: var(--surface); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--body); font-weight: 700;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary-600);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); display: inline-block; border-radius: 2px; }
.section-head { max-width: 62ch; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-top: .6rem; }
.section-head p { color: var(--ink-2); margin-top: .8rem; font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .82em 1.35em; border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; letter-spacing: .005em;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(192,129,47,.28); }
.btn--accent:hover { background: var(--accent-600); transform: translateY(-2px); }
.btn--ghost { background: var(--surface); color: var(--primary); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--primary); background: var(--primary-50); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.32); backdrop-filter: blur(4px); }
.btn--light:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--lg { padding: 1em 1.7em; font-size: 1.05rem; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .8rem; font-weight: 600; padding: .3em .7em; border-radius: 999px;
  background: var(--primary-100); color: var(--primary-700); border: 1px solid transparent;
}
.chip--spec { background: var(--primary-50); color: var(--primary-600); border-color: var(--line); }
.chip--tier { background: var(--accent-100); color: var(--accent-600); }
.chip--care { background: var(--care-100); color: var(--care-600); }

/* Signature: печатка «Перевірено» */
.seal {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--body); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--care-600); background: var(--care-100);
  border: 1.5px solid var(--care); border-radius: 999px; padding: .28em .7em;
}
.seal svg { width: 14px; height: 14px; }

/* Реєстрова табличка з кодом */
.plate {
  font-family: var(--mono); font-weight: 600; font-size: .78rem; letter-spacing: .04em;
  color: var(--ink-2); background: var(--paper); border: 1px dashed var(--line-2);
  padding: .22em .6em; border-radius: 6px; display: inline-block;
}
.rating { display: inline-flex; align-items: center; gap: .3em; font-weight: 700; color: var(--ink); }
.rating svg { width: 15px; height: 15px; color: var(--accent); }
.rating small { color: var(--ink-3); font-weight: 500; }

/* =========================================================
   HEADER
   ========================================================= */
.topbar { background: var(--primary-700); color: #cfe0e8; font-size: .86rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; padding-block: .35rem; flex-wrap: wrap; }
.topbar__left { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.topbar__phones { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.topbar__nav { display: flex; align-items: center; gap: 1.1rem; }
.topbar__nav a { color: var(--paper); opacity: .8; font-size: .82rem; }
.topbar__nav a:hover, .topbar__nav a[aria-current="page"] { opacity: 1; color: #fff; }
@media (max-width: 900px) { .topbar__nav { display: none; } }
.topbar__phones a { color: #fff; font-weight: 600; }
.topbar__phones a:hover { color: var(--accent); }
.topbar__hint { color: #9fbccb; }
.msg-icons { display: flex; align-items: center; gap: .5rem; }
.msg-icons a {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
  background: rgba(255,255,255,.1); color: #fff; transition: background .2s, transform .2s;
}
.msg-icons a:hover { background: var(--accent); transform: translateY(-1px); }
.msg-icons svg { width: 16px; height: 16px; }

.masthead { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.masthead .wrap { display: flex; align-items: center; gap: 1.4rem; min-height: 72px; max-width: min(1560px, 95vw); }
.nav a { white-space: nowrap; }
.nav { flex-shrink: 0; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.logo img { width: 38px; height: 38px; }
.logo b { font-size: 1.16rem; line-height: 1; display: block; }
.logo span { font-size: .72rem; font-weight: 500; color: var(--ink-3); letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.nav a { padding: .55rem .8rem; border-radius: 8px; font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: background .18s, color .18s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); background: var(--primary-50); }
.masthead__cta { display: flex; align-items: center; gap: .6rem; }
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); align-items: center; justify-content: center; margin-left: auto; }
.burger svg { width: 22px; height: 22px; }

.mobile-nav { display: none; position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: var(--surface); z-index: 200; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s var(--ease); padding: 1.2rem; overflow-y: auto; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mobile-nav a { display: block; padding: .85rem .4rem; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.mobile-nav .btn { margin-top: 1rem; }
.scrim { display: none; position: fixed; inset: 0; background: rgba(13,44,64,.5); z-index: 150; opacity: 0; transition: opacity .3s; }
.scrim.show { display: block; opacity: 1; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; background: var(--primary-700); color: #eaf2f6; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(11,40,58,.94) 20%, rgba(11,40,58,.80) 42%, rgba(11,40,58,.50) 64%, rgba(11,40,58,.30) 82%, rgba(11,40,58,.24) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(3.4rem, 8vw, 6rem); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
.hero__eyebrow { color: #9dc4d6; font-weight: 700; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .5em; }
.hero__eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); color: #fff; margin: 1rem 0; }
.hero h1 em { font-style: normal; color: #8fd3b5; }
.hero__lead { font-size: 1.12rem; color: #cddde5; max-width: 46ch; }
.hero__trust { display: flex; gap: 1.6rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust b { font-family: var(--display); font-size: 1.7rem; color: #fff; line-height: 1; }
.hero__trust span { font-size: .82rem; color: #a7c4d1; margin-top: .25rem; }

/* Search card */
.searchcard { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-lg); }
.searchcard h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.field { margin-bottom: .9rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: .35rem; }
.field select, .field input {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line-2); border-radius: 10px;
  background: var(--paper-2); color: var(--ink); transition: border-color .18s, background .18s;
}
.field select:focus, .field input:focus { border-color: var(--primary); background: #fff; outline: none; }

/* =========================================================
   FEATURE STRIP
   ========================================================= */
.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--surface); padding: 1.4rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.feature__ico { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-100); color: var(--primary); display: grid; place-items: center; }
.feature__ico svg { width: 20px; height: 20px; }
.feature b { font-size: .98rem; }
.feature p { font-size: .86rem; color: var(--ink-2); line-height: 1.5; }

/* =========================================================
   CATEGORY TILES
   ========================================================= */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cat-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; transition: border-color .2s, transform .2s, box-shadow .2s; display: flex; flex-direction: column; gap: .6rem;
}
.cat-tile:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-tile__top { display: flex; align-items: center; justify-content: space-between; }
.cat-tile__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; }
.cat-tile__ico svg { width: 22px; height: 22px; }
.cat-tile__count { font-family: var(--display); font-weight: 700; color: var(--ink-3); font-size: .9rem; }
.cat-tile h3 { font-size: 1.16rem; }
.cat-tile p { font-size: .9rem; color: var(--ink-2); line-height: 1.55; }
.cat-tile__link { margin-top: auto; color: var(--primary); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .35em; }
.cat-tile__link svg { width: 15px; height: 15px; transition: transform .2s; }
.cat-tile:hover .cat-tile__link svg { transform: translateX(3px); }

/* =========================================================
   ESTABLISHMENT CARDS
   ========================================================= */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.pcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.pcard__media { position: relative; aspect-ratio: 3 / 2; background: var(--primary-50); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__media .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--primary); background:
  repeating-linear-gradient(135deg, var(--primary-50), var(--primary-50) 12px, #fff 12px, #fff 24px); }
.pcard__media .ph svg { width: 46px; height: 46px; opacity: .5; }
.pcard__seal { position: absolute; top: .7rem; left: .7rem; }
.pcard__tier { position: absolute; top: .7rem; right: .7rem; }
.pcard__body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.pcard__meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.pcard__loc { font-size: .82rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: .3em; }
.pcard__loc svg { width: 14px; height: 14px; color: var(--primary-600); }
.pcard h3 { font-size: 1.12rem; }
.pcard__type { font-size: .84rem; color: var(--ink-3); }
.pcard__specs { display: flex; flex-wrap: wrap; gap: .35rem; }
.pcard__list { display: flex; flex-direction: column; gap: .25rem; font-size: .84rem; color: var(--ink-2); margin-top: .1rem; }
.pcard__list span { display: inline-flex; align-items: center; gap: .45em; }
.pcard__list svg { width: 14px; height: 14px; color: var(--care); flex: none; }
.pcard__foot { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem; }
.pcard__price small { display: block; font-size: .72rem; color: var(--ink-3); }
.pcard__price b { font-family: var(--display); font-size: 1.12rem; color: var(--ink); }
.pcard__price b.free { color: var(--care-600); }
.pcard__price em { font-style: normal; font-size: .8rem; color: var(--ink-3); font-weight: 500; }
.pcard__foot .btn { padding: .6em 1em; font-size: .9rem; }

/* =========================================================
   CITY INDEX
   ========================================================= */
.section--cities { background: linear-gradient(135deg, #e9f1f6 0%, #dde9f0 45%, #eef2f5 100%); }
.city-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.city-link {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-width: 0; box-sizing: border-box;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(18, 59, 84, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  font-weight: 600; transition: background .18s, transform .18s, box-shadow .18s;
}
.city-link:hover { background: rgba(255, 255, 255, 0.72); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(18, 59, 84, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.city-link span { color: var(--ink-3); font-size: .82rem; font-weight: 700; }
.faq-block { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.2rem; align-items: start; }
.faq-block .faq { max-width: none; margin: 0; }
.faq-media { position: sticky; top: 96px; }
.faq-media__note { margin-top: .8rem; color: var(--ink-3); font-size: .88rem; text-align: center; }
@media (max-width: 860px) { .faq-block { grid-template-columns: 1fr; } .faq-media { position: static; } }

/* =========================================================
   PROCESS
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; position: relative; }
.step__n { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--primary-100); line-height: 1; }
.step h3 { font-size: 1.1rem; margin: .5rem 0 .4rem; }
.step p { font-size: .92rem; color: var(--ink-2); }

/* =========================================================
   PROMISE / TRANSFER band
   ========================================================= */
.band { background: var(--primary); color: #eaf2f6; border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem); }
.band h2 { color: #fff; }
.band__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.band ul { display: grid; gap: .7rem; margin-top: 1.2rem; }
.band li { display: flex; gap: .6rem; color: #cddde5; }
.band li svg { width: 20px; height: 20px; color: #8fd3b5; flex: none; margin-top: .15rem; }

/* =========================================================
   BLOG
   ========================================================= */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.post {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--primary-50); }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post__tag { align-self: flex-start; }
.post h3 { font-size: 1.1rem; line-height: 1.25; }
.post p { font-size: .9rem; color: var(--ink-2); }
.post__date { margin-top: auto; font-size: .8rem; color: var(--ink-3); padding-top: .5rem; }

/* Article */
.article { max-width: 760px; margin-inline: auto; }
.article__cover { aspect-ratio: 16 / 8; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.8rem; box-shadow: var(--shadow-md); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: .8rem; }
.article__meta { color: var(--ink-3); font-size: .9rem; margin-bottom: 2rem; display: flex; gap: 1rem; align-items: center; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .7rem; }
.prose p { margin-bottom: 1.1rem; color: #2b3940; font-size: 1.06rem; line-height: 1.75; }
.prose ul.dash { margin: 0 0 1.1rem; display: grid; gap: .5rem; }
.prose ul.dash li { padding-left: 1.3rem; position: relative; color: #2b3940; }
.prose ul.dash li::before { content: ""; position: absolute; left: 0; top: .7em; width: 12px; height: 2px; background: var(--accent); }

/* =========================================================
   CATALOG
   ========================================================= */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 1.6rem; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; }
.filters h4 { font-family: var(--body); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 1.1rem 0 .6rem; }
.filters h4:first-child { margin-top: 0; }
.filters label.opt { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; margin-bottom: .4rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 9px; font-size: .92rem; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.filters label.opt:hover { border-color: var(--line-2); background: #fff; }
.filters .opt__t { flex: 1; }
.filters .opt__n { color: var(--ink-3); font-size: .82rem; font-weight: 600; }
.filters input[type=checkbox], .filters input[type=radio] { width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.filters .field { margin-bottom: 0; }
.filters__head { display: none; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.filters__close { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; }
.filters__actions { margin-top: 1.2rem; display: grid; gap: .5rem; position: sticky; bottom: -1.3rem; background: var(--surface); padding: .8rem 0 .2rem; border-top: 1px solid var(--line); }
.mobilebar { display: none; margin-bottom: 1rem; }
.catalog__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.catalog__count { color: var(--ink-2); font-size: .95rem; }
.catalog__count b { color: var(--ink); }
.catalog__bar select { padding: .55rem .8rem; border: 1.5px solid var(--line-2); border-radius: 9px; background: var(--surface); font-weight: 600; }
.catalog .card-grid { grid-template-columns: repeat(2, 1fr); }
.empty { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 3rem 1.5rem; text-align: center; color: var(--ink-2); }

/* =========================================================
   DETAIL PAGE
   ========================================================= */
.breadcrumbs { font-size: .85rem; color: var(--ink-3); padding-block: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { color: var(--line-2); }
.detail { display: grid; grid-template-columns: 1fr 360px; grid-template-areas: "gallery aside" "body aside"; column-gap: 2rem; align-items: start; }
.detail__gallery { grid-area: gallery; min-width: 0; }
.detail__aside { grid-area: aside; min-width: 0; }
.detail-body { grid-area: body; margin-top: 1.6rem; min-width: 0; }
.gallery__main { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--primary-50); box-shadow: var(--shadow-sm); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .6rem; flex-wrap: wrap; }
.gallery__thumbs button { width: 92px; height: 66px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--primary-50); }
.gallery__thumbs button.active { border-color: var(--primary); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail__head { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin: 1.5rem 0 .4rem; }
.detail h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); width: 100%; }
.detail__loc { color: var(--ink-2); display: inline-flex; align-items: center; gap: .4em; }
.detail__loc svg { width: 16px; height: 16px; color: var(--primary-600); }
.detail__section { margin-top: 2rem; }
.detail__section h2 { font-size: 1.35rem; margin-bottom: .9rem; }
.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.spec-list li { display: flex; gap: .6rem; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: .94rem; }
.spec-list svg { width: 18px; height: 18px; color: var(--care); flex: none; }
.datatable { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.datatable td { padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.datatable tr:last-child td { border-bottom: none; }
.datatable td:first-child { color: var(--ink-3); width: 42%; }
.datatable td:last-child { font-weight: 600; }
.videoslot { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--primary-700); position: relative; display: grid; place-items: center; }
.videoslot iframe { width: 100%; height: 100%; border: 0; }
.videoslot__ph { text-align: center; color: #9dc4d6; padding: 1rem; }
.videoslot__ph svg { width: 54px; height: 54px; margin-bottom: .6rem; opacity: .7; }
.mapbox { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.mapbox iframe { width: 100%; height: 100%; border: 0; }

.sidecard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; position: sticky; top: 88px; box-shadow: var(--shadow-sm); }
.sidecard__price { font-family: var(--display); font-size: 1.7rem; color: var(--ink); }
.sidecard__price small { display: block; font-family: var(--body); font-size: .78rem; color: var(--ink-3); font-weight: 500; }
.sidecard__price .free { color: var(--care-600); }
.sidecard .btn { margin-top: 1rem; }
.sidecard__phones { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.sidecard__phones a { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--primary); }
.sidecard__phones svg { width: 16px; height: 16px; }
.sidecard__note { margin-top: 1rem; font-size: .82rem; color: var(--ink-3); }

/* =========================================================
   FORM / QUIZ
   ========================================================= */
.leadform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-md); max-width: 620px; margin-inline: auto; }
.leadform .field input, .leadform .field select, .leadform .field textarea { background: var(--paper-2); }
.leadform textarea { width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line-2); border-radius: 10px; min-height: 96px; resize: vertical; }
.leadform .row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; color: var(--ink-2); margin: .4rem 0 1rem; }
.consent input { margin-top: .2rem; width: 17px; height: 17px; accent-color: var(--primary); }
.form-note { font-size: .82rem; color: var(--ink-3); text-align: center; margin-top: .8rem; }
.form-ok { display: none; text-align: center; padding: 1rem; }
.form-ok.show { display: block; }
.form-ok svg { width: 56px; height: 56px; color: var(--care); margin: 0 auto 1rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--primary-700); color: #b7cdd8; padding-block: clamp(2.4rem, 5vw, 3.6rem) 1.5rem; margin-top: 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer h4 { color: #fff; font-family: var(--body); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer a { color: #b7cdd8; display: block; padding: .28rem 0; font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer__brand .logo { color: #fff; margin-bottom: .8rem; }
.footer__brand .logo b { color: #fff; }
.footer__brand .logo span { color: #9fbccb; }
.footer__brand p { font-size: .9rem; max-width: 34ch; }
.footer__msg { display: flex; gap: .5rem; margin-top: 1rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.2rem; padding-top: 1.3rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; color: #8daebc; }

/* SEO text block */
.seo-text { color: var(--ink-2); max-width: 78ch; }
.seo-text h2 { font-size: 1.4rem; margin: 1.6rem 0 .7rem; color: var(--ink); }
.seo-text h2:first-child { margin-top: 0; }
.seo-text p { margin-bottom: 1rem; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem; margin-bottom: .8rem; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.5rem; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .8rem; color: var(--ink-2); font-size: .96rem; }

/* Cookie */
.cookie { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300; max-width: 560px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 1.1rem 1.3rem; display: none; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cookie.show { display: flex; }
.cookie p { font-size: .86rem; color: var(--ink-2); flex: 1; min-width: 200px; }
.cookie a { color: var(--primary); text-decoration: underline; }

/* Back to top */
.totop { position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 90; width: 46px; height: 46px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.totop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.totop svg { width: 20px; height: 20px; }

/* Page header (inner) */
.pagehead { background: var(--primary-700); color: #eaf2f6; }
.pagehead .wrap { padding-block: clamp(2.2rem, 5vw, 3.4rem); }
.pagehead h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.pagehead p { color: #cddde5; margin-top: .6rem; max-width: 60ch; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .city-grid { grid-template-columns: repeat(3, 1fr); }
  .detail { grid-template-columns: 1fr; grid-template-areas: "gallery" "aside" "body"; }
  .detail-body { margin-top: 1.4rem; }
  .sidecard { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav, .masthead__cta .btn--ghost { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: block; }
  .logo span span { display: none; }
  .catalog { grid-template-columns: 1fr; }
  .mobilebar { display: block; }
  .filters { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(90vw, 370px); max-height: 100vh; margin: 0; border-radius: 0; z-index: 210; transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; display: block; }
  .filters.open { transform: translateX(0); }
  .filters__head { display: flex; }
  .catalog .card-grid { grid-template-columns: repeat(2, 1fr); }
  .band__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .topbar__hint { display: none; }
}
@media (max-width: 620px) {
  .masthead__cta { display: none; }
  .masthead .wrap { gap: .6rem; }
  .logo img { width: 34px; height: 34px; }
  .logo b { font-size: 1.05rem; }
  .features { grid-template-columns: 1fr 1fr; }
  .cat-grid, .card-grid, .post-grid, .catalog .card-grid { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .leadform .row { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .hero__trust { gap: 1.1rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .topbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Селект міста у фільтрі */
.fld-select { width: 100%; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23123B54' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.4rem; }
.fld-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }

/* Картка закладу — структура як у каталогів-конкурентів */
.detail__main { min-width: 0; }
.detail-body { margin-top: 1.6rem; }
.sidecard__title { font-size: 1.35rem; line-height: 1.25; margin: .2rem 0 .5rem; }
.sidecard__facts { display: flex; flex-direction: column; gap: .65rem; margin: .9rem 0; padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sidecard__facts > div { display: flex; flex-direction: column; gap: .12rem; }
.sidecard__facts span { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.sidecard__facts b { font-size: .92rem; color: var(--ink); font-weight: 600; }
.feat-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.feat-col h3 { font-size: 1rem; margin: 0 0 .8rem; color: var(--primary); padding-bottom: .5rem; border-bottom: 2px solid var(--primary-50); }
.feat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.feat-list li { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; color: var(--ink-2); line-height: 1.4; }
.feat-list li svg { flex: 0 0 auto; margin-top: .12rem; width: 16px; height: 16px; color: var(--accent); }
.detail__section--form { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; }
.reviews__summary { display: flex; align-items: center; gap: 1rem; }
.reviews__score { display: flex; align-items: baseline; gap: .45rem; }
.reviews__score b { font-size: 1.9rem; color: var(--ink); line-height: 1; }
.reviews__score span { color: #e8b53d; letter-spacing: 2px; font-size: 1.05rem; }
.reviews__count { color: var(--ink-3); font-weight: 600; }
@media (max-width: 800px) { .feat-groups { grid-template-columns: 1fr; gap: 1.3rem; } .detail-body { max-width: none; } }

/* Мобільна безпека від горизонтального переповнення */
img, iframe, video { max-width: 100%; }
input, select, textarea { max-width: 100%; box-sizing: border-box; }
.leadform, .leadform #form-inner { min-width: 0; }
.leadform .row { min-width: 0; }
@media (max-width: 760px) {
  .datatable { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .datatable td, .datatable th { white-space: nowrap; }
}

/* Плаваюча кнопка дзвінка */
.callfab { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 95; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(197,124,44,.45); transition: transform .18s, box-shadow .18s; }
.callfab:hover { transform: scale(1.06); box-shadow: 0 10px 30px rgba(197,124,44,.55); color: #fff; }
.callfab svg { width: 26px; height: 26px; position: relative; z-index: 2; }
.callfab__pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); z-index: 1; animation: callpulse 2.2s ease-out infinite; }
@keyframes callpulse { 0% { transform: scale(1); opacity: .55; } 70% { transform: scale(1.9); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 620px) { .callfab { width: 54px; height: 54px; right: .9rem; bottom: .9rem; } .totop { left: .9rem; bottom: .9rem; width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .callfab__pulse { animation: none; } }

/* Відгуки родин */
.rev-list { display: flex; flex-direction: column; gap: 1rem; margin: 1.2rem 0 1.6rem; }
.rev { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; }
.rev__top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .4rem; }
.rev__author { font-weight: 700; color: var(--ink); }
.rev__rel { color: var(--ink-3); font-weight: 500; font-size: .85rem; }
.rev__stars { color: #e8b53d; letter-spacing: 1px; font-size: .92rem; flex: 0 0 auto; }
.rev__text { color: var(--ink-2); line-height: 1.55; }
.rev__when { color: var(--ink-3); font-size: .8rem; margin-top: .4rem; }
.rev-write { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.rev-form .row { display: grid; grid-template-columns: 1fr 190px; gap: .7rem; margin-bottom: .7rem; }
.rev-form input, .rev-form select, .rev-form textarea { width: 100%; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; box-sizing: border-box; background: var(--surface); }
.rev-form textarea { min-height: 92px; resize: vertical; margin-bottom: .8rem; }
.rev-thanks { display: flex; align-items: center; gap: .5rem; background: #e8f6ee; border: 1px solid #bfe3cd; color: #1e7a4d; border-radius: 12px; padding: 1rem 1.2rem; font-weight: 600; }
.rev-thanks svg { width: 18px; height: 18px; flex: 0 0 auto; }
@media (max-width: 620px) { .rev-form .row { grid-template-columns: 1fr; } }

/* Лёгкий відео-плеер (клік → завантаження) */
.videoplayer { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #0d2c40; cursor: pointer; box-shadow: var(--shadow-md); }
.videoplayer__poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.videoplayer__play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border: none; border-radius: 50%; background: rgba(197,124,44,.95); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 26px rgba(0,0,0,.35); transition: transform .18s, background .18s; }
.videoplayer__play svg { width: 30px; height: 30px; margin-left: 3px; }
.videoplayer:hover .videoplayer__play { transform: scale(1.08); background: var(--accent); }
.videoplayer__video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
