/* ADAM CLINIC — premium medical: white ground, navy, soft blue.
   Jost for headlines, Golos Text for body. */

:root {
  color-scheme: light;
  --white: #FFFFFF;
  --navy:  #0B1F3A;
  --navy-2:#153055;
  --blue:  #2E6BE6;
  --soft:  #EAF2FC;
  --soft-2:#F5F8FC;
  --slate: #536275;
  --mist:  #93A1B4;
  --line:  #E1E8F0;

  --display: 'Jost', 'Golos Text', 'Segoe UI', Arial, sans-serif;
  --body: 'Golos Text', 'Segoe UI', Roboto, Arial, sans-serif;

  --container: 1160px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 8vw, 112px);
  --r-card: 20px;
  --r-img: 28px;
  --shadow: 0 20px 50px -20px rgba(11,31,58,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0; background: var(--white); color: var(--navy);
  font-family: var(--body); font-size: 16.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, dt, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 20px; }
p { max-width: 64ch; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.link { color: var(--blue); font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 500; font-size: 15.5px; line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn--lg { padding: 16px 28px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-2); }
.btn--ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.is-stuck { border-bottom-color: var(--line); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .06em; }
.logo svg { color: var(--blue); }
.nav { display: flex; gap: 28px; font-size: 15.5px; font-weight: 500; }
.nav a { color: var(--slate); }
.nav a:hover { color: var(--navy); }
.header__right { display: flex; align-items: center; gap: 18px; }
.header__phone { font-weight: 500; font-variant-numeric: tabular-nums; }
.lang { display: flex; gap: 2px; background: var(--soft-2); border-radius: 999px; padding: 3px; }
.lang__btn { background: none; border: 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--slate); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.lang__btn.is-active { background: var(--white); color: var(--navy); box-shadow: 0 1px 3px rgba(11,31,58,.12); }
.burger { display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 6px; }
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; padding: 8px var(--gutter) 22px; border-top: 1px solid var(--line); background: var(--white); }
.mobile-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; }
.mobile-nav .btn { margin-top: 14px; border-bottom: 0; }
.mobile-nav.is-open { display: flex; }

/* Hero */
.hero { padding-block: clamp(32px, 5vw, 64px) 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { padding-block: clamp(16px, 4vw, 56px); animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.hero__lead { font-size: 19px; color: var(--slate); margin-top: 22px; max-width: 30em; line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__trust li { display: grid; gap: 2px; font-size: 14.5px; color: var(--slate); max-width: 20ch; }
.hero__trust strong { font-family: var(--display); font-size: 26px; color: var(--navy); font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }

.hero__media { position: relative; animation: rise .9s .1s cubic-bezier(.2,.8,.2,1) both; }
.hero__media img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; border-radius: var(--r-img); box-shadow: var(--shadow); }
.hero__seal {
  position: absolute; left: -18px; bottom: 40px;
  background: var(--navy); color: #fff; border-radius: 18px; padding: 18px 22px 16px;
  display: grid; gap: 2px; font-size: 13.5px; color: #C6D4E8; box-shadow: var(--shadow);
}
.hero__seal-big { font-family: var(--display); font-size: 40px; font-weight: 500; color: #fff; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding-block: var(--section); }
.section--tint { background: var(--soft-2); }
.section__head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); display: grid; gap: 14px; justify-items: start; }
.section__head p { color: var(--slate); font-size: 18px; line-height: 1.5; }
.section__head .btn { margin-top: 8px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head--row > div { display: grid; gap: 14px; }

/* Card grids */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px; display: grid; gap: 10px; align-content: start;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 8px; }
.card__icon svg { width: 24px; height: 24px; }
.card p { color: var(--slate); font-size: 15px; }

/* Offers */
.offer { background: var(--white); border-radius: var(--r-card); padding: 28px; display: grid; gap: 10px; align-content: start; border: 1px solid var(--line); }
.offer--placeholder { border-style: dashed; border-color: #C9D6E6; }
.offer__tag { justify-self: start; font-size: 13px; font-weight: 500; color: var(--blue); background: var(--soft); border-radius: 999px; padding: 4px 12px; }
.offer p { color: var(--slate); font-size: 15px; }
.offer .link { margin-top: 6px; }

/* Why */
.why__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.why__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-img); }
.why__list { display: grid; gap: 26px; margin-top: 32px; }
.why__list li { display: grid; grid-template-columns: 12px 1fr; gap: 6px 18px; }
.why__list li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); margin-top: 8px; grid-row: 1 / span 2; }
.why__list h3 { font-size: 19px; }
.why__list p { color: var(--slate); font-size: 15.5px; }

/* Doctors */
.doctor { background: var(--white); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); display: grid; }
.doctor img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.doctor h3 { font-size: 18px; padding: 18px 20px 2px; }
.doctor p { color: var(--slate); font-size: 14.5px; padding: 0 20px 20px; }

/* About */
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.about__copy { display: grid; gap: 18px; }
.about__copy p { color: var(--slate); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; margin-top: 18px; padding-top: 26px; border-top: 1px solid var(--line); }
.stats dt { font-family: var(--display); font-size: 36px; font-weight: 500; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats dd { color: var(--slate); font-size: 14.5px; margin-top: 6px; }
.about__media { display: grid; gap: 16px; }
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-img); }
.about__media img:last-child { margin-left: 15%; }

/* Reviews */
.rating { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; }
.rating strong { font-family: var(--display); font-size: 34px; font-weight: 500; line-height: 1; }
.rating > span { display: grid; font-size: 13.5px; color: var(--slate); }
.stars { color: #F2B84B; letter-spacing: 1px; font-size: 15px; }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; display: grid; gap: 18px; align-content: space-between; }
.review p { font-size: 16px; line-height: 1.6; }
.review p::before { content: "“"; color: var(--blue); font-family: var(--display); font-size: 28px; line-height: 0; margin-right: 4px; vertical-align: -6px; }
.review footer { font-weight: 500; font-size: 15px; }
.review footer span { color: var(--mist); font-weight: 400; margin-left: 8px; }

/* Locations + map */
.loc__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: stretch; }
.loc__list { display: grid; gap: 14px; align-content: start; }
.loc { border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 24px; display: grid; gap: 6px; background: var(--white); }
.loc p { color: var(--slate); font-size: 15px; }
.loc__hours { color: var(--navy) !important; font-weight: 500; }
.loc__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; color: var(--navy) !important; font-variant-numeric: tabular-nums; }
.loc--more { background: var(--soft); border-color: transparent; }
.map { position: relative; min-height: 420px; border-radius: var(--r-img); overflow: hidden; background: var(--soft); border: 1px solid var(--line); }
.map__fallback { position: absolute; inset: 0; display: grid; place-content: center; gap: 16px; text-align: center; color: var(--slate); }
.map__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; background: transparent; }

/* Prices */
.prices__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.prices { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); }
.prices th, .prices td { padding: 16px 24px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.prices tr:last-child th, .prices tr:last-child td { border-bottom: 0; }
.prices td { text-align: right; white-space: nowrap; color: var(--mist); }

/* Contacts + form */
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.contacts__info { display: grid; gap: 16px; }
.contacts__info > p { color: var(--slate); font-size: 18px; line-height: 1.5; }
.contacts__list { display: grid; gap: 18px; margin-top: 12px; }
.contacts__list dt { font-size: 14px; color: var(--mist); margin-bottom: 4px; }
.contacts__list dd { display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.contacts__list dd a:hover { color: var(--blue); }
.contacts__social a { background: var(--soft-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14.5px; }
.contacts__social a:hover { border-color: var(--blue); }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-img); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; box-shadow: var(--shadow); }
.form h3 { font-size: 24px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--slate); }
.field input, .field select { width: 100%; font: inherit; color: var(--navy); background: var(--soft-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--soft); background: var(--white); }
.field--row { grid-template-columns: 1fr 1fr; gap: 14px; }
.field--row > div { display: grid; gap: 6px; }
.form__hint { font-size: 13.5px; color: var(--mist); }
.form__error { font-size: 14.5px; color: #B23B32; }

/* Footer */
.footer { background: var(--navy); color: #C6D4E8; padding-block: 48px 40px; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px 40px; align-items: start; }
.footer .logo { color: #fff; }
.footer .logo svg { color: #7FB0FF; }
.footer__brand p { margin-top: 12px; }
.footer__nav, .footer__contact { display: grid; gap: 10px; align-content: start; }
.footer a:hover { color: #fff; }
.footer__license { grid-column: 1 / -1; max-width: 72ch; font-size: 13px; color: #93A6C4; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.footer__copy { font-size: 13px; color: #93A6C4; }

/* WhatsApp */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37,211,102,.35); }

/* Responsive (mobile-first breakpoints collapse downward) */
@media (max-width: 1080px) {
  .nav, .header__phone { display: none; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero__grid, .why__grid, .about__grid, .loc__grid, .prices__grid, .contacts__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 4 / 3; }
  .hero__seal { left: 16px; bottom: 16px; }
  .hero__copy { padding-top: 8px; }
  .why__media img { aspect-ratio: 16 / 10; }
  .about__media { grid-template-columns: 1fr 1fr; }
  .about__media img:last-child { margin-left: 0; margin-top: 24px; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .header__right .btn { display: none; }
  .burger { display: flex; }
  .header__row { height: 68px; }
}
@media (max-width: 560px) {
  .cards--3, .cards--4, .footer__grid, .about__media { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero__seal-big { font-size: 32px; }
  .wa { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}
