/* =========================================================
   «Всі Пансіонати» — спільні стилі
   Палітра: тепла слонова кістка + хвойно-зелений + вохра
   Шрифти: Cormorant Garamond (заголовки) + Manrope (текст)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #F6F0E5;   /* тепла слонова кістка */
  --bg-soft:   #FBF7EF;   /* світліший фон секцій */
  --card:      #FFFDF8;   /* фон карток */
  --ink:       #262A21;   /* теплий майже-чорний */
  --ink-soft:  #65645545; /* (не використовується напряму) */
  --muted:     #6E6B5C;   /* приглушений текст */
  --pine:      #213B30;   /* глибокий хвойний — основний */
  --pine-2:    #2C5142;   /* світліший хвойний */
  --sage:      #7C9A87;   /* шавлія */
  --sage-tint: #E5EDE4;   /* світла плашка */
  --sage-ink:  #2F4D3C;   /* текст на світлій плашці */
  --amber:     #C58F44;   /* тепла вохра — акцент */
  --amber-2:   #B97B33;
  --terra:     #B65B3A;   /* теракота */
  --line:      #E5DCC9;   /* теплий бордер */
  --line-2:    #D8CDB6;

  --shadow-sm: 0 1px 2px rgba(38,42,33,.05), 0 2px 8px rgba(38,42,33,.04);
  --shadow-md: 0 6px 22px rgba(33,59,48,.10), 0 2px 6px rgba(33,59,48,.06);
  --shadow-lg: 0 24px 60px rgba(33,59,48,.16);

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.4rem);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --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(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  /* ледь помітна тепла зернистість + м'які світлові плями */
  background-image:
    radial-gradient(1200px 600px at 88% -8%, rgba(197,143,68,.10), transparent 60%),
    radial-gradient(1000px 700px at -10% 110%, rgba(124,154,135,.12), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, scroll;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
input, select, textarea, button { font-family: inherit; }
::selection { background: var(--amber); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.06; letter-spacing: -.01em; }
.serif { font-family: var(--serif); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 700;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--pine-2);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--amber);
  display: inline-block;
}
.eyebrow.center::after {
  content: ""; width: 26px; height: 1px; background: var(--amber);
  display: inline-block;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.center { text-align: center; }
.measure { max-width: 56ch; }
.measure.center { margin-inline: auto; }

.section-head { max-width: 60ch; }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin-top: .5rem; }
.section-head p { color: var(--muted); margin-top: 1rem; font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .92em; --pad-x: 1.5em;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--pine); color: #F6F0E5; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--pine-2); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--amber { background: var(--amber); color: #fff; box-shadow: 0 6px 18px rgba(197,143,68,.32); }
.btn--amber:hover { background: var(--amber-2); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--pine); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--pine); background: rgba(33,59,48,.04); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--light:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; color: var(--pine);
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
  transition: gap .25s var(--ease), border-color .25s;
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.link-arrow:hover { border-color: var(--amber); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,240,229,.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(246,240,229,.97); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; letter-spacing: -.01em; color: var(--pine); }
.brand-text span { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--amber-2); font-weight: 700; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  padding: .55rem .9rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  color: var(--ink); transition: background .2s, color .2s; position: relative;
}
.nav-links a:hover { background: rgba(33,59,48,.06); }
.nav-links a.active { color: var(--pine); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--amber);
}
.nav-cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--card);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--pine); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.2rem); }
.hero h1 em { font-style: italic; color: var(--pine-2); }
.hero .lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--muted); margin-top: 1.4rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.6rem 2.2rem; margin-top: 2.6rem; }
.hero-trust .t { display: flex; flex-direction: column; }
.hero-trust .t b { font-family: var(--serif); font-size: 2rem; color: var(--pine); line-height: 1; }
.hero-trust .t span { font-size: .9rem; color: var(--muted); margin-top: .35rem; }

/* hero visual — арка-«домівка» */
.hero-visual { position: relative; }
.hero-arch {
  position: relative; aspect-ratio: 4/4.6; border-radius: 220px 220px 26px 26px;
  overflow: hidden; box-shadow: var(--shadow-lg);
  background: #213B30 url("../assets/hero-building.jpg") center / cover no-repeat;
}
.hero-arch::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(18,30,24,.92) 0%, rgba(18,30,24,.6) 28%, rgba(18,30,24,.12) 52%, transparent 70%);
}
.hero-arch .arch-content {
  position: absolute; inset: 0; z-index: 2; padding: 2rem 2rem 7.5rem;
  display: flex; flex-direction: column; justify-content: flex-end; color: #F6F0E5;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.hero-visual .badge-floating {
  position: absolute; z-index: 4; top: 2.2rem; left: 50%; transform: translateX(-50%);
  white-space: nowrap; max-width: calc(100% - 1.5rem);
  background: rgba(255,255,255,.96); color: var(--pine);
  border-radius: 999px; padding: .7rem 1.15rem; display: inline-flex; align-items: center; gap: .55rem;
  box-shadow: var(--shadow-md); font-weight: 700; font-size: .92rem;
}
.hero-visual .badge-floating svg { width: 22px; height: 22px; color: var(--amber); flex-shrink: 0; }
.hero-quote { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; font-style: italic; }
.hero-quote small { display: block; font-family: var(--sans); font-style: normal; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-top: .9rem; font-weight: 600; }

.hero-card {
  position: absolute; right: -8px; bottom: -22px; z-index: 4;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .85rem; max-width: 250px;
}
.hero-card .avatars { display: flex; }
.hero-card .avatars span {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--card);
  margin-left: -10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .85rem;
}
.hero-card .avatars span:first-child { margin-left: 0; }
.hero-card p { font-size: .85rem; line-height: 1.4; color: var(--muted); }
.hero-card p b { color: var(--ink); }

/* ---------- Search bar (hero) ---------- */
.searchbar {
  margin-top: 2.2rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .6rem; box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem;
}
.searchbar .field { display: flex; flex-direction: column; padding: .35rem .9rem; border-radius: var(--radius-sm); }
.searchbar .field + .field { border-left: 1px solid var(--line); }
.searchbar label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-2); font-weight: 700; }
.searchbar select { border: none; background: transparent; font-size: 1rem; font-weight: 600; color: var(--ink); padding: .15rem 0; outline: none; }

/* ---------- Stat strip ---------- */
.stripe { background: var(--pine); color: #EAE3D4; }
.stripe .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: 2.6rem; }
.stripe .stat { text-align: center; }
.stripe .stat b { font-family: var(--serif); display: block; font-size: clamp(2.2rem, 4vw, 3.1rem); color: #fff; line-height: 1; }
.stripe .stat span { font-size: .92rem; opacity: .82; margin-top: .5rem; display: block; }
.stripe .stat + .stat { position: relative; }
.stripe .stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px;
  background: rgba(255,255,255,.16);
}

/* ---------- Value cards ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin-top: 3rem; }
.vcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative; overflow: hidden;
}
.vcard::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0;
  background: linear-gradient(90deg, var(--amber), var(--sage)); transition: width .4s var(--ease);
}
.vcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.vcard:hover::before { width: 100%; }
.vcard .ic {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: var(--sage-tint); color: var(--pine); margin-bottom: 1.2rem;
}
.vcard .ic svg { width: 27px; height: 27px; }
.vcard h3 { font-size: 1.5rem; }
.vcard p { color: var(--muted); margin-top: .6rem; font-size: 1rem; }

/* ---------- Care home cards ---------- */
.homes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.home-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.home-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.home-photo {
  aspect-ratio: 16/10; position: relative; display: grid; place-items: center;
  color: rgba(255,255,255,.92);
}
.home-photo svg.bld { width: 64px; height: 64px; opacity: .85; }
.home-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.home-photo .verified {
  position: absolute; top: .8rem; left: .8rem; background: rgba(255,255,255,.95);
  color: var(--pine); border-radius: 999px; padding: .35rem .7rem .35rem .55rem;
  font-size: .76rem; font-weight: 700; display: flex; align-items: center; gap: .35rem;
  box-shadow: var(--shadow-sm);
}
.home-photo .verified svg { width: 15px; height: 15px; color: var(--sage); }
.home-photo .rating {
  position: absolute; top: .8rem; right: .8rem; background: rgba(33,59,48,.78);
  color: #fff; border-radius: 999px; padding: .3rem .6rem; font-size: .82rem; font-weight: 700;
  display: flex; align-items: center; gap: .3rem; backdrop-filter: blur(4px);
}
.home-photo .rating svg { width: 14px; height: 14px; color: var(--amber); }
.home-body { padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.home-city { font-size: .82rem; font-weight: 700; letter-spacing: .03em; color: var(--amber-2); display: flex; align-items: center; gap: .35rem; }
.home-city svg { width: 14px; height: 14px; }
.home-card h3 { font-size: 1.55rem; margin-top: .35rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.tag {
  font-size: .76rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px;
  background: var(--sage-tint); color: var(--sage-ink);
}
.tag.lic { background: #F1E7D2; color: #8a6520; }
.home-foot { margin-top: auto; padding-top: 1.2rem; display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem 1rem; flex-wrap: wrap; }
.price b { font-family: var(--serif); font-size: 1.32rem; color: var(--pine); white-space: nowrap; }
.price span { font-size: .82rem; color: var(--muted); }
.price small { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.home-foot .btn { padding-inline: 1.1rem; }

/* анонімні картки: код, сегмент, що входить */
.obj-code {
  display: inline-block; margin-top: .4rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; color: var(--muted);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 7px; padding: .2rem .55rem;
}
.home-photo .seg-badge {
  position: absolute; bottom: .8rem; left: .8rem; border-radius: 999px;
  padding: .28rem .7rem; font-size: .74rem; font-weight: 700; text-transform: capitalize;
  background: rgba(255,255,255,.95); box-shadow: var(--shadow-sm);
}
.seg-badge.seg-eco { color: #5d7a3f; }
.seg-badge.seg-comfort { color: var(--pine); }
.seg-badge.seg-premium { color: #9a6b1f; }
.includes { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.includes li { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--ink-2, #4a5a4f); }
.includes li svg { width: 14px; height: 14px; color: var(--sage); flex: none; }

/* ---------- Cities ---------- */
.cities { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; }
.city-chip {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.15rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; transition: all .25s var(--ease);
}
.city-chip svg { width: 15px; height: 15px; color: var(--sage); transition: color .25s; }
.city-chip b { font-weight: 700; }
.city-chip .cnt { color: var(--muted); font-weight: 500; font-size: .9rem; }
.city-chip:hover { background: var(--pine); color: #fff; border-color: var(--pine); transform: translateY(-3px); }
.city-chip:hover svg { color: var(--amber); }
.city-chip:hover .cnt { color: rgba(255,255,255,.7); }

/* ---------- Split / process ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.process-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.3rem; }
.process-item { display: flex; gap: 1.1rem; }
.process-item .n {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: #fff;
  background: var(--pine); box-shadow: var(--shadow-sm);
}
.process-item h4 { font-size: 1.35rem; }
.process-item p { color: var(--muted); margin-top: .25rem; }

.frame-card {
  background: linear-gradient(160deg, #2C5142, #213B30); color: #EAE3D4;
  border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3rem); box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.frame-card::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(197,143,68,.32), transparent 70%);
}
.frame-card .eyebrow { color: var(--amber); }
.frame-card .eyebrow::before { background: var(--amber); }
.frame-card h3 { color: #fff; font-size: clamp(1.7rem,3vw,2.4rem); margin-top: .6rem; position: relative; }
.frame-card ul.checks { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .9rem; position: relative; }
.frame-card ul.checks li { display: flex; gap: .75rem; align-items: flex-start; }
.frame-card ul.checks svg { width: 22px; height: 22px; flex: none; color: var(--sage); margin-top: 2px; }

/* ---------- Specializations ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; margin-top: 2.6rem; }
.spec {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; transition: transform .3s var(--ease), background .3s;
}
.spec:hover { transform: translateY(-5px); background: var(--card); }
.spec .ic { width: 48px; height: 48px; border-radius: 13px; background: var(--pine); color: var(--amber); display: grid; place-items: center; margin-bottom: 1rem; }
.spec .ic svg { width: 25px; height: 25px; }
.spec h4 { font-size: 1.35rem; }
.spec p { color: var(--muted); font-size: .95rem; margin-top: .4rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(150deg, #355845, #213B30 70%);
  color: #F6F0E5; border-radius: var(--radius-lg); padding: clamp(2.4rem,5vw,4rem);
  text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 120% at 50% -20%, rgba(197,143,68,.28), transparent 60%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; font-size: clamp(2rem,4.5vw,3.2rem); }
.cta-banner p { max-width: 52ch; margin: 1rem auto 2rem; opacity: .9; font-size: 1.1rem; }
.cta-banner .hero-actions { justify-content: center; margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #1B2F26; color: #C9CFC4; padding-block: clamp(3rem,6vw,4.5rem) 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2rem; }
.site-footer .brand-text b { color: #fff; }
.footer-about { max-width: 34ch; margin-top: 1.1rem; font-size: .96rem; color: #9CA597; }
.footer-col h5 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; color: #B8BFB0; padding: .3rem 0; font-size: .98rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .88rem; color: #8B9385;
}
.footer-bottom .socials { display: flex; gap: .6rem; }
.footer-bottom .socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16); color: #C9CFC4; transition: all .25s;
}
.footer-bottom .socials a:hover { background: var(--amber); border-color: var(--amber); color: #fff; }
.footer-bottom .socials svg { width: 17px; height: 17px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(3rem,7vw,5.5rem) clamp(2rem,4vw,3rem); }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2.4rem,5.5vw,4.4rem); max-width: 18ch; }
.page-hero p { color: var(--muted); font-size: 1.15rem; margin-top: 1.2rem; max-width: 56ch; }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1.4rem; display: flex; gap: .5rem; align-items: center; }
.breadcrumbs a:hover { color: var(--pine); }
.breadcrumbs span { color: var(--line-2); }

/* ---------- Catalog ---------- */
.catalog-layout { display: grid; grid-template-columns: 290px 1fr; gap: 2.2rem; align-items: start; }
.filters {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); position: sticky; top: 96px;
}
.filters h3 { font-size: 1.4rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .5rem; }
.filters h3 svg { width: 20px; height: 20px; color: var(--amber); }
.filter-group { border-top: 1px solid var(--line); padding-block: 1.1rem; }
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-group > label { display: block; font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.search-input { position: relative; }
.search-input svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search-input input { width: 100%; padding: .8rem .9rem .8rem 2.5rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-soft); font-size: .98rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.search-input input:focus { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-tint); }
.filters select { width: 100%; padding: .75rem .9rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-soft); font-size: .98rem; font-weight: 600; color: var(--ink); outline: none; cursor: pointer; }
.check-list { display: flex; flex-direction: column; gap: .55rem; }
.check { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .98rem; padding: .15rem 0; }
.check input { width: 18px; height: 18px; accent-color: var(--pine); cursor: pointer; }
.filters .btn { margin-top: 1.2rem; }

.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.catalog-toolbar .count { color: var(--muted); font-size: .98rem; }
.catalog-toolbar .count b { color: var(--ink); font-family: var(--serif); font-size: 1.2rem; }
.sort-box { display: flex; align-items: center; gap: .5rem; }
.sort-box label { font-size: .9rem; color: var(--muted); font-weight: 600; }
.sort-box select { padding: .55rem .8rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-weight: 600; font-size: .92rem; cursor: pointer; outline: none; }
.catalog-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); grid-column: 1/-1; }
.empty-state svg { width: 56px; height: 56px; color: var(--line-2); margin-bottom: 1rem; }

/* конверсійна порожня сторінка каталога */
.empty-cta {
  grid-column: 1/-1;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: clamp(2rem, 5vw, 3.4rem) clamp(1.2rem, 4vw, 2.5rem);
  text-align: center;
}
.empty-cta .ic-big {
  width: 72px; height: 72px; margin: 0 auto 1.4rem;
  border-radius: 50%; background: var(--sage-tint, #e6ede5);
  color: var(--pine); display: grid; place-items: center;
}
.empty-cta .ic-big svg { width: 34px; height: 34px; }
.empty-cta h3 { font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: .7rem; color: var(--pine); }
.empty-cta .explain { color: var(--muted); max-width: 56ch; margin: 0 auto 1.6rem; font-size: 1rem; line-height: 1.55; }
.empty-cta .query-chip {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: .55rem 1.1rem;
  font-size: .9rem; color: var(--muted); margin-bottom: 1.8rem;
}
.empty-cta .query-chip b { color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; }
.empty-cta .query-chip b svg { width: 14px; height: 14px; color: var(--amber); }
.empty-cta .query-chip .dot { color: var(--line-2); }
.empty-cta .cta-big { padding: 1.05rem 2rem; font-size: 1rem; }
.empty-cta .reassure {
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: center;
  margin-top: 1.2rem; font-size: .85rem; color: var(--muted);
}
.empty-cta .reassure span { display: inline-flex; align-items: center; gap: .3rem; }
.empty-cta .reassure svg { width: 14px; height: 14px; color: var(--sage); }

.similar-section { grid-column: 1/-1; margin-top: 2.4rem; }
.similar-section h4 {
  font-size: 1.4rem; font-family: var(--serif); color: var(--pine);
  text-align: center; margin-bottom: .4rem;
}
.similar-section .similar-sub {
  text-align: center; color: var(--muted); font-size: .92rem;
  margin-bottom: 1.6rem;
}
.similar-section .similar-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
}
@media (max-width: 540px) {
  .similar-section .similar-grid { grid-template-columns: 1fr; }
}
.filter-toggle { display: none; }

/* ---------- About ---------- */
.prose { max-width: 70ch; }
.prose p { color: #43463c; font-size: 1.12rem; margin-top: 1.2rem; }
.prose p.lead { font-size: 1.35rem; font-family: var(--serif); color: var(--pine); line-height: 1.45; }
.value-block { display: flex; gap: 1.2rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.value-block:first-of-type { border-top: none; }
.value-block .ic { flex: none; width: 56px; height: 56px; border-radius: 15px; background: var(--sage-tint); color: var(--pine); display: grid; place-items: center; }
.value-block .ic svg { width: 28px; height: 28px; }
.value-block h3 { font-size: 1.6rem; }
.value-block p { color: var(--muted); margin-top: .4rem; }
.pull-quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem,3.2vw,2.5rem);
  line-height: 1.3; color: var(--pine); text-align: center; max-width: 24ch; margin-inline: auto;
  position: relative;
}
.pull-quote::before { content: "«"; }
.pull-quote::after { content: "»"; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem,3vw,2.4rem); box-shadow: var(--shadow-md); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .45rem; }
.form-field label .req { color: var(--terra); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--bg-soft); font-size: 1rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-tint); }
.form-field.invalid input, .form-field.invalid select { border-color: var(--terra); }
.form-error { color: var(--terra); font-size: .82rem; margin-top: .35rem; display: none; }
.form-field.invalid .form-error { display: block; }
.form-note { font-size: .86rem; color: var(--muted); margin-top: 1rem; text-align: center; }
.form-success {
  display: none; background: var(--sage-tint); border: 1px solid var(--sage);
  border-radius: var(--radius); padding: 1.2rem 1.4rem; color: var(--sage-ink);
  align-items: center; gap: .8rem; margin-bottom: 1.2rem; font-weight: 600;
}
.form-success svg { width: 24px; height: 24px; flex: none; }
.form-success.show { display: flex; }

/* ---------- Квіз-підбір ---------- */
.quiz-meta { font-size: .85rem; color: var(--muted); font-weight: 600; }
.quiz-meta b { color: var(--pine); }
.quiz-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin: .55rem 0 0; }
.quiz-bar > i { display: block; height: 100%; width: 20%; background: var(--amber); border-radius: 999px; transition: width .35s var(--ease); }
.quiz-codenote {
  margin-top: 1rem; font-size: .88rem; background: var(--sage-tint); color: var(--sage-ink);
  border-radius: var(--radius-sm); padding: .7rem .9rem; font-weight: 600;
}
.quiz-body { margin-top: 1.6rem; min-height: 210px; }
.quiz-step h3 { font-size: 1.4rem; margin-bottom: 1.1rem; }
.quiz-hint { font-size: .85rem; color: var(--muted); margin-top: .7rem; }
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.q-opt {
  text-align: left; padding: 1rem 1.1rem; border-radius: var(--radius-sm); cursor: pointer;
  border: 1.5px solid var(--line-2); background: var(--bg-soft); color: var(--ink);
  font-size: 1rem; font-weight: 600; transition: all .2s var(--ease);
}
.q-opt:hover { border-color: var(--sage); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.q-opt.sel { border-color: var(--pine); background: var(--pine); color: #fff; }
.quiz-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; }
.quiz-foot .btn { min-width: 130px; }
.quiz-foot [data-back]:disabled { opacity: .45; pointer-events: none; }
.quiz-done { text-align: center; padding: 1.5rem .5rem; }
.quiz-done svg { width: 56px; height: 56px; color: var(--sage); margin-bottom: .8rem; }
.quiz-done h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.quiz-done p { color: var(--muted); max-width: 42ch; margin-inline: auto; }
@media (max-width: 540px) { .q-grid { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.info-item { display: flex; gap: 1rem; padding: 1.3rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.info-item .ic { flex: none; width: 50px; height: 50px; border-radius: 13px; background: var(--pine); color: var(--amber); display: grid; place-items: center; }
.info-item .ic svg { width: 24px; height: 24px; }
.info-item h4 { font-size: 1.25rem; }
.info-item p, .info-item a { color: var(--muted); display: block; }
.info-item a:hover { color: var(--pine); }
.info-item .ic.ic--tg { background: #229ED9; color: #fff; }
.info-item .ic.ic--tg svg { width: 26px; height: 26px; }

/* Telegram icon links */
.tg-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: #229ED9; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s var(--ease), background .2s; flex: none;
}
.tg-icon svg { width: 20px; height: 20px; }
.tg-icon:hover { background: #1c8bbf; transform: translateY(-2px); }
.footer-col a.tg-link svg { color: #229ED9; }
.footer-col a.tg-link:hover svg { color: #fff; }

.disclaimer {
  background: #F1E7D2; border: 1px solid #E2CE9F; border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; font-size: .86rem; color: #7a5a1e; display: flex; gap: .6rem; align-items: flex-start;
}
.disclaimer svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60;
  width: 50px; height: 50px; border-radius: 50%; background: var(--pine); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--amber); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .cards-4 { grid-template-columns: repeat(2,1fr); }
  .spec-grid { grid-template-columns: repeat(2,1fr); }
  .homes-grid { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filter-toggle {
    display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
    padding: .9rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
    background: var(--card); font-weight: 700; margin-bottom: 1rem;
  }
  .filter-toggle svg { width: 18px; height: 18px; }
  .filters.collapsed { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn--ghost, .nav-cta > .btn--primary { display: none; }
  .nav { height: 64px; gap: .5rem; }
  .nav-cta { gap: .5rem; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: block; }
  .stripe .wrap { grid-template-columns: repeat(2,1fr); gap: 1.8rem 1rem; }
  .stripe .stat + .stat::before { display: none; }
  .searchbar { grid-template-columns: 1fr; }
  .searchbar .field + .field { border-left: none; border-top: 1px solid var(--line); }
  .catalog-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-card { position: static; margin-top: 1.2rem; max-width: none; }
  .hero-arch .arch-content { padding-bottom: 2rem; }
}
@media (max-width: 540px) {
  .cards-4, .spec-grid, .homes-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-arch { border-radius: 160px 160px 22px 22px; }
  /* стиснений бренд: ховаємо підпис, зменшуємо назву і логотип */
  .brand-text span { display: none; }
  .brand-text b { font-size: 1.1rem; }
  .brand-mark { width: 34px; height: 34px; }
  .brand { gap: .55rem; }
  .tg-icon { width: 34px; height: 34px; }
  .tg-icon svg { width: 18px; height: 18px; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }
.mobile-menu-inner {
  background: var(--card); border-top: 1px solid var(--line);
  padding: 1rem var(--gutter) 1.6rem; display: flex; flex-direction: column; gap: .3rem;
}
.mobile-menu-inner a { padding: .85rem .6rem; border-radius: 10px; font-weight: 600; font-size: 1.1rem; }
.mobile-menu-inner a:hover, .mobile-menu-inner a.active { background: var(--sage-tint); color: var(--pine); }
.mobile-menu-inner .btn { margin-top: .8rem; }

/* ---------- Промо-банер ---------- */
.promo-banner {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 80;
  background: var(--card, #fff); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: 0 12px 40px rgba(0,0,0,.15);
  padding: 1.5rem 1.4rem 1.2rem; width: 320px; max-width: calc(100vw - 2rem);
  animation: promoIn .55s var(--ease) both;
}
.promo-banner .promo-close {
  position: absolute; top: .55rem; right: .55rem;
  width: 32px; height: 32px; border: none; background: transparent;
  border-radius: 50%; cursor: pointer; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.promo-banner .promo-close:hover { background: var(--bg-soft); color: var(--ink); }
.promo-banner .promo-close svg { width: 16px; height: 16px; }
.promo-banner .promo-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #f7d683, var(--amber));
  color: #fff; display: grid; place-items: center; margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(197,143,68,.35);
}
.promo-banner .promo-icon svg { width: 24px; height: 24px; }
.promo-banner .promo-title {
  font-family: var(--serif); font-size: 1.55rem; color: var(--pine);
  margin-bottom: .4rem; line-height: 1.1;
}
.promo-banner .promo-text {
  font-size: .9rem; color: var(--muted); line-height: 1.45;
  margin-bottom: 1.1rem;
}
.promo-banner .promo-cta { font-size: .92rem; padding: .85rem 1.2rem; }
.promo-banner .promo-fine {
  font-size: .76rem; color: var(--muted); text-align: center;
  margin-top: .7rem; opacity: .9;
}
@keyframes promoIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes promoOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(20px); } }
@media (max-width: 540px) {
  .promo-banner {
    right: 1rem; left: 1rem; bottom: 1rem; width: auto;
    padding: 1.25rem 1.2rem 1rem;
  }
  .promo-banner .promo-title { font-size: 1.35rem; }
}

/* Промо-плажка у квізі */
.promo-badge {
  display: flex; align-items: center; gap: .75rem;
  background: linear-gradient(135deg, #fdf3d8, #fcebbd);
  border: 1px solid #e6c97b;
  border-radius: var(--radius-sm); padding: .9rem 1.1rem;
  margin-bottom: 1.4rem;
  font-size: .92rem; color: #6b4f0f;
}
.promo-badge svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--amber); }
.promo-badge b { color: #4a380a; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
