/* ============================================================
   Центр психічного та фізичного здоров'я
   Сімейна практика — design system
   Themes: calm (default) · warm · humane · harmony
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Tokens : CALM (default) ---------- */
:root {
  --bg:        #F7F8F6;
  --surface:   #FFFFFF;
  --card:      #FFFFFF;
  --card-alt:  #FFFFFF;
  --text:      #2E3430;
  --muted:     #5C645E;
  --faint:     #8A918B;
  --accent:    #5F7F73;   /* sage */
  --deep:      #466A5C;   /* deep sage / CTA */
  --deep-hover:#3C5C50;   /* CTA hover */
  --soft:      #C9D4CD;   /* soft sage */
  --soft-bg:   #EBF0EC;   /* very light sage wash */
  --border:    #E3E7E4;
  --on-deep:   #FFFFFF;

  --r-card: 18px;
  --r-btn:  16px;
  --r-pill: 999px;

  --shadow-card: 0 1px 2px rgba(46,52,48,.04);
  --shadow-soft: 0 8px 30px -18px rgba(46,52,48,.18);

  --sec-pad: 132px;     /* vertical section rhythm */
  --gap-l: 64px;
  --max: 1180px;

  --card-border: 1px solid var(--border);
  --card-fill: var(--surface);

  --ff-head: "Manrope", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(.4,.2,.2,1);
}

/* ---------- Tokens : ДОВІРА (medical blue, clinical) ---------- */
[data-theme="warm"] {
  --bg:        #F5F8FB;
  --surface:   #FFFFFF;
  --card:      #FFFFFF;
  --card-alt:  #FFFFFF;
  --text:      #26333D;
  --muted:     #70808D;
  --faint:     #97A4AE;
  --accent:    #4F7FA8;   /* medical blue */
  --deep:      #4F7FA8;   /* primary CTA */
  --deep-hover:#416C91;   /* CTA hover */
  --soft:      #C2D6E6;
  --soft-bg:   #EAF1F7;
  --border:    #DCE7F0;
  --on-deep:   #FFFFFF;

  --r-card: 16px;
  --r-btn:  14px;
  --shadow-card: 0 1px 2px rgba(38,51,61,.05);
  --shadow-soft: 0 14px 40px -22px rgba(38,51,61,.26);
  --sec-pad: 120px;
  --card-border: 1px solid var(--border);
  --card-fill: var(--surface);
}

/* ---------- Tokens : ЛЮДЯНІСТЬ (warm beige-graphite, private practice) ---------- */
[data-theme="humane"] {
  --bg:        #F8F5F1;   /* warm light wash */
  --surface:   #FFFFFF;
  --card:      #FFFFFF;
  --card-alt:  #FFFFFF;
  --text:      #2F2B28;   /* graphite */
  --muted:     #736B63;   /* secondary text */
  --faint:     #9C938B;
  --accent:    #7A6A58;   /* warm taupe */
  --deep:      #7A6A58;   /* primary CTA */
  --deep-hover:#665747;   /* CTA hover */
  --soft:      #D8CEC1;   /* soft taupe */
  --soft-bg:   #F0EAE2;   /* light beige wash */
  --border:    #E7DFD5;
  --on-deep:   #FFFFFF;

  --r-card: 14px;
  --r-btn:  14px;
  --shadow-card: 0 1px 2px rgba(47,43,40,.05);
  --shadow-soft: 0 14px 40px -24px rgba(47,43,40,.22);
  --sec-pad: 120px;
  --card-border: 1px solid var(--border);
  --card-fill: var(--surface);
}

/* ---------- Tokens : ГАРМОНІЯ (soft sage-grey, modern private practice) ---------- */
[data-theme="harmony"] {
  --bg:        #F7F8F7;   /* soft light wash */
  --surface:   #FFFFFF;
  --card:      #FFFFFF;
  --card-alt:  #FFFFFF;
  --text:      #303533;   /* warm graphite */
  --muted:     #707774;   /* secondary text */
  --faint:     #9AA09C;
  --accent:    #6A7D74;   /* soft sage-grey */
  --deep:      #6A7D74;   /* primary CTA */
  --deep-hover:#586A62;   /* CTA hover */
  --soft:      #C8D2CC;   /* soft sage-grey */
  --soft-bg:   #ECF0EE;   /* very light sage-grey wash */
  --border:    #E4E8E5;
  --on-deep:   #FFFFFF;

  --r-card: 16px;
  --r-btn:  14px;
  --shadow-card: 0 1px 2px rgba(48,53,51,.05);
  --shadow-soft: 0 14px 40px -22px rgba(48,53,51,.22);
  --sec-pad: 120px;
  --card-border: 1px solid var(--border);
  --card-fill: var(--surface);
}

/* ---------- Base ---------- */
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--text);
  text-wrap: balance;
}

p { text-wrap: pretty; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 32px; }

section { padding-block: var(--sec-pad); }
section.tight { padding-block: calc(var(--sec-pad) * .62); }

.eyebrow {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  opacity: .55;
}

.h-xl { font-size: clamp(34px, 5vw, 58px); }
.h-lg { font-size: clamp(28px, 3.6vw, 42px); }
.h-md { font-size: clamp(22px, 2.4vw, 28px); }

.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); line-height: 1.65; }
.muted { color: var(--muted); }

/* section head helper */
.sec-head { max-width: 760px; margin-bottom: var(--gap-l); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }
.sec-head .lead { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-head); font-weight: 600; font-size: 16px;
  padding: 16px 28px; border-radius: var(--r-btn);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  min-height: 52px; line-height: 1;
}
.btn-primary { background: var(--deep); color: var(--on-deep); }
.btn-primary:hover { background: var(--deep-hover); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #FFFFFF; color: var(--deep); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -18px rgba(0,0,0,.35); }
.btn-text {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 600; color: var(--deep); font-size: 16px;
}
.btn-text svg { transition: transform .25s var(--ease); }
.btn-text:hover svg { transform: translateX(4px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--ff-head); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; max-width: 280px; }
.brand-logo { width: 180px; height: auto; display: block; margin-bottom: 5px; }
.brand-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.brand .dot { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color .2s var(--ease); position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 1.6px; background: var(--text); position: relative; transition: .3s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.6px; background: var(--text); transition: .3s var(--ease); }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* mobile menu panel */
.mobile-menu {
  position: fixed; inset: 78px 0 0 0; z-index: 55;
  background: var(--bg);
  padding: 28px 32px 40px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  overflow-y: auto;
}
body.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { font-family: var(--ff-head); font-weight: 600; font-size: 22px; padding: 16px 0; border-bottom: 1px solid var(--border); text-align: center; }
.mobile-menu a.btn { border-bottom: none; }
.mobile-menu .btn { margin-top: 24px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); }
.hero .lead { margin-top: 26px; max-width: 540px; }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-note { margin-top: 30px; display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 14px; }
.hero-note .line { width: 30px; height: 1px; background: var(--border); }
.hero-media { position: relative; }
[data-theme="warm"] .hero-media { transform: none; }

/* ---------- Placeholder (delicate striped) ---------- */
.ph {
  position: relative;
  background-color: var(--soft-bg);
  background-image: repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 9%, transparent) 0, color-mix(in srgb, var(--accent) 9%, transparent) 1px,
      transparent 1px, transparent 13px);
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--r-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 24px; color: var(--accent);
  overflow: hidden;
}
.ph svg { stroke: var(--accent); opacity: .7; }
.ph .ph-label {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px; letter-spacing: .02em; color: color-mix(in srgb, var(--accent) 88%, var(--text));
  max-width: 240px; line-height: 1.5;
}
.ph .ph-tag { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ph-hero { aspect-ratio: 4 / 5; }
.ph-portrait { aspect-ratio: 3 / 4; }
.ph-wide { aspect-ratio: 16 / 11; }
.ph-sq { aspect-ratio: 1 / 1; }

/* ---------- Concerns (block 2) ---------- */
.concerns-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.concerns-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.concerns-list li {
  break-inside: avoid; padding: 13px 0 13px 28px; position: relative;
  border-bottom: 1px solid var(--border); color: var(--muted); font-size: 16px;
}
.concerns-list li::before {
  content: ""; position: absolute; left: 0; top: 22px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .6;
}
.concerns-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Specialists (block 3) ---------- */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.spec-card {
  background: var(--card-fill); border: var(--card-border); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); padding: 28px; display: grid;
  grid-template-columns: 150px 1fr; gap: 28px; align-items: start;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.spec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.spec-card .ph { width: 150px; }
.spec-name { font-family: var(--ff-head); font-weight: 700; font-size: 23px; }
.spec-role { color: var(--accent); font-weight: 600; font-size: 14.5px; margin-top: 6px; font-family: var(--ff-head); }
.spec-bio { color: var(--muted); margin-top: 16px; font-size: 15.5px; }
.spec-card .btn-text { margin-top: 20px; }

/* ---------- Directions (block 4) ---------- */
.dir-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dir-card {
  position: relative; border-radius: var(--r-card); padding: 44px;
  background: var(--card-fill); border: var(--card-border); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; min-height: 460px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden;
}
.dir-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.dir-card .num { font-family: var(--ff-head); font-weight: 700; font-size: 15px; color: var(--accent); letter-spacing: .04em; }
.dir-card h3 { font-size: 28px; margin-top: 14px; }
.dir-card p { margin-top: 14px; }
.dir-list { margin-top: 24px; display: flex; flex-direction: column; gap: 0; }
.dir-list li { padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--muted); display: flex; gap: 12px; align-items: center; }
.dir-list li svg { flex: none; stroke: var(--accent); }
.dir-card .btn-text { margin-top: auto; padding-top: 28px; }
[data-theme="humane"] .dir-card.feature { background: var(--deep); color: var(--on-deep); border-color: transparent; }
[data-theme="humane"] .dir-card.feature h3,
[data-theme="humane"] .dir-card.feature .num { color: #fff; }
[data-theme="humane"] .dir-card.feature .dir-list li { color: rgba(255,255,255,.82); border-color: rgba(255,255,255,.16); }
[data-theme="humane"] .dir-card.feature .dir-list li svg { stroke: var(--soft); }
[data-theme="humane"] .dir-card.feature .btn-text { color: #fff; }

/* ---------- Trust (block 5) ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-card {
  padding: 32px 28px; border-radius: var(--r-card);
  background: var(--card-fill); border: var(--card-border); box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease);
}
.trust-card:hover { transform: translateY(-4px); }
.trust-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--soft-bg); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.trust-ic svg { stroke: var(--deep); }
.trust-card h4 { font-size: 18px; font-weight: 700; line-height: 1.25; }
.trust-card p { margin-top: 12px; color: var(--muted); font-size: 14.5px; }

/* ---------- Reviews (block 6) ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  padding: 34px; border-radius: var(--r-card);
  background: var(--soft-bg); border: 1px solid transparent; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; min-height: 230px;
}
.review-text { font-size: 16.5px; color: var(--text); line-height: 1.6; }
.review-meta { margin-top: auto; padding-top: 24px; display: flex; align-items: center; gap: 14px; }
.review-ava { width: 42px; height: 42px; border-radius: 50%; background: var(--soft); display:flex;align-items:center;justify-content:center; font-family: var(--ff-head); font-weight: 700; color: var(--deep); }
.review-name { font-family: var(--ff-head); font-weight: 600; font-size: 15px; }
.review-note { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--faint); letter-spacing: .04em; }
.reviews-foot { margin-top: 40px; text-align: center; }
.reviews-pending { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--faint); text-align: center; margin-bottom: 28px; letter-spacing: .02em; }

/* ---------- Process (block 7) ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; }
.step .step-n {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-weight: 700; color: var(--deep); margin-bottom: 22px;
}
.step h4 { font-size: 19px; font-weight: 700; }
.step p { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.step::after { content: ""; position: absolute; top: 23px; left: 60px; right: -14px; height: 1px; background: var(--border); }
.step:last-child::after { display: none; }

/* ---------- Pricing (block 8) ---------- */
.price-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.price-card {
  padding: 40px; border-radius: var(--r-card);
  background: var(--card-fill); border: var(--card-border); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.price-card h3 { font-size: 23px; }
.price-rows { margin-top: 26px; display: flex; flex-direction: column; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.price-row .label { color: var(--muted); font-size: 15.5px; }
.price-row .val { font-family: var(--ff-head); font-weight: 700; font-size: 18px; white-space: nowrap; }
.price-row .val .ph-price { color: var(--faint); font-family: "JetBrains Mono", monospace; font-size: 15px; font-weight: 500; }
.price-card .btn { margin-top: 28px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 18px; }
.gallery-grid .ph { border-radius: var(--r-card); }
.gallery-grid .g-tall { grid-row: span 2; }
.gallery-grid .g-wide { grid-column: span 2; }

/* ---------- FAQ (block 9) ---------- */
.faq-wrap { max-width: 860px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; text-align: left; font-family: var(--ff-head); font-weight: 600; font-size: clamp(17px, 2vw, 20px);
}
.faq-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: .3s var(--ease); }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; background: var(--accent); transition: .3s var(--ease); }
.faq-ic { position: relative; }
.faq-ic::before { width: 12px; height: 1.6px; }
.faq-ic::after { width: 1.6px; height: 12px; }
.faq-item.open .faq-ic { background: var(--accent); border-color: var(--accent); }
.faq-item.open .faq-ic::before, .faq-item.open .faq-ic::after { background: #fff; }
.faq-item.open .faq-ic::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding-bottom: 28px; color: var(--muted); max-width: 680px; font-size: 16px; }
.faq-foot { margin-top: 44px; text-align: center; }

/* ---------- Big CTA (block 10) ---------- */
.cta-band { background: var(--deep); color: var(--on-deep); border-radius: 0; }
.cta-inner { text-align: center; max-width: 720px; margin-inline: auto; }
.cta-inner h2 { color: #fff; font-size: clamp(28px, 4vw, 46px); }
.cta-inner p { color: rgba(255,255,255,.82); margin-top: 22px; font-size: 19px; }
.cta-inner .btn { margin-top: 38px; }
[data-theme="warm"] .cta-band { margin: 0; border-radius: 0; }

/* ---------- Contacts ---------- */
.contacts-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.contact-card {
  display: flex; flex-direction: column; gap: 16px; padding: 26px;
  border-radius: var(--r-card); background: var(--card-fill); border: var(--card-border);
  box-shadow: var(--shadow-card); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  min-height: 150px;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.contact-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--soft-bg); display: flex; align-items: center; justify-content: center; }
.contact-ic svg { stroke: var(--deep); }
.contact-card .c-kind { font-family: var(--ff-head); font-weight: 700; font-size: 17px; }
.contact-card .c-val { color: var(--muted); font-size: 14px; font-family: "JetBrains Mono", monospace; }

/* ---------- Page sub-components (shared across inner pages) ---------- */
/* breadcrumb */
.crumb { display: flex; gap: 9px; align-items: center; font-size: 13.5px; color: var(--faint); margin-bottom: 22px; font-family: var(--ff-head); font-weight: 500; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }
.crumb .sep { opacity: .5; }

/* hero trust fact pill */
.hero-fact { margin-top: 32px; display: inline-flex; align-items: center; gap: 16px; padding: 14px 22px 14px 18px; border-radius: var(--r-pill); background: var(--soft-bg); }
.hero-fact b { font-family: var(--ff-head); font-size: 26px; color: var(--deep); line-height: 1; }
.hero-fact span { font-size: 13.5px; color: var(--muted); max-width: 150px; line-height: 1.4; }

/* states grid (block: з якими станами працюємо) */
.states-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.state-card { padding: 26px 24px; border-radius: var(--r-card); background: var(--card-fill); border: var(--card-border); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 14px; transition: transform .3s var(--ease); }
.state-card:hover { transform: translateY(-3px); }
.state-ic { width: 42px; height: 42px; border-radius: 11px; background: var(--soft-bg); display: flex; align-items: center; justify-content: center; }
.state-ic svg { stroke: var(--deep); }
.state-card h4 { font-size: 16.5px; font-weight: 700; line-height: 1.25; }
.state-card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* highlighted panel (block: складні випадки) */
.panel { background: var(--soft-bg); border-radius: 24px; padding: clamp(34px, 4.5vw, 60px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 4vw, 60px); align-items: center; }
.panel h2 { font-size: clamp(24px, 3vw, 34px); }
.panel .lead { margin-top: 18px; }
.panel-list { display: grid; gap: 0; }
.panel-list li { display: flex; gap: 13px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); font-size: 15.5px; }
.panel-list li:last-child { border-bottom: none; }
.panel-list li svg { flex: none; stroke: var(--deep); margin-top: 3px; }

/* concern (побоювання) cards */
.concern-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.concern-card { padding: 32px; border-radius: var(--r-card); background: var(--card-fill); border: var(--card-border); box-shadow: var(--shadow-card); }
.concern-card .c-q { font-family: var(--ff-head); font-weight: 700; font-size: 19px; display: flex; gap: 12px; align-items: flex-start; line-height: 1.3; }
.concern-card .c-q .q-mark { color: var(--accent); flex: none; }
.concern-card p { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* pricing 3-up */
.price-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card.solo { text-align: left; }
.price-card .price-big { font-family: var(--ff-head); font-weight: 700; font-size: 30px; margin-top: 8px; }
.price-card .price-big .ph-price { color: var(--faint); font-family: "JetBrains Mono", monospace; font-size: 24px; font-weight: 500; }
.price-card .price-kind { font-family: var(--ff-head); font-weight: 700; font-size: 18px; }
.price-card .price-desc { color: var(--muted); font-size: 14px; margin-top: 10px; }
.price-note { margin-top: 28px; max-width: 640px; color: var(--muted); font-size: 15px; }
.legal-note { margin-top: 22px; padding: 20px 24px; border-left: 2px solid var(--accent); background: var(--soft-bg); border-radius: 0 14px 14px 0; color: var(--text); font-size: 15.5px; line-height: 1.6; }

/* messenger row (final CTA) */
.cta-msgrs { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-msgr { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: var(--r-pill); background: rgba(255,255,255,.12); color: #fff; font-family: var(--ff-head); font-weight: 600; font-size: 14.5px; border: 1px solid rgba(255,255,255,.22); transition: .2s var(--ease); }
.cta-msgr:hover { background: rgba(255,255,255,.2); }
.cta-msgr svg { stroke: #fff; }
.cta-contacts { margin-top: 22px; color: rgba(255,255,255,.8); font-size: 15px; font-family: "JetBrains Mono", monospace; }

/* ---------- Specialist bio card (Спеціалісти page) ---------- */
.bio-card { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 4vw, 56px); align-items: start; background: var(--card-fill); border: var(--card-border); box-shadow: var(--shadow-card); border-radius: var(--r-card); padding: clamp(28px, 3.5vw, 48px); }
.bio-card.flip { grid-template-columns: 1fr 340px; }
.bio-card.flip .bio-media { order: 2; }
.bio-card .ph-portrait { width: 100%; }
.bio-card .bio-body { display: flex; flex-direction: column; }
.bio-card h2 { font-size: clamp(26px, 3vw, 34px); }
.bio-card .spec-role { font-size: 15.5px; margin-top: 8px; }
.bio-card .bio-text { color: var(--muted); margin-top: 18px; font-size: 15.5px; }
.bio-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.bio-chip { padding: 9px 16px; border-radius: var(--r-pill); background: var(--soft-bg); color: var(--deep); font-size: 13.5px; font-weight: 600; font-family: var(--ff-head); }
.bio-card .btn-text { margin-top: 26px; }

/* ---------- Chooser (не впевнені, до кого звернутися) ---------- */
.chooser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.chooser-card { background: var(--card-fill); border: var(--card-border); box-shadow: var(--shadow-card); border-radius: var(--r-card); padding: clamp(32px, 3.5vw, 44px); display: flex; flex-direction: column; }
.chooser-card .chooser-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--soft-bg); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.chooser-card .chooser-ic svg { stroke: var(--deep); }
.chooser-card h3 { font-size: 21px; line-height: 1.3; }
.chooser-list { margin-top: 20px; display: flex; flex-direction: column; }
.chooser-list li { padding: 11px 0; border-bottom: 1px solid var(--border); color: var(--muted); display: flex; gap: 11px; align-items: center; font-size: 15px; }
.chooser-list li svg { flex: none; stroke: var(--accent); }
.chooser-card .btn { align-self: flex-start; margin-top: 28px; }

/* ---------- Centered narrow block (про центр) ---------- */
.narrow-center { max-width: 720px; margin-inline: auto; text-align: center; }
.narrow-center p { margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: 72px; }
.footer-top { display: grid; grid-template-columns: 1fr 2.5fr; gap: 56px; align-items: start; }
.site-footer .brand-name { max-width: 320px; }
.footer-desc { margin-top: 18px; max-width: 300px; font-size: 14.5px; }
.footer-cta { margin-top: 26px; }
.footer-cols { display: grid; grid-template-columns: 1.25fr .95fr .65fr 1.6fr; gap: 32px; }
.footer-col h5 { font-family: var(--ff-head); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 6px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-col .btn-text { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; padding: 6px 0; flex-wrap: nowrap; white-space: nowrap; }
.footer-col .btn-text svg { flex: none; }
.footer-addr { color: var(--muted); font-size: 14.5px; padding: 0 0 10px; line-height: 1.7; }
.footer-addr-note { font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: var(--faint); }
.footer-base { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13px; }
.footer-legal { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--accent); }

/* ---------- Booking modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(38,44,40,.42);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg); border-radius: 24px; max-width: 540px; width: 100%;
  padding: 40px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.5);
  transform: translateY(16px) scale(.98); transition: transform .3s var(--ease);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: none; }
.modal h3 { font-size: 26px; }
.modal p { color: var(--muted); margin-top: 12px; }
.modal-close { position: absolute; top: 0; right: 0; }
.modal-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.chan {
  display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-family: var(--ff-head); font-size: 15px;
  transition: .2s var(--ease);
}
.chan:hover { border-color: var(--accent); transform: translateY(-2px); }
.chan svg { stroke: var(--deep); flex: none; }
.modal-form { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.modal-form input, .modal-form textarea {
  width: 100%; padding: 15px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); font: inherit; color: var(--text);
}
.modal-form input:focus, .modal-form textarea:focus { outline: none; border-color: var(--accent); }
/* consent checkbox under forms */
.form-consent { display: flex; gap: 11px; align-items: flex-start; margin: 6px 0 2px; text-align: left; }
.form-consent input[type="checkbox"] {
  flex: none; width: 19px; height: 19px; margin: 1px 0 0; padding: 0;
  accent-color: var(--deep); cursor: pointer;
}
.form-consent label { font-size: 12.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.form-consent a { color: var(--deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.form-consent a:hover { color: var(--accent); }
.modal-divider { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 13px; margin: 24px 0 4px; }
.modal-divider::before, .modal-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.modal-ok { text-align: center; padding: 20px 0; }
.modal-ok .check { width: 60px; height: 60px; border-radius: 50%; background: var(--soft-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }

/* ---------- Mobile sticky call bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px); border-top: 1px solid var(--border);
}
.mobile-bar .btn { flex: 1; min-height: 54px; }

/* ---------- Theme switcher — round FAB (standalone only) ---------- */
.theme-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}

/* the round trigger */
.theme-fab-btn {
  width: 54px; height: 54px; border-radius: 999px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); box-shadow: var(--shadow-soft);
  color: var(--accent);
  transition: transform .35s var(--ease), background .3s var(--ease),
              color .3s var(--ease), box-shadow .3s var(--ease);
}
.theme-fab-btn svg { width: 23px; height: 23px; transition: transform .45s var(--ease); }
.theme-fab-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -18px rgba(46,52,48,.34); }
.theme-fab[data-open="true"] .theme-fab-btn {
  background: var(--deep); color: #fff; border-color: transparent;
}
.theme-fab[data-open="true"] .theme-fab-btn svg { transform: rotate(120deg); }

/* the popover panel */
.theme-pop {
  width: 222px; padding: 8px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transform-origin: bottom right;
  opacity: 0; transform: translateY(10px) scale(.94); pointer-events: none;
  transition: opacity .26s var(--ease), transform .26s var(--ease);
}
.theme-fab[data-open="true"] .theme-pop { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.theme-pop-title {
  display: block; font-family: var(--ff-mono, "JetBrains Mono", monospace);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); padding: 8px 10px 10px;
}
.theme-pop button {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px; text-align: left;
  font-family: var(--ff-head); font-weight: 600; font-size: 14.5px; color: var(--text);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.theme-pop button:hover { background: var(--soft-bg); }
.theme-pop button .sw {
  width: 18px; height: 18px; border-radius: 999px; flex: none;
  box-shadow: inset 0 0 0 1px rgba(46,52,48,.10);
}
.theme-pop button[data-set="calm"] .sw       { background: oklch(0.60 0.045 160); }
.theme-pop button[data-set="warm"] .sw       { background: #4F7FA8; }
.theme-pop button[data-set="humane"] .sw { background: #7A6A58; }
.theme-pop button[data-set="harmony"] .sw { background: #6A7D74; }
.theme-pop button .chk { margin-left: auto; opacity: 0; transition: opacity .2s var(--ease); color: var(--accent); }
.theme-pop button .chk svg { width: 17px; height: 17px; }
.theme-pop button.active { background: var(--soft-bg); color: var(--deep); }
.theme-pop button.active .chk { opacity: 1; }

body.embed .theme-fab { display: none; }
body.embed .site-header { position: relative; }

@media (max-width: 720px) {
  .theme-fab { right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* reveal-on-scroll — gated behind .js so content is always visible if JS fails */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
/* initial in-view content snaps solid (avoids stalled transitions in background tabs) */
.js.reveal-instant .reveal.in { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .trust-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .contacts-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
  .states-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  :root { --sec-pad: 88px; --gap-l: 44px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav .btn-primary { display: none; }
  .hero-grid, .concerns-grid, .price-grid { grid-template-columns: 1fr; }
  .spec-grid, .dir-grid, .reviews-grid { grid-template-columns: 1fr; }
  .panel, .concern-grid { grid-template-columns: 1fr; }
  .bio-card, .bio-card.flip { grid-template-columns: 1fr; }
  .bio-card .bio-media, .bio-card.flip .bio-media { order: 0; }
  .bio-card .ph-portrait { max-width: 320px; }
  .chooser-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; }
  .concerns-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding-inline: 20px; }
  .brand-logo { width: 150px; margin-bottom: 3px; }
  :root, [data-theme] { --sec-pad: 64px; }
  .spec-card { grid-template-columns: 1fr; }
  .spec-card .ph { width: 100%; max-width: 200px; }
  .trust-grid, .process-grid, .contacts-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 30px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .states-grid { grid-template-columns: 1fr; }
  .dir-card { padding: 32px 26px; min-height: 0; }
  .price-card { padding: 28px 24px; }
  .modal { padding: 28px 22px; }
  .modal-channels { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .mobile-bar { display: flex; }
  /* clear the fixed mobile call-bar — also in embed (phone preview), where it stays visible */
  body, body.embed { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  /* breathing room above the header so the logo isn't jammed against the top edge / notch */
  .site-header { padding-top: calc(env(safe-area-inset-top) + 8px); }
  .mobile-menu { top: calc(78px + env(safe-area-inset-top) + 8px); }
}
