/* ДЕНЦ «Камелія» — базові стилі сайту (дизайн-напрям C: «за референсом Євроленд») */

:root {
  --bg: #FDF6E4;
  --surface: #FFFFFF;
  --red: #E2574A;
  --red-deep: #C93F34;
  --blue: #79C2E0;
  --blue-deep: #4EA0C4;
  --pink: #F4A6B7;
  --mint: #A7DCC5;
  --text: #362B22;
  --text-soft: #6C5D4E;
  --text-on-mint: #294D3C;
  --focus: #285F78;
  --input-border: #817466;
  --border: #F0E2C4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Nunito, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: Fredoka, Nunito, sans-serif; text-wrap: balance; margin: 0; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--mint); color: var(--text); }
input, textarea { caret-color: var(--red-deep); }
a { text-underline-offset: .2em; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 200; padding: 12px 18px; border-radius: 12px; background: var(--text); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
main:focus { outline: none; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1160px; margin: 0 auto; gap: 16px; flex-wrap: nowrap;
  position: relative;
}
.logo { display: inline-flex; align-items: center; width: 184px; max-width: 100%; min-width: 0; min-height: 44px; text-decoration: none; border-radius: 6px; }
.logo .brand-logo { display: block; width: 100%; height: auto; }
header.site .logo { width: 156px; flex-shrink: 0; }
nav.main { display: flex; gap: 22px; flex-wrap: nowrap; }
nav.main a { text-decoration: none; font-weight: 700; font-size: 14px; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a.active { color: var(--red-deep); border-color: var(--red-deep); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; white-space: nowrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red-deep); color: #fff;
  font-weight: 700; min-height: 48px; padding: 13px 28px; border-radius: 999px; border: 2px solid var(--red-deep);
  text-decoration: none; transition: background .15s, color .15s;
}
.btn:hover { background: #AD3229; border-color: #AD3229; }
.btn.ghost { background: transparent; color: var(--red-deep); }
.btn.ghost:hover { background: var(--surface); }
.badge-pill {
  display: inline-flex; align-items: center; gap: 6px; background: var(--surface);
  border: 1.5px solid var(--border); padding: 8px 16px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: var(--text-soft);
}

/* ---------- Breadcrumbs / page header ---------- */
.page-head { max-width: 1160px; margin: 0 auto; padding: 10px 24px 40px; }
.crumbs { font-size: 13px; color: var(--text-soft); margin-bottom: 14px; }
.crumbs a { text-decoration: none; color: var(--text-soft); }
.crumbs a:hover { color: var(--red-deep); }
.page-head h1 { font-size: 36px; margin-bottom: 12px; }
.page-head p.lede { font-size: 16.5px; color: var(--text-soft); max-width: 60ch; line-height: 1.6; }

/* ---------- Waves ---------- */
.wave-top, .wave-bottom { display: block; width: 100%; margin: 0; line-height: 0; }
.wave-top svg, .wave-bottom svg { width: 100%; height: 56px; display: block; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1160px; margin: 10px auto 0; padding: 30px 24px 70px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center;
}
.hero h1 { font-size: clamp(36px, 3.5vw, 50px); line-height: 1.12; font-weight: 700; margin-bottom: 20px; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--red-deep); }
.hero p.lede { font-size: 17px; color: var(--text-soft); margin: 0 0 26px; max-width: 46ch; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-art { position: relative; width: 100%; aspect-ratio: 4/3.3; max-width: 480px; margin: 0 auto; }
.photo-tile {
  position: absolute; inset: 0; border-radius: 24px;
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 24px 48px -26px rgba(50, 30, 10, .35);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }

/* ---------- Stage / stats band ---------- */
.stage-band { background: var(--bg); padding: 0 24px 66px; }
.stage-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stage-card { background: var(--surface); border-radius: 22px; padding: 22px 16px; border: 1px solid var(--border); text-align: center; }
.stage-card b { display: block; font-family: Fredoka; font-size: 28px; margin-bottom: 4px; color: var(--red-deep); }
.stage-card span { color: var(--text-soft); font-size: 12.5px; font-weight: 700; }

/* ---------- Generic content blocks ---------- */
section.block { max-width: 1160px; margin: 0 auto; padding: 20px 24px 76px; position: relative; }
.block-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.block-head h2 { font-size: 32px; }
.block-head p { color: var(--text-soft); font-size: 16px; margin-top: 10px; }
.block-head.left { margin: 0 0 32px; text-align: left; max-width: none; }

/* ---------- Direction cards ---------- */
.dir-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dir-card { background: var(--surface); border-radius: 24px; overflow: hidden; border: 1px solid var(--border); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.dir-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(50,30,10,.25); }
.dir-photo { aspect-ratio: 16/9; }
.dir-photo img { width: 100%; height: 100%; object-fit: cover; }
.dir-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.dir-card h3 { font-size: 19px; }
.dir-card p { color: var(--text-soft); font-size: 14px; line-height: 1.5; margin: 0; flex: 1; }
.dir-card .more { font-weight: 700; font-size: 13.5px; color: var(--red-deep); }
.dir-card .more::after { content: " →"; }

/* ---------- Gurtok chip list (inside a direction) ---------- */
.gurtok-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 10px; }
.gurtok-chip {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 18px; font-size: 14.5px; font-weight: 700; text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s;
}
.gurtok-chip:hover { border-color: var(--red-deep); transform: translateY(-2px); }
.gurtok-chip span { display: block; font-weight: 400; color: var(--text-soft); font-size: 13px; margin-top: 4px; }

/* ---------- Why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card { background: var(--red-deep); color: #fff; border-radius: 22px; padding: 24px; display: flex; gap: 14px; align-items: flex-start; }
.why-card svg { flex-shrink: 0; }
.why-card p { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 600; }

/* ---------- Stat pill list (numbered process) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 44px; height: 44px; border-radius: 14px; background: var(--mint); color: var(--text-on-mint);
  display: flex; align-items: center; justify-content: center; font-family: Fredoka; font-weight: 700; font-size: 20px; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 14.5px; margin: 0; line-height: 1.5; }

/* ---------- Reason cards (numbered, batkam) ---------- */
.reason-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.reason-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px 24px; display: flex; gap: 16px; }
.reason-card .n { font-family: Fredoka; font-size: 22px; color: var(--red-deep); font-weight: 700; flex-shrink: 0; }
.reason-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.reason-card p { color: var(--text-soft); font-size: 14px; line-height: 1.55; margin: 0; }

/* ---------- Teachers / admin ---------- */
.teachers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.teacher { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 20px; text-align: center; }
.avatar { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: Fredoka; font-weight: 700; font-size: 22px; color: #fff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.teacher h3 { font-size: 15.5px; }
.teacher span { font-size: 12.5px; color: var(--text-soft); }

/* ---------- Photo gallery ---------- */
.photo-gallery { max-width: 1160px; margin: 0 auto; padding: 0 24px 76px; }
.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.g-tile { aspect-ratio: 4/3; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
.g-tile img { width: 100%; height: 100%; object-fit: cover; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); display: block; }
.dots span.on { background: var(--red); }

/* ---------- Hero floating badges ---------- */
.float-badge {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 11px 16px; display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13px;
  box-shadow: 0 14px 30px -18px rgba(50,30,10,.35);
}
.float-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex-shrink: 0; }
.float-badge.b1 { top: 6%; left: -14%; }
.float-badge.b2 { bottom: 8%; right: -14%; }
@media (max-width: 860px) { .float-badge.b1 { left: -4%; } .float-badge.b2 { right: -4%; } }

/* ---------- Testimonials ---------- */
.testi-avatars { display: flex; justify-content: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.testi-avatars .av { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: Fredoka; font-weight: 600; color: #fff; font-size: 16px; border: 3px solid var(--bg); }
.testi-quote { max-width: 560px; margin: 0 auto; text-align: center; font-size: 16px; line-height: 1.6; color: var(--text); }
.testi-quote footer { margin-top: 12px; font-weight: 700; color: var(--red-deep); font-size: 14px; }

/* ---------- Lead / contact form band ---------- */
.lead-band { background: var(--mint); padding: 60px 24px; position: relative; overflow: hidden; }
.lead-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 0.9fr; gap: 40px; align-items: center; }
.lead-grid h2 { font-size: 24px; margin-bottom: 18px; }
.lead-band p { line-height: 1.6; }
.lead-band p.lead-intro { color: var(--text-on-mint); margin-bottom: 18px; }
form.lead-form { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-size: 14px; font-weight: 800; }
.form-field label span { font-weight: 400; }
form.lead-form input[type="text"], form.lead-form input[type="tel"], form.lead-form input[type="email"] { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--input-border); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
input::placeholder { color: var(--text-soft); opacity: 1; }
form.lead-form label.chk { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--text-on-mint); line-height: 1.5; }
.chk input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--red-deep); }
form.lead-form button { background: var(--red-deep); color: #fff; min-height: 48px; border: none; border-radius: 999px; padding: 13px 24px; font-weight: 700; align-self: flex-start; margin-top: 4px; }
form.lead-form button:disabled { opacity: .7; cursor: default; }
form.lead-form .form-msg { font-size: 13.5px; font-weight: 700; margin: 4px 0 0; }
.form-help, .lead-contact { color: var(--text-on-mint); font-size: 14px; margin: 0; }
.lead-contact { margin-top: 20px; }
.lead-contact a { font-weight: 800; display: inline-flex; align-items: center; min-height: 44px; }
.draft-preview { display: grid; gap: 8px; font-size: 14px; }
.draft-preview textarea { width: 100%; min-height: 180px; padding: 12px; resize: vertical; font: inherit; line-height: 1.5; color: var(--text); background: var(--surface); border: 1px solid var(--input-border); border-radius: 12px; }
.draft-preview a { font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; }
.lead-photo { aspect-ratio: 1/1; border-radius: 50%; overflow: hidden; border: 1px solid var(--border); }
.lead-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contacts ---------- */
.map-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px; align-items: stretch; }
.addr-list { display: flex; flex-direction: column; gap: 14px; }
.addr-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; }
.addr-card b { display: block; font-family: Fredoka; font-size: 15px; margin-bottom: 6px; }
.addr-card span { color: var(--text-soft); font-size: 13.5px; }
.addr-card a { font-size: 16px; color: var(--red-deep); font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.map-block { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; min-height: 260px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--text-soft); }

/* ---------- Footer ---------- */
footer.site { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 24px 24px; }
.foot-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h2 { font-family: Nunito, sans-serif; font-size: 14px; margin: 18px 0 14px; }
.foot-grid p, .foot-grid a { display: block; color: var(--text-soft); font-size: 14px; text-decoration: none; margin-bottom: 8px; }
.foot-grid a { width: fit-content; min-height: 44px; display: flex; align-items: center; margin-bottom: 0; }
.foot-grid a:hover { color: var(--red-deep); text-decoration: underline; }
.foot-grid a.logo { display: flex; width: 200px; }
.foot-grid p { line-height: 1.6; }
.foot-bottom { max-width: 1160px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-soft); }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle { display: none; background: none; border: none; padding: 8px; color: var(--text); }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-menu { display: none; }
.nav-toggle.is-open .icon-close { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
    background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 16px 16px;
    flex-direction: column; gap: 4px; padding: 12px 24px 16px;
  }
  nav.main.is-open { display: flex; }
  nav.main a { padding: 10px 0; }
  .nav-toggle { display: block; }
  .hero { grid-template-columns: 1fr; }
  .stage-band .wrap, .dir-grid, .why-grid, .g-grid, .steps, .reason-grid, .gurtok-list { grid-template-columns: repeat(2, 1fr); }
  .teachers { grid-template-columns: repeat(2, 1fr); }
  .lead-grid, .map-grid { grid-template-columns: 1fr; }
  .lead-photo { max-width: 260px; margin: 0 auto; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stage-band .wrap, .dir-grid, .why-grid, .g-grid, .steps, .reason-grid, .gurtok-list, .teachers { grid-template-columns: 1fr; }
  .hero { padding-top: 22px; padding-bottom: 40px; gap: 32px; }
  .hero h1 { font-size: 36px; }
  .hero p.lede { font-size: 16px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .stage-band { padding-left: 0; padding-right: 0; padding-bottom: 32px; }
  .stage-band .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stage-card { padding: 18px 10px; }
  .block-head { margin-bottom: 28px; }
  .block-head h2 { font-size: 28px; }
}

/* Find a studio without scrolling through every direction. */
.directory-tools { max-width: 1160px; margin: 0 auto; padding: 0 24px 32px; }
.direction-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.direction-nav a { min-height: 44px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 14px; font-weight: 800; }
.direction-nav a:hover { border-color: var(--red-deep); color: var(--red-deep); }
.directory-search { margin-top: 24px; max-width: 640px; }
.directory-search label { display: block; margin-bottom: 8px; font-weight: 800; }
.search-row { display: flex; gap: 10px; }
.search-row input { min-width: 0; flex: 1; min-height: 50px; padding: 12px 16px; font: inherit; font-size: 16px; background: var(--surface); color: var(--text); border: 1px solid var(--input-border); border-radius: 12px; }
.search-row button, .search-empty button { min-height: 44px; padding: 10px 14px; background: transparent; border: 1px solid var(--red-deep); border-radius: 12px; color: var(--red-deep); font-weight: 800; }
.search-row button:disabled { color: var(--text-soft); border-color: var(--border); cursor: default; }
.search-status { margin: 10px 0 0; font-size: 14px; color: var(--text-soft); line-height: 1.5; }
.search-empty { padding: 24px 0 0; max-width: 55ch; }
.search-empty h2 { font-size: 24px; }
.search-empty p { color: var(--text-soft); line-height: 1.6; }
.gurtok-chip { position: relative; padding-right: 42px; }
.gurtok-chip::after { content: '→'; position: absolute; right: 18px; top: 17px; color: var(--red-deep); }

/* ---------- Psychologist article components ---------- */
.article-image { border-radius: 20px; overflow: hidden; margin-bottom: 26px; }
.article-image img { width: 100%; max-height: 380px; object-fit: cover; display: block; }
.content-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px 26px; margin-bottom: 24px; }
.content-card h2 { font-size: 21px; margin-bottom: 14px; }
.content-card p { font-size: 15.5px; line-height: 1.7; color: var(--text-soft); margin: 0 0 14px; }
.content-card p:last-child { margin-bottom: 0; }
.content-card strong { color: var(--text); }
.highlight-box { background: var(--mint, #A7DCC5); border-radius: 14px; padding: 18px 20px; margin-top: 16px; }
.highlight-box p { color: var(--text); font-weight: 700; margin: 0 !important; }
.tips-section, .practices-section { margin-bottom: 26px; }
.tips-section h3, .practices-section h3 { font-size: 19px; margin-bottom: 14px; }
.author-credit { font-style: italic; color: var(--text-soft); font-size: 13.5px; margin: -6px 0 16px; }
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tip-item { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.tip-icon { font-size: 22px; flex-shrink: 0; line-height: 1; }
.tip-text { font-size: 14.5px; color: var(--text-soft); line-height: 1.5; }
.tip-text strong { color: var(--text); }
.practice-list { display: flex; flex-direction: column; gap: 11px; }
.practice-item { display: flex; gap: 12px; align-items: flex-start; }
.practice-bullet { width: 8px; height: 8px; border-radius: 50%; background: var(--red, #E2574A); margin-top: 8px; flex-shrink: 0; }
.practice-text { font-size: 15px; color: var(--text-soft); line-height: 1.6; }
@media (max-width: 640px) { .tips-grid { grid-template-columns: 1fr; } }
