/* DANTIST · премиум-стоматология · WEBCRAFT LAB · 06.05.2026 */

:root {
  --c-bg: #f4f6f8;          /* жемчужный фон */
  --c-bg-alt: #ffffff;       /* белый на акцентах */
  --c-card: #ffffff;
  --c-text: #0f1f33;          /* графит с синевой */
  --c-text-soft: #3a4a5c;
  --c-text-mute: #6b7b8e;     /* холодный серый */
  --c-accent: #1e3a5f;        /* глубокий navy — главный акцент */
  --c-accent-soft: #2d5285;   /* navy для hover */
  --c-gold: #1e3a5f;          /* тот же navy (без конкурирующих акцентов) */
  --c-line: #e1e5ea;
  --shadow-sm: 0 2px 8px rgba(15,31,51,.05);
  --shadow-md: 0 8px 24px rgba(15,31,51,.08);
  --shadow-lg: 0 16px 48px rgba(15,31,51,.12);
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-head: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-text: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: 1.4rem; font-weight: 600; }
em { font-style: italic; color: var(--c-accent); font-family: var(--f-head); }

a { color: var(--c-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--r-sm);
  font-weight: 500; font-size: 15px; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn-primary:hover { background: var(--c-accent-soft); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--c-card); color: var(--c-accent); border-color: var(--c-accent); }
.btn-secondary:hover { background: var(--c-accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--c-accent); border-color: var(--c-line); }
.btn-ghost:hover { border-color: var(--c-accent); }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 16px 24px;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--c-text); }
.logo-mark {
  width: 52px; height: 44px;
  display: grid; place-items: center;
  color: var(--c-accent);
  font-family: var(--f-display); font-style: italic;
  font-size: 46px; font-weight: 400; line-height: 1;
  letter-spacing: -2px;
  margin-right: -4px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.logo-text small { font-family: var(--f-text); font-size: 11px; color: var(--c-text-mute); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { color: var(--c-text-soft); font-size: 15px; font-weight: 500; }
.main-nav a:hover { color: var(--c-accent); }
.main-nav a.active { color: var(--c-accent); position: relative; }
.main-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--c-accent); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { color: var(--c-text); font-weight: 600; font-size: 16px; white-space: nowrap; }
.header-socials { display: flex; gap: 8px; }
.soc-sm { width: 36px; height: 36px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.header-cta { padding: 10px 20px; font-size: 14px; white-space: nowrap; }

/* Бургер + мобильное меню (на десктопе скрыты) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--c-accent);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 4px 24px 18px;
  background: rgba(244, 246, 248, 0.98);
  border-top: 1px solid var(--c-line);
}
.mobile-nav a {
  padding: 14px 2px; font-size: 17px; font-weight: 500; text-align: center;
  color: var(--c-text-soft); border-bottom: 1px solid var(--c-line);
}
.mobile-nav a:hover { color: var(--c-accent); }
.mobile-nav-phone { color: var(--c-text) !important; font-weight: 600 !important; }
.mobile-nav-cta {
  margin-top: 16px; text-align: center; border-bottom: 0 !important;
  padding: 13px !important; color: #fff !important;
}
.mobile-nav-socials { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.mobile-nav-socials a { padding: 0; border-bottom: 0; }

/* HERO */
.hero { padding: 80px 0 100px; background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-alt) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.hero-eyebrow { color: var(--c-gold); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { margin-bottom: 24px; }
.hero-lead { font-size: 19px; color: var(--c-text-soft); margin-bottom: 36px; max-width: 540px; }
.hero-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; padding: 22px 18px; background: var(--c-card); border-radius: var(--r-md); border: 1px solid var(--c-line); }
.hero-feature { text-align: center; }
.hero-feature strong { display: block; font-family: var(--f-head); font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; color: var(--c-accent); line-height: 1.1; margin-bottom: 6px; letter-spacing: -.02em; }
.hero-feature span { font-size: 12.5px; color: var(--c-text-mute); line-height: 1.35; display: block; white-space: nowrap; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-image-placeholder {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-soft) 100%);
  border-radius: var(--r-lg);
  display: grid; place-items: center;
  color: rgba(255,255,255,.5); font-size: 14px;
}
.hero-image {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3/4; object-fit: cover; object-position: center;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}

/* SECTIONS */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 16px; }
.section-lead { text-align: center; font-size: 17px; color: var(--c-text-soft); max-width: 680px; margin: 0 auto 56px; }

/* PILLAR: FAQ, автор, смежные услуги */
.faq-block { margin: 8px 0 36px; }
.faq-item { padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.faq-item:first-child { border-top: 1px solid var(--c-line); }
.faq-q { font-size: 1.12rem; margin: 0 0 8px; color: var(--c-accent); }
.faq-a { margin: 0; color: var(--c-text-soft); font-size: 15px; line-height: 1.65; }
.article-author { display: flex; gap: 16px; align-items: center; background: var(--c-bg-alt); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 18px 20px; margin: 0 0 28px; }
.article-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-name { font-weight: 700; font-family: var(--f-head); margin: 0 0 4px; color: var(--c-text); font-size: 15px; }
.author-meta { margin: 0; font-size: 13.5px; color: var(--c-text-mute); line-height: 1.5; }
.author-meta a { color: var(--c-accent); white-space: nowrap; }
.related-services { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 0 0 36px; font-size: 14px; }
.related-services span { color: var(--c-text-mute); font-weight: 500; }
.related-services a { color: var(--c-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* PRICES ANCHOR + BENEFITS */
.prices-anchor { background: var(--c-bg); }
.price-anchor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px; }
.pa-card { background: var(--c-bg-alt); border: 1px solid var(--c-line); border-radius: var(--r-sm); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.pa-card-hl { border-color: var(--c-accent); box-shadow: 0 4px 16px rgba(30,58,95,.08); }
.pa-name { font-size: 14px; color: var(--c-text-soft); line-height: 1.35; }
.pa-price { font-family: var(--f-head); font-weight: 800; font-size: 1.35rem; color: var(--c-accent); letter-spacing: -.02em; margin-top: auto; }
.benefits-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 32px; }
.benefit { display: flex; gap: 12px; align-items: flex-start; background: var(--c-bg-alt); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 18px 20px; }
.benefit-ic { font-size: 24px; line-height: 1; flex-shrink: 0; }
.benefit b { font-family: var(--f-head); font-size: 15px; display: block; margin-bottom: 3px; color: var(--c-text); }
.benefit p { margin: 0; font-size: 13px; color: var(--c-text-mute); line-height: 1.45; }
@media (max-width: 860px) { .price-anchor-grid { grid-template-columns: repeat(2, 1fr); } .benefits-bar { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .price-anchor-grid { grid-template-columns: 1fr; } }

/* GALLERY — интерьер клиники (горизонтальный рельс) */
.gallery { background: var(--c-bg); }
.gallery-rail.is-rail > .gallery-item { flex: 0 0 260px; }
.gallery-item { position: relative; margin: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption { position: absolute; inset: auto 0 0 0; padding: 14px 14px 12px; color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 13.5px; letter-spacing: -.01em; background: linear-gradient(0deg, rgba(8,16,28,.85), rgba(8,16,28,0)); }
@media (max-width: 560px) {
  .gallery-rail.is-rail > .gallery-item { flex: 0 0 62vw; }
}

/* TECHNOLOGIES */
.technologies { background: var(--c-bg-alt); }
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* HORIZONTAL SCROLL RAIL — общий паттерн для tech и services */
.rail-wrap { position: relative; }
.rail-wrap .rail-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-card); border: 1px solid var(--c-line);
  color: var(--c-accent); font-size: 18px; cursor: pointer;
  z-index: 5; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; opacity: 0;
}
.rail-wrap:hover .rail-arrow { opacity: 1; }
.rail-arrow:hover { background: var(--c-accent); color: #fff; transform: translateY(-50%) scale(1.06); }
.rail-arrow.prev { left: -16px; }
.rail-arrow.next { right: -16px; }
.rail-arrow:disabled { opacity: 0; pointer-events: none; }
.is-rail {
  display: flex !important;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scroll-padding: 4px;
  padding: 4px 4px 16px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: var(--c-line) transparent;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
/* Карточки внутри рельсов не участвуют в scroll-reveal — translateY внутри
   scroll-snap:x вызывает дёрганье при вертикальном скролле страницы (см. Олимп). */
.is-rail .reveal, .is-rail.reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.is-rail::-webkit-scrollbar { height: 6px; }
.is-rail::-webkit-scrollbar-track { background: transparent; }
.is-rail::-webkit-scrollbar-thumb { background: var(--c-line); border-radius: 3px; }
.is-rail::-webkit-scrollbar-thumb:hover { background: var(--c-accent); }
.is-rail > article {
  flex: 0 0 360px;
  scroll-snap-align: start;
  min-width: 0;
}
@media (max-width: 760px) {
  .is-rail > article { flex: 0 0 86vw; }
  .rail-arrow { display: none; }
}
.tech-card {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 32px 24px;
  transition: all .25s ease;
}
.tech-card:hover { border-color: var(--c-accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tech-icon { font-size: 36px; margin-bottom: 16px; }
.tech-card h3 { margin-bottom: 12px; color: var(--c-accent); }
.tech-card p { color: var(--c-text-soft); font-size: 15px; }

/* TECH CARDS WITH PHOTO */
.tech-card-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tech-card-photo .tech-photo {
  aspect-ratio: 4/3; width: 100%;
  background-size: cover; background-position: center;
  background-color: #0f1f33;
}
.tech-card-photo .tech-body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.tech-card-photo h3 { margin-bottom: 10px; font-size: 1.5rem; }
.tech-card-photo p { font-size: 14.5px; line-height: 1.6; }

/* STERILITY BAR — компактный блок снизу */
.sterility-bar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px;
}
.sterility-item {
  background: var(--c-bg-alt); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 18px 22px;
  display: flex; gap: 16px; align-items: flex-start;
}
.sterility-icon { font-size: 24px; line-height: 1; flex-shrink: 0; padding-top: 2px; }
.sterility-item h4 { font-family: var(--f-head); font-size: 17px; font-weight: 700; color: var(--c-accent); margin-bottom: 4px; line-height: 1.2; }
.sterility-item p { font-size: 13px; color: var(--c-text-soft); margin: 0; line-height: 1.5; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 40px; }
.service-card {
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-md);
  padding: 32px;
  display: flex; flex-direction: column;
}
.service-icon { font-size: 32px; margin-bottom: 16px; }
.service-card h3 { margin-bottom: 16px; }
.service-card ul { list-style: none; margin-bottom: 24px; flex: 1; }
.service-card li {
  padding: 8px 0 8px 20px;
  position: relative;
  color: var(--c-text-soft);
  font-size: 15px;
  border-bottom: 1px dashed var(--c-line);
}
.service-card li:last-child { border-bottom: 0; }
.service-card li::before { content: '✓'; color: var(--c-accent); position: absolute; left: 0; font-weight: 600; }
.service-link { font-weight: 500; color: var(--c-accent); }

/* SERVICE CARDS WITH PHOTO — same pattern as tech-card-photo */
.service-card-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-card-photo .service-photo {
  aspect-ratio: 4/3; width: 100%;
  background-size: cover; background-position: center;
  background-color: #0f1f33;
}
.service-card-photo .service-body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.service-card-photo h3 { margin-bottom: 14px; font-size: 1.5rem; color: var(--c-accent); }
.service-card-photo ul { margin-bottom: 20px; flex: 1; }
.service-card-photo .service-link { margin-top: auto; }
.services-cta { text-align: center; }

/* TEAM — split layout (aside + rail с табами), паттерн InnDenta */
.team { background: var(--c-bg-alt); }
.team-layout { display: grid; grid-template-columns: minmax(280px, 38%) minmax(0, 1fr); gap: 48px; align-items: start; }
.team-main { min-width: 0; }
.team-aside { position: sticky; top: 100px; }
.team-aside .section-title { text-align: left; margin-bottom: 16px; }
.team-aside .section-lead { text-align: left; margin-bottom: 24px; }
.team-banner { margin: 0 0 24px; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); }
.team-banner img { display: block; width: 100%; height: auto; }
.team-cta { margin-bottom: 18px; }
.team-aside-note { font-size: 0.85rem; color: var(--c-text-mute); }
.team-aside-note a { color: var(--c-accent); }

.team-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid var(--c-line); padding-bottom: 0; }
.team-tab {
  cursor: pointer; padding: 10px 16px 12px; border: none; background: transparent;
  font: inherit; font-size: 0.95rem; font-weight: 500; color: var(--c-text-mute);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.team-tab .tab-count { font-size: 0.85rem; opacity: .7; margin-left: 6px; font-weight: 400; }
.team-tab:hover { color: var(--c-accent); }
.team-tab.active { color: var(--c-accent); border-bottom-color: var(--c-accent); font-weight: 600; }

.team-rail { display: flex; gap: 20px; }
.team-rail .doctor-card { flex: 0 0 240px; display: flex; flex-direction: column; text-align: left; }
.team-rail .doctor-card h3 { text-align: left; font-size: 1.05rem; margin-top: 14px; }
.team-rail .doctor-card .doctor-role { text-align: left; }
.team-rail .doctor-card .doctor-stats { text-align: left; }
.team-rail .doctor-photo { max-width: none; }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.team-grid .doctor-card { flex: 0 0 calc(25% - 18px); max-width: 260px; display: flex; flex-direction: column; }
.doctor-card .doctor-stats { flex: 1 1 auto; }
.doctor-cta {
  margin-top: 14px; display: inline-block; cursor: pointer;
  padding: 9px 16px; font: inherit; font-size: 0.86rem; font-weight: 500;
  background: transparent; color: var(--c-accent);
  border: 1px solid var(--c-accent); border-radius: var(--r-sm);
  transition: background .15s, color .15s;
}
.doctor-cta:hover { background: var(--c-accent); color: #fff; }
.team-note { margin: 32px auto 0; max-width: 720px; text-align: center; color: var(--c-text-muted); font-size: 0.92rem; }
.team-note a { color: var(--c-accent); }
.team-banner {
  margin: 32px 0 40px; border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-md); background: var(--c-bg);
}
.team-banner img { display: block; width: 100%; height: auto; }
.team-group {
  margin: 48px auto 0; max-width: 800px; text-align: center;
}
.team-group img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
}
.team-group figcaption {
  margin-top: 14px; font-size: 0.95rem; color: var(--c-text-soft); font-style: italic;
}
.doctor-card { text-align: center; }
.doctor-photo {
  aspect-ratio: 3/4; border-radius: 12px;
  background: linear-gradient(135deg, var(--c-line) 0%, var(--c-bg) 100%);
  margin: 0 auto 18px; width: 100%; max-width: 240px;
  display: grid; place-items: center;
  color: var(--c-text-mute); font-size: 13px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15,31,51,.06);
}
.doctor-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.doctor-photo.placeholder { font-style: italic; }
.doctor-card h3 { margin-bottom: 4px; font-size: 1.2rem; }
.doctor-role { color: var(--c-accent); font-weight: 500; font-size: 14px; margin-bottom: 8px; }
.doctor-stats { color: var(--c-text-mute); font-size: 13px; }

/* REVIEWS */
.reviews-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.rating-card {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 32px 24px;
  text-align: center; text-decoration: none; color: inherit;
  transition: all .2s;
}
a.rating-card:hover { border-color: var(--c-accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.rating-card.rating-primary {
  background: linear-gradient(135deg, var(--c-accent) 0%, #2d5285 100%); color: #fff;
  border-color: var(--c-accent); box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center;
}
.rating-card.rating-primary .rating-value { color: #fff; font-size: 56px; margin: 4px 0; }
.rating-card.rating-primary .rating-source { color: rgba(255,255,255,.85); font-weight: 500; }
.rating-card.rating-primary .rating-source:first-child { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .8; }
.rating-card.rating-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(30,58,95,.2); }

.rating-value { font-family: var(--f-head); font-size: 52px; font-weight: 800; color: var(--c-accent); line-height: 1; margin-bottom: 8px; letter-spacing: -.02em; }
.rating-source { color: var(--c-text-mute); font-size: 14px; }

.reviews-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.reviews-rail.is-rail > article { flex: 0 0 300px; }  /* компактнее чем tech/services 360px */
.review-card {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column;
  text-decoration: none; color: inherit; transition: all .2s;
}
.review-card:hover { border-color: var(--c-accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.review-stars { color: #f5a623; font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.review-text { font-size: 13.5px; line-height: 1.5; color: var(--c-text-soft); flex: 1; margin-bottom: 12px; }
.review-author { font-size: 12.5px; color: var(--c-text); font-weight: 600; }
.review-author small { font-weight: 400; }
.review-card.review-card-more {
  background: var(--c-bg-alt); border-style: dashed; align-items: center; justify-content: center; text-align: center;
}
.review-card.review-card-more .review-text { text-align: center; flex: none; }
@media (max-width: 760px) {
  .reviews-rail.is-rail > article { flex: 0 0 86vw; }
}
.reviews-note { margin-top: 24px; font-size: 13px; color: var(--c-text-mute); text-align: center; }
.reviews-note a { color: var(--c-accent); text-decoration: underline; }

.review-placeholder {
  background: var(--c-bg-alt); border: 1px dashed var(--c-line);
  border-radius: var(--r-md); padding: 64px;
  text-align: center; color: var(--c-text-mute); font-style: italic;
}

/* BOOKING */
.booking { background: var(--c-accent); color: #fff; position: relative; overflow: hidden; }
.booking > .container { position: relative; z-index: 1; }
.booking-ambient { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.booking h2, .booking-text { color: #fff; }

/* MOTION — появление при скролле (V3) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.booking-text h2 { margin-bottom: 20px; }
.booking-text p { opacity: .9; font-size: 17px; margin-bottom: 24px; }
.booking-list { list-style: none; margin-bottom: 24px; }
.booking-list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 15px; }
.booking-note { font-size: 14px; opacity: .8; }
.booking-form { background: var(--c-card); color: var(--c-text); padding: 36px; border-radius: var(--r-md); display: flex; flex-direction: column; gap: 16px; }
.booking-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--c-text-soft); font-weight: 500; }
.booking-form input, .booking-form select, .booking-form textarea {
  border: 1px solid var(--c-line); border-radius: var(--r-sm);
  padding: 12px 14px; font-family: inherit; font-size: 15px;
  background: var(--c-bg-alt);
  transition: border .2s;
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus {
  outline: none; border-color: var(--c-accent); background: var(--c-card);
}
.booking-form button { margin-top: 8px; }
.form-consent { font-size: 12px; color: var(--c-text-mute); text-align: center; }
.booking-form label.form-consent-check { flex-direction: row; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.45; color: var(--c-text-mute); font-weight: 400; cursor: pointer; }
.booking-form label.form-consent-check input { width: auto; margin-top: 2px; flex-shrink: 0; accent-color: var(--c-accent); cursor: pointer; }
.booking-form label.form-consent-check a { color: var(--c-accent); }

/* CONTACTS */
.contacts { background: var(--c-bg-alt); }
.contacts-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.contacts h2 { margin-bottom: 28px; }
.contacts-info p { margin-bottom: 16px; font-size: 16px; color: var(--c-text-soft); }
.contacts-info p small { color: var(--c-text-mute); font-size: 13px; }
.contacts-map {
  aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--c-line); background: var(--c-bg-alt);
  box-shadow: var(--shadow-sm);
}
.contacts-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.contacts-cabinet { margin: 48px auto 0; max-width: 1000px; text-align: center; }
.contacts-cabinet img { display: block; width: 100%; height: auto; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.contacts-cabinet figcaption { margin-top: 14px; font-size: 0.95rem; color: var(--c-text-soft); font-style: italic; }
.map-placeholder {
  aspect-ratio: 4/3; background: var(--c-card); border: 1px dashed var(--c-line);
  border-radius: var(--r-md); display: grid; place-items: center;
  color: var(--c-text-mute); font-style: italic;
}

/* SOCIAL BUTTONS */
.contacts-social { display: flex; gap: 12px; margin-top: 22px; }
.soc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  color: #fff !important; text-decoration: none;
  transition: transform .15s, box-shadow .15s, filter .15s;
  box-shadow: 0 2px 6px rgba(15,31,51,.12);
}
.soc-btn svg { width: 26px; height: 26px; display: block; }
.soc-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(15,31,51,.18); filter: brightness(1.08); }
.soc-vk  { background: #0077FF; }
.soc-tg  { background: #2AABEE; }
.soc-max { background: linear-gradient(135deg, #5B9CFF 0%, #8B5CF6 60%, #B249F8 100%); }

/* TAX DEDUCTION (in booking — на тёмном фоне секции, поэтому светлая палитра) */
.tax-deduction {
  margin-top: 24px; padding: 18px 20px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-md);
  display: flex; gap: 16px; align-items: flex-start;
}
.tax-deduction .tax-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.tax-deduction strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.tax-deduction p { font-size: 0.9rem; color: rgba(255,255,255,.85); line-height: 1.55; margin: 0; }

/* FAQ */
.faq { background: var(--c-bg); }
.faq-list { max-width: 860px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 0 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.faq-item[open] { border-color: var(--c-accent); box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 0; padding-right: 36px;
  font-weight: 600; color: var(--c-text); font-size: 1.02rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--c-accent); font-weight: 300; line-height: 1;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item > div {
  padding: 0 0 20px; color: var(--c-text-soft); line-height: 1.65; font-size: 0.96rem;
}

/* CONTENT PAGES — page-hero, legal-page, price-table, docs-grid */
.page-hero { padding: 120px 0 56px; background: var(--c-bg-alt); border-bottom: 1px solid var(--c-line); }
.page-hero .page-eyebrow { color: var(--c-accent); font-weight: 600; font-size: 0.88rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 16px; }
.page-hero .page-lead { font-size: 1.05rem; color: var(--c-text-soft); max-width: 760px; }

.legal-page { padding: 56px 0 80px; }
.legal-page h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 48px 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--c-accent); display: inline-block; }
.legal-page h2:first-of-type { margin-top: 0; }
.legal-page > .container > p { margin-bottom: 16px; color: var(--c-text-soft); }
.legal-page .note {
  margin-top: 32px; padding: 20px 24px; background: var(--c-bg-alt);
  border-left: 4px solid var(--c-accent); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.95rem; color: var(--c-text-soft);
}

.price-table {
  width: 100%; border-collapse: collapse; margin: 16px 0 24px;
  background: var(--c-card); border-radius: var(--r-sm); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--c-line);
}
.price-table tr { border-bottom: 1px solid var(--c-line); }
.price-table tr:last-child { border-bottom: none; }
.price-table tr:nth-child(even) { background: rgba(30,58,95,.025); }
.price-table td { padding: 14px 20px; vertical-align: top; }
.price-table td:first-child { color: var(--c-text-mute); font-size: 0.92rem; min-width: 220px; width: 30%; }
.price-table td:last-child { color: var(--c-text); }
.price-table b { color: var(--c-text); font-weight: 600; }

.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0 32px; }
.doc-card {
  padding: 28px 24px; background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
}
.doc-card.placeholder { border-style: dashed; opacity: .85; }
.doc-icon { font-size: 2rem; line-height: 1; }
.doc-card h3 { font-family: var(--f-text); font-size: 1rem; font-weight: 600; line-height: 1.4; }
.doc-card p { font-size: 0.88rem; color: var(--c-text-mute); margin: 0; }

@media (max-width: 720px) {
  .page-hero { padding: 100px 0 40px; }
  .docs-grid { grid-template-columns: 1fr; }
  .price-table td { padding: 12px 14px; font-size: 0.92rem; }
  .price-table td:first-child { min-width: 0; width: 40%; }
}

/* FOOTER */
.site-footer { background: var(--c-text); color: #fff; padding: 32px 0; font-size: 13px; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer-org { opacity: .7; }
.footer-credit a { font-weight: 500; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .header-grid { grid-template-columns: 1fr auto; gap: 16px; padding: 14px 16px; }
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.is-open { display: flex; }
  .hero-grid, .booking-grid, .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-text { text-align: center; }
  .hero-eyebrow { margin-left: auto; margin-right: auto; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .tech-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid .doctor-card { flex: 0 0 calc(50% - 12px); }
  .team-layout { grid-template-columns: 1fr; gap: 32px; }
  .team-aside { position: static; }
  .sterility-bar { grid-template-columns: 1fr; }
  .reviews-summary { grid-template-columns: 1fr; }
  .hero-features { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 12px; }
  .hero-feature span { font-size: 11.5px; }
  section { padding: 56px 0; }
  .hero { padding: 48px 0 64px; }
}
@media (max-width: 560px) {
  .tech-grid, .services-grid { grid-template-columns: 1fr; }
  .team-grid .doctor-card { flex: 0 0 100%; }
  .tech-card-photo .tech-photo { aspect-ratio: 16/10; }
  .hero h1 { font-size: 2.25rem; }
  .container { padding: 0 16px; }
}

/* Плавающие кнопки связи — только мобайл, снизу слева (RAG-чат справа) */
.fab-stack { display: none; }
@media (max-width: 760px) {
  .fab-stack {
    display: flex; flex-direction: column; gap: 12px;
    position: fixed; left: 16px; bottom: 16px; z-index: 9990;
  }
  .fab {
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(15, 31, 51, .28);
    transition: transform .15s ease, background .2s ease, color .2s ease;
  }
  .fab:active { transform: scale(.94); }
  .fab-call { background: var(--c-accent); color: #fff; }
  .fab-call:hover { background: var(--c-accent-soft); color: #fff; }
  .fab-max {
    background: #fff; color: var(--c-accent); border: 1.5px solid var(--c-accent);
    font-weight: 700; font-size: 13px; letter-spacing: .02em;
  }
  .fab-max:hover { background: var(--c-accent); color: #fff; }
}
