/* ============================================================
   Platinum Dent — імплантація зубів, Одеса
   ============================================================ */

/* -------- Design tokens -------- */
:root {
  --navy:      #1F2A44;
  --teal:      #2DBDB6;
  --teal-dark: #0E8074;
  --tint:      #E9F7F4;
  --white:     #FFFFFF;
  --soft-bg:   #F2F5F6;
  --muted:     #6C757D;
  --hairline:  #E6E8EC;
  --field-bg:  #F6F8F9;
  --on-navy:   #B8C7D9;

  --font: 'Gordita', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --gutter: 24px;

  --r-card: 22px;
  --shadow: 0 16px 40px rgba(31, 42, 68, .09);
}

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

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

/* -------- Shared components -------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--teal-dark);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; white-space: nowrap;
}
.pill--phone { background: var(--navy); color: var(--white); font-weight: 700; letter-spacing: .3px; }
.pill--phone:hover { background: #16203a; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn--lg { height: 56px; padding: 0 32px; font-size: 17px; }
.btn--block { width: 100%; height: 54px; }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-dark); }
.btn--primary:active { transform: scale(.99); }
.btn--ghost { color: var(--navy); font-weight: 600; }
.btn--ghost:hover { color: var(--teal-dark); }

/* logo via CSS mask (recolorable) */
.logo {
  display: block; width: 150px; height: 42px;
  background-color: var(--navy);
  -webkit-mask: url('../img/logo/header_logo-ua.svg') no-repeat left center;
  mask: url('../img/logo/header_logo-ua.svg') no-repeat left center;
  -webkit-mask-size: contain; mask-size: contain;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.nav.is-scrolled { box-shadow: 0 6px 24px rgba(31, 42, 68, .06); border-color: var(--hairline); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }

.nav__menu { display: flex; align-items: center; gap: 40px; }
.nav__menu a { font-weight: 600; color: var(--navy); position: relative; padding: 6px 0; }
.nav__menu a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--teal); transition: right .22s ease;
}
.nav__menu a:hover::after { right: 0; }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 18px;
  padding: 20px var(--gutter) 28px;
  border-top: 1px solid var(--hairline);
  background: var(--white);
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a { font-size: 18px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.mobile-menu .pill--phone, .mobile-menu .btn { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--soft-bg); overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  min-height: 640px; padding-block: 40px;
}
.hero__copy { max-width: 560px; }
.eyebrow + .hero__title { margin-top: 20px; }

.hero__title { font-size: 52px; line-height: 1.12; font-weight: 800; letter-spacing: -.5px; }
.hero__title .hl {
  display: inline-block; margin-top: 14px;
  background: var(--navy); color: var(--white);
  padding: 6px 24px; border-radius: 999px; line-height: 1.25;
}
.hero__sub { margin-top: 24px; font-size: 18px; color: var(--muted); max-width: 520px; }

.hero__cta { display: flex; align-items: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; }
.hero__trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; }

/* Hero visual */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.rings {
  position: absolute; inset: 0; margin: auto;
  width: 560px; height: 560px; max-width: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 33%, var(--teal) 33% calc(33% + 1px), transparent calc(33% + 1px)),
    radial-gradient(circle, transparent 0 46%, var(--teal) 46% calc(46% + 1px), transparent calc(46% + 1px)),
    radial-gradient(circle, transparent 0 60%, var(--teal) 60% calc(60% + 1px), transparent calc(60% + 1px));
  opacity: .28;
}
.hero__implant { position: relative; z-index: 1; width: min(64%, 420px); height: auto; filter: drop-shadow(0 30px 50px rgba(31,42,68,.22)); }

.chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--white); color: var(--navy); font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow);
}
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.chip--1 { top: 24%; left: -2%; }
.chip--2 { top: 44%; right: -4%; }
.chip--3 { bottom: 12%; left: 14%; }

/* ============================================================
   SECTION shared
   ============================================================ */
.section { padding-block: 96px; }
.section__head { margin-bottom: 48px; }
.eyebrow + .section__title { margin-top: 16px; }
.section__title { font-size: 36px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; }

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.s-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow);
}
.s-card__media { aspect-ratio: 4 / 3; background: var(--navy); }
.s-card__media img { width: 100%; height: 100%; object-fit: cover; }

.s-card__body { display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 28px; flex: 1; }
.s-card__title { font-size: 22px; font-weight: 700; }
.s-card__text { color: var(--muted); font-size: 15px; flex: 1; }

.s-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.price {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  background: var(--navy); color: var(--white); border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
}
.arrow-btn {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal); color: var(--white);
  transition: background-color .18s ease, transform .18s ease;
}
.arrow-btn:hover { background: var(--teal-dark); transform: scale(1.05); }

/* ============================================================
   WHY US
   ============================================================ */
.why__panel {
  background: var(--tint); border-radius: 28px;
  padding: 64px;
}
.why__title { font-size: 30px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 48px; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why__item { display: flex; flex-direction: column; }
.why__icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal); color: var(--white);
  margin-bottom: 20px;
}
.why__name { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.why__text { color: var(--muted); font-size: 15px; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--soft-bg); }
.process__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  list-style: none; padding: 0;
}
.p-card {
  position: relative;
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 24px 24px 26px;
  box-shadow: var(--shadow);
}
/* teal chevron connector between cards in a row */
.p-card:not(:nth-child(4n))::after {
  content: ''; position: absolute; right: -18px; top: 50%;
  width: 10px; height: 10px;
  border-top: 2px solid var(--teal); border-right: 2px solid var(--teal);
  transform: translateY(-50%) rotate(45deg);
}
.p-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--tint); color: var(--teal-dark);
  font-size: 20px; font-weight: 800; margin-bottom: 18px;
}
.p-card__title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.p-card__text { color: var(--muted); font-size: 14px; }

.process__note {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px; padding: 18px 26px; border-radius: 999px;
  background: var(--navy); color: var(--white); font-weight: 600; font-size: 15px;
}
.process__note svg { color: var(--teal); flex: none; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-band__box {
  position: relative; overflow: hidden;
  background: var(--navy); border-radius: 28px;
  padding: 64px;
}
.cta-band__rings {
  position: absolute; top: 50%; right: -80px; transform: translateY(-50%);
  width: 420px; height: 420px; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 40%, var(--teal) 40% calc(40% + 1px), transparent calc(40% + 1px)),
    radial-gradient(circle, transparent 0 55%, var(--teal) 55% calc(55% + 1px), transparent calc(55% + 1px)),
    radial-gradient(circle, rgba(45,189,182,.10) 0 40%, transparent 40%);
  opacity: .5;
}
.cta-band__content { position: relative; z-index: 1; max-width: 620px; }
.cta-band__title { color: var(--white); font-size: 32px; font-weight: 800; line-height: 1.2; letter-spacing: -.3px; }
.cta-band__sub { color: var(--on-navy); font-size: 17px; margin: 18px 0 28px; max-width: 520px; }

/* ============================================================
   DOCTORS
   ============================================================ */
.doctors { background: var(--soft-bg); }
.doctors__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.doctors__photo { border-radius: 24px; overflow: hidden; box-shadow: 0 24px 50px rgba(31,42,68,.16); }
.doctors__photo img { width: 100%; height: 100%; object-fit: cover; }

.eyebrow + .doctors__name { margin-top: 18px; }
.doctors__name { font-size: 38px; font-weight: 800; line-height: 1.15; letter-spacing: -.4px; }
.doctors__role { color: var(--muted); font-size: 17px; margin-top: 12px; }

.doctors__quote { margin: 24px 0 28px; }
.doctors__qmark { color: var(--teal); display: block; margin-bottom: 8px; }
.doctors__quote p { font-size: 18px; line-height: 1.65; color: var(--navy); max-width: 620px; }

.doctors__tags { display: flex; flex-wrap: wrap; gap: 12px; }
.doctors__tags li {
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px;
  background: var(--tint); color: var(--teal-dark); border-radius: 999px;
  font-weight: 600; font-size: 14px;
}

/* ============================================================
   CASES (before / after)
   ============================================================ */
.section__sub { color: var(--muted); font-size: 16px; margin-top: 12px; }

.cases__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.cases__nav { display: flex; gap: 12px; flex: none; }
.cases__arrow {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--navy);
  border: 1px solid var(--hairline);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.cases__arrow:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.cases__arrow:disabled { opacity: .4; cursor: default; }
.cases__arrow:disabled:hover { background: var(--white); color: var(--navy); border-color: var(--hairline); }

.cases__scroll {
  display: flex; gap: 28px;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 14px;
  scrollbar-width: thin; scrollbar-color: var(--hairline) transparent;
}
.cases__scroll::-webkit-scrollbar { height: 8px; }
.cases__scroll::-webkit-scrollbar-track { background: transparent; }
.cases__scroll::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 999px; }
.cases__scroll::-webkit-scrollbar-thumb:hover { background: #cfd4da; }

.case {
  flex: 0 0 auto; width: 560px; max-width: 86%; scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow);
}
.case__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case__ph { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1; }
.case__ph img { width: 100%; height: 100%; object-fit: cover; }
.case__label {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px;
  border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .5px;
}
.case__label--before { background: var(--navy); color: var(--white); }
.case__label--after { background: var(--teal); color: var(--white); }

.case__body { padding: 22px 6px 6px; }
.case__title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.case__text { color: var(--muted); font-size: 14px; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { background: var(--soft-bg); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.review {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 30px 28px; box-shadow: var(--shadow);
}
.review__stars { display: flex; gap: 4px; color: var(--teal); margin-bottom: 18px; }
.review__text { color: var(--navy); font-size: 15px; line-height: 1.65; flex: 1; }

.review__author { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.review__avatar {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tint); color: var(--teal-dark);
  font-weight: 700; font-size: 15px;
}
.review__name { font-weight: 700; font-size: 15px; }
.review__role { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ============================================================
   CONTACTS + FORM
   ============================================================ */
.contacts {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--white);
  padding-block: 96px;
}
.contacts__rings {
  position: absolute; left: -120px; bottom: -160px;
  width: 420px; height: 420px; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 45%, var(--teal) 45% calc(45% + 1px), transparent calc(45% + 1px)),
    radial-gradient(circle, transparent 0 62%, var(--teal) 62% calc(62% + 1px), transparent calc(62% + 1px));
  opacity: .3;
}
.contacts__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.contacts__title { color: var(--white); font-size: 38px; font-weight: 800; line-height: 1.15; letter-spacing: -.4px; margin-top: 18px; }
.contacts__sub { color: var(--on-navy); font-size: 17px; margin: 20px 0 32px; max-width: 480px; }
.contacts__checks { display: flex; flex-direction: column; gap: 16px; }
.contacts__checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contacts__checks svg { color: var(--teal); flex: none; }

.contacts__card {
  background: var(--white); color: var(--navy);
  border-radius: var(--r-card); padding: 36px 32px;
  box-shadow: 0 30px 70px rgba(0,0,0,.30);
}
.contacts__card-title { font-size: 24px; font-weight: 800; margin-bottom: 22px; }

/* ============================================================
   LOCATION
   ============================================================ */
.location__panel {
  position: relative; border-radius: 28px; overflow: hidden;
  background: var(--soft-bg); min-height: 460px;
}
.location__map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.15); }
.location__card {
  position: relative; z-index: 1;
  width: 400px; max-width: calc(100% - 48px);
  margin: 40px; padding: 32px;
  background: var(--white); border-radius: 22px;
  box-shadow: 0 24px 50px rgba(31,42,68,.16);
}
.loc-row { display: flex; align-items: flex-start; gap: 16px; }
.loc-row + .loc-row { margin-top: 28px; }
.loc-row__icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tint); color: var(--teal-dark);
}
.loc-row__label { color: var(--teal-dark); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.loc-row__value { font-size: 16px; font-weight: 600; color: var(--navy); }
.loc-row__value a:hover { color: var(--teal-dark); }

/* ============================================================
   THANK-YOU PAGE
   ============================================================ */
.thanks {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: var(--soft-bg); padding: 48px var(--gutter);
}
.thanks__logo { margin-bottom: 40px; -webkit-mask-position: center; mask-position: center; }
.thanks__icon {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 28px;
  background: var(--teal); color: var(--white);
  box-shadow: 0 16px 36px rgba(45,189,182,.4);
}
.thanks__title { font-size: 40px; font-weight: 800; letter-spacing: -.5px; }
.thanks__text { color: var(--muted); font-size: 18px; max-width: 460px; margin: 18px auto 0; }
.thanks__hours {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 24px; padding: 12px 22px; border-radius: 999px;
  background: var(--tint); color: var(--teal-dark); font-weight: 600; font-size: 15px;
}
.thanks__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 36px; }

@media (max-width: 480px) {
  .thanks__title { font-size: 28px; }
  .thanks__text { font-size: 16px; }
  .thanks__actions .btn { width: 100%; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.logo--light { background-color: var(--white); }

.footer { background: var(--navy); color: var(--on-navy); padding-block: 56px 32px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 32px; }
.footer__brand { max-width: 420px; }
.footer__brand .logo { margin-bottom: 22px; }
.footer__slogan { color: var(--on-navy); font-size: 15px; line-height: 1.7; }

.footer__social-label { color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.soc { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 500; padding: 6px 0; }
.soc + .soc { margin-top: 8px; }
.soc__icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: var(--white);
  transition: background-color .18s ease;
}
.soc:hover .soc__icon { background: var(--teal); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 28px; border-top: 1px solid rgba(184,199,217,.2);
  font-size: 14px; color: var(--on-navy);
}
.footer__policy:hover { color: var(--white); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--soft-bg); }
.about__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.eyebrow + .section__title { margin-top: 16px; }
.about__text { color: var(--muted); font-size: 17px; line-height: 1.75; margin-top: 22px; max-width: 560px; }
.about__slogan {
  margin-top: 28px; padding-left: 20px; border-left: 3px solid var(--teal);
  font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.35;
}

.about__photo { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 50px rgba(31,42,68,.18); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__cap {
  position: absolute; left: 20px; bottom: 20px;
  background: var(--white); border-radius: 16px; padding: 14px 20px;
  box-shadow: 0 12px 30px rgba(31,42,68,.18);
}
.about__cap-name { display: block; font-weight: 700; font-size: 17px; color: var(--navy); }
.about__cap-role { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

/* ============================================================
   WHY US — homepage (3 columns, 6 items)
   ============================================================ */
.why--home .why__grid { grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }

/* ============================================================
   STEPS (homepage process)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; list-style: none; padding: 0; }
.step {
  position: relative;
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 24px 22px 26px; box-shadow: var(--shadow);
}
.step:not(:last-child)::after {
  content: ''; position: absolute; right: -13px; top: 50%;
  width: 9px; height: 9px;
  border-top: 2px solid var(--teal); border-right: 2px solid var(--teal);
  transform: translateY(-50%) rotate(45deg);
}

/* ============================================================
   DIRECTIONS (services grid)
   ============================================================ */
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dir-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--r-card); padding: 32px 30px; box-shadow: var(--shadow);
}
.dir-card--feature { border-color: var(--teal); }
.dir-card__icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--tint); color: var(--teal-dark);
  margin-bottom: 22px;
}
.dir-card--feature .dir-card__icon { background: var(--teal); color: var(--white); }
.dir-card__title { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.dir-card__text { color: var(--muted); font-size: 15px; flex: 1; margin-bottom: 22px; }
.dir-card__link {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-weight: 600; font-size: 15px; color: var(--teal-dark);
}
.dir-card__link span { transition: transform .18s ease; }
.dir-card__link:hover span { transform: translateX(3px); }
.dir-card__link--accent { color: var(--teal-dark); font-weight: 700; }

/* ============================================================
   HERO — homepage variant
   ============================================================ */
.hero__visual--home .hero-badge--center {
  position: relative; z-index: 1;
  width: 150px; height: 150px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--teal);
  box-shadow: 0 24px 50px rgba(31,42,68,.16);
}
.hero__visual--home .chip { box-shadow: var(--shadow); }
.hero__pills { display: contents; }     /* desktop: pills float around the circle */
.chip--h1 { top: 12%; left: 3%; }       /* Терапія — 11 год */
.chip--h2 { top: 12%; right: 1%; }       /* Імплантація — 1 год */
.chip--h3 { top: 45%; right: -4%; }      /* Протезування — 3 год */
.chip--h4 { bottom: 14%; right: 4%; }    /* Хірургія — 5 год */
.chip--h5 { top: 45%; left: -2%; }       /* Ортодонтія — 9 год */
.chip--h6 { bottom: 12%; left: 6%; }     /* Гігієна — 7 год */

/* ============================================================
   FLOATING PHONE
   ============================================================ */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal); color: var(--white);
  box-shadow: 0 12px 30px rgba(45, 189, 182, .45);
  transition: background-color .18s ease, transform .18s ease;
}
.fab:hover { background: var(--teal-dark); transform: scale(1.05); }

/* ============================================================
   MODAL FORM
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(31, 42, 68, .55); backdrop-filter: blur(2px); }
.modal__box {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  background: var(--white); border-radius: var(--r-card);
  padding: 36px 32px 32px; box-shadow: 0 30px 70px rgba(31, 42, 68, .30);
  max-height: 92vh; overflow-y: auto;
  animation: modalIn .22s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.modal__close:hover { background: var(--soft-bg); color: var(--navy); }
.modal__title { margin-top: 14px; font-size: 26px; font-weight: 800; line-height: 1.2; }
.modal__sub { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ============================================================
   FORM
   ============================================================ */
.form { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  background: var(--field-bg); border: 1px solid var(--hairline); border-radius: 12px;
  font: inherit; color: var(--navy); resize: vertical;
  transition: border-color .16s ease, background-color .16s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #9AA3AD; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
.field input.is-invalid { border-color: #E5484D; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { margin-top: 4px; font-size: 13px; color: var(--muted); text-align: center; }
.form__msg { margin-top: 4px; padding: 12px 14px; border-radius: 12px; font-size: 14px; text-align: center; }
.form__msg--ok { background: var(--tint); color: var(--teal-dark); }
.form__msg--err { background: #FDECEC; color: #C0392B; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__title { font-size: 42px; }
  .services__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none !important; }
  .why--home .why__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
  .process__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .p-card::after { display: none !important; }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__menu, .nav__actions { display: none; }
  .burger { display: flex; }
  .nav__inner { height: 72px; }

  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-block: 32px 48px; gap: 12px; }
  .hero__visual { order: -1; min-height: 340px; }
  .rings { width: 400px; height: 400px; }
  .hero__title { font-size: 32px; }
  .hero__sub { font-size: 16px; }
  .chip--1 { left: 2%; }
  .chip--2 { right: 2%; }
  /* homepage hero: 3 pills left + 3 right of the implant */
  .hero__visual--home { min-height: 420px; }
  .hero__visual--home .rings { width: 280px; height: 280px; }
  .hero__visual--home .hero__implant { width: min(40%, 140px); }
  .hero__visual--home .chip { height: 34px; font-size: 12px; padding: 0 12px; }
  .chip--h1 { top: 6%;  left: 0; right: auto; bottom: auto; }   /* Терапія */
  .chip--h5 { top: 40%; left: 0; right: auto; bottom: auto; }   /* Ортодонтія */
  .chip--h6 { top: 74%; left: 0; right: auto; bottom: auto; }   /* Гігієна */
  .chip--h2 { top: 6%;  right: 0; left: auto; bottom: auto; }   /* Імплантація */
  .chip--h3 { top: 40%; right: 0; left: auto; bottom: auto; }   /* Протезування */
  .chip--h4 { top: 74%; right: 0; left: auto; bottom: auto; }   /* Хірургія */
  .hero__copy .eyebrow { font-size: 12px; letter-spacing: 1px; }

  .section { padding-block: 64px; }
  .section__head { margin-bottom: 32px; }
  .section__title { font-size: 27px; }
  .dir-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }

  .cases__head { margin-bottom: 28px; }
  .cases__arrow { width: 46px; height: 46px; }
  .case { width: 500px; max-width: 88%; }

  .why__panel { padding: 40px 24px; border-radius: 22px; }
  .why__title { font-size: 24px; margin-bottom: 32px; }
  .why__grid { grid-template-columns: 1fr; gap: 28px; }
  .why--home .why__grid { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; gap: 32px; }
  .about__photo { order: -1; max-width: 420px; }
  .about__slogan { font-size: 19px; }

  .process__grid { grid-template-columns: 1fr; }
  .process__note { align-items: flex-start; border-radius: 20px; }

  .cta-band__box { padding: 40px 24px; border-radius: 22px; }
  .cta-band__title { font-size: 25px; }
  .cta-band__sub { font-size: 15px; }
  .cta-band__rings { width: 300px; right: -140px; opacity: .35; }

  .doctors__inner { grid-template-columns: 1fr; gap: 32px; }
  .doctors__name { font-size: 28px; }
  .doctors__quote p { font-size: 16px; }

  .reviews__grid { grid-template-columns: 1fr; }

  .contacts { padding-block: 64px; }
  .contacts__inner { grid-template-columns: 1fr; gap: 36px; }
  .contacts__title { font-size: 28px; }
  .contacts__card { padding: 28px 22px; }

  .location .section__title { font-size: 22px; }
  .location__panel { min-height: 0; display: flex; flex-direction: column-reverse; background: none; }
  .location__map { position: static; height: 300px; border-radius: 22px; }
  .location__card { width: 100%; max-width: none; margin: 0 0 16px; padding: 26px 22px; }

  .footer__top { flex-direction: column; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .hero__copy .eyebrow { font-size: 11px; letter-spacing: 1px; }
  .hero__title { font-size: 28px; }
  .hero__cta .btn { width: 100%; }
  .chip { height: 36px; font-size: 13px; padding: 0 14px; }
  .location .section__title { font-size: 19px; white-space: nowrap; }
}
