/* ==========================================================================
   Uzman Diş Grup Kids — stil dosyası
   ========================================================================== */

:root {
  --ink: #13294b;
  --ink-2: #2a3f5f;
  --text: #4a5a6e;
  --muted: #7a8899;
  --line: #e9e1d6;

  --cream: #fffaf3;
  --paper: #ffffff;
  --blue: #1b8fd6;
  --blue-d: #1172b0;
  --coral: #f2644e;
  --coral-d: #dc4f39;
  --sun: #ffc845;

  --sky: #e3f2fc;
  --sky-ink: #1b8fd6;
  --peach: #ffe9e0;
  --peach-ink: #e8583f;
  --mint: #dcf4ea;
  --mint-ink: #1f9d72;
  --lemon: #fff3cc;
  --lemon-ink: #d49b00;
  --lilac: #ece8fb;
  --lilac-ink: #6b58c9;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 32px;
  --shadow: 0 1px 2px rgba(19, 41, 75, .06), 0 8px 24px -8px rgba(19, 41, 75, .14);
  --shadow-lg: 0 30px 60px -24px rgba(19, 41, 75, .28);

  --f-head: "Baloo 2", "Trebuchet MS", sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", cursive;

  --container: 1240px;
  --header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-d); text-decoration: none; transition: color .2s; }
a:hover { color: var(--coral); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 900px; }
.center { text-align: center; }
.mt-lg { margin-top: 40px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }

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

/* tones */
.tone-sky { --tone: var(--sky); --tone-ink: var(--sky-ink); }
.tone-peach { --tone: var(--peach); --tone-ink: var(--peach-ink); }
.tone-mint { --tone: var(--mint); --tone-ink: var(--mint-ink); }
.tone-lemon { --tone: var(--lemon); --tone-ink: var(--lemon-ink); }
.tone-lilac { --tone: var(--lilac); --tone-ink: var(--lilac-ink); }

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--coral);
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.center .eyebrow::after { content: ""; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.h2 { font-size: clamp(30px, 3.4vw, 44px); }
.h2--big { font-size: clamp(36px, 4.4vw, 58px); }
.lead { font-size: 18.5px; color: var(--ink-2); }
.hand { font-family: var(--f-hand); font-weight: 700; color: var(--blue); font-size: 26px; line-height: 1; display: inline-block; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-weight: 700; font-size: 15.5px; line-height: 1.2;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover { color: var(--fg); transform: translateY(-2px); }
.btn:hover .ic:last-child { transform: translateX(3px); }
.btn--coral { --bg: var(--coral); box-shadow: 0 10px 22px -10px rgba(242, 100, 78, .8), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.btn--coral:hover { --bg: var(--coral-d); }
.btn--ink { --bg: var(--ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.btn--ink:hover { --bg: #0c1d38; }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: #fff; }
.btn--light { --bg: rgba(255, 255, 255, .12); --fg: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--light:hover { --bg: #fff; --fg: var(--ink); }
.btn--lg { padding: 16px 30px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.btn-row--center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--sun); padding-bottom: 2px; }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover { color: var(--coral); }
.link-arrow:hover .ic { transform: translateX(4px); }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--sky); color: var(--ink); }
.icon-btn .ic { width: 22px; height: 22px; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; display: inline-grid; place-items: center; border: 2px solid var(--ink); background: transparent; color: var(--ink); transition: .2s; }
.round-btn .ic { width: 20px; height: 20px; }
.round-btn:hover { background: var(--ink); color: #fff; }

.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--tone); color: var(--tone-ink); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.chip__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint-ink); box-shadow: 0 0 0 4px var(--mint); }

/* ---------- topbar ---------- */
.topbar { background: var(--ink); color: #c9d6e8; font-size: 14px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 16px; }
.topbar ul { list-style: none; display: flex; align-items: center; gap: 26px; }
.topbar li { display: inline-flex; align-items: center; gap: 8px; }
.topbar .ic { width: 16px; height: 16px; color: var(--sun); }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--sun); }
.topbar__social { gap: 6px !important; }
.topbar__social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.topbar__social a:hover { background: rgba(255, 255, 255, .1); }
.topbar__social .ic { color: #fff; width: 17px; height: 17px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 243, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); transition: box-shadow .3s, background .3s; }
.site-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(19, 41, 75, .35); background: rgba(255, 255, 255, .95); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand img { width: 230px; height: auto; }

.nav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__list > li > a { display: block; white-space: nowrap; padding: 10px 14px; font-weight: 700; font-size: 15.5px; color: var(--ink); border-radius: 12px; position: relative; }
.nav__list > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 6'%3E%3Cpath d='M1 4c6-3 10-3 16 0s10 3 16 0 5-2 6-1' fill='none' stroke='%23f2644e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__list > li > a:hover, .nav__list > li > a.is-active { color: var(--ink); }
.nav__list > li > a:hover::after, .nav__list > li > a.is-active::after { transform: scaleX(1); }
.has-sub > a { padding-right: 4px !important; }
.sub-toggle { display: grid; place-items: center; width: 24px; height: 24px; border: 0; background: none; color: var(--ink); padding: 0; margin-right: 6px; }
.sub-toggle .ic { width: 16px; height: 16px; transition: transform .2s; }

.sub {
  list-style: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border-radius: 18px; padding: 10px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .22s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.sub a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.sub a:hover { background: var(--sky); color: var(--ink); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .sub-toggle .ic { transform: rotate(180deg); }
/* Mega menü: başlık alanına göre ortalanır, öğeler tek satırda kalır */
.site-header__inner { position: relative; }
.nav__list > li.has-mega { position: static; }
.sub--mega {
  display: grid; grid-template-columns: repeat(3, auto); gap: 2px 8px;
  top: calc(100% - 10px); left: 50%; transform: translate(-50%, 8px);
  width: max-content; max-width: calc(100% - 48px); padding: 14px;
}
.sub--mega::before { top: -24px; height: 24px; }
.sub--mega a { white-space: nowrap; padding-right: 18px; }
.has-mega:hover > .sub--mega, .has-mega:focus-within > .sub--mega { transform: translate(-50%, 0); }
.mini-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--sky); color: var(--blue); flex-shrink: 0; }
.mini-ic .ic { width: 17px; height: 17px; }
.sub a:hover .mini-ic { background: var(--coral); color: #fff; }

.nav__head, .nav__foot { display: none; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.burger { display: none; }
.nav-backdrop { display: none; }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 80px 0; }
.section--soft { background: #fff; }
.sec-head { margin-bottom: 48px; max-width: 760px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.sec-head .h2 { margin-bottom: 0; }

.wave-edge { position: absolute; left: 0; width: 100%; height: 60px; display: block; }
.wave-edge--top { top: -59px; }
.wave-edge--bottom { bottom: -59px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 40px 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 88%;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(27, 143, 214, .10), transparent 70%),
    radial-gradient(500px 360px at 0% 90%, rgba(255, 200, 69, .16), transparent 70%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(40px, 5.4vw, 72px); font-weight: 700; line-height: 1.04; margin: 22px 0 22px; letter-spacing: -.02em; }
.hero__title .mark { position: relative; color: var(--blue); white-space: nowrap; display: inline-block; }
.hero__title .mark svg { position: absolute; left: 0; bottom: -10px; width: 100%; height: 18px; fill: none; stroke: var(--sun); stroke-width: 7; stroke-linecap: round; }
.hero__smile { color: var(--coral); display: inline-block; transform: rotate(90deg) translateX(-4px); margin-left: 4px; }
.hero__lead { font-size: 19px; max-width: 540px; color: var(--ink-2); }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 36px; }
.hero__trust li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.t-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tone); color: var(--tone-ink); transform: rotate(-6deg); }
.hero__trust li:nth-child(2) .t-ic { transform: rotate(5deg); }
.t-ic .ic { width: 22px; height: 22px; }

.hero__media { position: relative; padding: 24px 0 40px 24px; }
.hero__sun { position: absolute; width: 74%; aspect-ratio: 1; right: -8%; top: -4%; border-radius: 50%; background: var(--lemon); }
.hero__frame {
  position: relative; aspect-ratio: 1 / 1.02; overflow: hidden;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  box-shadow: var(--shadow-lg); background: var(--sky);
  animation: morph 16s ease-in-out infinite alternate;
}
@keyframes morph {
  50% { border-radius: 54% 46% 56% 44% / 44% 56% 46% 54%; }
  100% { border-radius: 42% 58% 48% 52% / 56% 46% 54% 44%; }
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1s ease, transform 6s ease; }
.hero__img.is-active { opacity: 1; transform: scale(1); }

.hero__caption { position: absolute; left: 0; bottom: 0; width: min(330px, 80%); background: #fff; border-radius: 22px; padding: 16px 18px 14px; box-shadow: var(--shadow-lg); }
.hero__cap { display: none; color: var(--ink); }
.hero__cap.is-active { display: block; animation: capIn .5s ease; }
@keyframes capIn { from { opacity: 0; transform: translateY(6px); } }
.hero__cap small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.hero__cap strong { display: flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 600; font-size: 21px; }
.hero__cap .ic { width: 18px; height: 18px; color: var(--coral); }
.hero__cap:hover { color: var(--coral); }
.hero__dots { display: flex; gap: 6px; margin-top: 10px; }
.hero__dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; background: var(--line); transition: width .3s, background .3s; }
.hero__dots button.is-active { width: 28px; background: var(--coral); }

.hero__badge { position: absolute; right: -6px; top: 20%; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow-lg); transform: rotate(3deg); }
.hero__badge strong { display: block; font-family: var(--f-head); font-weight: 600; color: var(--ink); font-size: 18px; line-height: 1.1; }
.hero__badge small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.hero__badge-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mint); color: var(--mint-ink); }
.hero__badge-ic .ic { width: 22px; height: 22px; }
.hero__hand { position: absolute; right: 6%; bottom: 2px; transform: rotate(-6deg); font-size: 30px; color: var(--coral); }
.hero__doodle { position: absolute; left: -4px; top: 10%; width: 46px; height: 46px; fill: none; stroke: var(--blue); stroke-width: 1.3; stroke-linejoin: round; }

.strip {
  list-style: none; position: relative; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: 10px;
}
.strip li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; line-height: 1.3; }
.strip li + li { border-left: 1.5px dashed var(--line); }
.strip strong { display: block; color: var(--ink); font-size: 15.5px; }
.strip small { color: var(--muted); font-size: 13.5px; }
.strip__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--tone); color: var(--tone-ink); flex-shrink: 0; }
.strip__ic .ic { width: 24px; height: 24px; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.about__collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; height: 560px; }
.about__collage img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
.about__a { grid-row: 1 / 3; border-radius: 160px 160px var(--r-lg) var(--r-lg) !important; }
.about__b { border-radius: var(--r-lg) 90px var(--r-lg) var(--r-lg) !important; }
.about__c { border-radius: var(--r-lg) var(--r-lg) 90px var(--r-lg) !important; }
.sticker {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg);
  width: 124px; height: 124px; border-radius: 50%; background: var(--coral); color: #fff;
  display: grid; place-content: center; text-align: center; border: 6px solid var(--cream);
  box-shadow: var(--shadow);
}
.sticker strong { font-family: var(--f-head); font-size: 36px; line-height: 1; font-weight: 700; }
.sticker span { font-size: 13px; font-weight: 700; }
.ticks { list-style: none; display: grid; gap: 12px; margin: 26px 0 0; }
.ticks li { display: flex; gap: 12px; color: var(--ink-2); font-weight: 500; }
.ticks .ic { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); stroke-width: 2.6; margin-top: 2px; }

/* ---------- treatments (tabs) ---------- */
.treat { background: var(--sky); margin: 60px 0; }
.treat .wave-edge path { fill: var(--sky); }
.tabs { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.tabs__list { display: grid; gap: 10px; }
.tab {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 12px 16px 12px 12px; border-radius: 18px; border: 2px solid transparent;
  background: rgba(255, 255, 255, .55); color: var(--ink); font-weight: 700; font-size: 16px;
  transition: .2s;
}
.tab:hover { background: #fff; }
.tab.is-active { background: #fff; border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.tab__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tone, var(--sky)); color: var(--tone-ink, var(--blue)); flex-shrink: 0; }
.tab__ic .ic { width: 22px; height: 22px; }
.panel { display: none; }
.panel.is-active { display: grid; animation: capIn .4s ease; }
.tabs__panels .panel:not(.panel--plain) { grid-template-columns: .9fr 1.1fr; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 100%; }
.panel__img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.panel__body { padding: 40px 40px 36px; }
.panel__body h3 { font-size: 30px; }
.panel__body h3 a { color: var(--ink); }
.q-list { list-style: none; display: grid; gap: 8px; margin: 18px 0 26px; }
.q-list a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--tone); color: var(--ink); font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.q-list a:hover { color: var(--ink); filter: brightness(.97); }
.q-list span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--tone-ink); font-weight: 800; flex-shrink: 0; font-size: 14px; }

/* pill-tabs (kliniğimiz) */
.tabs--pills { display: block; }
.tabs--pills .tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 26px; background: #fff; padding: 6px; border-radius: 999px; width: fit-content; box-shadow: var(--shadow); }
.tabs--pills .tab { width: auto; padding: 10px 20px; border-radius: 999px; border: 0; background: transparent; font-size: 15.5px; }
.tabs--pills .tab.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.panel--plain.is-active { display: block; }

/* ---------- doctors ---------- */
.doctor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.doctor-card { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--tone); overflow: hidden; color: var(--ink); transition: transform .3s, box-shadow .3s; }
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.doctor-card__photo { position: relative; aspect-ratio: 1 / 1.12; overflow: hidden; }
.doctor-card__blob { position: absolute; left: 50%; bottom: -30%; width: 110%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #fff; opacity: .65; }
.doctor-card__photo img { position: absolute; left: 50%; bottom: 0; height: 92%; width: auto; max-width: none; transform: translateX(-50%); transform-origin: 50% 100%; transition: transform .4s; }
.doctor-card:hover .doctor-card__photo img { transform: translateX(-50%) scale(1.04); }
.doctor-card__body { position: relative; background: #fff; margin: 0 10px 10px; border-radius: 22px; padding: 18px 64px 18px 20px; }
.doctor-card__body h3 { font-size: 19px; margin: 0 0 2px; }
.doctor-card__body p { margin: 0; color: var(--tone-ink); font-weight: 700; font-size: 14.5px; }
.doctor-card__go { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; transition: .25s; }
.doctor-card__go .ic { width: 18px; height: 18px; }
.doctor-card:hover .doctor-card__go { background: var(--coral); transform: translateY(-50%) rotate(-35deg); }

/* ---------- service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.svc-grid--all { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-card { display: flex; flex-direction: column; background: var(--tone); border-radius: var(--r-lg); padding: 10px; color: var(--ink); transition: transform .3s, box-shadow .3s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.svc-card__img { display: block; aspect-ratio: 4 / 3.2; border-radius: 24px; overflow: hidden; background: rgba(255, 255, 255, .5); }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card:hover .svc-card__img img { transform: scale(1.05); }
.svc-card--noimg .svc-card__img { display: grid; place-items: center; color: var(--tone-ink); }
.svc-card__big { width: 38%; height: auto; aspect-ratio: 1; stroke-width: 1.1; opacity: .85; }
.svc-card__body { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 30px 14px 14px; flex: 1; }
.svc-card__ic { position: absolute; top: -26px; left: 14px; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: #fff; color: var(--tone-ink); box-shadow: var(--shadow); }
.svc-card__ic .ic { width: 24px; height: 24px; }
.svc-card strong { font-family: var(--f-head); font-weight: 600; font-size: 21px; line-height: 1.2; }
.svc-card small { font-size: 15px; line-height: 1.55; color: var(--ink-2); flex: 1; }
.svc-card em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--tone-ink); margin-top: 4px; }
.svc-card em .ic { width: 16px; height: 16px; transition: transform .2s; }
.svc-card:hover em .ic { transform: translateX(4px); }

.pill-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 44px; }
.pill-cloud a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--cream); border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px; transition: .2s; }
.pill-cloud a .ic { width: 18px; height: 18px; color: var(--blue); }
.pill-cloud a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill-cloud a:hover .ic { color: var(--sun); }

/* ---------- reviews ---------- */
.reviews { background: var(--peach); margin-top: 60px; }
.reviews .wave-edge path { fill: var(--peach); }
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.reviews__note { max-width: 640px; font-size: 15px; margin: 12px 0 0; }
.reviews__nav { display: flex; gap: 10px; flex-shrink: 0; }
.reviews__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 20px; }
.reviews__track::-webkit-scrollbar { display: none; }
.review-card { margin: 0; scroll-snap-align: start; background: #fff; border-radius: var(--r-lg); padding: 30px 28px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.review-card__q { width: 40px; height: 40px; color: var(--coral); margin-bottom: 12px; }
.review-card blockquote { margin: 0 0 22px; font-size: 16px; line-height: 1.65; color: var(--ink-2); flex: 1; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1.5px dashed var(--line); }
.review-card strong { display: block; color: var(--ink); line-height: 1.2; }
.review-card small { color: var(--muted); font-weight: 600; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tone); color: var(--tone-ink); font-family: var(--f-head); font-weight: 700; font-size: 19px; }

.review-wall { columns: 3 320px; column-gap: 24px; }
.review-wall .review-card { break-inside: avoid; margin-bottom: 24px; }
.intro-note { max-width: 820px; margin: 0 auto 44px; text-align: center; font-size: 16.5px; background: #fff; border-radius: var(--r); padding: 20px 26px; box-shadow: var(--shadow); }

/* ---------- appointment band ---------- */
.appt { padding-top: 120px; }
.appt--compact { padding-top: 40px; }
.appt__card { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; background: var(--coral); border-radius: 40px; padding: 56px; overflow: hidden; color: #fff; }
.appt__card::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; left: -140px; top: -180px; background: rgba(255, 255, 255, .08); }
.appt__intro { position: relative; display: flex; flex-direction: column; }
.appt__intro .hand { color: var(--sun); font-size: 28px; transform: rotate(-3deg); margin-bottom: 8px; }
.appt__intro .h2 { color: #fff; }
.appt__intro p { color: rgba(255, 255, 255, .9); max-width: 420px; }
.appt__contacts { list-style: none; display: grid; gap: 10px; margin: 10px 0 26px; }
.appt__contacts a { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; }
.appt__contacts .ic { width: 22px; height: 22px; padding: 0; }
.appt__contacts a:hover { color: var(--sun); }
.appt__kid { margin-top: auto; width: 230px; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: 50%; border: 8px solid rgba(255, 255, 255, .22); }

.form { position: relative; background: #fff; border-radius: 28px; padding: 32px; display: grid; gap: 14px; color: var(--text); align-self: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--sky); background: #fff; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--coral); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--coral); flex-shrink: 0; }
.check.is-invalid span { color: var(--coral); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__msg { margin: 0; font-weight: 700; font-size: 15px; min-height: 1em; }
.form__msg.is-ok { color: var(--mint-ink); }
.form__msg.is-err { color: var(--coral-d); }
.form.is-loading button[type=submit] { opacity: .7; pointer-events: none; }

/* ---------- page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: 70px 0 74px; background: var(--sky); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 700; margin: 14px 0 0; max-width: 820px; }
.page-hero__note { margin: 12px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--coral); }
.crumbs span { color: var(--coral); }
.crumbs .ic { width: 14px; height: 14px; color: var(--muted); }
.page-hero__doodle { position: absolute; right: 9%; top: 50%; width: 170px; height: 170px; transform: translateY(-50%) rotate(12deg); fill: #fff; stroke: var(--blue); stroke-width: .5; z-index: 1; }
.page-hero__blob { position: absolute; border-radius: 50%; }
.page-hero__blob--a { width: 300px; height: 300px; right: 3%; top: -90px; background: var(--lemon); }
.page-hero__blob--b { width: 90px; height: 90px; right: 26%; bottom: -30px; background: var(--peach); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px; background: var(--cream); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }

/* ---------- article / prose ---------- */
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.article { background: #fff; border-radius: var(--r-lg); padding: 44px; box-shadow: var(--shadow); }
.article__cover { margin: -24px -24px 34px; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 8; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.article__head h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); }
.article__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--peach); color: var(--coral); flex-shrink: 0; transform: rotate(-5deg); }
.article__ic .ic { width: 28px; height: 28px; }
.article__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 40px; padding: 22px 24px; border-radius: 22px; background: var(--lemon); }
.article__foot p { margin: 0; font-weight: 700; color: var(--ink); }

.prose { color: var(--text); font-size: 17px; }
.prose h3 { position: relative; font-size: 24px; margin: 1.8em 0 .6em; padding-left: 20px; }
.prose h3::before { content: ""; position: absolute; left: 0; top: .32em; width: 8px; height: .8em; border-radius: 6px; background: var(--coral); }
.prose h4 { font-size: 19px; margin: 1.4em 0 .5em; }
.prose b, .prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 30px; }
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: .35em; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231b8fd6'%3E%3Cpath d='M7.5 3.5c-2.4 0-4 1.9-4 4.6 0 2.3 1 3.6 1.6 5.4.7 2.2.9 7 2.9 7 1.6 0 1.6-4.6 4-4.6s2.4 4.6 4 4.6c2 0 2.2-4.8 2.9-7 .6-1.8 1.6-3.1 1.6-5.4 0-2.7-1.6-4.6-4-4.6-1.8 0-2.6 1-4.5 1s-2.7-1-4.5-1z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; position: relative; padding-left: 36px; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: .1em; width: 24px; height: 24px; border-radius: 50%; background: var(--sky); color: var(--blue); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.prose img { border-radius: var(--r); margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 10px 12px; }

/* ---------- sidebar ---------- */
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 22px; }
.side-box { background: #fff; border-radius: var(--r-lg); padding: 26px 18px 18px; box-shadow: var(--shadow); }
.side-box h4 { font-size: 21px; padding: 0 8px; margin-bottom: 12px; }
.side-list { list-style: none; display: grid; gap: 2px; }
.side-list a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: 15px; line-height: 1.3; }
.side-list a:hover { background: var(--cream); color: var(--ink); }
.side-list a.is-current { background: var(--ink); color: #fff; }
.side-list a.is-current .mini-ic { background: var(--coral); color: #fff; }
.side-cta { position: relative; background: var(--ink); color: #c9d6e8; border-radius: var(--r-lg); padding: 28px 24px 24px; overflow: hidden; display: grid; gap: 10px; }
.side-cta::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: -60px; top: -60px; background: rgba(255, 200, 69, .18); }
.side-cta .hand { color: var(--sun); }
.side-cta h4 { color: #fff; font-size: 22px; margin: 0; }
.side-cta p { margin: 0 0 6px; font-size: 14.5px; }

/* ---------- doctor detail ---------- */
.doctor-detail { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: start; }
.doctor-detail__photo { position: sticky; top: calc(var(--header-h) + 20px); background: var(--tone); border-radius: 40px; aspect-ratio: 1 / 1.25; overflow: hidden; }
.doctor-detail__photo img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 93%; width: auto; max-width: none; }
.doctor-detail__body .h2 { margin-bottom: 20px; }
.prose--bio p { margin-bottom: 1.2em; }

/* ---------- logos ---------- */
.logo-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.logo-grid li { background: #fff; border-radius: var(--r); padding: 18px 16px 14px; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; gap: 10px; transition: transform .25s; }
.logo-grid li:hover { transform: translateY(-4px); }
.logo-grid__img { display: grid; place-items: center; height: 96px; }
.logo-grid__img img { max-height: 96px; width: auto; max-width: 100%; object-fit: contain; }
.logo-grid__name { font-size: 13.5px; font-weight: 700; color: var(--ink-2); line-height: 1.3; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; margin-bottom: 56px; }
.info-cards { list-style: none; display: grid; gap: 14px; margin-top: 26px; }
.info-cards li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.info-cards__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--tone); color: var(--tone-ink); flex-shrink: 0; }
.info-cards__ic .ic { width: 24px; height: 24px; }
.info-cards h4 { font-size: 18px; margin: 2px 0 4px; }
.info-cards p { margin: 0; }
.contact__form { background: var(--ink); color: #c9d6e8; border-radius: 36px; padding: 40px; }
.contact__form h3 { color: #fff; font-size: 28px; }
.contact__form .form { padding: 26px; margin-top: 18px; }
.map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map iframe { width: 100%; height: 440px; border: 0; filter: saturate(.85); }

/* ---------- 404 ---------- */
.notfound__tooth { width: 120px; height: 120px; fill: var(--sky); stroke: var(--blue); stroke-width: .6; margin: 0 auto 20px; transform: rotate(-10deg); }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--ink); color: #b8c6da; margin-top: 140px; padding: 40px 0 0; font-size: 15.5px; }
.site-footer__wave { position: absolute; top: -79px; left: 0; width: 100%; height: 80px; }
.site-footer__wave path { fill: var(--ink); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.f-logo img { width: 220px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.f-title { color: #fff; font-size: 20px; margin-bottom: 18px; }
.f-links, .f-contact, .f-social { list-style: none; }
.f-links { display: grid; gap: 9px; }
.f-links a { color: #b8c6da; }
.f-links a:hover { color: var(--sun); }
.f-contact { display: grid; gap: 12px; }
.f-contact li { display: flex; gap: 12px; align-items: flex-start; }
.f-contact .ic { color: var(--sun); margin-top: 3px; width: 18px; height: 18px; }
.f-contact a { color: #fff; }
.f-contact a:hover { color: var(--sun); }
.f-social { display: flex; gap: 10px; margin-top: 18px; }
.f-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: .2s; }
.f-social a:hover { background: var(--coral); color: #fff; transform: translateY(-3px); }
.f-social .ic { width: 19px; height: 19px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: #fff; }
.site-footer__bottom a:hover { color: var(--sun); }

/* ---------- floating ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 10px; background: #25d366; color: #fff; border-radius: 999px; padding: 12px; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7); font-weight: 700; font-size: 15px; transition: .3s; }
.wa-float .ic { width: 28px; height: 28px; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .35s, padding .35s; }
.wa-float:hover { color: #fff; }
.wa-float:hover span { max-width: 200px; padding-right: 6px; }
.to-top { position: fixed; right: 30px; bottom: 96px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top .ic { width: 20px; height: 20px; }
.quick-bar { display: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1380px) {
  }
@media (max-width: 1240px) {
  .nav__list > li > a { padding: 10px 10px; }
}

@media (max-width: 1100px) {
  .hide-md { display: none !important; }
  .burger { display: inline-grid; }
  .site-header, .site-header.is-stuck { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fffaf3; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(380px, 88vw);
    background: var(--cream); padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 14px;
    transform: translateX(105%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s .35s; overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1); box-shadow: -20px 0 60px -20px rgba(19, 41, 75, .4); }
  .nav__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1.5px dashed var(--line); }
  .nav__foot { display: grid; gap: 14px; margin-top: auto; padding-top: 16px; }
  .nav__phone { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--ink); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__list > li { flex-wrap: wrap; }
  .nav__list > li > a { flex: 1; font-size: 17px; padding: 12px 10px; }
  .nav__list > li > a::after { display: none; }
  .nav__list > li > a.is-active { color: var(--coral); }
  .sub-toggle { width: 40px; height: 40px; border-radius: 12px; background: #fff; margin: 0; }
  .sub, .sub--mega {
    position: static; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none !important;
    box-shadow: none; background: #fff; display: none; grid-template-columns: 1fr; padding: 6px; margin: 4px 0 8px;
  }
  .has-sub.is-open > .sub { display: grid; }
  .has-sub.is-open .sub-toggle .ic { transform: rotate(180deg); }
  .has-sub:hover .sub-toggle .ic { transform: none; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 49; background: rgba(19, 41, 75, .45); opacity: 0; visibility: hidden; transition: .3s; }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }

  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { max-width: 600px; width: 100%; margin: 0 auto; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip li:nth-child(3) { border-left: 0; }
  .strip li:nth-child(n+3) { border-top: 1.5px dashed var(--line); }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__collage { max-width: 620px; width: 100%; margin: 0 auto; height: 480px; }
  .tabs { grid-template-columns: 1fr; }
  .tabs__list:not(.tabs--pills .tabs__list) { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 6px; scrollbar-width: none; }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tabs:not(.tabs--pills) .tab { width: auto; flex-shrink: 0; white-space: nowrap; box-shadow: none; }
  .tabs:not(.tabs--pills) .tab.is-active { box-shadow: 3px 3px 0 var(--ink); }
  .doctor-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid--all { grid-template-columns: repeat(2, 1fr); }
  .reviews__track { grid-auto-columns: calc((100% - 24px) / 2); }
  .appt__card { grid-template-columns: 1fr; padding: 44px; }
  .appt__kid { display: none; }
  .layout-side { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .doctor-detail { grid-template-columns: 1fr; gap: 40px; }
  .doctor-detail__photo { position: relative; top: 0; max-width: 420px; width: 100%; }
  .contact { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 68px; }
  :root { --header-h: 70px; }
  .container { padding: 0 18px; }
  .topbar { display: none; }
  .brand img { width: 190px; }
  .hide-sm { display: none !important; }
  .section { padding: 76px 0; }
  .section--tight { padding: 56px 0; }
  .sec-head { margin-bottom: 32px; }
  .sec-head--split { flex-direction: column; align-items: flex-start; }

  .hero { padding-top: 20px; }
  .hero__title { font-size: clamp(36px, 10.5vw, 48px); }
  .hero__lead { font-size: 17px; }
  .hero .btn--lg { padding: 14px 22px; font-size: 15.5px; }
  .hero__trust { gap: 14px; }
  .hero__trust li { width: 100%; }
  .hero__trust br { display: none; }
  .hero__media { padding: 10px 0 70px 0; }
  .hero__caption { width: 86%; left: 4%; }
  .hero__badge { right: 0; top: 6%; padding: 10px 12px; }
  .hero__hand { display: none; }
  .strip { grid-template-columns: 1fr; margin-top: 32px; }
  .strip li + li { border-left: 0; border-top: 1.5px dashed var(--line); }

  .about__collage { height: 380px; gap: 12px; }
  .sticker { width: 100px; height: 100px; }
  .sticker strong { font-size: 28px; }

  .treat { margin: 40px 0; }
  .panel.is-active:not(.panel--plain) { grid-template-columns: 1fr; }
  .panel__img { min-height: 0; aspect-ratio: 16 / 10; }
  .panel__body { padding: 26px 22px; }
  .panel__body h3 { font-size: 25px; }

  .doctor-grid { gap: 14px; }
  .doctor-card__body { padding: 14px 14px 14px 14px; margin: 0 6px 6px; border-radius: 18px; }
  .doctor-card__body h3 { font-size: 16px; }
  .doctor-card__body p { font-size: 13px; }
  .doctor-card__go { display: none; }

  .svc-grid, .svc-grid--all { grid-template-columns: 1fr; }
  .reviews__head { flex-direction: column; align-items: flex-start; }
  .reviews__track { grid-auto-columns: 88%; }

  .appt { padding-top: 90px; }
  .appt__card { padding: 30px 18px 18px; border-radius: 30px; gap: 24px; }
  .form { padding: 22px 18px; border-radius: 22px; }
  .form__row { grid-template-columns: 1fr; }

  .page-hero { padding: 44px 0 56px; }
  .page-hero__doodle { width: 100px; height: 100px; right: -10px; top: 30%; opacity: .7; }
  .page-hero__blob--a { width: 180px; height: 180px; right: -60px; }

  .article { padding: 26px 20px; border-radius: 24px; }
  .article__cover { margin: -12px -12px 24px; border-radius: 18px; }
  .prose h3 { font-size: 21px; }
  .sidebar { grid-template-columns: 1fr; }

  .contact__form { padding: 26px 16px 16px; border-radius: 28px; }
  .contact__form .form { padding: 20px 16px; }
  .map iframe { height: 320px; }

  .site-footer { margin-top: 110px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bottom { flex-direction: column; }

  .wa-float, .to-top { display: none; }
  .quick-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.2fr;
    gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px); box-shadow: 0 -8px 24px -12px rgba(19, 41, 75, .3);
  }
  .quick-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 8px; border-radius: 14px; background: var(--sky); color: var(--ink); font-weight: 700; font-size: 14.5px; }
  .quick-bar .ic { width: 20px; height: 20px; }
  .quick-bar .is-wa { background: #dcf8e7; color: #128c4a; }
  .quick-bar .is-cta { background: var(--coral); color: #fff; }
}

@media (max-width: 420px) {
  .doctor-grid { grid-template-columns: 1fr 1fr; }
  .about__collage { height: 320px; }
}
.nowrap { white-space: nowrap; }
.reviews__track blockquote { display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; flex: 0 1 auto; margin-bottom: auto; }
.reviews__track .review-card figcaption { margin-top: 22px; }

.nav-open .quick-bar, .nav-open .wa-float, .nav-open .to-top { display: none; }

/* ---------- Hekimler: 3'lü düzen + carousel ---------- */
.doctor-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.doctor-card__photo { aspect-ratio: 1 / 1; }
.doctor-card__photo.is-cutout img { height: 94%; }
.doctor-card__photo.is-framed { margin: 10px 10px 0; border-radius: 24px; }
.doctor-card__photo.is-framed .doctor-card__blob { display: none; }
.doctor-card__photo.is-framed img { inset: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform: none; transform-origin: 50% 30%; }
.doctor-card:hover .doctor-card__photo.is-framed img { transform: scale(1.04); }
.doctor-card__body { margin-top: 10px; }
.doctor-card__body h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 56px) / 3); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 16px; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__track .doctor-card:hover { transform: translateY(-4px); }
.carousel__nav { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }

.doctor-detail__photo.is-framed img { inset: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transform: none; }
.doctor-detail__photo.is-framed .doctor-card__blob { display: none; }

@media (max-width: 1100px) {
  .doctor-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel__track { grid-auto-columns: calc((100% - 28px) / 2); }
}
@media (max-width: 760px) {
  .doctor-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .carousel__track { grid-auto-columns: 72%; gap: 14px; }
  .doctor-card__photo.is-framed { margin: 6px 6px 0; border-radius: 18px; }
  .doctor-card__body { margin-top: 6px; }
  .doctor-card__body h3 { white-space: normal; }
}
.about__b, .about__c { object-position: 50% 25%; }

/* ---------- Yönetmelik bilgilendirme alanları ---------- */
.site-footer__legal { padding: 18px 24px 4px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; line-height: 1.6; opacity: .85; }
.site-footer__legal p { margin: 0 0 8px; }
.site-footer__legal a { color: #fff; }
.doctor-detail__hours { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; padding: 14px 18px; background: var(--sky, #eaf4ff); border-radius: 16px; font-size: 15px; }
.doctor-detail__hours .ic { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--coral); }

/* ---------- Form doğrulama kodu ---------- */
.captcha { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
.captcha__field input { text-transform: uppercase; letter-spacing: .18em; font-weight: 700; }
.captcha__field input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.captcha__box { display: flex; align-items: center; gap: 8px; }
.captcha__img { display: block; width: 170px; height: 54px; border-radius: 14px; border: 1.5px solid #e3ebf3; background: #f6f9fd; }
.captcha__refresh { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sky); color: var(--ink); cursor: pointer; transition: transform .3s; }
.captcha__refresh:hover { transform: rotate(-90deg); }
.captcha__refresh svg { width: 20px; height: 20px; }
@media (max-width: 520px) {
  .captcha { grid-template-columns: 1fr; }
}

/* ---------- Mobil düzeltmeler ---------- */
html { scroll-padding-top: calc(var(--header-h, 80px) + 16px); scroll-padding-bottom: 90px; }

/* Klinik kolajı: satırlar fotoğrafın doğal yüksekliğine göre büyümesin */
.about__collage { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.about__collage img { min-height: 0; min-width: 0; }

.carousel__nav--mobile { display: none; }

@media (max-width: 760px) {
  /* Yukarı çık: hızlı erişim çubuğunun üstünde */
  .to-top { display: grid; right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 44px; height: 44px; z-index: 55; box-shadow: 0 10px 24px -8px rgba(19, 41, 75, .45); }

  /* Klavye açıkken alt çubuk ve yukarı çık gizlensin (alanın üstüne binmesin) */
  .is-typing .quick-bar, .is-typing .to-top { display: none; }
  .is-typing { padding-bottom: 0; }

  /* Burger menü tam ekran */
  .nav { width: 100%; left: 0; right: 0; padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); }
  .nav.is-open { box-shadow: none; }

  /* Klinik kolajı oransal */
  .about__collage { height: auto; aspect-ratio: 1 / 1.02; max-height: 520px; }

  /* Tedavi sekmeleri: kaydırmadan hepsi görünsün (2 sütun) */
  .tabs__list:not(.tabs--pills .tabs__list) { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; gap: 8px; padding-bottom: 0; }
  .tabs:not(.tabs--pills) .tab { width: 100%; white-space: normal; gap: 8px; padding: 8px 10px 8px 8px; font-size: 13.5px; line-height: 1.25; border-radius: 14px; min-height: 52px; }
  .tabs:not(.tabs--pills) .tab__ic { width: 34px; height: 34px; border-radius: 11px; }
  .tabs:not(.tabs--pills) .tab__ic .ic { width: 18px; height: 18px; }
  .tabs:not(.tabs--pills) .tab.is-active { box-shadow: 3px 3px 0 var(--ink); }

  /* Hekimler: tek sütun, ad soyad tek satır */
  .doctor-grid { grid-template-columns: 1fr; gap: 20px; max-width: 420px; margin: 0 auto; }
  .carousel__track { grid-auto-columns: 100%; gap: 16px; }
  .carousel__nav--mobile { display: flex; }
  .doctor-card__body { padding: 16px 60px 16px 18px; margin: 0 8px 8px; }
  .doctor-card__body h3 { white-space: nowrap; font-size: 19px; }
  .doctor-card__body p { font-size: 14.5px; }
  .doctor-card__go { display: grid; width: 36px; height: 36px; right: 12px; }
  .doctor-card__photo { aspect-ratio: 1 / .95; }
}
@media (max-width: 420px) {
  .doctor-grid { grid-template-columns: 1fr; }
}

/* Kliniğimiz sekmeleri: mobilde eşit 3 sütun, tek satır */
@media (max-width: 760px) {
  .tabs--pills .tabs__list { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: 4px; padding: 5px; border-radius: 18px; flex-wrap: nowrap; }
  .tabs--pills .tab { width: 100%; justify-content: center; text-align: center; padding: 11px 4px; border-radius: 14px; font-size: 14px; white-space: nowrap; }
}
@media (max-width: 340px) {
  .tabs--pills .tab { font-size: 12.5px; padding: 10px 2px; }
}

/* =========================================================
   Responsive denetim düzeltmeleri (tablet + küçük ekran)
   ========================================================= */

/* Uzun e-posta / kelimeler sütunu genişletmesin */
.contact > *, .about__grid > *, .appt__card > *, .doctor-detail > *, .layout-side > * { min-width: 0; }
.info-cards p, .info-cards a, .f-contact a, .f-contact span { overflow-wrap: anywhere; }
.prose { overflow-wrap: break-word; }

/* Tablet (dikey ve yatay): 761–1100 px */
@media (min-width: 761px) and (max-width: 1100px) {
  /* Tedavi sekmeleri: kaydırmasız 3 sütun */
  .tabs__list:not(.tabs--pills .tabs__list) { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 10px; padding-bottom: 0; }
  .tabs:not(.tabs--pills) .tab { width: 100%; white-space: normal; line-height: 1.25; font-size: 15px; }

  /* Hizmet yan menüsü: kutular kendi yüksekliğinde kalsın */
  .sidebar { align-items: start; }

  /* Hekim detay: fotoğraf solda, bilgi sağda */
  .doctor-detail { grid-template-columns: minmax(240px, 38%) 1fr; gap: 36px; }
  .doctor-detail__photo { position: sticky; top: calc(var(--header-h) + 20px); max-width: none; }

  /* Randevu bandı: form öncesi gereksiz boşluk olmasın */
  .appt__contacts { margin-bottom: 0; }
  .appt__card { gap: 32px; }

  /* Altbilgi son satırı yüzen butonların altında kalmasın */
  .site-footer__bottom { padding-bottom: 90px; }
}

/* Yatay tablet / küçük dizüstü: 900–1100 px → iki sütunlu düzenler geri gelsin */
@media (min-width: 900px) and (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 32px; }
  .hero__title { font-size: clamp(40px, 5vw, 54px); }
  .hero__lead { font-size: 17px; }
  .hero__trust { gap: 14px 20px; margin-top: 28px; }
  .hero__media { max-width: none; padding: 16px 0 40px 8px; }

  .about__grid { grid-template-columns: 1fr 1.05fr; gap: 40px; }
  .about__collage { height: 460px; max-width: none; }

  .appt__card { grid-template-columns: .9fr 1.1fr; padding: 44px 36px; }
  .appt__kid { display: none; }

  .contact { grid-template-columns: .9fr 1.1fr; gap: 32px; }
}

/* Küçük telefonlar (≤400 px): hekim adı sığsın */
@media (max-width: 400px) {
  .doctor-card__body h3 { font-size: 17px; }
  .doctor-card__body { padding-right: 54px; }
}
@media (max-width: 340px) {
  .doctor-card__body h3 { font-size: 15.5px; }
}

/* KVKK tablosu: dar ekranda alt alta */
@media (max-width: 600px) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose tr { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
  .prose td { border: 0; }
  .prose td:first-child { background: var(--sky); font-weight: 600; }
}

/* Kliniğimiz: sekme değişince menü yerinde kalsın (dikey ortalama yerine üstten hizala) */
.about__grid--top { align-items: start; }
@media (min-width: 1101px) {
  .about__grid--top .about__collage { position: sticky; top: calc(var(--header-h, 80px) + 24px); }
}

/* WhatsApp butonu: kapalıyken ikon dairenin tam ortasında (boş span'in gap'i sağda boşluk bırakıyordu) */
.wa-float { gap: 0; }
.wa-float span { padding-left: 0; }
.wa-float:hover span { padding-left: 10px; padding-right: 6px; }
@media (min-width: 761px) {
  /* Yukarı çık butonu WhatsApp ile aynı dikey eksende */
  .to-top { right: 25px; }
}

/* Yukarı çık: sayfa ilerleme halkası */
.to-top { width: 52px; height: 52px; position: fixed; }
.to-top .ic { position: relative; z-index: 1; transition: transform .25s; }
.to-top:hover .ic { transform: translateY(-3px); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.to-top__ring circle { fill: none; stroke-width: 3; }
.to-top__track { stroke: rgba(19, 41, 75, .1); }
.to-top__bar { stroke: var(--coral); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .12s linear; }
@media (min-width: 761px) {
  .to-top { right: 22px; } /* 52px: WhatsApp ile aynı eksen */
}
@media (max-width: 760px) {
  .to-top { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top__bar { transition: none; }
}
