/* Elit Dent — светлый процедурный образ, золото бренда только на главном действии */
:root {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --raised: #eceef1;
  --line: rgba(21, 23, 26, 0.09);
  --line-strong: rgba(21, 23, 26, 0.16);
  --text: #15171a;
  --text-2: #474c54;
  --text-3: #5f646d;
  --accent: #d4a017;
  --accent-hover: #c2910f;
  --accent-ink: #8a6508;
  --star: #a87d0c;
  --on-accent: #15171a;
  --ok: #16a34a;
  --night: #121315;
  --night-2: #1b1d20;
  --night-line: rgba(242, 241, 238, 0.12);
  --night-text: #f2f1ee;
  --night-text-2: #b5b3ae;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: 20px;
  --container: 1200px;
  --header-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.icon { display: block; flex-shrink: 0; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--text);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 500 16px/1.25 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.12s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: var(--raised); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn-on-dark { background: transparent; border-color: rgba(242, 241, 238, 0.3); color: var(--night-text); }
.btn-on-dark:hover { background: rgba(242, 241, 238, 0.08); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.16s var(--ease);
}
.text-link:hover { text-decoration-color: currentColor; }

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.site-header.is-scrolled { background: var(--surface); border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-height: 44px;
  text-decoration: none;
}
.logo img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.logo-text { display: flex; flex-direction: column; gap: 4px; }
.logo-name { font-size: 18px; font-weight: 500; line-height: 1; }
.logo-sub { font-size: 14px; line-height: 1; color: var(--text-3); }

.nav { display: none; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--raised); }

.lang {
  display: flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.lang button {
  min-width: 48px;
  height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3);
  font: 500 14px/1 var(--mono);
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--raised); color: var(--text); }
html:not(.js) .lang { display: none; }

.header-lang, .header-cta { display: none; }

.menu-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
html:not(.js) .menu-btn { display: none; }

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 49;
  max-height: calc(100svh - var(--header-h));
  overflow-y: auto;
  padding: 8px var(--pad) 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.mobile-menu nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  text-decoration: none;
}
.mobile-menu .lang { margin-top: 20px; width: max-content; }
.mobile-menu-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  min-height: 44px;
  font: 500 17px/1 var(--mono);
  text-decoration: none;
}

@media (min-width: 1100px) {
  .nav { display: flex; gap: 2px; }
  .header-lang, .header-cta { display: flex; }
  .menu-btn, .mobile-menu { display: none !important; }
  .header-inner { gap: 24px; }
}

/* Первый экран */
.hero {
  position: relative;
  display: grid;
  gap: 32px;
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--pad));
  margin-inline: auto;
  padding: 24px var(--pad) 48px;
}
.hero-text { position: relative; z-index: 1; }
.hero-meta {
  font: 400 15px/1.4 var(--mono);
  color: var(--text-3);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(34px, 3.4vw + 18px, 60px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 500;
  text-wrap: balance;
}
.hero-lead {
  margin-top: 20px;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 1.4;
}
.hero-facts .icon { color: var(--text-3); }
.hero-facts .star { color: var(--star); }
.hero-facts .muted { color: var(--text-3); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
@media (max-width: 479px) {
  .hero .hero-actions { flex-wrap: nowrap; gap: 8px; }
  .hero .hero-actions .btn-primary { flex: 1; min-width: 0; }
  .hero .hero-actions .btn-secondary { flex: none; width: 52px; padding: 0; }
  .hero .hero-actions .btn-secondary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.open-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font: 400 15px/1.4 var(--mono);
  color: var(--text-2);
}
.open-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
}
.open-status.is-closed .dot { background: var(--text-3); }
.night .open-status { color: var(--night-text-2); }
.night .open-status.is-closed .dot { background: var(--night-text-2); }

.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 5;
  max-height: 72svh;
  background: var(--raised);
}
.hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

@media (min-width: 640px) {
  .hero-media { max-width: 560px; }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
    min-height: calc(100svh - var(--header-h));
    padding-block: 32px 56px;
  }
  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    aspect-ratio: 4 / 5;
    max-height: calc(100svh - var(--header-h) - 88px);
    min-height: 440px;
    justify-self: end;
  }
  .hero-lead { font-size: 19px; }
  .hero h1 { max-width: 20ch; }
}

html.js .hero-text,
html.js .hero-media { animation: rise 0.5s var(--ease) both; }
html.js .hero-media { animation-delay: 0.06s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Секции */
.section { padding-block: 56px; }
.section-surface { background: var(--surface); }
.section-head { margin-bottom: 32px; }
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}
h2 {
  font-size: clamp(28px, 1.6vw + 20px, 40px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-lead {
  margin-top: 12px;
  max-width: 36em;
  font-size: 18px;
  color: var(--text-2);
}
h3 { font-weight: 500; }

@media (min-width: 960px) {
  .section { padding-block: 96px; }
  .section-head { margin-bottom: 48px; }
}

/* Почему мы */
.facts { border-top: 1px solid var(--line); }
.fact {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.fact-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
}
.fact h3 { font-size: 19px; line-height: 1.4; }
.fact p { margin-top: 4px; font-size: 16px; color: var(--text-2); }

@media (min-width: 760px) {
  .facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .fact { padding: 24px 0; }
}

/* Услуги */
.cards { display: grid; gap: 12px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.section-surface .card { background: var(--bg); }
.card h3 { font-size: 20px; line-height: 1.3; }
.card p { font-size: 16px; color: var(--text-2); }

@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card { padding: 28px; }
}

/* Цены */
.prices-grid { display: grid; gap: 32px; }
.prices-note { margin-top: 16px; font-size: 17px; color: var(--text-2); max-width: 28em; }
.pay { margin-top: 24px; display: grid; gap: 12px; }
.pay li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.pay .icon { color: var(--text-3); }
.prices-cta { margin-top: 32px; }
.price-list { border-top: 1px solid var(--line); }
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.price-name { font-size: 17px; }
.price-sub { display: block; margin-top: 4px; font-size: 15px; color: var(--text-3); }
.price-val {
  font: 500 17px/1.4 var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

@media (min-width: 960px) {
  .prices-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .price-row { padding: 24px 0; }
  .price-name, .price-val { font-size: 18px; }
}

/* Ночь */
.night { background: var(--night); color: var(--night-text); }
.night h2 { color: var(--night-text); }
.night-grid { display: grid; gap: 32px; align-items: center; }
.night-text p { margin-top: 16px; font-size: 18px; color: var(--night-text-2); max-width: 32em; }
.night-hours {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--night-line);
  font: 400 16px/1.5 var(--mono);
}
.night-hours a { text-decoration: none; }
.night-hours a:hover { text-decoration: underline; text-underline-offset: 4px; }
.night .hero-actions { margin-top: 28px; }
.night-hours .open-status { margin-top: 0; }
.night :focus-visible { outline-color: var(--night-text); }
.night-media {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 5;
  background: var(--night-2);
}
.night-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }

@media (min-width: 640px) { .night-media { max-width: 520px; } }
@media (min-width: 960px) {
  .night-grid { grid-template-columns: 7fr 5fr; gap: 64px; }
  .night-media { max-width: none; }
}

/* Шаги */
.steps { display: grid; gap: 12px; }
.step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: 500 16px/1 var(--mono);
  color: var(--text-2);
}
.step h3 { font-size: 19px; line-height: 1.35; }
.step p { margin-top: 8px; font-size: 16px; color: var(--text-2); }

@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* Врачи */
.doctors-grid { display: grid; gap: 32px; }
.doctor-list { margin-top: 32px; border-top: 1px solid var(--line); }
.doctor-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.doctor-list p { margin-top: 4px; font-size: 16px; color: var(--text-2); }
.doctor-list .doctor-name { margin-top: 0; font-size: 19px; font-weight: 500; line-height: 1.4; color: var(--text); }
.doctor-photo {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 5;
  background: var(--raised);
}
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.doctor-photo-wrap figcaption { margin-top: 12px; font-size: 15px; color: var(--text-3); }

@media (min-width: 640px) { .doctor-photo-wrap { max-width: 440px; } }
@media (min-width: 960px) {
  .doctors-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .doctor-photo-wrap { order: -1; max-width: none; position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Галерея */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 8px; }
.gallery figcaption { margin-top: 8px; font-size: 15px; color: var(--text-3); }
.g-item {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 5;
  background: var(--raised);
  cursor: zoom-in;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.16s var(--ease); }
.g-item:hover img { opacity: 0.92; }

@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 24px 20px; }
}

/* Просмотр фото */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.lightbox::backdrop { background: rgba(10, 11, 12, 0.92); }
.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 72px 16px 56px;
  touch-action: pan-y;
}
.lb-img {
  width: auto;
  height: auto;
  max-width: min(100%, 1280px);
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
}
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.16s var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.18); }
.lb-btn:focus-visible { outline-color: #fff; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-prev svg { transform: rotate(180deg); }
.lb-count { position: absolute; top: 24px; left: 20px; font: 400 15px/1 var(--mono); color: rgba(255, 255, 255, 0.8); }

/* Отзывы */
.rating { display: flex; align-items: center; gap: 16px; }
.rating-num { font: 500 48px/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.rating-meta { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--text-3); }
.stars { display: flex; gap: 2px; color: var(--star); }
.reviews { display: grid; gap: 12px; }
.review {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.section-surface .review { background: var(--bg); }
.review blockquote p { font-size: 16px; line-height: 1.6; }
.review-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.review-author { font-weight: 500; color: var(--text-2); }
.review-date { font-family: var(--mono); color: var(--text-3); }
.reviews-more { margin-top: 24px; }

@media (min-width: 640px) { .reviews { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 960px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Вопросы */
.faq-grid { display: grid; gap: 24px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { color: var(--text-3); transition: transform 0.18s var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list details p { padding: 0 40px 24px 0; font-size: 17px; color: var(--text-2); max-width: 40em; }

@media (min-width: 960px) {
  .faq-grid { grid-template-columns: 4fr 8fr; gap: 64px; align-items: start; }
}

/* Запись */
.book-grid { display: grid; gap: 16px; }
.chooser {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.chooser fieldset { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.chooser legend { margin-bottom: 12px; padding: 0; font-size: 17px; font-weight: 500; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.opt span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font-size: 16px;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.opt span:hover { background: var(--raised); }
.opt input:checked + span { background: var(--text); border-color: var(--text); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.preview-label { font-size: 15px; color: var(--text-3); }
.preview {
  margin: 8px 0 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 16px;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
html:not(.js) .js-only { display: none; }
.chooser .btn { width: 100%; }

.book-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.book-side h3 { font-size: 19px; }
.book-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font: 500 22px/1.2 var(--mono);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.book-phone:hover { text-decoration: underline; text-underline-offset: 5px; }
.book-side .hours { font: 400 16px/1.5 var(--mono); color: var(--text-2); }
.book-side .open-status { margin-top: 0; }
.book-side-list { display: grid; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.book-side-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--text-2); }
.book-side-list .icon { color: var(--text-3); }

@media (min-width: 960px) {
  .book-grid { grid-template-columns: 7fr 5fr; gap: 24px; align-items: stretch; }
  .chooser { padding: 32px; }
  .chooser .btn { width: auto; }
  .book-side { padding: 32px; }
}

/* Instagram */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ig-grid a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 5;
  background: var(--raised);
}
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.16s var(--ease); }
.ig-grid a:hover img { opacity: 0.88; }
.ig-handle { display: inline-flex; align-items: center; gap: 10px; }

@media (min-width: 960px) {
  .ig-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
}

/* Контакты */
.contacts-grid { display: grid; gap: 32px; }
.c-list { border-top: 1px solid var(--line); }
.c-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.c-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
}
.c-label { font-size: 15px; color: var(--text-3); line-height: 1.4; }
.c-value { margin-top: 2px; font-size: 17px; }
.c-value a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.c-value a:hover { text-decoration-color: currentColor; }
.c-value .mono { font-size: 17px; }
.c-note { margin-top: 4px; font-size: 15px; color: var(--text-3); }
.schedule { margin-top: 8px; display: grid; gap: 2px; max-width: 340px; }
.schedule li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 8px;
  margin-inline: -8px;
  border-radius: 6px;
  font-size: 16px;
  color: var(--text-2);
}
.schedule li .mono { font-size: 15px; }
.schedule li.is-today { background: var(--raised); color: var(--text); font-weight: 500; }
.map-wrap { display: flex; flex-direction: column; gap: 16px; }
.map {
  overflow: hidden;
  height: 340px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 960px) {
  .contacts-grid { grid-template-columns: 5fr 7fr; gap: 56px; align-items: stretch; }
  .map { height: auto; flex: 1; min-height: 480px; }
}

/* Подвал */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px;
  color: var(--text-3);
}
.footer-inner { display: grid; gap: 16px; }
.footer-name { font-size: 17px; font-weight: 500; color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.disclaimer { color: var(--text-2); }

@media (min-width: 960px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
}

/* Нижняя панель на телефоне */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
}
.mobile-bar {
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.mobile-bar.is-away { transform: translateY(110%); opacity: 0; pointer-events: none; }
.mobile-bar .btn-primary { flex: 1; min-width: 0; }
.mobile-bar .btn-call { flex: none; width: 52px; padding: 0; }

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
}

/* Появление при прокрутке */
html.reveal-on .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  transition-delay: calc(var(--d, 0) * 50ms);
}
html.reveal-on .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .hero-text,
  html.js .hero-media { animation: none; }
  html.reveal-on .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
