/* ==========================================================================
   NoHo Dental Group — static replica
   Pure HTML + CSS + JS. Design tokens & shared components.
   ========================================================================== */

:root {
  /* Палитра выведена из базового #123a5c по смещениям оригинальной зелёной
     палитры (HSL): 950 -2.9 L, 800 +3.8, 700 +9.3, 600 +17.3; светлые фоны —
     фиксированная светлота 92.5/95.9 при той же гамме */
  --green-950: #0d3252;
  --green-900: #123a5c;
  --green-800: #184469;
  --green-700: #1d5380;
  --green-600: #2668a0;
  --green-100: #e7ecf1;
  --green-50:  #f2f5f7;
  /* RGB-тройки для rgba()-оверлеев (градиент hero, фокусные тени) */
  --green-950-rgb: 13,50,82;
  --green-600-rgb: 38,104,160;
  --amber:     #f2a93b;
  --amber-dk:  #dd9225;
  --orange:    #d9773f;
  --orange-dk: #c56531;
  --teal:      #0e8a74;
  --cream:     #faf6ed;
  --cream-dk:  #f4eddd;
  --white:     #ffffff;
  --ink:       #17251f;
  --muted:     #5b6b62;
  --line:      #e9e4d8;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(23,37,31,.06);
  --shadow-md: 0 10px 30px rgba(23,37,31,.10);
  --shadow-lg: 0 24px 60px rgba(23,37,31,.16);
  --header-h: 82px;
  --container: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Горизонтальный overflow ломает position:fixed на мобильных (layout viewport
   расширяется до ширины контента) — обрезаем его. clip не создаёт скролл-контейнер,
   поэтому sticky-шапка продолжает работать. */
html, body { overflow-x: hidden; }
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4, .serif { font-family: var(--serif); font-weight: 700; line-height: 1.18; color: var(--green-900); }
.nowrap { white-space: nowrap; }

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 18px;
}
.eyebrow.amber { color: var(--amber); }
.eyebrow.center { display: block; text-align: center; }

.section { padding: 104px 0; }
.section.cream { background: var(--cream); }
.section.green { background: var(--green-900); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 18px; }
.section.green .section-head h2, .section.green h2 { color: #fff; }
.section.green .section-head p { color: rgba(255,255,255,.72); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 10px;
  font-weight: 800; font-size: 15.5px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-amber { background: var(--amber); color: #3a2b07; box-shadow: 0 8px 20px rgba(242,169,59,.35); }
.btn-amber:hover { background: var(--amber-dk); transform: translateY(-2px); }
.btn-green { background: var(--green-900); color: #fff; }
.btn-green:hover { background: var(--green-800); transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dk); transform: translateY(-2px); }
.btn-outline-light { border: 2px solid rgba(255,255,255,.85); color: #fff; background: rgba(255,255,255,.06); }
.btn-outline-light:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-outline-dark { border: 2px solid var(--green-900); color: var(--green-900); background: transparent; }
.btn-outline-dark:hover { background: var(--green-900); color: #fff; transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--green-700); font-size: 15px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow.amber { color: var(--amber); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(23,37,31,.10); }
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 28px;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo svg, .logo .logo-img { width: 46px; height: 46px; }
/* Логотип — inline-SVG с fill="currentColor": цвет задаётся отсюда */
.logo .logo-img { display: flex; color: var(--green-700); }
.logo-text { line-height: 1.05; }
.logo-text .name { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 25px; color: var(--green-700); }
.logo-text .sub { display: block; font-size: 10px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--green-600); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-weight: 700; font-size: 15.5px; color: var(--ink);
  padding: 8px 0; position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--green-700); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; border-radius: 3px; background: var(--amber);
}
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 6px; }
.has-dropdown > a svg { width: 14px; height: 14px; transition: transform .2s; }
.has-dropdown:hover > a svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 270px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 10px; opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  max-height: 70vh; overflow: auto;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 700;
}
.dropdown a:hover { background: var(--green-50); color: var(--green-700); }
.dropdown a svg { width: 16px; height: 16px; color: var(--green-600); flex: none; }

.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15.5px; }
.header-phone svg { width: 18px; height: 18px; color: var(--green-700); }
.header-phone:hover { color: var(--green-700); }
.header-cta { padding: 13px 24px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  background: none; border: none; cursor: pointer; color: var(--green-900);
  padding: 0; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.nav-toggle:hover { background: var(--green-50); color: var(--green-700); }
.nav-toggle svg { width: 26px; height: 26px; stroke: currentColor; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-burger { display: none; }
.nav-toggle.open .icon-close { display: block; }

/* Mobile nav panel */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 890;
  background: #fff; padding: 20px 24px 40px;
  transform: translateX(100%); transition: transform .3s ease, visibility .3s ease;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  visibility: hidden; pointer-events: none;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.mobile-nav a.mlink {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 4px; font-weight: 800; font-size: 19px; font-family: var(--serif);
  border-bottom: 1px solid var(--line); color: var(--green-900);
  transition: color .2s ease;
}
.mobile-nav a.mlink:hover,
.mobile-nav a.mlink.active {
  color: var(--green-700);
}
.mobile-sub { display: none; padding: 6px 0 10px; }
.mobile-sub.open { display: block; }
.mobile-sub a { display: block; padding: 9px 12px; font-weight: 700; color: var(--muted); font-size: 15px; }
.mobile-nav .btn { width: 100%; justify-content: center; margin-top: 18px; }

/* Mobile nav contacts */
.mobile-nav-contact {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.mobile-nav .mphone {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: clamp(17px, 4.5vw, 19px);
  color: var(--green-900); text-decoration: none;
  transition: color .2s ease;
}
.mobile-nav .mphone svg {
  width: 20px; height: 20px; min-width: 20px; min-height: 20px;
  color: var(--green-700); stroke: var(--green-700); flex-shrink: 0;
}
.mobile-nav .mphone:hover { color: var(--green-700); }
.mobile-nav .memail {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 15px;
  color: var(--muted); text-decoration: none;
  transition: color .2s ease;
}
.mobile-nav .memail svg {
  width: 18px; height: 18px; min-width: 18px; min-height: 18px;
  color: var(--green-700); stroke: var(--green-700); flex-shrink: 0;
}
.mobile-nav .memail:hover { color: var(--green-700); }

/* ==========================================================================
   Hero slider (home)
   ========================================================================== */
.hero { position: relative; height: min(88vh, 900px); min-height: 620px; overflow: hidden; background: var(--green-950); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroZoom 7s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(var(--green-950-rgb),.88) 0%, rgba(var(--green-950-rgb),.62) 42%, rgba(var(--green-950-rgb),.18) 78%, rgba(var(--green-950-rgb),.30) 100%);
}
.hero-content {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--container); margin: 0 auto; padding: 0 28px;
}
.hero-slide-copy { max-width: 640px; }
.hero-eyebrow {
  font-size: 13.5px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 22px;
}
.hero-sub { font-family: var(--serif); font-style: italic; font-weight: 500; color: #fff; font-size: clamp(20px, 2.4vw, 30px); margin-bottom: 8px; }
.hero-title { font-size: clamp(40px, 6vw, 72px); color: #fff; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

/* Entrance animation for hero copy (staggered fade-up) */
.hero-slide .hero-slide-copy > * { opacity: 0; transform: translateY(26px); }
.hero-slide.active .hero-slide-copy > * {
  opacity: 1; transform: none;
  transition: opacity .8s ease, transform .8s ease;
}
.hero-slide.active .hero-slide-copy > *:nth-child(2) { transition-delay: .12s; }
.hero-slide.active .hero-slide-copy > *:nth-child(3) { transition-delay: .24s; }
.hero-slide.active .hero-slide-copy > *:nth-child(4) { transition-delay: .36s; }

.hero-dots { position: absolute; z-index: 4; left: 28px; bottom: 34px; display: flex; gap: 10px; }
.hero-dots button {
  width: 24px; height: 6px; border-radius: 20px; background: rgba(255,255,255,.4);
  transition: width .25s ease, background .25s ease;
}
.hero-dots button:hover { background: rgba(255,255,255,.7); }
.hero-dots button.active { width: 40px; background: var(--amber); }

/* Inner page hero */
.page-hero {
  position: relative; padding: 30px 0 40px; overflow: hidden;
  background: var(--green-900); color: #fff;
}
.page-hero .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--green-950-rgb),.92), rgba(var(--green-950-rgb),.55)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(24px, 5.2vw, 56px);
  line-height: 1.15;
  margin-bottom: 18px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.page-hero p { color: rgba(255,255,255,.82); font-size: 18.5px; max-width: 620px; }
.page-hero .hero-actions { margin-top: 30px; }
.page-hero.light { background: var(--green-50); text-align: center; }
.page-hero.light::after { display: none; }
.page-hero.light h1 { color: var(--green-900); margin-left: auto; margin-right: auto; max-width: 900px; }
.page-hero.light p { color: var(--muted); margin: 0 auto; }
.page-hero.center { text-align: center; }
.page-hero.center p { margin: 0 auto; }

/* ==========================================================================
   Home: welcome split
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.split .media img { border-radius: 20px; box-shadow: var(--shadow-lg); }
.split h2 { font-size: clamp(28px, 2.7vw, 36px); margin-bottom: 24px; }
.split p { color: var(--muted); margin-bottom: 18px; font-size: 17px; }
.split .actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

/* ==========================================================================
   Home: services grid
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.services-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.svc-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
}
.svc-icon svg { width: 40px; height: 40px; }
.svc-card h3 { font-size: 22px; }
.svc-card p { color: var(--muted); font-size: 15.5px; flex: 1; }

/* ==========================================================================
   Home: special offer banner
   ========================================================================== */
.offer-banner {
  margin-top: 64px;
  background: #fff; border: 2px solid var(--orange); border-radius: 20px;
  padding: 34px 42px;
  display: flex; align-items: center; gap: 28px;
}
.offer-icon {
  width: 66px; height: 66px; flex: none; border-radius: 50%;
  background: #fbe9db; color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.offer-icon svg { width: 30px; height: 30px; }
.offer-banner h3 { font-size: 27px; margin-bottom: 6px; }
.offer-banner p { color: var(--muted); font-size: 15.5px; max-width: 640px; }
.offer-banner .btn { margin-left: auto; flex: none; }

/* ==========================================================================
   Home: why choose us
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.why-item .wicon {
  width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--green-800); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
}
.why-item .wicon svg { width: 40px; height: 40px; }
.why-item h3 { color: #fff; font-size: 23px; margin-bottom: 12px; }
.why-item p { color: rgba(255,255,255,.7); font-size: 15.5px; }

/* ==========================================================================
   Home: patient stories (video cards)
   ========================================================================== */
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.story-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .22s ease, box-shadow .22s ease;
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.story-thumb { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.story-card:hover .story-thumb img { transform: scale(1.06); }
.play-btn {
  position: absolute; inset: 0; margin: auto;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--green-800);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: transform .2s ease;
}
.play-btn svg { width: 24px; height: 24px; margin-left: 3px; }
.story-card:hover .play-btn { transform: scale(1.1); }
.story-body { padding: 22px 24px 26px; }
.story-cat { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green-600); margin-bottom: 6px; }
.story-body h3 { font-size: 20px; margin-bottom: 8px; }
.story-body p { color: var(--muted); font-size: 14.5px; }
.stories-note { text-align: center; color: var(--muted); margin-top: 34px; font-size: 15px; }
.stories-note a { font-weight: 800; color: var(--green-700); }

/* ==========================================================================
   Home: reviews carousel
   ========================================================================== */
.rating-line {
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  margin-bottom: 46px; color: var(--muted); font-size: 16px;
}
.rating-line strong { font-family: var(--serif); font-size: 40px; color: var(--green-900); }
.stars { color: var(--amber); display: inline-flex; gap: 3px; }
.stars svg { width: 20px; height: 20px; }
.reviews-viewport { overflow: hidden; }
.reviews-track { display: flex; gap: 26px; transition: transform .6s cubic-bezier(.22,.8,.3,1); }
.review-card {
  flex: 0 0 calc((100% - 52px) / 3);
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  padding: 30px 24px; display: flex; flex-direction: column;
}
.review-card .quote-mark { width: 38px; height: 38px; color: var(--amber); margin-bottom: 14px; }
.review-card p { color: var(--ink); font-size: 16.5px; flex: 1; }
.review-author { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.review-author .avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--green-800); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.review-author b { display: block; font-size: 15.5px; }
.review-author span { color: var(--muted); font-size: 13.5px; }
.reviews-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 36px; }
.carousel-dots { display: flex; gap: 9px; }
.carousel-dots button { width: 11px; height: 11px; border-radius: 20px; background: #cfc9ba; transition: width .25s, background .25s; }
.carousel-dots button.active { width: 32px; background: var(--green-700); }
.pause-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 30px; border: 1px solid var(--line);
  background: #fff; font-weight: 700; font-size: 13.5px; color: var(--muted);
}
.pause-btn svg { width: 14px; height: 14px; }
.reviews-more {
  margin-top: 26px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px 26px;
}
.reviews-more-label { color: var(--muted); font-size: 15px; }

/* ==========================================================================
   Home: memberships marquee
   ========================================================================== */
.marquee { overflow: hidden; padding: 10px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 80px; width: max-content; animation: marquee 26s linear infinite; }
.marquee.paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.member-badge { display: flex; align-items: center; gap: 14px; color: var(--green-800); flex: none; }
.member-badge svg { width: 44px; height: 44px; }
.member-badge .mb-name { font-family: var(--serif); font-weight: 700; font-size: 19px; white-space: nowrap; }
.member-badge .mb-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.marquee-controls { text-align: center; margin-top: 22px; }

/* ==========================================================================
   Home: map section
   ========================================================================== */
.map-wrap { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 430px; border: 0; display: block; }
.map-link-row { text-align: center; margin-top: 22px; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); }
.cta-band p { color: rgba(255,255,255,.75); font-size: 18px; max-width: 640px; margin: 18px auto 34px; }
.cta-band .hero-actions { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.78); }
.footer-grid {
  display: grid; grid-template-columns: 1.25fr .85fr 1.05fr 1.6fr; gap: 40px;
  padding: 84px 0 56px;
}
.footer-brand .logo-img { color: #fff; }
.footer-brand .logo-text .name { color: #fff; }
.footer-brand .logo-text .sub { color: var(--amber); }
.footer-brand p { margin: 20px 0 16px; font-size: 15px; max-width: 300px; }
.footer-legal {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 300px;
}
.footer-legal-name {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}
.footer-legal-license {
  margin-top: 4px;
  line-height: 1.45;
}
.footer-legal-license a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity .2s;
}
.footer-legal-license a:hover {
  opacity: .85;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-800); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.social-row a:hover { background: var(--amber); color: var(--green-950); transform: translateY(-3px); }
.social-row svg { width: 19px; height: 19px; }
.site-footer h4 { color: #fff; font-size: 19px; margin-bottom: 22px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 15px; transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: var(--amber); padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 15px; align-items: flex-start; }
.footer-contact li span { line-height: 1.5; }
.footer-contact svg { width: 18px; height: 18px; color: var(--amber); flex: none; margin-top: 3px; }
.footer-contact a:hover { color: var(--amber); }
.footer-map { border-top: 1px solid rgba(255,255,255,.14); padding: 40px 0 8px; text-align: center; }
.footer-map h3 { color: #fff; font-size: 24px; margin-bottom: 22px; }
.footer-map .map-wrap { border: none; box-shadow: none; }
.footer-map iframe { height: 300px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 32px 0 28px; text-align: center; font-size: 14px; color: rgba(255,255,255,.55);
  display: flex; flex-direction: column; gap: 12px;
}
.footer-gos-garantii {
  margin: 0 auto 4px;
  max-width: 860px;
}
.footer-garantii-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13.5px;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: all .2s ease;
}
.footer-garantii-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--amber);
  color: #fff;
  text-decoration-color: var(--amber);
  transform: translateY(-1px);
}
.footer-garantii-link svg {
  width: 18px;
  height: 18px;
  color: var(--amber);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .footer-garantii-link {
    font-size: 12.5px;
    padding: 8px 12px;
    text-align: left;
    align-items: flex-start;
  }
  .footer-garantii-link svg {
    margin-top: 2px;
  }
}
.footer-warning {
  font-size: clamp(14px, 1.8vw, 17px); font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: rgba(255,255,255,.88);
}
.footer-disclaimer {
  font-size: 13px; line-height: 1.6; max-width: 860px; margin: 0 auto;
  color: rgba(255,255,255,.62);
}
.footer-copy {
  font-size: 13px; color: rgba(255,255,255,.45); margin-top: 4px;
}

/* ==========================================================================
   Chat widget
   ========================================================================== */
.chat-launcher {
  position: fixed; right: 26px; bottom: 26px; z-index: 950;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(14,138,116,.45);
  transition: transform .2s ease, background .2s;
}
.chat-launcher:hover { transform: scale(1.07); background: #0b7a66; }
.chat-launcher svg { width: 27px; height: 27px; }
.chat-panel {
  position: fixed; right: 26px; bottom: 102px; z-index: 951;
  width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 140px);
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.chat-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.chat-header { background: var(--green-800); color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.chat-header .ch-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green-600); display: flex; align-items: center; justify-content: center; flex: none; }
.chat-header .ch-avatar svg { width: 20px; height: 20px; }
.chat-header b { display: block; font-size: 15.5px; }
.chat-header span { font-size: 12.5px; opacity: .75; }
.chat-close { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; }
.chat-close:hover { background: rgba(255,255,255,.28); }
.chat-close svg { width: 16px; height: 16px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; background: var(--green-50); display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 82%; padding: 12px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.chat-msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--green-800); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-input-row { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-input-row input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 30px;
  padding: 12px 18px; font-size: 14.5px; outline: none;
}
.chat-input-row input:focus { border-color: var(--green-600); }
.chat-send {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--green-800); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.chat-send:hover { background: var(--green-700); }
.chat-send svg { width: 19px; height: 19px; }

/* ==========================================================================
   About page
   ========================================================================== */
.chips-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 40px;
  padding: 12px 24px; font-weight: 800; font-size: 15px; color: var(--green-800);
  transition: border-color .2s, transform .2s;
}
.chip:hover { border-color: var(--green-600); transform: translateY(-2px); }
.chip svg { width: 17px; height: 17px; color: var(--green-600); }

.video-feature { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.video-feature img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.video-feature .play-btn { width: 84px; height: 84px; }
.video-feature .play-btn svg { width: 32px; height: 32px; }

.team-group + .team-group { margin-top: 70px; }
.team-group > h3 { text-align: center; font-size: 27px; margin-bottom: 40px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; }
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .22s ease, box-shadow .22s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-card .tphoto { aspect-ratio: 2/3; overflow: hidden; background: var(--green-950); }
.team-card .tphoto img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.team-card:hover .tphoto img { transform: scale(1.05); }
.team-card .tbody { padding: 22px 24px 26px; }
.team-card h4 { font-size: 20px; margin-bottom: 4px; }
.team-card .role { color: var(--green-700); font-weight: 800; font-size: 13.5px; margin-bottom: 12px; }
.team-card .bio { color: var(--muted); font-size: 14px; }

/* ---------- Doctors page (карточки специалистов без фото) ---------- */
.doctors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  max-width: 1140px;
  margin: 0 auto;
}
.doctor-card {
  flex: 1 1 calc((100% - 26px * 2) / 3);
  min-width: 300px;
  max-width: 580px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 30px 24px;
  transition: transform .22s ease, box-shadow .22s ease;
  box-sizing: border-box;
}
.doctor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doctor-card-head { padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.doctor-card-head:only-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.doctor-card-name { font-size: 25px; margin-bottom: 6px; }
.doctor-card-role { color: var(--green-700); font-weight: 800; font-size: 15px; }
.doctor-card-list li { display: flex; gap: 14px; padding: 13px 0; }
.doctor-card-list li + li { border-top: 1px dashed var(--line); }
.doctor-card-icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: var(--green-50); color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
}
.doctor-card-icon svg { width: 20px; height: 20px; }
.doctor-card-label {
  display: block; font-size: 11.5px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 3px;
}
.doctor-card-value { font-size: 15px; color: var(--ink); }
.doctors-note { text-align: center; color: var(--muted); margin-top: 40px; }
.doctors-note a { color: var(--green-700); font-weight: 800; }
.doctors-note a:hover { text-decoration: underline; }
@media (max-width: 980px) {
  .doctor-card {
    flex: 1 1 calc((100% - 26px) / 2);
    max-width: 540px;
  }
}
@media (max-width: 680px) {
  .doctor-card {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 640px) { .doctors-section .container { padding: 0 10px; } }

/* ==========================================================================
   Services page
   ========================================================================== */
.stats-strip { background: var(--cream); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 44px 0; }
.stat-item svg { width: 30px; height: 30px; color: var(--green-700); margin: 0 auto 10px; }
.stat-item b { display: block; font-family: var(--serif); font-size: 30px; color: var(--green-900); }
.stat-item span { color: var(--muted); font-size: 14.5px; }

.svc-category { padding: 84px 0 20px; }
.svc-category:last-of-type { padding-bottom: 84px; }
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.cat-head h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 6px; }
.cat-head p { color: var(--muted); }
.cat-count { color: var(--muted); font-size: 14px; font-weight: 700; }
.svc-photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.svc-photo-card {
  position: relative; border-radius: 20px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); transition: transform .22s ease, box-shadow .22s ease;
}
.svc-photo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.svc-photo-card .sph { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.svc-photo-card .sph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc-photo-card:hover .sph img { transform: scale(1.06); }
.svc-badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255,255,255,.94); color: var(--green-800);
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 30px;
}
.svc-photo-card .spbody { padding: 26px 28px 30px; }
.svc-photo-card h3 { font-size: 24px; margin-bottom: 10px; }
.svc-photo-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag {
  font-size: 12.5px; font-weight: 800; color: var(--green-700);
  background: var(--green-100); padding: 6px 13px; border-radius: 20px;
}

/* ==========================================================================
   Service detail page
   ========================================================================== */
.sd-layout { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }
.sd-content h2 { font-size: clamp(26px, 3vw, 34px); margin: 42px 0 16px; }
.sd-content h2:first-child { margin-top: 0; }
.sd-content p { color: var(--muted); margin-bottom: 16px; }
.sd-content .lead { font-size: 18.5px; color: var(--ink); }
.sd-content ul.check-list li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--muted); }
.sd-content ul.check-list svg { width: 20px; height: 20px; color: var(--green-600); flex: none; margin-top: 3px; }
.sd-photo { border-radius: 20px; margin: 26px 0; box-shadow: var(--shadow-md); }
.sd-sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 24px; }
.sd-box { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.sd-box h3 { font-size: 21px; margin-bottom: 14px; }
.sd-box p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.sd-box .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.sd-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 4px; border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 15px;
}
.sd-nav a:hover { color: var(--green-700); }
.sd-nav a svg { width: 15px; height: 15px; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: -30px; position: relative; z-index: 5; }
.contact-card {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  padding: 28px 26px; box-shadow: var(--shadow-md);
  transition: transform .2s ease;
}
.contact-card:hover { transform: translateY(-5px); }
.contact-card .cc-label { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); margin-bottom: 14px; }
.contact-card .cc-label svg { width: 18px; height: 18px; }
.contact-card b { display: block; font-size: 17.5px; margin-bottom: 4px; }
.contact-card p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }

#feedback { scroll-margin-top: calc(var(--header-h, 78px) + 20px); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 42px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 800; font-size: 14.5px; margin-bottom: 8px; }
.form-field label em { color: #c0392b; font-style: normal; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 14px 16px; font-size: 15px; background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(var(--green-600-rgb),.12);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.check-line { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; }
.check-line input { width: 18px; height: 18px; accent-color: var(--green-700); }
.form-success {
  display: none; background: var(--green-100); border: 1.5px solid var(--green-600);
  color: var(--green-800); border-radius: 12px; padding: 16px 20px; font-weight: 700;
  margin-top: 18px; font-size: 15px;
}
.form-success.show { display: block; }
.info-side .sd-box { margin-bottom: 24px; }
.info-side .sd-box:last-child { margin-bottom: 0; }

/* Десктоп: колонка с формой по высоте равна info-side */
@media (min-width: 921px) {
  .contact-layout { align-items: stretch; }
  .contact-layout > .reveal { display: flex; flex-direction: column; }
  .contact-layout > .reveal .form-card { flex: 1; }
}

/* Карта контактов на всю ширину страницы */
.contacts-map { line-height: 0; }
.contacts-map iframe { width: 100%; height: 500px; border: 0; display: block; }
@media (max-width: 640px) { .contacts-map iframe { height: 320px; } }
.hours-table { width: 100%; font-size: 14.5px; }
.hours-table div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.hours-table div:last-child { border-bottom: none; }
.hours-table span:first-child { font-weight: 700; }
.hours-table span:last-child { color: var(--muted); }
.visit-list li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14.5px; color: var(--muted); }
.visit-list svg { width: 19px; height: 19px; color: var(--green-600); flex: none; margin-top: 2px; }

/* ==========================================================================
   Blog page
   ========================================================================== */
.filter-row { display: flex; gap: 12px; overflow-x: auto; padding: 22px 0; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.filter-pill {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 30px; border: 1.5px solid var(--line);
  font-weight: 800; font-size: 14px; color: var(--ink); background: #fff;
  transition: all .2s;
}
.filter-pill span { font-size: 12px; color: var(--muted); font-weight: 700; }
.filter-pill:hover { border-color: var(--green-600); }
.filter-pill.active { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.filter-pill.active span { color: var(--amber); }

.featured-post {
  display: grid; grid-template-columns: 1fr 1.1fr;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; margin: 54px 0; box-shadow: var(--shadow-sm);
  transition: box-shadow .22s ease, transform .22s ease;
}
.featured-post:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.featured-post .fimg { position: relative; min-height: 380px; }
.featured-post .fimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-badge {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  background: var(--amber); color: #3a2b07;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 15px; border-radius: 30px;
}
.featured-post .fbody { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; }
.post-cat { font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--green-600); margin-bottom: 12px; }
.featured-post h2 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 16px; }
.featured-post p { color: var(--muted); margin-bottom: 20px; }
.post-meta { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.post-meta svg { width: 15px; height: 15px; vertical-align: -2px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card .pimg { aspect-ratio: 3/2; overflow: hidden; }
.post-card .pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .pimg img { transform: scale(1.06); }
.post-card .pbody { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 20px; margin-bottom: 10px; }
.post-card h3 a:hover { color: var(--green-700); }
.post-card p { color: var(--muted); font-size: 14.5px; flex: 1; margin-bottom: 16px; }
.blog-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 54px; }
.page-btn {
  min-width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line);
  font-weight: 800; font-size: 15px; color: var(--ink); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 14px;
}
.page-btn:hover { border-color: var(--green-600); }
.page-btn.active { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.page-btn:disabled { opacity: .4; cursor: default; }
.posts-count { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

/* ==========================================================================
   Appointment page
   ========================================================================== */
.appt-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.direct-box h3 { font-size: 24px; margin-bottom: 22px; }
.direct-box .footer-contact li { color: var(--ink); }
.direct-box .footer-contact svg { color: var(--green-700); }

/* Simple legal pages */
.legal-body { max-width: 820px; margin: 0 auto; }
.legal-body h2 { font-size: 24px; margin: 34px 0 14px; }
.legal-body p { color: var(--muted); margin-bottom: 14px; font-size: 15.5px; line-height: 1.7; }
.legal-body a {
  color: var(--green-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(14, 104, 74, 0.35);
  transition: all .2s ease;
}
.legal-body a:hover {
  color: var(--amber-dk);
  text-decoration-color: var(--amber-dk);
}
.legal-lead {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--green-50);
  border-left: 4px solid var(--green-600);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin-bottom: 28px;
}
.legal-lead a {
  color: var(--green-700);
  font-weight: 700;
  text-decoration: underline;
}
.legal-lead a:hover {
  color: var(--amber-dk);
}
.legal-section {
  margin-bottom: 30px;
}

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .services-grid, .services-grid-4, .stories-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sd-layout { grid-template-columns: 1fr; }
  .sd-sidebar { position: static; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .fimg { min-height: 300px; }
  .review-card { flex: 0 0 calc(50% - 13px); }
}
@media (max-width: 920px) {
  .main-nav { display: none; }
  .header-icons { margin-left: auto; }
  .header-icons .desk-only { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .header-inner { gap: 12px; padding: 0 16px; }
  .logo svg, .logo .logo-img { width: 40px; height: 40px; }
  .logo-text .name { font-size: 22px; }
  .split, .appt-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .contact-layout > * { min-width: 0; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .svc-photo-grid { grid-template-columns: 1fr; }
  .offer-banner { flex-direction: column; text-align: center; }
  .offer-banner .btn { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .container { padding: 0 18px; }
  .services-grid, .services-grid-4, .stories-grid, .blog-grid, .team-grid, .contact-cards { grid-template-columns: 1fr; }
  .team-grid.two { grid-template-columns: 1fr; }
  .review-card { flex: 0 0 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .sd-box { padding: 24px 18px; }
  .hours-table { font-size: 13.5px; }
  .hours-table div { flex-wrap: wrap; gap: 4px; }
  .requisites { font-size: 13.5px; word-break: break-word; }
  .requisites td:first-child { width: 38%; padding-right: 10px; }
  .hero { min-height: 560px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .page-hero { padding: 34px 0 34px; }
  .page-hero p { font-size: 12px; }
}
@media (max-width: 480px) {
  .header-inner { gap: 8px; padding: 0 12px; }
  .logo { gap: 8px; }
  .logo svg, .logo .logo-img { width: 36px; height: 36px; }
  .logo-text .name { font-size: 20px; }
  .logo-text .sub { display: none; }
  .nav-icon-link { width: 36px; height: 36px; }
  .container { padding: 0 16px; }
  .form-card { padding: 20px 14px; }
  .sd-box { padding: 20px 14px; }
  .check-line { font-size: 13.5px; }
  .page-hero h1 { font-size: clamp(21px, 6.5vw, 28px); }
}

/* ==========================================================================
   РУБДЕНТ site extensions — компоненты образца структуры в стиле дизайна
   ========================================================================== */

/* ---------- Header icons (search / sitemap / bvi / phone) ---------- */
.header-icons { display: flex; align-items: center; gap: 4px; }
.nav-icon-link {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--green-800); transition: background .2s, color .2s;
}
.nav-icon-link:hover { background: var(--green-50); color: var(--green-700); }
.nav-icon-link svg { width: 20px; height: 20px; }

/* ---------- Pretty tooltips (data-tooltip вместо title) ---------- */
@media (hover: hover) {
  [data-tooltip] { position: relative; }
  [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute; top: calc(100% + 10px); left: 50%; z-index: 1200;
    transform: translateX(-50%) translateY(-4px);
    background: var(--green-900); color: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.16);
    font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
    white-space: nowrap; padding: 7px 13px; border-radius: 8px;
    box-shadow: var(--shadow-md); pointer-events: none;
    opacity: 0; visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  [data-tooltip]::before {
    content: ""; position: absolute; top: calc(100% + 4px); left: 50%; z-index: 1200;
    transform: translateX(-50%);
    border: 3px solid transparent; border-bottom: 6px solid var(--green-900);
    pointer-events: none; opacity: 0; visibility: hidden;
    transition: opacity .18s ease, visibility .18s;
  }
  [data-tooltip]:hover::after, [data-tooltip]:focus-visible::after,
  [data-tooltip]:hover::before, [data-tooltip]:focus-visible::before { opacity: 1; visibility: visible; }
  [data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { transform: translateX(-50%) translateY(0); }

  /* Подсказка над элементом (кнопка «Наверх») */
  [data-tooltip-pos="top"]::after { top: auto; bottom: calc(100% + 10px); transform: translateX(-50%) translateY(4px); }
  [data-tooltip-pos="top"]::before { top: auto; bottom: calc(100% + 4px); border-bottom: none; border-top: 6px solid var(--green-900); }
  [data-tooltip-pos="top"]:hover::after, [data-tooltip-pos="top"]:focus-visible::after { transform: translateX(-50%) translateY(0); }

  /* Последняя иконка шапки — подсказку прижимаем к правому краю, чтобы не уезжала за экран */
  .header-icons .nav-icon-link:last-child[data-tooltip]::after { left: auto; right: 0; transform: translateY(-4px); }
  .header-icons .nav-icon-link:last-child[data-tooltip]::before { left: auto; right: 16px; transform: none; }
  .header-icons .nav-icon-link:last-child[data-tooltip]:hover::after,
  .header-icons .nav-icon-link:last-child[data-tooltip]:focus-visible::after { transform: translateY(0); }

  /* Не показывать подсказку «Поиск» поверх открытой панели поиска */
  .search-dropdown-wrap:has(.search-dropdown-menu.active) [data-tooltip]::after,
  .search-dropdown-wrap:has(.search-dropdown-menu.active) [data-tooltip]::before { display: none; }
}

/* ---------- Cookie consent ---------- */
#cookie-consent {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  display: none; background: var(--green-900); color: rgba(255,255,255,.88);
  padding: 16px 22px; font-size: 14.5px;
  box-shadow: 0 -8px 30px rgba(var(--green-950-rgb),.25);
}
#cookie-consent .cookie-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
}
#cookie-consent p { margin: 0; }
#cookie-consent a.cookie-link { color: var(--amber); font-weight: 700; text-decoration: underline; }
#cookie-consent button {
  background: var(--amber); color: #3a2b07; font-weight: 800; font-size: 14px;
  border-radius: 8px; padding: 9px 22px; transition: background .2s, transform .2s;
}
#cookie-consent button:hover { background: var(--amber-dk); transform: translateY(-2px); }

/* ---------- Scroll top ---------- */
.scroll-top-btn {
  position: fixed; bottom: 26px; right: 26px; z-index: 940;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--green-900); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
}
.scroll-top-btn.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--green-700); transform: translateY(-3px); }
.scroll-top-btn svg { width: 20px; height: 20px; }

/* ---------- Docs modal (документы врача) ---------- */
.docs-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; background: rgba(var(--green-950-rgb),.6);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  overflow-y: auto;
}
.docs-modal.is-open { opacity: 1; visibility: visible; }
.docs-modal__overlay { position: absolute; inset: 0; cursor: pointer; }
.docs-modal__dialog {
  position: relative; width: 92vw; max-width: 820px; margin: auto;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 80px); display: flex; flex-direction: column;
}
.docs-modal__close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green-50); color: var(--green-900);
  font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.docs-modal__close:hover { background: var(--green-100); }
.docs-modal__title { padding: 24px 64px 16px 28px; font-size: 24px; }
.docs-modal__body { padding: 0 28px 28px; overflow-y: auto; }
.docs-modal__body img {
  width: 100%; border-radius: 12px; margin-bottom: 16px;
  border: 1px solid var(--line);
}
.docs-modal__empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Team card extras ---------- */
.team-card .exp { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.team-card .ttime { color: var(--muted); font-size: 14px; margin-bottom: 18px; display: flex; gap: 8px; align-items: flex-start; }
.team-card .ttime svg { width: 17px; height: 17px; color: var(--green-600); flex: none; margin-top: 2px; }
.team-card .tbody { display: flex; flex-direction: column; }
.team-card .tbody .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Schedule cards on green section ---------- */
.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); justify-content: center; gap: 26px; max-width: 1100px; margin: 0 auto; }
.schedule-card {
  background: var(--green-800); border-radius: var(--radius);
  padding: 34px 28px; text-align: center;
  transition: transform .22s ease;
}
.schedule-card:hover { transform: translateY(-6px); }
.schedule-card .sicon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--green-700); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
}
.schedule-card .sicon svg { width: 28px; height: 28px; }
.schedule-card h3 { color: #fff; font-size: 21px; margin-bottom: 8px; }
.schedule-card .stime { color: #fff; font-size: 24px; font-weight: 800; font-family: var(--serif); }
.schedule-card p { color: rgba(255,255,255,.7); font-size: 14.5px; margin-top: 6px; }
@media (max-width: 920px) { .schedule-grid { grid-template-columns: 1fr; max-width: 420px; } }

/* ---------- Gallery grid (главная) ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-grid.two { grid-template-columns: repeat(2, 1fr); }
.gallery-item {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
@media (max-width: 1080px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .gallery-grid, .gallery-grid.two { grid-template-columns: 1fr; } }

/* Мозаика на главной: 5 колонок — три вертикальных фото + горизонтальное на 2 колонки */
.gallery-grid.mosaic { grid-template-columns: repeat(5, 1fr); }
.gallery-grid.mosaic .gallery-item img { aspect-ratio: 3/4; }
.gallery-grid.mosaic .gallery-item.wide { grid-column: span 2; }
.gallery-grid.mosaic .gallery-item.wide img { aspect-ratio: auto; }
@media (max-width: 1080px) { .gallery-grid.mosaic { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .gallery-grid.mosaic { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid.mosaic .gallery-item.wide { grid-column: span 2; }
}

/* ---------- Price page ---------- */
.price-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-600);
  border-radius: 12px;
  padding: 16px 22px;
  max-width: 880px;
  margin: 0 auto 32px;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.55;
}
.price-notice svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green-700);
}
.price-notice p {
  margin: 0;
}
@media (max-width: 640px) {
  .price-notice {
    padding: 14px 16px;
    font-size: 13.5px;
    margin-bottom: 24px;
  }
}
.price-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 44px; }
.price-nav a {
  padding: 11px 22px; border-radius: 30px; border: 1.5px solid var(--line);
  font-weight: 800; font-size: 14px; color: var(--ink); background: #fff;
  transition: all .2s;
}
.price-nav a:hover { border-color: var(--green-600); color: var(--green-700); }
.price-search { max-width: 560px; margin: 0 auto 44px; position: relative; }
.price-search input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 30px;
  padding: 14px 52px 14px 22px; font-size: 15.5px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.price-search input:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(var(--green-600-rgb),.12); }
.price-search svg {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--muted); pointer-events: none;
}
.price-table-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 40px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table caption {
  text-align: left; padding: 20px 24px; font-family: var(--serif);
  font-size: 22px; font-weight: 700; color: var(--green-900);
  background: var(--green-50);
}
.price-table th {
  text-align: left; padding: 12px 16px; background: var(--green-900); color: #fff;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 800;
}
.price-table td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.price-table tbody tr:nth-child(even) td { background: var(--cream); }
.price-table td.num { color: var(--muted); width: 46px; }
.price-table td.code { color: var(--muted); white-space: nowrap; font-size: 13.5px; }
.price-table th:last-child { text-align: right; }
.price-table td.cost { font-weight: 800; color: var(--green-800); white-space: nowrap; text-align: right; }
.price-table tr.price-hidden { display: none; }
.price-table mark.price-hit { background: #FFE69C; color: #664D03; padding: 0 .1em; border-radius: 3px; }
.price-note { color: var(--muted); font-size: 14.5px; text-align: center; margin-top: 26px; }
.price-empty { text-align: center; color: var(--muted); padding: 30px; display: none; }
.price-empty.show { display: block; }

@media (max-width: 640px) {
  .price-section .container { padding: 0 10px; }
  .price-table { font-size: 12.5px; }
  .price-table caption { font-size: 18px; padding: 14px 12px; }
  .price-table th { padding: 9px 8px; font-size: 11px; letter-spacing: .03em; }
  .price-table th:first-child, .price-table td.num { display: none; }
  .price-table td { padding: 8px; }
  .price-table td.code { font-size: 11px; white-space: normal; word-break: break-all; }
  .price-table td.cost { white-space: normal; }
}

/* ---------- Doc page («Пациентам») ---------- */
.doc-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 60px; }
.doc-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; font-weight: 800; font-size: 14.5px;
  color: var(--green-900); display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.doc-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); color: var(--green-700); }
.doc-tile svg { width: 30px; height: 30px; color: var(--green-600); }
@media (max-width: 1080px) { .doc-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .doc-tiles { grid-template-columns: 1fr; } }

.doc-section { margin-bottom: 56px; scroll-margin-top: calc(var(--header-h) + 20px); }
.doc-section > h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--line); }
.doc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1080px) { .doc-cards { grid-template-columns: 1fr; } }
.doc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.doc-card h3 { font-size: 19px; margin-bottom: 12px; }
.doc-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 6px; }
.doc-card a { color: var(--green-700); font-weight: 700; }
.doc-card a:hover { color: var(--amber-dk); }
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-link {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; font-size: 15px; font-weight: 600; color: var(--ink);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.doc-link:hover { border-color: var(--green-600); transform: translateX(4px); box-shadow: var(--shadow-sm); color: var(--green-800); }
.doc-link svg { width: 20px; height: 20px; color: var(--green-600); flex: none; }
.doc-link .dl-ext {
  margin-left: auto; flex: none; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  color: var(--muted); background: var(--cream); border-radius: 6px; padding: 3px 8px;
}

/* Spoilers */
.spoiler { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-top: 22px; overflow: hidden; }
.spoiler-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px 24px; font-weight: 800; font-size: 16.5px; color: var(--green-900);
  font-family: var(--serif); text-align: left; transition: background .2s;
}
.spoiler-toggle:hover { background: var(--green-50); }
.spoiler-toggle svg { width: 20px; height: 20px; flex: none; transition: transform .25s; color: var(--green-600); }
.spoiler.open > .spoiler-toggle svg { transform: rotate(180deg); }
.spoiler-body { display: none; padding: 6px 24px 24px; }
.spoiler.open > .spoiler-body { display: block; }

@media (max-width: 640px) {
  .docs-section .container { padding: 0 10px; }
  .doc-section { margin-bottom: 38px; }
  .doc-section > h2 { font-size: 21px; margin-bottom: 16px; padding-bottom: 10px; }
  .doc-tiles { gap: 10px; margin-bottom: 38px; }
  .doc-tile { padding: 16px 12px; }
  .doc-card { padding: 18px 14px; }
  .doc-link {
    padding: 12px 12px;
    gap: 10px;
    font-size: 14px;
    border-radius: 10px;
  }
  .doc-link svg { width: 18px; height: 18px; }
  .doc-link .dl-ext { padding: 2px 6px; font-size: 10.5px; }
  .spoiler { margin-top: 14px; border-radius: 10px; }
  .spoiler-toggle { padding: 14px 12px; font-size: 15px; gap: 10px; }
  .spoiler-toggle svg { width: 18px; height: 18px; }
  .spoiler-body { padding: 4px 6px 12px; }
}

/* Expandable item in doc-list */
.doc-list .doc-expandable {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  overflow: hidden;
}
.doc-list .doc-expandable:hover {
  border-color: var(--green-600);
  box-shadow: var(--shadow-sm);
}
.doc-list .doc-expandable.open {
  border-color: var(--green-600);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
}

.doc-expandable-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .2s, color .2s;
}
.doc-expandable-toggle:hover {
  background: var(--green-50);
  color: var(--green-800);
}
.doc-expandable.open .doc-expandable-toggle {
  background: var(--green-50);
  color: var(--green-900);
  border-bottom: 1px solid var(--line);
}
.doc-expandable-toggle .doc-link-main-icon {
  width: 20px;
  height: 20px;
  color: var(--green-600);
  flex: none;
  transform: none !important;
}
.doc-expandable-title {
  flex: 1;
}
.doc-expandable-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.doc-expandable-chevron {
  width: 18px;
  height: 18px;
  color: var(--green-600);
  flex: none;
  transition: transform .25s ease;
}
.doc-expandable.open .doc-expandable-chevron {
  transform: rotate(180deg);
}
.doc-expandable:not(.open) .doc-expandable-chevron {
  transform: none !important;
}

.doc-list .doc-expandable > .spoiler-body {
  display: none;
  padding: 20px;
  background: #fbfbf9;
}
.doc-list .doc-expandable.open > .spoiler-body {
  display: block;
  animation: docExpandFade .25s ease-out;
}
@keyframes docExpandFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.vacancies-empty {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.founders-text {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.doc-info-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.doc-info-text p {
  margin: 0;
}
.doc-info-text a {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color .2s;
}
.doc-info-text a:hover {
  color: var(--green-900);
}

/* Organization Structure Cards inside Expandable */
.org-structure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.org-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(23,37,31,.04);
}
.org-card--wide {
  grid-column: span 2;
}
.org-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.org-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.org-card-icon svg {
  width: 17px;
  height: 17px;
}
.org-card-header h4 {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 800;
  color: var(--green-950);
  margin: 0;
}

.org-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.org-card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 600;
}
.org-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-600);
  flex: none;
}

.org-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.org-service-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.org-service-item--paused {
  background: #fdfbf7;
}
.org-service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14.5px;
  color: var(--green-950);
}
.org-service-head strong {
  font-weight: 700;
}
.org-service-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}
.org-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: #faebe3;
  color: var(--orange-dk);
  white-space: nowrap;
  flex: none;
}

.org-outsource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.org-outsource-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
}
.org-outsource-item strong {
  color: var(--green-950);
}

/* Medical Services Information Expandable */
.medpom-intro {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.55;
}
.medpom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.medpom-card {
  display: flex;
  flex-direction: column;
}
.medpom-card .org-card-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
}
.medpom-card .org-card-header h4 {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--green-950);
}
.medpom-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.medpom-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
}
.medpom-card-list li .org-dot {
  margin-top: 7px;
}

/* Free State Dental Clinic Info inside Expandable */
.free-clinic-header {
  margin-bottom: 14px;
}
.free-clinic-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--teal);
  background: var(--green-100);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.free-clinic-title {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--green-950);
  line-height: 1.4;
  margin: 0;
}
.free-clinic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.free-clinic-branch {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.free-clinic-branch-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.4;
}
.free-clinic-branch-title svg {
  width: 17px;
  height: 17px;
  color: var(--green-600);
  flex-shrink: 0;
  margin-top: 2px;
}
.free-clinic-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.free-clinic-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.free-clinic-contact-row svg {
  width: 15px;
  height: 15px;
  color: var(--green-600);
  flex-shrink: 0;
}
.free-clinic-contact-row a {
  color: var(--green-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.free-clinic-contact-row a:hover {
  color: var(--amber-dk);
}
.free-clinic-schedule {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
}
.free-clinic-schedule-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-950);
}
.free-clinic-schedule-head svg {
  width: 16px;
  height: 16px;
  color: var(--green-600);
  flex-shrink: 0;
}
.free-clinic-schedule-items {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}
.free-clinic-schedule-item span {
  font-weight: 700;
  color: var(--ink);
}
.free-clinic-schedule-sep {
  color: var(--line);
}

@media (max-width: 768px) {
  .org-structure-grid,
  .medpom-grid,
  .free-clinic-grid {
    grid-template-columns: 1fr;
  }
  .org-card--wide {
    grid-column: span 1;
  }
  .org-services-grid,
  .org-outsource-grid {
    grid-template-columns: 1fr;
  }
}

/* Pravila zapisi doc */
.pravila-doc {
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.6;
}
.pravila-doc-title {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 800;
  color: var(--green-950);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-100);
  line-height: 1.35;
}
.pravila-section {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.pravila-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.pravila-section h4 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pravila-section p {
  margin-bottom: 8px;
  color: var(--ink);
}
.pravila-list {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pravila-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pravila-list li .org-dot {
  margin-top: 7px;
}
.pravila-schedule-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 8px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.pravila-schedule-box strong {
  color: var(--green-950);
}
.pravila-callout {
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 16px;
}
.pravila-callout--info {
  background: #f0f7f4;
  border: 1px solid #c3e2d6;
}
.pravila-callout--legal {
  background: #faf8f5;
  border: 1px solid #ebdccb;
}
.pravila-callout-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pravila-callout--info .pravila-callout-head {
  color: var(--green-800);
}
.pravila-callout--legal .pravila-callout-head {
  color: #8c5b23;
}
.pravila-callout-head svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.pravila-callout p {
  margin-bottom: 8px;
}
.pravila-callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Contacts extras ---------- */
.requisites { width: 100%; font-size: 15px; border-collapse: collapse; }
.requisites td { padding: 10px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.requisites tr:last-child td { border-bottom: none; }
.requisites td:first-child { color: var(--muted); width: 42%; padding-right: 16px; }
.requisites td:last-child { font-weight: 700; color: var(--ink); }
.flash-msg { border-radius: 12px; padding: 16px 20px; font-weight: 700; font-size: 15px; margin-bottom: 22px; }
.flash-msg.ok { background: var(--green-100); border: 1.5px solid var(--green-600); color: var(--green-800); }
.flash-msg.err { background: #fdecea; border: 1.5px solid #c0392b; color: #922b21; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Map page (карта сайта) ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 920px) { .sitemap-grid { grid-template-columns: 1fr; } }
.sitemap-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.sitemap-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.sitemap-card h3 { font-size: 21px; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.sitemap-card h3 svg { width: 24px; height: 24px; color: var(--green-600); }
.sitemap-card ul li { margin-bottom: 10px; }
.sitemap-card ul a { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; font-weight: 600; transition: color .2s, padding-left .2s; }
.sitemap-card ul a svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--green-600); transition: color .2s; }
.sitemap-card ul a:hover { color: var(--green-700); padding-left: 4px; }
.sitemap-card ul a:hover svg { color: var(--green-700); }
.sitemap-card ul li.sitemap-sub { margin-left: 22px; margin-bottom: 8px; }
.sitemap-card ul li.sitemap-sub a { font-size: 14px; font-weight: 500; }
.sitemap-card ul li.sitemap-sub a svg { width: 14px; height: 14px; opacity: .85; }
.sitemap-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--green-100);
  color: var(--green-800);
  margin-left: 6px;
  letter-spacing: .02em;
}

/* ---------- 404 ---------- */
.error-404 { max-width: 720px; margin: 0 auto; text-align: center; }
.error-404__code {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(90px, 18vw, 160px); line-height: 1; color: var(--green-900);
  margin-bottom: 18px;
}
.error-404__code span { color: var(--amber); }
.error-404 h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.error-404 p { color: var(--muted); margin-bottom: 30px; }
.error-404 .hero-actions { justify-content: center; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14px; color: rgba(255,255,255,.7); margin-top: 14px; }
.breadcrumbs a { color: var(--amber); font-weight: 700; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-hero.light .breadcrumbs { color: var(--muted); justify-content: center; }

/* ---------- Legal lists ---------- */
.legal-body ol, .legal-body ul { color: var(--muted); margin: 0 0 14px 22px; }
.legal-body ol { list-style: decimal; }
.legal-body ul { list-style: disc; }
.legal-body li { margin-bottom: 8px; }
.legal-body h3 { font-size: 19px; margin: 22px 0 10px; }

/* ---------- Why grid: 4 колонки ---------- */
.why-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .why-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .why-grid.four { grid-template-columns: 1fr; } }

/* ==========================================================================
   FEEDBACK FORM & MEDICAL SERVICE QUALITY SURVEY
   ========================================================================== */
.contact-flash {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 500;
}
.contact-flash .flash-icon {
  font-size: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.contact-flash.flash-success {
  background: #ecfdf5;
  border: 1.5px solid #10b981;
  color: #065f46;
}
.contact-flash.flash-error {
  background: #fef2f2;
  border: 1.5px solid #ef4444;
  color: #991b1b;
}

/* Custom Checkbox */
.custom-checkbox-container {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  user-select: none;
  font-size: 14.5px;
  color: var(--ink);
  margin: 0;
}
.custom-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.custom-checkbox-container .checkmark {
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 2px solid #94a3b8;
  border-radius: 5px;
  margin-right: 10px;
  flex-shrink: 0;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
}
.custom-checkbox-container:hover input ~ .checkmark {
  border-color: var(--green-600);
}
.custom-checkbox-container input:checked ~ .checkmark {
  background-color: var(--green-600);
  border-color: var(--green-600);
}
.custom-checkbox-container .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.custom-checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

/* Only Comment Toggle Box */
.only-comment-box {
  background: var(--cream, #f8fafc);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 13px 18px;
  margin: 18px 0 22px;
  transition: background-color 0.2s ease;
}
.only-comment-box:hover {
  background: var(--sand, #e2e8f0);
}
.only-comment-box .label-text {
  font-weight: 600;
  color: var(--green-900);
}
.only-comment-box .sub-hint {
  font-weight: normal;
  color: var(--muted);
  font-size: 13px;
  margin-left: 4px;
}

/* Survey Block */
.survey-block {
  background: #f0fdf9;
  border: 1px solid #ccfbf1;
  border-radius: var(--radius);
  margin-bottom: 24px;
  max-height: 1600px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}
.survey-block.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  padding: 0;
  border-width: 0;
  pointer-events: none;
}
.survey-inner {
  padding: 24px;
}
.survey-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ccfbf1;
}
.survey-badge {
  display: inline-block;
  background: var(--green-600);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.survey-badge svg {
  width: 13px;
  height: 13px;
  color: #fbbf24;
  margin-right: 4px;
  vertical-align: -1px;
}
.survey-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 4px;
}
.survey-subtitle {
  font-size: 13.5px;
  color: var(--green-800);
  margin-bottom: 0;
}
.survey-questions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.survey-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.survey-item:hover {
  border-color: #99f6e4;
  box-shadow: 0 2px 8px rgba(14, 104, 74, 0.08);
}
.survey-question-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  flex: 1;
}
.q-num {
  width: 22px;
  height: 22px;
  background: var(--sand, #e2e8f0);
  color: var(--green-900);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.star-rating-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
  font-size: 26px;
  line-height: 1;
  user-select: none;
}
.star-rating input[type="radio"] {
  display: none;
}
.star-rating label {
  color: #cbd5e1;
  cursor: pointer;
  margin: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #f59e0b;
  transform: scale(1.18);
}
.star-rating input:checked ~ label {
  color: #f59e0b;
}
.rating-text {
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  min-width: 145px;
  display: inline-block;
}
.consent-line {
  margin: 20px 0;
  font-size: 13.5px;
}
.consent-line .label-text {
  color: var(--muted);
  line-height: 1.4;
}
.consent-line a {
  color: var(--green-700);
  text-decoration: underline;
}
.consent-line a:hover {
  color: var(--green-900);
}
.feedback-actions {
  text-align: left;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .survey-inner {
    padding: 16px 12px;
  }
  .survey-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .star-rating-box {
    width: 100%;
    justify-content: space-between;
  }
  .rating-text {
    min-width: auto;
    text-align: right;
  }
}

/* ---------- Requisites full-width block & license link ---------- */
.requisites-full-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 42px;
}
.requisites-head {
  margin-bottom: 22px;
}
.requisites-head .eyebrow {
  margin-bottom: 6px;
}
.requisites-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 48px;
  align-items: start;
}
.lic-doc-link {
  color: var(--green-700);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline;
  transition: color .2s;
}
.lic-doc-link:hover {
  color: var(--green-800);
}

/* ---------- Centered feedback form ---------- */
.contact-form-wrapper {
  max-width: 860px;
  margin: 0 auto;
}
.contact-form-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}
.contact-form-header .eyebrow {
  margin-bottom: 8px;
}

@media (max-width: 860px) {
  .requisites-full-box {
    padding: 24px 18px;
  }
  .requisites-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .requisites-col:first-child .requisites tr:last-child td {
    border-bottom: 1px dashed var(--line);
  }
}
