/* ============================================================
   Персональный сайт врача-офтальмолога Яковлевой В. А.
   Светлая + тёмная тема, анимации, параллакс-декор
   ============================================================ */

:root {
  --teal: #17808a;
  --teal-dark: #0f5e66;
  --teal-soft: #e7f4f5;
  --accent: #f2a65a;
  --ink: #1e2a32;
  --ink-soft: #54656f;
  --bg: #fbfdfd;
  --tint: #f3f9f9;
  --surface: #ffffff;
  --surface-2: #fbfdfd;
  --border: #e2efef;
  --border-strong: #d5e7e8;
  --header-bg: rgba(251, 253, 253, .92);
  --accent-text: #0f5e66;
  --deep: #0f5e66;
  --deep-2: #0a474e;
  --dot-pattern: rgba(23, 128, 138, .07);
  --blob-teal: rgba(23, 128, 138, .16);
  --blob-amber: rgba(242, 166, 90, .16);
  --blob-teal-strong: rgba(23, 128, 138, .26);
  --blob-amber-strong: rgba(242, 166, 90, .28);
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(23, 128, 138, .09);
  --shadow-hover: 0 16px 40px rgba(23, 128, 138, .16);
}

[data-theme="dark"] {
  --teal: #45b7c1;
  --ink: #e6f1f3;
  --ink-soft: #9db6bd;
  --bg: #0e1b20;
  --tint: #122228;
  --surface: #162a32;
  --surface-2: #122228;
  --border: #26424b;
  --border-strong: #2e4f59;
  --header-bg: rgba(14, 27, 32, .9);
  --accent-text: #7fd6dc;
  --teal-soft: #1d3a41;
  --deep: #0a3036;
  --deep-2: #082429;
  --dot-pattern: rgba(127, 214, 220, .06);
  --blob-teal: rgba(69, 183, 193, .14);
  --blob-amber: rgba(242, 166, 90, .10);
  --blob-teal-strong: rgba(69, 183, 193, .22);
  --blob-amber-strong: rgba(242, 166, 90, .16);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-hover: 0 16px 44px rgba(0, 0, 0, .5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  transition: background .4s ease, color .4s ease;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }

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

.container_text { max-width: 780px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  background: var(--teal);
  padding: 15px 32px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

[data-theme="dark"] .btn { color: #0e1b20; }

.btn:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 94, 102, .28);
}

[data-theme="dark"] .btn:hover { background: #6fd0d8; }

.btn_ghost {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

[data-theme="dark"] .btn_ghost { color: var(--accent-text); border-color: var(--teal); }

.btn_ghost:hover { background: var(--teal); color: #ffffff; box-shadow: var(--shadow-hover); }
[data-theme="dark"] .btn_ghost:hover { color: #0e1b20; }

.btn_small { padding: 10px 22px; font-size: 14px; }

/* ============================================================
   Ключевые кадры анимаций
   ============================================================ */

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(34px, -42px) scale(1.08); }
  66% { transform: translate(-26px, 26px) scale(.94); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(23, 128, 138, .35); }
  70% { box-shadow: 0 0 0 16px rgba(23, 128, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 128, 138, 0); }
}

@keyframes gradientDrift {
  0%, 100% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes letterBob {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); opacity: var(--o, .5); }
  50% { transform: translateY(-14px) rotate(var(--tilt, 0deg)); opacity: calc(var(--o, .5) + .18); }
}

@keyframes shineSweep {
  0% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(220%) skewX(-18deg); }
}

.btn_pulse { animation: ctaPulse 2.6s ease-out infinite; }
.btn_pulse:hover { animation: none; }

/* ---------- Параллакс-декор ---------- */

.decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  color: var(--teal);
  opacity: var(--o, .45);
  animation: letterBob var(--dur, 7s) ease-in-out infinite;
  will-change: transform;
}

.decor svg { display: block; }

/* ============================================================
   Шапка
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .4s ease;
}

.header_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.logo { display: flex; align-items: center; gap: 12px; color: var(--teal); }

.logo_mark { display: flex; }

.logo_eye { overflow: visible; }

.logo_eye-lid, .logo_pupil { transform-origin: 16px 16px; }

/* Эффекты глаза при наведении (класс ставит JS) */

@keyframes eyeBlink {
  0%, 100% { transform: scaleY(1); }
  45%, 55% { transform: scaleY(.06); }
}

@keyframes pupilDilate {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.55); }
  70% { transform: scale(.7); }
}

@keyframes pupilLook {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4.5px); }
  65% { transform: translateX(4.5px); }
}

@keyframes eyeWink {
  0%, 100% { transform: rotate(0deg) scale(1); }
  35% { transform: rotate(-10deg) scale(1.12); }
  70% { transform: rotate(8deg) scale(.95); }
}

.logo_mark.fx-blink .logo_eye { transform-origin: 16px 16px; animation: eyeBlink .7s ease; }
.logo_mark.fx-pupil .logo_pupil { animation: pupilDilate .9s ease; }
.logo_mark.fx-look .logo_pupil { animation: pupilLook 1s ease; }
.logo_mark.fx-wink .logo_eye { transform-origin: 16px 16px; animation: eyeWink .9s ease; }

.logo_text {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.15;
  display: flex;
  flex-direction: column;
}

.logo_text small {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.header_nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.header_nav a:not(.btn) {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: color .2s ease;
}

.header_nav a:not(.btn):hover { color: var(--teal); }

/* Переключатель темы */

.theme_toggle {
  position: relative;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 50px;
  background: var(--surface);
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease;
}

.theme_toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: left .3s ease, transform .5s ease;
}

.theme_toggle-knob svg { width: 13px; height: 13px; }

.theme_toggle .icon-moon { display: none; }

[data-theme="dark"] .theme_toggle-knob { left: 25px; transform: rotate(360deg); }
[data-theme="dark"] .theme_toggle .icon-sun { display: none; }
[data-theme="dark"] .theme_toggle .icon-moon { display: block; color: #0e1b20; }
[data-theme="dark"] .theme_toggle-knob { background: var(--teal); }

.header_burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header_burger span {
  width: 26px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, var(--teal-soft) 0%, var(--bg) 36%, rgba(242, 166, 90, .2) 72%, var(--teal-soft) 100%);
  background-size: 220% 220%;
  animation: gradientDrift 16s ease-in-out infinite;
}

.hero_blob--mid {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  top: 22%;
  left: 30%;
  background: var(--blob-teal);
  animation: blobFloat 18s ease-in-out infinite 2s;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.hero::before {
  width: 560px;
  height: 560px;
  top: -150px;
  right: -90px;
  background: var(--blob-teal-strong);
  animation: blobFloat 16s ease-in-out infinite;
}

.hero::after {
  width: 460px;
  height: 460px;
  bottom: -130px;
  left: -110px;
  background: var(--blob-amber-strong);
  animation: blobFloat 20s ease-in-out infinite reverse;
}

.hero_inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 80px;
}

/* Парящие буквы офтальмологической таблицы в hero */

.hero_letter {
  font-size: var(--size, 44px);
  opacity: var(--o, .3);
}

.hero_ring {
  position: absolute;
  left: 55%;
  top: 50%;
  width: 340px;
  height: 340px;
  margin-left: -170px;
  margin-top: -170px;
  border: 2px dashed rgba(23, 128, 138, .3);
  border-radius: 50%;
  animation: spinSlow 60s linear infinite;
  pointer-events: none;
}

[data-theme="dark"] .hero_ring { border-color: rgba(127, 214, 220, .2); }

.hero_label {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  padding: 8px 18px;
  margin-bottom: 22px;
}

.hero_title {
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.hero_quote {
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 26px;
  border-left: 4px solid var(--accent);
  padding-left: 18px;
}

.hero_badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.badge {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  padding: 7px 16px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.badge:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.hero_actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero_content > * {
  opacity: 0;
  animation: fadeUp .8s ease forwards;
}

.hero_content > *:nth-child(1) { animation-delay: .05s; }
.hero_content > *:nth-child(2) { animation-delay: .15s; }
.hero_content > *:nth-child(3) { animation-delay: .28s; }
.hero_content > *:nth-child(4) { animation-delay: .4s; }
.hero_content > *:nth-child(5) { animation-delay: .52s; }

.hero_photo {
  position: relative;
  animation: fadeUp .9s ease .25s both;
}

.hero_photo-frame {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 6px solid var(--surface);
}

.hero_photo-frame img { width: 100%; height: auto; }

.hero_photo-card {
  position: absolute;
  left: -26px;
  bottom: 26px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 22px;
  max-width: 220px;
  animation: floatY 5s ease-in-out infinite;
}

.hero_photo-card strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--teal);
}

.hero_photo-card span { font-size: 13px; color: var(--ink-soft); line-height: 1.4; display: block; }

/* ============================================================
   Цифры (редизайн: иконки, градиент, стекло)
   ============================================================ */

.stats {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 255, 255, .08) 0, transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(242, 166, 90, .16) 0, transparent 42%),
    linear-gradient(120deg, var(--deep) 0%, var(--deep-2) 45%, var(--deep) 100%);
  background-size: 200% 200%;
  animation: gradientDrift 14s ease-in-out infinite;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  pointer-events: none;
}

.stats::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
  animation: shineSweep 7s ease-in-out infinite;
  pointer-events: none;
}

.stats_grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 44px;
  padding-bottom: 44px;
}

.stats_item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  padding: 22px 24px;
  backdrop-filter: blur(6px);
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

.stats_item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .3);
}

.stats_icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, .14);
  color: #ffd9ae;
  transition: transform .35s ease;
}

.stats_item:hover .stats_icon { transform: scale(1.12) rotate(-6deg); }

.stats_item strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stats_item .stats_text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .82);
  line-height: 1.15;
}

/* ============================================================
   Секции
   ============================================================ */

.section { position: relative; padding: 88px 0; }

.section_tint {
  background-color: var(--tint);
  background-image: radial-gradient(var(--dot-pattern) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
}

.section_head {
  position: relative;
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}

.section_label {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.section_title { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.01em; }

.section_sub { margin-top: 14px; color: var(--ink-soft); font-size: 16.5px; }

/* ============================================================
   О враче
   ============================================================ */

.about {
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, var(--blob-teal) 0, transparent 38%),
    radial-gradient(circle at 4% 92%, var(--blob-amber) 0, transparent 34%),
    var(--bg);
}

.about::before {
  content: '';
  position: absolute;
  right: -70px;
  top: 60px;
  width: 420px;
  height: 420px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='none' stroke='%2317808a' stroke-width='.8' d='M2 16C6 8 11 5 16 5s10 3 14 11c-4 8-9 11-14 11S6 24 2 16Z'/%3E%3Ccircle cx='16' cy='16' r='5.5' fill='none' stroke='%2317808a' stroke-width='.8'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: .07;
  pointer-events: none;
  animation: spinSlow 90s linear infinite;
}

[data-theme="dark"] .about::before { opacity: .1; filter: invert(.8); }

.about .container { position: relative; z-index: 1; }

.about_inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 52px;
  align-items: start;
  margin-bottom: 56px;
}

.about_photo { position: relative; }

.about_photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about_photo-note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
  box-shadow: var(--shadow);
}

.about_text p { margin-bottom: 16px; color: var(--ink-soft); font-size: 16.5px; }

.about_quote {
  margin-top: 26px;
  padding: 22px 26px;
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
  border-radius: 0 14px 14px 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--accent-text);
}

.qualities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.quality_card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.quality_card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.quality_icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 14px;
  margin-bottom: 18px;
  transition: transform .35s ease, background .35s ease, color .35s ease;
}

.quality_card:hover .quality_icon {
  transform: rotate(-6deg) scale(1.1);
  background: var(--teal);
  color: #ffffff;
}

.quality_card h3 { font-size: 17.5px; margin-bottom: 10px; }
.quality_card p { font-size: 14.5px; color: var(--ink-soft); }

/* ============================================================
   Направления работы (с фоновыми изображениями)
   ============================================================ */

.spec_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.spec_card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease;
}

.spec_card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.spec_card-media {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.spec_card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.spec_card:hover .spec_card-media img { transform: scale(1.07); }

.spec_card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--surface) 92%, transparent) 100%);
}

.spec_card-body { padding: 22px 24px 28px; }

.spec_card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.spec_icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 14px;
  margin-top: -46px;
  border: 4px solid var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  transition: transform .35s ease, background .35s ease, color .35s ease;
}

.spec_card:hover .spec_icon {
  transform: rotate(-6deg) scale(1.08);
  background: var(--teal);
  color: #ffffff;
}

.spec_card h3 { font-size: 18.5px; color: var(--accent-text); }
.spec_card-body p { font-size: 14.5px; color: var(--ink-soft); }

/* ============================================================
   Путь врача (таймлайн)
   ============================================================ */

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 34px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(var(--teal), var(--accent));
  border-radius: 3px;
}

.timeline_item {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  padding-bottom: 34px;
}

.timeline_item:last-child { padding-bottom: 0; }

.timeline_item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 15px;
  height: 15px;
  background: var(--surface);
  border: 4px solid var(--teal);
  border-radius: 50%;
  transition: background .3s ease, transform .3s ease;
}

.timeline_item:hover::before {
  background: var(--accent);
  transform: scale(1.25);
}

.timeline_year {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--teal);
  padding-top: 2px;
}

.timeline_body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.timeline_item:hover .timeline_body {
  transform: translateX(6px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.timeline_body h3 { font-size: 18px; margin-bottom: 8px; }
.timeline_body p { font-size: 14.5px; color: var(--ink-soft); }

/* ============================================================
   Табы рекомендаций + карточки с картинками
   ============================================================ */

.tabs {
  display: flex;
  justify-content: center;
  gap: 34px;
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 40px;
}

.tabs_button {
  position: relative;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 4px 14px;
  transition: color .2s ease;
}

.tabs_button:hover { color: var(--accent-text); }

.tabs_button::after {
  content: '';
  display: block;
  height: 4px;
  border-radius: 4px;
  background: var(--teal);
  margin-top: 10px;
  transform: scaleX(0);
  transition: transform .25s ease;
}

.tabs_button.active { color: var(--accent-text); }

.tabs_button.active::after {
  transform: scaleX(1);
  margin-bottom: -4px;
  z-index: 2;
}

.tabs_panel { display: none; }
.tabs_panel.active { display: block; }

.advice_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.advice_card {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}

.advice_card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.advice_card:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.advice_card-media {
  position: relative;
  height: 130px;
  overflow: hidden;
  margin-bottom: 18px;
}

.advice_card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.advice_card:hover .advice_card-media img { transform: scale(1.07); }

.advice_card h3 {
  font-size: 16.5px;
  margin: 0 22px 10px;
  background-image: linear-gradient(var(--teal-soft), var(--teal-soft));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size .4s ease;
}

.advice_card:hover h3 { background-size: 100% 100%; }

.advice_card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.advice_card-more {
  margin: 14px 22px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.advice_card-more::after {
  content: '→';
  transition: transform .25s ease;
}

.advice_card:hover .advice_card-more::after { transform: translateX(4px); }

/* ---------- Модальное окно рекомендации ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}

.modal.open { visibility: visible; opacity: 1; }

.modal_overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 30, .55);
  backdrop-filter: blur(6px);
}

.modal_box {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow-hover);
  transform: translateY(26px) scale(.97);
  transition: transform .35s ease;
}

.modal.open .modal_box { transform: translateY(0) scale(1); }

.modal_img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 22px 22px 0 0;
}

.modal_body { padding: 26px 30px 32px; }

.modal_title { font-size: 22px; margin-bottom: 12px; }

.modal_text { color: var(--ink-soft); font-size: 16px; }

.modal_close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #1e2a32;
  font-size: 20px;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}

.modal_close:hover { transform: rotate(90deg); background: #ffffff; }

body.modal-locked { overflow: hidden; }

/* ============================================================
   Статьи (карточки)
   ============================================================ */

.articles_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.articles_grid-page { margin-bottom: 20px; }

.article_card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.article_card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.article_tag {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--teal-soft);
  border-radius: 50px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.article_title {
  font-size: 19px;
  margin-bottom: 12px;
  background-image: linear-gradient(var(--teal-soft), var(--teal-soft));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size .4s ease;
}

.article_card:hover .article_title { background-size: 100% 100%; }

.article_card p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }

.article_more {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--teal);
  transition: letter-spacing .3s ease;
}

.article_card:hover .article_more { letter-spacing: .03em; }

.articles_footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 44px;
}

/* ---------- Поиск статьи ---------- */

.article_search-form {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.article_search-form:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 128, 138, .12);
}

.article_search-form input {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  padding: 13px 6px 13px 22px;
  width: 210px;
}

.article_search-form button {
  font-size: 17px;
  color: #ffffff;
  background: var(--teal);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  margin-right: 5px;
  cursor: pointer;
  transition: background .2s ease;
}

.article_search-form button:hover { background: var(--teal-dark); }

.article_search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 44px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 50px;
  padding: 4px 20px;
  color: var(--teal);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.article_search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 128, 138, .12);
}

.article_search input {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 0;
}

.article_search-empty {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 30px;
}

/* ============================================================
   Отзывы
   ============================================================ */

.reviews_slider {
  max-width: 780px;
  margin: 0 auto 64px;
  overflow: hidden;
}

.reviews_track {
  display: flex;
  transition: transform .45s ease;
}

.review_slide { min-width: 100%; padding: 4px; }

.review_card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px 42px;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease;
}

.review_card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.review_stars {
  display: inline-block;
  color: var(--accent);
  font-size: 20px;
  letter-spacing: 3px;
  margin-bottom: 16px;
  transition: transform .3s ease;
}

.review_card:hover .review_stars { transform: scale(1.15); }

.review_card p { font-size: 17px; color: var(--ink); margin-bottom: 18px; }

.review_author {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.reviews_controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 26px;
}

.slider_arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: var(--surface);
  color: var(--teal);
  font-size: 18px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.slider_arrow:hover { background: var(--teal); color: #ffffff; }

.slider_counter {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
  min-width: 70px;
  text-align: center;
}

/* ---------- Форма отзыва ---------- */

.review_form-block {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 44px;
}

.review_form-block h3 { font-size: 24px; margin-bottom: 8px; }

.review_form-note { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 24px; }

.form_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form_row-single { grid-template-columns: 1fr; }

.review_form input,
.review_form select,
.review_form textarea,
.appointment_form input,
.appointment_form select,
.appointment_form textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.review_form input:focus,
.review_form select:focus,
.review_form textarea:focus,
.appointment_form input:focus,
.appointment_form select:focus,
.appointment_form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 128, 138, .12);
}

.form_hint {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 12px;
}

.user_reviews { margin-top: 30px; }

.user_reviews-item {
  border-top: 1px solid var(--border);
  padding: 20px 0 4px;
}

.user_reviews-item .review_stars { font-size: 16px; margin-bottom: 8px; text-align: left; }

.user_reviews-item p { font-size: 15px; color: var(--ink); margin-bottom: 8px; }

.user_reviews-item span { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }

/* ============================================================
   Контакты / форма вопроса
   ============================================================ */

.contacts_inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: start;
}

.contacts_info .section_label,
.contacts_info .section_title { text-align: left; }

.contacts_text { color: var(--ink-soft); margin: 18px 0 30px; max-width: 460px; }

.contacts_list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 26px; }

.contacts_item { display: flex; align-items: center; gap: 16px; }

.contacts_icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 14px;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}

.contacts_item:hover .contacts_icon {
  transform: scale(1.1);
  background: var(--teal);
  color: #ffffff;
}

.contacts_item strong { display: block; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.contacts_item a, .contacts_item div span { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.contacts_item a:hover { color: var(--teal); }

.contacts_note {
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--teal-soft);
  border-radius: 12px;
  padding: 14px 18px;
  max-width: 460px;
}

.contacts_form-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 38px;
}

.contacts_form-block h3 { font-size: 24px; margin-bottom: 20px; }

/* ============================================================
   Футер
   ============================================================ */

.footer {
  background: var(--deep);
  color: rgba(255, 255, 255, .85);
}

.footer_inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.logo_footer { color: #ffffff; margin-bottom: 16px; }
.logo_footer .logo_text { color: #ffffff; }
.logo_footer .logo_text small { color: rgba(255, 255, 255, .7); }

.footer_col p { font-size: 14px; line-height: 1.6; }

.footer_col h4 { color: #ffffff; font-size: 15px; margin-bottom: 16px; }

.footer_col a {
  display: block;
  color: rgba(255, 255, 255, .85);
  font-size: 14.5px;
  margin-bottom: 10px;
  transition: color .2s ease;
}

.footer_col a:hover { color: #ffffff; }

.footer_bottom {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 22px;
  padding-bottom: 26px;
  font-size: 13px;
}

.footer_bottom p { opacity: .75; }

.footer_disclaimer { font-weight: 600; }

/* ============================================================
   Внутренние страницы
   ============================================================ */

.page-hero {
  background: linear-gradient(160deg, var(--teal-soft) 0%, var(--bg) 70%);
  padding: 64px 0 56px;
  text-align: center;
}

.page-hero h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.01em; }

.page-hero_sub { margin-top: 14px; color: var(--ink-soft); font-size: 17px; max-width: 640px; margin-left: auto; margin-right: auto; }

.page-hero_article { text-align: left; padding: 48px 0 40px; }

.page-hero_article .article_tag { margin-bottom: 18px; }

.page-hero_article h1 { margin-bottom: 18px; }

.breadcrumbs {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.breadcrumbs a { color: var(--teal); }

.article_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.reading-progress {
  position: sticky;
  top: 76px;
  z-index: 90;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  transition: width .1s linear;
}

.article-body { padding-top: 48px; }

.article_lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 30px;
}

.article-body h2 { font-size: 26px; margin: 40px 0 16px; }

.article-body p { color: var(--ink-soft); margin-bottom: 16px; font-size: 16.5px; }

.article-body ul { margin: 0 0 20px 22px; color: var(--ink-soft); }

.article-body li { margin-bottom: 10px; font-size: 16.5px; }

.article-body strong { color: var(--ink); }

.article-body blockquote {
  margin: 34px 0;
  padding: 24px 30px;
  background: var(--teal-soft);
  border-left: 4px solid var(--teal);
  border-radius: 0 14px 14px 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--accent-text);
}

.article_cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 48px;
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 38px;
}

.article_cta h3 { font-size: 21px; margin-bottom: 8px; }
.article_cta p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* ============================================================
   Тост
   ============================================================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(140%);
  background: var(--deep);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 50px;
  padding: 15px 30px;
  box-shadow: var(--shadow-hover);
  transition: transform .4s ease;
  z-index: 400;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ============================================================
   Reveal-анимации
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.quality_card, .spec_card, .advice_card, .article_card { will-change: transform; }

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1024px) {
  .qualities { grid-template-columns: repeat(2, 1fr); }
  .spec_grid { grid-template-columns: repeat(2, 1fr); }
  .advice_grid { grid-template-columns: repeat(2, 1fr); }
  .articles_grid { grid-template-columns: repeat(2, 1fr); }
  .stats_grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 860px) {
  .header_burger { display: flex; }

  .header_nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 12px 24px 20px;
  }

  .header_nav.header_nav_visible { display: flex !important; }

  .header_nav a:not(.btn) {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }

  .header_nav-cta { margin-top: 16px; text-align: center; }

  .header_burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .header_burger.active span:nth-child(2) { opacity: 0; }
  .header_burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .logo_text { font-size: 17px; }

  .hero_inner { grid-template-columns: 1fr; gap: 44px; padding-top: 48px; padding-bottom: 56px; }
  .hero_photo { max-width: 420px; margin: 0 auto; }
  .hero_photo-card { left: 0; }
  .hero_ring { display: none; }

  .about_inner { grid-template-columns: 1fr; gap: 36px; }
  .about_photo { max-width: 480px; }

  .contacts_inner { grid-template-columns: 1fr; gap: 40px; }

  .section { padding: 60px 0; }

  .stats_item { padding: 18px; }
  .stats_item strong { font-size: 23px; }
}

@media (max-width: 560px) {
  .qualities,
  .spec_grid,
  .advice_grid,
  .articles_grid,
  .stats_grid { grid-template-columns: 1fr; }

  .timeline { padding-left: 26px; }
  .timeline::before { left: 5px; }
  .timeline_item { grid-template-columns: 1fr; gap: 8px; }
  .timeline_item::before { left: -26px; width: 12px; height: 12px; }

  .tabs { gap: 20px; overflow-x: auto; justify-content: flex-start; }
  .tabs_button { white-space: nowrap; font-size: 14.5px; }

  .form_row { grid-template-columns: 1fr; }
  .review_card { padding: 28px 22px; }
  .review_form-block { padding: 28px 22px; }
  .contacts_form-block { padding: 28px 22px; }
  .article_cta { padding: 26px 22px; }
  .footer_inner { grid-template-columns: 1fr; gap: 28px; }

  .hero_title { font-size: 36px; }

  .modal { padding: 14px; }
  .modal_img { height: 170px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   Дополнения: активная навигация, внутренние страницы
   ============================================================ */

.header_nav a:not(.btn).active { color: var(--teal); position: relative; }

.header_nav a:not(.btn).active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--teal);
}

a.spec_card { display: block; color: inherit; }
a.spec_card:hover { color: inherit; }

.spec_card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal);
}

.section_more { text-align: center; margin-top: 40px; }

.modal_text p { margin-bottom: 12px; }
.modal_text p:last-child { margin-bottom: 0; }

/* Компактный hero внутренних страниц */

.page_hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 52px;
  background: linear-gradient(130deg, var(--teal-soft) 0%, var(--bg) 55%, rgba(242, 166, 90, .14) 100%);
  text-align: center;
}

.page_hero .section_label { margin-bottom: 10px; }
.page_hero .section_sub { margin-left: auto; margin-right: auto; }

/* Сетка рекомендаций страницы «Пациентам» */

.patients_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.patients_sentinel { height: 2px; }

@media (max-width: 1024px) { .patients_grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .patients_grid { grid-template-columns: 1fr; } }

/* Развёрнутые страницы направлений */

.dir_hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 36px auto 0;
  max-width: 860px;
  box-shadow: var(--shadow-hover);
}

.dir_hero-media img { width: 100%; height: 340px; object-fit: cover; }

@media (max-width: 640px) { .dir_hero-media img { height: 200px; } }

/* Сетка отзывов на странице «Отзывы» */

.reviews_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.reviews_grid .review_card { height: 100%; }

@media (max-width: 860px) { .reviews_grid { grid-template-columns: 1fr; } }

/* Ссылки на другие направления внизу страницы направления */

.dir_other { margin-top: 44px; }

.dir_other h3 { font-size: 20px; margin-bottom: 14px; }

.dir_other-links { display: flex; flex-wrap: wrap; gap: 10px; }

.dir_other-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  padding: 8px 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.dir_other-links a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }


/* ===== CMS: согласие на обработку ПД, успех формы, cookie, служебные блоки ===== */
.checkbox { display:flex; align-items:flex-start; gap:10px; font-size:12.5px; color:var(--ink-soft); cursor:pointer; margin:12px 0 16px; user-select:none; line-height:1.45; }
.checkbox input { width:18px; height:18px; margin-top:1px; accent-color:var(--teal); flex:none; }
.checkbox .checkbox__text { flex:1; }
.checkbox--consent a { color:inherit; text-decoration:underline; }
.checkbox.is-error { color:#c23b3b; }
.appointment_form .is-error,
.review_form .is-error { border-color:#d64545 !important; box-shadow:0 0 0 3px rgba(214,69,69,.16); }

.form-success { text-align:center; padding:26px 10px; }
.form-success__icon { width:74px; height:74px; margin:0 auto 18px; border-radius:50%; background:var(--teal); display:flex; align-items:center; justify-content:center; }
.form-success__icon svg { width:36px; height:36px; }
.form-success h4 { font-size:22px; font-weight:800; margin-bottom:8px; }
.form-success p { font-size:14.5px; opacity:.85; max-width:380px; margin:0 auto; }

.cookie-pop { position:fixed; left:16px; right:16px; bottom:16px; z-index:900; margin:0 auto; max-width:720px; background:var(--surface); border-radius:16px; box-shadow:0 18px 50px rgba(10,30,40,.25); padding:16px 18px; display:flex; align-items:center; gap:14px; border:1px solid var(--border); }
.cookie-pop.hidden { display:none;}
.cookie-pop p { margin:0; font-size:13.5px; line-height:1.45; color:var(--ink-soft); flex:1; }
.cookie-pop .btn { flex:none; }
@media(max-width:640px){ .cookie-pop { flex-direction:column; align-items:stretch; text-align:center; } }
.footer__cookie { border-top:1px solid var(--border); padding:12px 0; font-size:12.5px; opacity:.72; text-align:center; }

.page-head { padding:40px 0 8px; }
.page-head__title { font-size:30px; font-weight:800; color:var(--ink); }
.page-head__sub { color:var(--ink-soft); }

.logo_img { height:44px; width:auto; display:block; }
.logo_footer .logo_img { height:38px; }

/* подсветка редактируемой секции в предпросмотре админки (v1.4) */
.cms-preview-flash { outline:3px solid var(--teal); outline-offset:4px; border-radius:8px; animation:cmsFlash 1.2s ease-in-out infinite; }
@keyframes cmsFlash { 0%,100% { outline-color:var(--teal); } 50% { outline-color:rgba(23,128,138,.25); } }
