/* =========================================================
   Usmanov Dental Clinic — стили сайта стоматологической клиники
   ========================================================= */

:root {
  --c-primary: #23787a;
  --c-primary-dark: #1a5f61;
  --c-primary-soft: #e4f1f0;
  --c-primary-softer: #f2f8f8;
  --c-text: #1d2a2e;
  --c-muted: #5d6d71;
  --c-border: #e1e9ea;
  --c-bg: #ffffff;
  --c-bg-alt: #f5f8f8;
  --c-footer: #19292c;
  --c-error: #b4361c;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 50, 55, .04), 0 8px 24px rgba(20, 50, 55, .06);
  --shadow-lg: 0 2px 4px rgba(20, 50, 55, .05), 0 18px 40px rgba(20, 50, 55, .10);
  --container: 1180px;
  --header-h: 76px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 3.2vw + 1rem, 3.1rem); }
h2 { font-size: clamp(1.6rem, 1.6vw + 1rem, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(35, 120, 122, .45); outline-offset: 2px; border-radius: 6px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--alt { background: var(--c-bg-alt); }
.section--tight { padding: 56px 0; }
.muted { color: var(--c-muted); }
.lead { font-size: 1.125rem; color: var(--c-muted); max-width: 640px; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon--sm { width: 18px; height: 18px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 14px;
}

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--c-muted); font-size: 1.05rem; margin: 0; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head--row > div { max-width: 680px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--c-text); border-color: var(--c-border); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--light { background: #fff; color: var(--c-primary-dark); }
.btn--light:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(20, 50, 55, .06); }
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--c-text); flex-shrink: 0; }
.logo:hover { color: var(--c-text); }
.logo__mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--c-primary);
  color: #fff;
  display: grid; place-items: center;
}
.logo__mark .icon { width: 24px; height: 24px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 1.1rem; }
.logo__text small { font-weight: 500; font-size: .72rem; color: var(--c-muted); letter-spacing: .02em; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--c-text); font-weight: 500; font-size: .95rem; position: relative; padding: 6px 0; }
.nav a:hover { color: var(--c-primary); }
.nav a[aria-current="page"] { color: var(--c-primary); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--c-primary);
}
.nav__extra { display: none; }

.header__actions { display: flex; align-items: center; gap: 20px; }
.header__phone { display: flex; flex-direction: column; line-height: 1.2; color: var(--c-text); font-weight: 700; }
.header__phone small { font-weight: 500; font-size: .75rem; color: var(--c-muted); }
.header__phone:hover { color: var(--c-primary); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 50%;
  width: 20px; height: 2px; margin-left: -10px;
  background: var(--c-text); border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.burger span { top: 50%; margin-top: -1px; }
.burger span::before, .burger span::after { content: ""; left: 0; margin: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); background: var(--c-text); }
.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); background: var(--c-text); }

/* ---------- Hero (home) ---------- */
.hero {
  padding: 72px 0 88px;
  background: linear-gradient(180deg, var(--c-primary-softer) 0%, #fff 100%);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--c-border);
}
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-size: 1.5rem; color: var(--c-text); }
.hero__facts span { color: var(--c-muted); font-size: .9rem; }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: auto; }
.hero__badge {
  position: absolute; left: 0; bottom: 36px;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.hero__badge .icon { color: var(--c-primary); width: 28px; height: 28px; }
.hero__badge div { display: flex; flex-direction: column; line-height: 1.3; }
.hero__badge span { font-size: .85rem; color: var(--c-muted); }

/* ---------- Inner page head ---------- */
.page-head { padding: 52px 0 48px; background: var(--c-primary-softer); border-bottom: 1px solid var(--c-border); }
.page-head h1 { margin-bottom: 12px; }
.page-head .lead { margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--c-muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-primary); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
}

.icon-circle {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: grid; place-items: center;
  margin-bottom: 20px;
}

.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--c-muted); margin: 0; font-size: .95rem; }

.service-card {
  display: flex; flex-direction: column;
  color: var(--c-text);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.service-card:hover { color: var(--c-text); box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.service-card p { color: var(--c-muted); font-size: .95rem; flex-grow: 1; }
.service-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--c-border);
}
.service-card__price { font-weight: 700; color: var(--c-primary); }
.service-card__foot .icon { color: var(--c-muted); width: 20px; height: 20px; transition: transform .2s, color .2s; }
.service-card:hover .service-card__foot .icon { color: var(--c-primary); transform: translateX(3px); }

/* ---------- Doctors ---------- */
.doctor-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.doctor-card__photo { aspect-ratio: 4 / 4.2; background: var(--c-primary-soft); overflow: hidden; }
.doctor-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card__body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.doctor-card__name { font-size: 1.15rem; margin-bottom: 4px; }
.doctor-card__role { color: var(--c-primary); font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.doctor-card__exp {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .875rem; color: var(--c-muted);
  margin-bottom: 16px;
}
.doctor-card__edu { font-size: .875rem; color: var(--c-muted); margin-bottom: 18px; }
.doctor-card .tags { margin-bottom: 22px; }
.doctor-card .btn { margin-top: auto; }

.photo-credit { margin: 20px 0 0; font-size: .8rem; color: var(--c-muted); }
.photo-credit a { color: var(--c-muted); text-decoration: underline; text-underline-offset: 2px; }
.photo-credit a:hover { color: var(--c-primary); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  font-size: .8rem;
  color: var(--c-muted);
}
.tag--accent { background: var(--c-primary-soft); border-color: transparent; color: var(--c-primary-dark); font-weight: 600; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__num {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  color: var(--c-primary);
  background: #fff;
  border: 2px solid var(--c-primary-soft);
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--c-muted); font-size: .95rem; margin: 0; }

/* ---------- Before / after ---------- */
.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 12px;
  background: var(--c-bg-alt);
  user-select: none;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__line {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, .25);
  pointer-events: none;
}
.compare__handle {
  position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
  display: grid; place-items: center;
  color: var(--c-primary);
}
.compare__handle .icon { width: 20px; height: 20px; }
.compare__label {
  position: absolute; top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(25, 41, 44, .65);
  color: #fff;
  font-size: .75rem; font-weight: 600;
  pointer-events: none;
}
.compare__label--before { left: 12px; }
.compare__label--after { right: 12px; }
.compare input[type="range"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare:has(input:focus-visible) { outline: 3px solid rgba(35, 120, 122, .45); outline-offset: 2px; }

.work-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex; flex-direction: column;
}
.work-card[hidden] { display: none; }
.work-card__body { padding: 16px 12px 12px; display: flex; flex-direction: column; flex-grow: 1; }
.work-card__body .tag { align-self: flex-start; margin-bottom: 12px; }
.work-card__body h3 { margin-bottom: 12px; }
.work-card dl { margin: 0 0 16px; display: grid; gap: 8px; font-size: .92rem; }
.work-card dt { font-weight: 600; display: inline; }
.work-card dd { margin: 0; display: inline; color: var(--c-muted); }
.work-card__doctor {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
  font-size: .875rem;
  color: var(--c-muted);
  display: flex; align-items: center; gap: 8px;
}
.work-card__doctor .icon { color: var(--c-primary); }
.work-card__doctor a { color: var(--c-muted); text-decoration: underline; text-underline-offset: 2px; }
.work-card__doctor a:hover { color: var(--c-primary); }

/* ---------- Chips / filters ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: #fff;
  font-size: .9rem; font-weight: 500;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.filters { margin-bottom: 32px; }

/* ---------- Prices ---------- */
.price-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.price-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.price-aside__nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; }
.price-aside__nav a {
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--c-text);
  font-size: .95rem; font-weight: 500;
}
.price-aside__nav a:hover { background: var(--c-bg-alt); color: var(--c-primary); }
.price-aside__nav a.is-active { background: var(--c-primary-soft); color: var(--c-primary-dark); }

.search {
  position: relative;
  margin-bottom: 32px;
}
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--c-muted); width: 20px; height: 20px; }
.search input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
}
.search input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(35, 120, 122, .12); }

.price-group { margin-bottom: 44px; }
.price-group[hidden] { display: none; }
.price-group__title { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin-bottom: 16px; }
.price-group__title .icon-circle { width: 40px; height: 40px; border-radius: 10px; margin: 0; }
.price-group__title .icon-circle .icon { width: 20px; height: 20px; }
.price-list { border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 16px 24px;
  border-top: 1px solid var(--c-border);
}
.price-row:first-child { border-top: 0; }
.price-row[hidden] { display: none; }
.price-row:hover { background: var(--c-primary-softer); }
.price-row__name small { display: block; color: var(--c-muted); font-size: .85rem; }
.price-row__value { font-weight: 700; white-space: nowrap; }
.price-empty { padding: 32px; text-align: center; color: var(--c-muted); border: 1px dashed var(--c-border); border-radius: var(--radius); }
.price-empty[hidden] { display: none; }

.note {
  display: flex; gap: 14px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--c-primary-softer);
  border: 1px solid var(--c-primary-soft);
  font-size: .95rem;
  color: var(--c-muted);
}
.note .icon { color: var(--c-primary); margin-top: 2px; }
.note p { margin: 0; }

.payment { display: flex; align-items: flex-start; gap: 16px; }
.payment .icon-circle { margin: 0; flex-shrink: 0; }
.payment h3 { font-size: 1rem; margin-bottom: 4px; }
.payment p { margin: 0; font-size: .9rem; color: var(--c-muted); }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media img { border-radius: 20px; width: 100%; }
.split p { color: var(--c-muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat strong { display: block; font-size: clamp(2rem, 2vw + 1rem, 2.6rem); color: var(--c-primary); line-height: 1.1; margin-bottom: 6px; }
.stat span { color: var(--c-muted); font-size: .95rem; }

.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon {
  width: 22px; height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  margin-top: 2px;
}
.check-list strong { display: block; }
.check-list span { color: var(--c-muted); font-size: .95rem; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; aspect-ratio: 4 / 3; }

.license { display: flex; gap: 24px; align-items: center; }
.license .icon-circle { margin: 0; width: 64px; height: 64px; flex-shrink: 0; }
.license .icon-circle .icon { width: 30px; height: 30px; }
.license h3 { margin-bottom: 4px; }
.license p { margin: 0; color: var(--c-muted); }

/* ---------- Contacts ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-item { display: flex; gap: 16px; }
.contact-item .icon-circle { margin: 0; flex-shrink: 0; }
.contact-item h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p { margin: 0; color: var(--c-muted); }
.contact-item a { color: var(--c-text); font-weight: 600; }
.contact-item a:hover { color: var(--c-primary); }
.hours { display: grid; grid-template-columns: auto auto; gap: 2px 16px; color: var(--c-muted); }
.hours dt { margin: 0; }
.hours dd { margin: 0; color: var(--c-text); font-weight: 600; }

.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-bg-alt);
  height: 100%;
  min-height: 420px;
}
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

.route li { display: flex; gap: 12px; margin-bottom: 14px; }
.route li:last-child { margin-bottom: 0; }
.route .icon { color: var(--c-primary); margin-top: 2px; }
.route span { color: var(--c-muted); }

.requisites { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; font-size: .95rem; margin: 0; }
.requisites dt { color: var(--c-muted); }
.requisites dd { margin: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .875rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(35, 120, 122, .12);
}
.field.is-invalid input, .field.is-invalid select { border-color: var(--c-error); }
.field__error { display: none; font-size: .8rem; color: var(--c-error); }
.field.is-invalid .field__error { display: block; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--c-muted); cursor: pointer; }
.checkbox input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--c-primary); flex-shrink: 0; }
.checkbox.is-invalid span { color: var(--c-error); }

.form-success { text-align: center; padding: 24px 8px 8px; }
.form-success[hidden] { display: none; }
.form-success .icon-circle { margin: 0 auto 16px; width: 64px; height: 64px; border-radius: 50%; }
.form-success .icon-circle .icon { width: 30px; height: 30px; }
.form-success h3 { font-size: 1.3rem; }
.form-success p { color: var(--c-muted); margin: 0; }

/* ---------- CTA ---------- */
.cta {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 56px;
  border-radius: 24px;
  background: var(--c-primary);
  color: #fff;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .85); margin: 0; }
.cta__phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: #fff; font-weight: 700; font-size: 1.15rem; }
.cta__phone:hover { color: #fff; opacity: .85; }
.cta .form { background: #fff; color: var(--c-text); padding: 28px; border-radius: var(--radius); }
.cta .form-success { background: #fff; color: var(--c-text); padding: 32px 28px; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.footer { background: var(--c-footer); color: rgba(255, 255, 255, .72); padding: 64px 0 28px; font-size: .95rem; }
.footer a { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer .logo, .footer .logo:hover { color: #fff; margin-bottom: 18px; }
.footer .logo__text small { color: rgba(255, 255, 255, .55); }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer li { margin-bottom: 10px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}

/* ---------- Modal ---------- */
.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(15, 30, 32, .5); opacity: 0; transition: opacity .2s; }
.modal__dialog {
  position: relative;
  width: 100%; max-width: 500px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s, transform .2s;
}
.modal.is-open .modal__overlay { opacity: 1; }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__dialog h2 { font-size: 1.5rem; margin-bottom: 8px; }
.modal__dialog > p { color: var(--c-muted); font-size: .95rem; margin-bottom: 24px; }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
  display: grid; place-items: center;
}
.modal__close:hover { background: var(--c-bg-alt); color: var(--c-text); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header__inner { gap: 20px; }
  .nav { gap: 20px; }
  .header__phone small { display: none; }
}

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner, .split, .cta, .contact-layout { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; margin: 0 auto; }
  .split { gap: 40px; }
  .cta { padding: 40px; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .price-layout { grid-template-columns: 1fr; gap: 0; }
  .price-aside { position: static; }
  .price-aside__nav { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .price-aside__nav a { border: 1px solid var(--c-border); border-radius: 999px; padding: 7px 14px; font-size: .875rem; }
  .price-aside .note { display: none; }
}

@media (max-width: 960px) {
  .burger { display: block; }
  .header__phone { display: none; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 12px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 12px 24px rgba(20, 50, 55, .08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--c-border); font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav__extra { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
  .nav__extra a { border: 0; padding: 0; font-weight: 700; font-size: 1.15rem; }
  .header__actions { margin-left: auto; gap: 12px; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 60px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .hero__facts { gap: 24px; }
  .hero__media { max-width: 320px; }
  .hero__badge { bottom: 8px; padding: 12px 16px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:first-child { grid-column: 1 / -1; }
  .form-row { grid-template-columns: 1fr; }
  .cta { padding: 28px 20px; border-radius: 20px; }
  .cta .form { padding: 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .price-row { padding: 14px 16px; flex-direction: column; gap: 2px; }
  .license { flex-direction: column; align-items: flex-start; }
  .requisites { grid-template-columns: 1fr; gap: 0; }
  .requisites dd { margin-bottom: 10px; }
  .modal__dialog { padding: 32px 20px 24px; }
}

@media (max-width: 420px) {
  .header__actions .btn { display: none; }
  .logo__text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
