/* ==========================================================================
   Стоматологія «Аура» — Васильків
   Реалізація макета «Aura Dental — Final (Light)» (Claude Design handoff).
   Значення кольорів/розмірів перенесені з макета один-в-один.
   ========================================================================== */

:root {
  --bg: #f7f2ea;
  --surface: #ffffff;
  --ink: #2a241b;
  --ink-strong: #1f1a12;
  --ink-soft: #4a4335;
  --muted: #6a6154;
  --muted-2: #6f6757;
  --on-gold: #1a1509;

  --accent-c: 0.52 0.13 52;
  --accent: oklch(var(--accent-c));
  --accent-dark: oklch(0.42 0.13 50);
  --gold-c: 0.72 0.13 62;
  --gold: oklch(var(--gold-c));
  --gold-hi: oklch(0.78 0.12 66);
  --glow-c: 0.85 0.12 82;

  --line: rgba(42, 36, 27, .10);
  --line-strong: rgba(42, 36, 27, .28);
  --dot: rgba(42, 36, 27, .30);

  --font-body: Manrope, system-ui, sans-serif;
  --font-display: Unbounded, system-ui, sans-serif;
}

/* --- base --------------------------------------------------------------- */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

a { text-decoration: none; color: var(--accent); }
a:hover { color: var(--accent-dark); }

img, iframe { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* overflow:clip (а не hidden) — щоб декоративна пляма обрізалась,
   але sticky-хедер усередині продовжував працювати. */
.page { position: relative; overflow: clip; }

.bg-blob {
  position: absolute;
  top: -140px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.72 0.13 78 / .34), transparent 66%);
  pointer-events: none;
  z-index: 0;
}

@keyframes auraPulse {
  0%, 100% { opacity: .62; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}

@keyframes nodeGlow {
  0%, 100% { box-shadow: 0 0 10px 1px oklch(var(--glow-c) / .5); }
  50%      { box-shadow: 0 0 18px 4px oklch(var(--glow-c) / .85); }
}

/* --- responsive LAYOUT (з макета, без змін) ----------------------------- */
/* --gutter = бокові відступи wrap; --spine-x = центр «хребта» від краю wrap.
   Вузли живуть у секціях з падінгом, тому віднімають gutter, щоб стати на ту саму вісь. */

[data-wrap] {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  --gutter: 20px;
  --spine-x: 23px;
}

[data-spine] {
  position: absolute;
  top: 132px;
  bottom: 96px;
  left: calc(var(--spine-x) - 1px);
  width: 2px;
  background: linear-gradient(180deg, transparent, oklch(0.62 0.14 62 / .85) 8%, oklch(0.6 0.14 50 / .35) 55%, transparent);
  z-index: 0;
}

[data-sec] {
  position: relative;
  z-index: 1;
  padding: 56px 0 0 52px;
  scroll-margin-top: 78px;
}

[data-node] {
  position: absolute;
  left: calc(var(--spine-x) - var(--gutter));
  top: 70px;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid oklch(0.68 0.13 60);
  animation: nodeGlow 4.5s ease-in-out infinite;
}

[data-node-hero] {
  position: absolute;
  left: calc(var(--spine-x) - var(--gutter));
  top: 69px;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: oklch(0.7 0.13 62);
  box-shadow: 0 0 22px 5px oklch(0.7 0.14 62 / .5);
  animation: nodeGlow 4.5s ease-in-out infinite;
}

[data-node-card] { top: 118px; } /* секція лікаря без заголовка — рівняємо на аватар */

[data-hero] { position: relative; z-index: 1; padding: 60px 0 20px 52px; }
[data-hero-in] { display: flex; flex-direction: column-reverse; gap: 32px; align-items: flex-start; }
[data-hero-copy] { flex: 1 1 auto; width: 100%; }
[data-hero-visual] { flex: 0 0 auto; align-self: center; }

[data-svc] { display: grid; grid-template-columns: 1fr; gap: 14px; }
[data-prices] { display: grid; grid-template-columns: 1fr; gap: 26px 48px; }
[data-contact] { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: start; }
[data-navlinks] { display: flex; gap: 20px; }

@media (min-width: 560px) {
  [data-svc] { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  [data-wrap] { padding: 0 36px; --gutter: 36px; --spine-x: 33px; }
  [data-sec] { padding: 72px 0 0 68px; }
  [data-node] { top: 91px; }
  [data-node-card] { top: 146px; }
  [data-node-hero] { top: 89px; }
  [data-hero] { padding: 80px 0 40px 68px; }
  [data-hero-in] { flex-direction: row; gap: 56px; align-items: center; }
  [data-hero-copy] { flex: 1 1 56%; }
  [data-prices] { grid-template-columns: 1fr 1fr; }
  [data-contact] { grid-template-columns: 1.08fr .92fr; }
}

@media (min-width: 980px) {
  [data-wrap] { padding: 0 52px; --gutter: 52px; --spine-x: 33px; }
  [data-svc] { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 559px) {
  [data-navlinks] { display: none; }
}

/* --- header ------------------------------------------------------------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 242, 234, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.brand:hover { color: var(--ink); }

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2cf, var(--accent));
  box-shadow: 0 0 16px 3px oklch(var(--glow-c) / .9);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .18em;
  font-size: 15px;
}

.nav {
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.nav a { color: inherit; transition: color .18s ease; }
.nav a:hover { color: var(--ink); }

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.btn-call {
  gap: 7px;
  padding: 11px 15px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
  font-size: 13px;
  min-height: 44px;
  white-space: nowrap;
  flex: none;
}

.btn-call:hover {
  background: var(--gold-hi);
  color: var(--on-gold);
  transform: translateY(-1px);
}

.btn-primary {
  gap: 9px;
  padding: 15px 24px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
  font-size: 15px;
  min-height: 52px;
  box-shadow: 0 16px 36px -12px oklch(var(--glow-c) / .55);
}

.btn-primary:hover {
  background: var(--gold-hi);
  color: var(--on-gold);
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 15px 24px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  min-height: 52px;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* --- hero --------------------------------------------------------------- */

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 6.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--ink-strong);
  margin: 0;
  text-wrap: balance;
}

.lede {
  margin: 22px 0 0;
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.65;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.aura {
  position: relative;
  width: clamp(220px, 58vw, 320px);
  height: clamp(220px, 58vw, 320px);
}

.aura-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, oklch(0.9 0.09 86 / .95), oklch(0.78 0.13 70 / .5) 42%, transparent 70%);
  animation: auraPulse 6s ease-in-out infinite;
}

.aura-ring { position: absolute; border-radius: 50%; }
.aura-ring-1 { inset: 14%; border: 1px solid oklch(0.85 0.11 82 / .35); }
.aura-ring-2 { inset: 26%; border: 1px solid oklch(0.85 0.11 82 / .22); }

.aura-core {
  position: absolute;
  inset: 40%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3d2, oklch(0.86 0.12 82));
  box-shadow: 0 0 50px 8px oklch(0.86 0.12 82 / .7);
}

/* --- section headings --------------------------------------------------- */

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 32px);
  color: var(--ink-strong);
  margin: 0;
}

.h2-gap { margin: 0 0 26px; }

.sec-sub { color: var(--muted-2); font-size: 14.5px; margin: 6px 0 26px; }

/* --- services ----------------------------------------------------------- */

.card {
  padding: 22px 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .18s ease, transform .18s ease;
}

.card:hover {
  border-color: oklch(0.85 0.11 82 / .5);
  transform: translateY(-3px);
}

.card h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 14px 0 5px; }
.card p { font-size: 13.5px; color: var(--muted-2); margin: 0; line-height: 1.55; }

.ic { color: var(--accent); flex: none; }
.contact-item .ic { margin-top: 2px; }

/* --- prices ------------------------------------------------------------- */

.price-group-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

.price-row { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; }
.price-label { color: var(--ink-soft); }
.price-dots { flex: 1; border-bottom: 1px dotted var(--dot); transform: translateY(-3px); }

.price-value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
  color: var(--ink-strong);
}

.price-note {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--muted-2);
  font-style: italic;
}

/* --- doctor ------------------------------------------------------------- */

.doctor {
  position: relative;
  padding: clamp(26px, 4vw, 40px);
  border-radius: 24px;
  background: linear-gradient(155deg, #fffaf1, #f4ecdd);
  border: 1px solid var(--line);
  overflow: hidden;
}

.doctor-blob {
  position: absolute;
  top: -60px;
  left: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.72 0.13 80 / .5), transparent 70%);
  pointer-events: none;
}

.doctor-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.doctor-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--on-gold);
  background: radial-gradient(circle at 35% 30%, #fff2d0, var(--accent));
  box-shadow: 0 0 34px oklch(var(--glow-c) / .6);
}

.doctor-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 24px);
  color: var(--ink-strong);
  margin: 0;
}

.doctor-role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin: 4px 0 0;
}

.doctor-bio {
  position: relative;
  font-size: clamp(15px, 1.7vw, 17px);
  color: #5a5344;
  line-height: 1.7;
  max-width: 60ch;
  margin: 0;
}

/* --- contacts ----------------------------------------------------------- */

.phones { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }

.phones a {
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 26px);
  font-weight: 500;
  color: var(--ink-strong);
  letter-spacing: -.01em;
  transition: color .18s ease;
}

.phones a:hover { color: var(--accent-dark); }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14.5px;
  color: #5a5344;
}

.contact-item { display: flex; gap: 12px; }
.contact-sub { color: var(--muted-2); }

.map {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(42, 36, 27, .14);
  min-height: 260px;
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  display: block;
  filter: saturate(.95);
}

/* --- footer ------------------------------------------------------------- */

.footer {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer p { font-size: 12px; color: var(--muted-2); margin: 0; }

/* --- a11y --------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
