/* ===== БиоСим — современный бело-синий дизайн ===== */
:root {
  --primary: #1a63d6;
  --primary-dark: #0f4aa8;
  --primary-light: #e8f1fd;
  --accent: #2f80ed;
  --bg: #ffffff;
  --bg-alt: #f2f7fd;
  --text: #16202e;
  --muted: #5a6b7e;
  --border: #dfe9f5;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(20, 70, 160, 0.08);
  --shadow-lg: 0 22px 50px rgba(20, 70, 160, 0.16);
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --grad-hero: radial-gradient(1000px 480px at 85% -10%, rgba(47, 128, 237, 0.16), transparent 60%),
               radial-gradient(720px 380px at -10% 110%, rgba(26, 99, 214, 0.12), transparent 55%),
               linear-gradient(160deg, #f3f8ff 0%, #eef5ff 45%, #f7fbff 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { text-decoration: underline; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.center { text-align: center; }
.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

::selection { background: rgba(47, 128, 237, 0.22); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ===== Плавное появление при скролле ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal--visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 0.09s; }
.reveal--delay-2 { transition-delay: 0.18s; }
.reveal--delay-3 { transition-delay: 0.27s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Шапка (glassmorphism) ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 233, 245, 0.9);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.logo span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav__link {
  position: relative;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__link:hover { background: var(--bg-alt); text-decoration: none; color: var(--text); }
.nav__link--active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(26, 99, 214, 0.35); }
.nav__link--active:hover { color: #fff; filter: brightness(1.06); }

.header__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Селектор языка с флагами (кастомный dropdown) */
.lang-dropdown { position: relative; }

.lang-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 8px 14px 8px 11px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  max-width: 170px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lang-dropdown__toggle:hover { border-color: var(--accent); }
.lang-dropdown.is-open .lang-dropdown__toggle {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.2);
}

.lang-dropdown__flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.lang-dropdown__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-dropdown__chevron {
  width: 10px;
  height: 6px;
  margin-left: auto;
  flex-shrink: 0;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.lang-dropdown.is-open .lang-dropdown__chevron { transform: rotate(180deg); }

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 185px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.lang-dropdown.is-open .lang-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lang-dropdown__menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s ease;
}
.lang-dropdown__menu li:hover { background: var(--bg-alt); }

.lang-dropdown__menu li img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.lang-dropdown__menu li .lang-check {
  margin-left: auto;
  color: var(--primary);
  font-weight: 700;
  visibility: hidden;
}

.lang-dropdown__menu li.is-active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}
.lang-dropdown__menu li.is-active .lang-check { visibility: visible; }

/* Кнопка Telegram в шапке — контурная с крупным лого.
   Повышенная специфичность, чтобы display: inline-flex
   не перебивался правилом .btn { display: inline-block } ниже по файлу */
.btn.btn--header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 16px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
}
.btn--header img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  display: block;
  margin: 0;
  /* компенсация смещения самолёта внутри иконки Telegram */
  transform: translateX(2px);
}
.btn--header:hover img { transform: translateX(2px) scale(1.06); }
.btn--header:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Бургер-меню (мобильные) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 38px;
  padding: 8px 7px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.burger:hover { border-color: var(--accent); }
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Кнопки ===== */
.btn {
  position: relative;
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(26, 99, 214, 0.3);
}
.btn--primary:hover {
  background: var(--grad);
  color: #fff;
  filter: brightness(1.08);
  box-shadow: 0 16px 34px rgba(26, 99, 214, 0.4);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary);
  border: 2px solid var(--primary);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: var(--primary-light); color: var(--primary-dark); }

/* ===== Главная (hero) ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  padding: 84px 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 128, 237, 0.16), transparent 65%);
  top: -120px;
  right: -100px;
  pointer-events: none;
  animation: float-blob 9s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 99, 214, 0.12), transparent 65%);
  bottom: -140px;
  left: -80px;
  pointer-events: none;
  animation: float-blob 12s ease-in-out infinite reverse;
}

@keyframes float-blob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-26px) scale(1.06); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero__text {
  font-size: 1.12rem;
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 640px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero__features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.hero__features li {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(223, 233, 245, 0.9);
  backdrop-filter: blur(6px);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(20, 70, 160, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero__features li:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 70, 160, 0.12); }

/* ===== Секции ===== */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }

.section--cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, #0a3a86 100%);
  color: #fff;
}
.section--cta::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 60%);
  top: -180px;
  right: -120px;
  pointer-events: none;
  animation: float-blob 10s ease-in-out infinite;
}
.section--cta > .container { position: relative; z-index: 1; }
.section--cta .section__title { color: #fff; }
.section--cta .section__text { color: rgba(255, 255, 255, 0.88); margin-bottom: 24px; }
.section--cta .btn--primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}
.section--cta .btn--primary:hover { background: #fff; color: var(--primary-dark); filter: none; }
.section--cta .btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}
.section--cta .btn--ghost:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }

.section__title {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 34px;
}

.section__text {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ===== Карточки ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-bottom: 38px;
}

.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(47, 128, 237, 0.35);
}
.card:hover::before { opacity: 1; }

.card__icon {
  color: var(--primary);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--primary-light);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease;
}
.card__icon svg { width: 34px; height: 34px; }
.card__icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(20, 70, 160, 0.12);
}
.card:hover .card__icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--grad);
  color: #fff;
}

.card h3 { margin-bottom: 8px; font-size: 1.12rem; font-weight: 700; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ===== Шаги ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.step__num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(26, 99, 214, 0.3);
}

.step h3 { margin-bottom: 6px; font-weight: 700; }
.step p { color: var(--muted); }

/* ===== Внутренние страницы (шапка) ===== */
.page-head {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  padding: 52px 0;
}
.page-head::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 128, 237, 0.14), transparent 65%);
  top: -120px;
  right: -60px;
  pointer-events: none;
  animation: float-blob 11s ease-in-out infinite;
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-head p { color: var(--muted); max-width: 720px; }

/* ===== Услуги ===== */
.note {
  padding: 16px 20px;
  border-radius: 14px;
  margin-bottom: 26px;
  font-size: 0.98rem;
}

.note--info {
  background: linear-gradient(135deg, var(--primary-light), #f2f8ff);
  border: 1px solid #c6dcf9;
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(26, 99, 214, 0.1);
}

.service {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(47, 128, 237, 0.3);
  border-left-color: var(--accent);
}

.service h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.service__icon { color: var(--primary); flex-shrink: 0; }

.service__meta {
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

/* ===== Точки ===== */
.point {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.point:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(47, 128, 237, 0.3);
}

.point__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.point__head h2 { font-size: 1.3rem; font-weight: 700; }

.badge {
  background: var(--grad);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 13px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(26, 99, 214, 0.3);
}

.point__info {
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

/* Описание слева + фото входа справа (над картой) */
.point__body {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 18px;
}
.point__body .point__info { flex: 1 1 auto; min-width: 0; }

.point__entrance {
  flex-shrink: 0;
  width: 280px;
  max-width: 42%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  object-fit: cover;
}

@media (max-width: 720px) {
  .point__body { flex-direction: column; gap: 14px; }
  .point__entrance { width: 100%; max-width: 100%; }
}

/* Место под виджет интерактивной карты */
.point__map { width: 100%; }

.point__map--placeholder {
  min-height: 220px;
  margin-top: 18px;
  /*#border: 2px dashed #b9cfec;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 40%, rgba(47, 128, 237, 0.08), transparent 55%),
    var(--bg-alt);
  transition: border-color 0.25s ease;*/
}
.point:hover .point__map--placeholder { border-color: var(--accent); }

/* ===== Подвал ===== */
.footer {
  background: linear-gradient(160deg, #0e2a52 0%, #0a2143 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 30px 0;
}

.footer a { color: #9cc4f5; }
.footer a:hover { color: #c9e0fb; }

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Адаптив ===== */
@media (max-width: 860px) {
  .burger { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 12px 4%;
    gap: 6px;
    animation: nav-in 0.25s ease;
  }

  @keyframes nav-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }

  .header.nav-open .nav { display: flex; }

  .nav__link {
    padding: 12px 14px;
    border-radius: 10px;
  }
}

@media (max-width: 720px) {
  .hero { padding: 52px 0 42px; }
  .section { padding: 44px 0; }
  .page-head { padding: 36px 0; }

  .hero__actions .btn { flex: 1 1 auto; text-align: center; }
  .hero__features { gap: 8px; }
  .hero__features li { font-size: 0.9rem; padding: 8px 14px; }

  .card { padding: 22px; }
  .step { padding: 22px; }
  .service { padding: 20px 18px; }
  .point { padding: 20px 18px; }

  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .header__inner { flex-wrap: wrap; row-gap: 8px; }
  .header__controls {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .lang-dropdown__toggle { padding: 6px 12px 6px 9px; font-size: 0.85rem; gap: 6px; }
  .lang-dropdown__flag,
  .lang-dropdown__menu li img { width: 18px; height: 18px; }
  .lang-dropdown__menu { min-width: 165px; }
  .header__inner { gap: 10px; }
  .logo { font-size: 1.15rem; }
  .hero__title { font-size: 1.7rem; }
  .hero__text { font-size: 1rem; }
  .btn { padding: 12px 22px; font-size: 0.95rem; }
  .btn--header { padding: 8px 14px; font-size: 0.9rem; }
  .point__head h2 { font-size: 1.1rem; }
  .card__icon { width: 56px; height: 56px; border-radius: 15px; }
  .card__icon svg { width: 30px; height: 30px; }
}

/* ===== Полоса телефонов под шапкой (справа, закреплена при прокрутке) =====
   position: sticky + top = высота шапки (--header-h задаётся в js/main.js) */
.phones-bar {
  position: sticky;
  top: var(--header-h, 0px);
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.phones-bar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding: 9px 0;
}

.phones-bar a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  padding: 4px 0;
}
.phones-bar a:hover { color: var(--primary); text-decoration: none; }

/* Телефоны в бургер-меню (только мобильные) */
.header-phones { display: flex; flex-direction: column; gap: 4px; }
.header-phones--nav { display: none; }

@media (max-width: 860px) {
  /* Полоса телефонов на мобильных: sticky под шапкой, номера — крупные чипы
     с горизонтальной прокруткой, всегда видны при пролистывании */
  .phones-bar__inner {
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .phones-bar__inner::-webkit-scrollbar { display: none; }

  .phones-bar a {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
    white-space: nowrap;
  }
  .phones-bar a:hover,
  .phones-bar a:active {
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
  }

  .header-phones--nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px 4px;
    border-top: 1px solid var(--border);
    margin-top: 6px;
  }

  .header-phones--nav a {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    padding: 12px 0;
  }
  .header-phones--nav a:hover { color: var(--primary); }
}

/* ===== Cookie-баннер (согласие на обработку данных) ===== */
.cookie-banner {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 1100;
  width: min(720px, calc(100% - 32px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.is-visible {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.cookie-banner__text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__actions .btn {
  padding: 10px 22px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 12px;
    width: calc(100% - 24px);
  }
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  .cookie-banner__actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

/* ===== Ссылка на политику cookie в баннере ===== */
.cookie-banner__more {
  flex-shrink: 0;
  align-self: center;
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(47, 128, 237, 0.4);
  white-space: nowrap;
}

.cookie-banner__more:hover {
  color: var(--primary-dark);
}

/* ===== Компактный hero для внутренних страниц ===== */
.hero--compact { padding: 64px 0 40px; }
.hero--compact .hero__title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hero--compact .hero__text { max-width: 720px; }

/* ===== Текстовые документы (политика cookie и т.п.) ===== */
.doc {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.doc h2 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.doc h2:first-child { margin-top: 0; }

.doc p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.doc ul, .doc ol {
  margin: 8px 0 16px 22px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.doc a { text-decoration: underline; }

@media (max-width: 640px) {
  .doc { padding: 22px 18px; }
}

