/* Кабинет лечения боли — оформление.
   Стили вынесены в отдельный файл: политика безопасности запрещает встроенные
   стили и скрипты, поэтому всё внешнее и только своё.

   Принципы:
   — крупный текст и большие зоны нажатия: сайтом пользуются пациенты старшего возраста;
   — понятные названия разделов вместо канцелярита;
   — карточки вместо сплошного текста;
   — обязательное предупреждение о противопоказаниях видно всегда;
   — мобильная версия первична. */

:root {
  --ink: #0f172a;
  --muted: #5b6b7c;
  --line: #e2e8f0;
  --bg: #f7fafc;
  --card: #ffffff;
  --brand: #0e7490;
  --brand-dark: #0b4c63;
  --brand-soft: #e6f4f7;
  --ok: #15803d;
  --ok-soft: #e8f7ee;
  --warn: #b45309;
  --warn-soft: #fef4e6;
  --bad: #b91c1c;
  --bad-soft: #fdecec;
  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px rgba(15, 23, 42, .07);
  --tap: 48px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ── шапка ───────────────────────────────────────────────────────────────── */
header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.head-top { display: flex; align-items: center; gap: 26px; padding: 18px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--ink); }
.brand .emblem { width: 84px; height: 78px; object-fit: contain; flex: 0 0 auto; }
.brand-text b { display: block; font-size: 15px; font-weight: 700; }
.brand-text i { display: block; font-style: normal; font-size: 16px; line-height: 1.3; margin-top: 2px; }
.brand-text u { display: block; text-decoration: none; font-size: 13px; color: var(--muted); margin-top: 4px; }
.top-actions { display: flex; gap: 20px; margin-left: auto; }
.action { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none;
  color: var(--brand-dark); font-size: 13.5px; font-weight: 600; text-align: center; max-width: 120px; }
.action-icon { width: 42px; height: 42px; border: 2px solid var(--brand); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--brand); }
.top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-left: 24px; }
.ver-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px;
  text-decoration: none; }
.eye { width: 22px; height: 14px; border: 2px solid var(--brand-dark); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative; }
.eye::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--brand-dark); }
.phone { font-weight: 700; font-size: 22px; text-decoration: none; color: var(--brand-dark); }
.phone-note { color: var(--muted); font-size: 12.5px; }
.lk-link { color: var(--brand-dark); font-size: 13px; text-decoration: none; margin-top: 2px; }
/* меню: тёмная полоса + скруглённые плашки с рамкой, белые подписи */
/* меню как на снимке 17.10: полоса, белые подписи обычным регистром, без делений и рамок */
nav.main { background: #0a3a52; }
nav.main .nav-wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; padding: 0 8px; }
nav.main a { padding: 11px 20px; margin: 6px 4px; color: #ffffff; font-size: 13.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 10px; }
nav.main a:hover { background: rgba(255, 255, 255, .16); color: #ffffff; }
nav.main a.active { background: #0d7f9c; border-color: #0d7f9c; color: #ffffff; }


/* карта Яндекса и адрес */
.map-block { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); margin: 18px 0; }
.map-block iframe { border: 0; display: block; width: 100%; min-height: 340px; }
.map-side { padding: 24px; }
@media (max-width: 900px) { .map-block { grid-template-columns: 1fr; } .head-top { gap: 16px; } }

.logo {
  width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; letter-spacing: .5px;
}
.brand { line-height: 1.25; min-width: 0; }
.brand b { display: block; font-size: 16.5px; }
.brand span { color: var(--muted); font-size: 13.5px; }

.logo-img { width: 48px; height: 48px; border-radius: 12px; flex: 0 0 auto;
             object-fit: contain; background: #fff; }
.foot-logos { display: flex; gap: 18px; align-items: center; margin: 22px 0 4px; }
.foot-logos img { object-fit: contain; }
.head-phone { margin-left: auto; text-align: right; }
.head-phone a { font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap; }
.head-phone span { display: block; color: var(--muted); font-size: 12.5px; }

.nav-toggle { display: none; }
.nav-btn {
  display: none; margin-left: auto; cursor: pointer; user-select: none;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 10px 14px; font-size: 15px; background: #fff; min-height: var(--tap);
  align-items: center;
}


/* ── разделы ─────────────────────────────────────────────────────────────── */
main { padding: 32px 0 80px; }

h1 { font-size: 42px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; }
h2 { font-size: 29px; line-height: 1.25; margin: 56px 0 16px; letter-spacing: -.01em; }
h3 { font-size: 18.5px; margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 24px; max-width: 760px; }

.eyebrow {
  display: inline-block; color: var(--brand); font-size: 13.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px;
}

.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 6px; }

/* ── первый экран ────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0b4c63 0%, #0e7490 55%, #14919b 100%);
  color: #fff; border-radius: 22px; padding: 44px 40px; margin-bottom: 12px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.hero::before {
  content: ""; position: absolute; right: 40px; bottom: -160px; width: 300px; height: 300px;
  border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 720px; }
.hero p { color: #d6eef4; font-size: 18px; max-width: 620px; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 13px 22px; border: 0; border-radius: 12px;
  background: var(--brand); color: #fff; font: inherit; font-size: 16.5px;
  font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover, button:hover { background: var(--brand-dark); color: #fff; }
.btn.light { background: #fff; color: var(--brand-dark); }
.btn.light:hover { background: #eaf7fb; }
.btn.ghost, button.ghost { background: #fff; color: var(--brand-dark); border: 1px solid var(--line); }
.btn.ghost:hover, button.ghost:hover { background: var(--brand-soft); }
.btn.small, button.small { min-height: 38px; padding: 8px 14px; font-size: 14.5px; border-radius: 10px; }
button.danger { background: var(--bad); }

/* ── карточки ────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { color: var(--brand-dark); }
.card p:last-child { margin-bottom: 0; }
.card .meta { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

.icon svg { width: 24px; height: 24px; display: block; }

.icon {
  width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft);
  color: var(--brand-dark); display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 700; margin-bottom: 12px;
}

.step { position: relative; padding-left: 62px; }
.step .num {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 18px;
}

.doctor { display: flex; gap: 16px; align-items: flex-start; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand), #14919b); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip {
  background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px;
  padding: 5px 12px; font-size: 13.5px;
}

/* ── уведомления ─────────────────────────────────────────────────────────── */
.notice {
  border-radius: var(--radius); padding: 18px 20px; margin: 18px 0;
  border: 1px solid var(--line); background: var(--card);
}
.notice.info { background: var(--brand-soft); border-color: #bfdcea; }
.notice.ok { background: var(--ok-soft); border-color: #bfe3cd; }
.notice.warn { background: var(--warn-soft); border-color: #f0d3b0; }
.notice.bad { background: var(--bad-soft); border-color: #eec4cb; }
.notice b { display: block; margin-bottom: 4px; font-size: 16.5px; }

.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 13.5px; background: var(--brand-soft); color: var(--brand-dark); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }

/* ── таблицы ─────────────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 15.5px; }
caption { text-align: left; color: var(--muted); padding: 0 0 8px; font-size: 14.5px; }
th, td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
th { background: var(--brand-soft); font-size: 14.5px; }
tbody tr:nth-child(even) td { background: #fbfdfe; }

/* ── формы ───────────────────────────────────────────────────────────────── */
form.wide { max-width: 640px; }
label { display: block; margin: 16px 0 6px; font-size: 15px; color: var(--ink); font-weight: 500; }
.hint { color: var(--muted); font-size: 14px; margin-top: 4px; }
input, select, textarea {
  width: 100%; min-height: var(--tap); padding: 12px 14px; font: inherit; font-size: 16.5px;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
textarea { min-height: 100px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; }
.check input { width: 24px; height: 24px; min-height: 24px; margin-top: 2px; flex: 0 0 auto; }
.check label { margin: 0; font-weight: 400; font-size: 15.5px; }
form.inline { display: inline; }

/* ── расписание ──────────────────────────────────────────────────────────── */
.slots { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); margin-top: 10px; }
.slot {
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px;
  background: #fff; text-decoration: none; color: var(--ink); min-height: var(--tap);
  display: flex; flex-direction: column; justify-content: center;
}
.slot:hover, .slot:focus-within { border-color: var(--brand); background: var(--brand-soft); }
.slot b { display: block; font-size: 17px; }
.slot span { color: var(--muted); font-size: 13.5px; }
.slot input { display: none; }

/* ── показатели ──────────────────────────────────────────────────────────── */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font-size: 30px; color: var(--brand-dark); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14.5px; }

.kv { margin: 0; padding: 0; list-style: none; }
.kv li { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv li:last-child { border-bottom: 0; }
.kv b { flex: 0 0 220px; color: var(--muted); font-weight: 400; font-size: 15px; }

.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.mt { margin-top: 24px; }
.mt-s { margin-top: 10px; }
.right { text-align: right; }

/* ── новости ─────────────────────────────────────────────────────────────── */
.news-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-date {
  flex: 0 0 92px; color: var(--brand-dark); font-weight: 700; font-size: 15px;
}
.news-body h3 { margin-bottom: 6px; }
.news-body h3 a { text-decoration: none; }

/* ── подвал ──────────────────────────────────────────────────────────────── */
footer { background: #fff; border-top: 1px solid var(--line); margin-top: 56px; padding: 34px 0 40px; font-size: 15.5px; }
.foot-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.foot-grid h4 { margin: 0 0 10px; font-size: 16px; }
.foot-grid a { display: block; padding: 5px 0; text-decoration: none; }
.warning-line {
  background: var(--warn-soft); border: 1px solid #f0d3b0; color: #6f3a12;
  border-radius: 12px; padding: 14px 18px; margin: 26px 0 0; font-weight: 700; text-align: center;
}
.disclaimer { color: var(--muted); font-size: 14px; margin-top: 16px; text-align: center; }

/* ── кнопка на телефоне ──────────────────────────────────────────────────── */
.mobile-cta { display: none; }

@media (max-width: 860px) {
  h1 { font-size: 28px; }
  .head-phone { display: none; }
  .nav-btn { margin-left: auto; }
  .icon { width: 40px; height: 40px; border-radius: 11px; }
  .icon svg { width: 21px; height: 21px; }
  h2 { font-size: 22px; }
  .hero { padding: 30px 22px; border-radius: 18px; }
  .hero p { font-size: 16.5px; }

  /* меню открывается без скриптов: только разметкой и стилями */
  .nav-btn { display: flex; }
  nav.main { display: none; width: 100%; padding: 0; }
  .nav-toggle:checked ~ nav.main { display: block; }
  nav.main .nav-wrap { flex-direction: column; gap: 2px; padding: 8px 8px 12px; }
  nav.main a { padding: 14px 16px; border-radius: var(--radius-s); font-size: 17px; }
  .head-phone { margin-left: auto; }
  .head-phone span { display: none; }

  .news-item { flex-direction: column; gap: 6px; }
  .news-date { flex: none; }
  .kv li { flex-direction: column; gap: 2px; }
  .kv b { flex: none; }
  .doctor { flex-direction: column; }

  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-cta .btn { width: 100%; }
  main { padding-bottom: 96px; }
}

@media print {
  header, footer, .mobile-cta, .hero-actions { display: none; }
  body { background: #fff; font-size: 12pt; }
}

/* ── служебная часть ────────────────────────────────────────────────────── */
.staffbar {
  background: #0b2b38; color: #cfe6ee; border-radius: 14px;
  padding: 12px 18px; margin-bottom: 20px; display: flex; gap: 16px;
  align-items: center; flex-wrap: wrap; font-size: 15px;
}
.staffbar b { color: #fff; }
.staffbar .role { background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 4px 12px; }
.staffbar .spacer { margin-left: auto; }

.kpi { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.kpi-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px;
}
.kpi-card .n { font-size: 34px; font-weight: 700; color: var(--brand-dark); line-height: 1; }
.kpi-card .t { color: var(--muted); font-size: 15px; }
.kpi-card .go { margin-top: auto; font-size: 14.5px; }
.kpi-card.alert { border-color: #f0d3b0; background: var(--warn-soft); }
.kpi-card.alert .n { color: var(--warn); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 12px; align-items: center; }
.toolbar a {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; text-decoration: none;
  font-size: 15px; background: #fff; color: var(--ink);
}
.toolbar a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.toolbar .count { color: var(--muted); font-size: 14.5px; margin-left: auto; }

table.compact th, table.compact td { padding: 9px 10px; font-size: 15px; }
table.compact td.actions { white-space: nowrap; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { color: var(--muted); padding: 18px; text-align: center; background: #fff;
         border: 1px dashed var(--line); border-radius: var(--radius); }

.split { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }

.day-head {
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 700;
  padding: 8px 12px; border-radius: 10px; margin: 16px 0 8px; display: flex; gap: 12px;
}
.day-head .free { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 14.5px; }

.note { border-left: 3px solid var(--brand); padding: 10px 14px; background: #fff;
        border-radius: 0 var(--radius-s) var(--radius-s) 0; margin-bottom: 10px; }
.note .who { color: var(--muted); font-size: 14px; margin-bottom: 4px; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.free { background: #22c55e; }
.dot.busy { background: #f59e0b; }

/* ── вопросы и ответы ───────────────────────────────────────────────────── */
.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq:last-child { border-bottom: 0; }
.faq .q { font-weight: 700; font-size: 17px; color: var(--brand-dark); margin-bottom: 6px; }
.faq .q::before { content: "? "; color: var(--brand); }
.faq .a { color: var(--ink); }

.card ul { margin: 0; padding-left: 20px; }
.card ul li { margin-bottom: 7px; }
.card ul li:last-child { margin-bottom: 0; }

/* ── дневник боли: столбики по дням ─────────────────────────────────────── */
.bars { display: flex; gap: 6px; align-items: flex-end; height: 150px; padding: 12px 4px 0;
        border-bottom: 2px solid var(--line); }
.bar { flex: 1 1 0; min-width: 14px; background: var(--brand); border-radius: 6px 6px 0 0;
       position: relative; }
.bar span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center;
            font-size: 11.5px; color: var(--muted); }
.bar.lvl-0 { height: 4%; } .bar.lvl-1 { height: 10%; } .bar.lvl-2 { height: 20%; }
.bar.lvl-3 { height: 30%; background: #4aa3b8; } .bar.lvl-4 { height: 40%; background: #4aa3b8; }
.bar.lvl-5 { height: 50%; background: var(--warn); } .bar.lvl-6 { height: 60%; background: var(--warn); }
.bar.lvl-7 { height: 70%; background: #c2410c; } .bar.lvl-8 { height: 80%; background: var(--bad); }
.bar.lvl-9 { height: 90%; background: var(--bad); } .bar.lvl-10 { height: 100%; background: var(--bad); }
.bars-wrap { margin-bottom: 34px; }

/* ── записи пациента ───────────────────────────────────────────────────── */
.appt { border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
        padding: 16px 18px; margin-bottom: 12px; display: flex; gap: 16px; align-items: center; }
.appt .when { flex: 0 0 150px; }
.appt .when b { display: block; font-size: 18px; }
.appt .when span { color: var(--muted); font-size: 14px; }
.appt .what { flex: 1 1 auto; }
.appt .what b { display: block; }
.appt .what span { color: var(--muted); font-size: 14.5px; }
.appt .act { flex: 0 0 auto; }

/* ── фильтры журнала ───────────────────────────────────────────────────── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.filters a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
             text-decoration: none; font-size: 14.5px; background: #fff; color: var(--ink); }
.filters a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.sec { scroll-margin-top: 90px; }

/* ── медиа ──────────────────────────────────────────────────────────────── */
.media { border-radius: var(--radius); overflow: hidden; background: #0b2b38;
         box-shadow: var(--shadow); }
.media video, .media img { display: block; width: 100%; height: auto; }
.media-caption { padding: 12px 16px; color: #cfe6ee; font-size: 15px; }

.video-card { background: var(--card); border: 1px solid var(--line);
              border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-card .pad { padding: 18px 20px; }
.video-card h3 { margin-bottom: 6px; }

.quick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.quick a { display: flex; flex-direction: column; gap: 6px; text-decoration: none;
           background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s);
           padding: 16px; color: var(--ink); }
.quick a:hover { border-color: var(--brand); background: var(--brand-soft); }
.quick b { color: var(--brand-dark); }
.quick span { color: var(--muted); font-size: 14px; }

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--line);
                  border-radius: var(--radius); overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { padding: 10px 14px; font-size: 14.5px; color: var(--muted); }

.news-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
             overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.news-card img { display: block; width: 100%; height: auto; }
.news-card .pad { padding: 16px 18px; }
.news-card .date { color: var(--brand); font-size: 14px; font-weight: 700; }
.news-card h3 { margin: 6px 0 8px; }
.news-card h3 a { text-decoration: none; }

.channels { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.hero-media { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
              align-items: center; }
@media (max-width: 1000px) { .hero-media { grid-template-columns: 1fr; } }

/* ── строка версии для слабовидящих и поиска ────────────────────────────── */
.ver-row { padding: 0; font-size: 14.5px; }
.ver-wrap { display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
            padding: 8px 0 12px; }
.ver-link { color: var(--muted); text-decoration: none; }
.ver-link:hover { color: var(--brand); }
.search { margin-left: auto; display: flex; gap: 8px; }
.search input { min-height: 40px; padding: 8px 12px; font-size: 15px; min-width: 220px; }
.search button { min-height: 40px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
      white-space: nowrap; }
.foot-req { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.foot-req h4 { margin-bottom: 8px; }
.foot-req p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.55; }
.result { border-bottom: 1px solid var(--line); padding: 14px 0; }
.result:last-child { border-bottom: 0; }
.result h3 { margin-bottom: 4px; }
.result h3 a { text-decoration: none; }
.result .where { color: var(--muted); font-size: 13.5px; }
.sitemap ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 30px; }
.sitemap li { padding: 7px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.sitemap a { text-decoration: none; }
@media (max-width: 700px) { .sitemap ul { columns: 1; } }

/* ── первый экран с фотографией ─────────────────────────────────────────── */
.hero-photo {
  position: relative; border-radius: 22px; overflow: hidden; color: #fff;
  padding: 56px 44px; margin-bottom: 18px; min-height: 380px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-photo img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(7, 40, 52, .93) 0%, rgba(9, 55, 70, .82) 45%,
              rgba(12, 80, 98, .55) 100%);
}
.hero-photo > * { position: relative; z-index: 2; }
.hero-photo h1 { color: #fff; font-size: 44px; max-width: 780px; }
.hero-photo p { color: #d8eef4; font-size: 19px; max-width: 620px; margin: 0 0 26px; }
.hero-photo .hero-actions { margin-top: 4px; }
.hero-note { color: #a8cdd8; font-size: 13.5px; margin-top: 16px; }

/* ── показатели доверия ─────────────────────────────────────────────────── */
.trust { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
         margin: 0 0 8px; }
.trust div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s);
             padding: 14px 16px; }
.trust b { display: block; font-size: 20px; color: var(--brand-dark); margin-bottom: 2px; }
.trust span { color: var(--muted); font-size: 14px; }

/* ── карточки с фотографией ─────────────────────────────────────────────── */
.card-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-photo img { display: block; width: 100%; height: 190px; object-fit: cover; }
.card-photo .pad { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-photo .pad .btn { margin-top: auto; align-self: flex-start; }
.card-photo h3 { margin-bottom: 8px; }

/* ── почему выбирают ────────────────────────────────────────────────────── */
.why { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.why .item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
             padding: 22px; }
.why .num { font-size: 30px; font-weight: 700; color: var(--brand); line-height: 1; margin-bottom: 10px; }
.why h3 { font-size: 17.5px; }
.why p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ── оборудование ───────────────────────────────────────────────────────── */
.equip { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
         align-items: center; background: var(--card); border: 1px solid var(--line);
         border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.equip img { display: block; width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.equip .pad { padding: 26px 28px; }
.equip .kv b { flex: 0 0 170px; }
@media (max-width: 900px) { .equip { grid-template-columns: 1fr; } }

/* ── врачи с портретами ─────────────────────────────────────────────────── */
.doc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
            overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.doc-card img { display: block; width: 100%; height: 420px; object-fit: contain; background: #fff;
                object-position: center 20%; background: #eef3f7; }
.doc-card .pad { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.doc-card h3 { margin: 0 0 6px; }
.doc-card .btn { margin-top: auto; align-self: flex-start; }

/* ── лицензии и отзывы ──────────────────────────────────────────────────── */
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { border-bottom: 1px solid var(--line); padding: 12px 0; display: flex; gap: 14px; }
.doc-list li:last-child { border-bottom: 0; }
.doc-list b { font-weight: 600; }
.doc-list .sz { color: var(--muted); font-size: 14px; margin-left: auto; white-space: nowrap; }
.review { border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; margin: 0 0 16px; }
.review .who { color: var(--muted); font-size: 14px; }

/* ── MENU: right-rounded plate + slide-out hover animation ─────────────── */
@media (min-width: 901px) {
  nav.main { background: #0a3a52; padding: 0; }
  nav.main .nav-wrap { gap: 2px; justify-content: center; }
  nav.main a {
    position: relative; isolation: isolate; overflow: hidden;
    padding: 12px 22px; margin: 0;
    color: #ffffff; font-size: 13.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
    text-decoration: none; background: transparent;
    border: 0; border-radius: 0 999px 999px 0;
    transition: color .22s ease;
  }
  nav.main a::before {
    content: ""; position: absolute; top: 4px; bottom: 4px; left: -30%; right: 0;
    background: #e8f4f7; border-radius: 0 999px 999px 0;
    transform: translateX(-105%); opacity: 0;
    transition: transform .30s cubic-bezier(.2,.75,.25,1), opacity .18s ease;
    z-index: -1; pointer-events: none;
  }
  nav.main a:hover { color: #0b4c63; background: transparent; }
  nav.main a:hover::before { transform: translateX(0); opacity: 1; }
  nav.main a.active {
    background: #0d7f9c; border: 0;
    border-radius: 0 999px 999px 0; color: #ffffff;
  }
  nav.main a.active::before { display: none; }
  nav.main a:focus-visible { outline: 2px solid #ffffff; outline-offset: -2px; }
  nav.main a:focus-visible::before { transform: translateX(0); opacity: 1; }
}


/* ── официальные информационные ресурсы и обязательные ссылки ─────────── */
.foot-links { border-top: 1px solid var(--line); margin-top: 22px; padding: 18px 0 6px; }
.foot-links h4 { margin: 0 0 10px; font-size: 15px; }
.foot-links .links-list { list-style: none; margin: 0; padding: 0;
  display: grid; gap: 6px 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.foot-links .links-list li { font-size: 13.5px; line-height: 1.35; }
.foot-links .links-list a { color: var(--brand-dark); text-decoration: none; font-weight: 600; }
.foot-links .links-list a:hover, .foot-links .links-list a:focus { text-decoration: underline; }
.foot-links .links-list .muted { display: block; font-size: 12.5px; }
.foot-links p.muted { margin: 12px 0 0; font-size: 12.5px; }
.links-inline { columns: 2; column-gap: 28px; margin: 10px 0 0; padding-left: 18px; }
.links-inline li { margin: 0 0 8px; break-inside: avoid; font-size: 14px; }
@media (max-width: 900px) { .links-inline { columns: 1; } }


/* ── доступность (ГОСТ Р 52872-2019): пропуск к содержанию и фокус ───── */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: #ffffff; color: var(--brand-dark); padding: 10px 16px;
  border: 2px solid var(--brand); border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, label:focus-visible,
summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  nav.main a::before { transition: none; }
}

/* ── CMS: формы действий в таблицах ───────────────────────────────────── */
.inline { display: inline-block; margin: 0; }
.cms-actions form { display: inline-block; margin: 0 2px 2px 0; }


/* ── фото организации на странице «Контакты» ──────────────────────────── */
.contact-photo { margin: 20px 0 0; }
.contact-photo img { width: 100%; height: auto; border-radius: var(--radius); }
.contact-photo figcaption { margin-top: 8px; font-size: 13px; color: #5a6b73; }


/* ── фотографии врачей на странице «Врачи» ────────────────────────────── */
.doctor-photo { width: 100%; max-width: 320px; height: auto; border-radius: var(--radius);
  display: block; margin-bottom: 12px; object-fit: cover; }
.card.doctor { display: block; }


/* ── главная: значки преимуществ (как на сайте больницы) ─────────────── */
.feat-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 16px 0 8px; }
.feat { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.feat-ic { display: inline-flex; width: 56px; height: 56px; color: #0d8fa4; margin-bottom: 10px; }
.feat-ic svg { width: 100%; height: 100%; }
.feat b { display: block; font-size: 16px; margin-bottom: 6px; }
.feat p { margin: 0; font-size: 14px; }

/* ── меню: выпадающий раздел «Пациентам» ─────────────────────────────── */
nav.main .nav-item { position: relative; display: flex; }
nav.main .nav-item > a { display: inline-flex; align-items: center; gap: 6px; }
nav.main .caret { font-size: 11px; opacity: .8; }
nav.main .submenu { position: absolute; left: 0; top: 100%; z-index: 60; min-width: 250px;
  display: none; background: #ffffff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 28px rgba(15, 23, 42, .12); padding: 8px; }
nav.main .has-sub:hover .submenu, nav.main .has-sub:focus-within .submenu { display: block; }
nav.main .submenu a { display: block; padding: 10px 14px; margin: 0; color: var(--ink);
  font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0;
  border: 0; border-radius: 8px; background: transparent; }
nav.main .submenu a:hover, nav.main .submenu a:focus { background: var(--brand-soft); color: var(--brand-dark); }
nav.main .submenu a::before { content: none; }
@media (max-width: 900px) {
  nav.main .submenu { position: static; display: block; border: 0; box-shadow: none;
    background: transparent; padding: 0 0 0 16px; }
  nav.main .submenu a { color: #ffffff; }
}

/* ── страница врача ───────────────────────────────────────────────────── */
.doctor-hero { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 26px;
  align-items: start; margin: 18px 0; }
.doctor-photo-full { width: 100%; height: auto; border-radius: var(--radius); }
@media (max-width: 800px) { .doctor-hero { grid-template-columns: 1fr; } }


/* ── официальные ресурсы: карточки-слайдер ─────────────────────────────── */
.resources { margin: 22px 0 6px; padding: 18px 0; border-top: 1px solid var(--line); }
.resources-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; position: relative; }
.resources-head h3 { margin: 0; font-size: 16px; }
.resources-arrows { display: flex; gap: 6px; position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.res-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--brand-dark); font-size: 20px; line-height: 1; cursor: pointer; }
.res-btn:hover, .res-btn:focus-visible { background: var(--brand-soft); }
.resources-track { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  padding-bottom: 6px; scrollbar-width: thin; }
.resource-card { flex: 1 1 200px; max-width: 250px; scroll-snap-align: start; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start; gap: 8px; text-align: center;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff;
  color: var(--ink); text-decoration: none; font-size: 13px; line-height: 1.35; }
.resource-card img { max-height: 52px; width: auto; height: auto; }
.resource-card:hover, .resource-card:focus-visible { border-color: var(--brand); box-shadow: 0 6px 18px rgba(15,23,42,.08); }

/* ── социальные сети ──────────────────────────────────────────────────── */
@media (max-height: 760px) { .social-float { top: 62%; } }
.socials { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; }
.socials-title { font-size: 13px; color: #5a6b73; }
.soc { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; color: #fff !important; font-size: 12px; font-weight: 700; text-decoration: none; }
.soc.vk { background: #0077ff; }
.soc.ok { background: #ee8208; }
.soc.rutube { background: #111; }
.soc.max { background: #7c5cff; }
.soc:hover, .soc:focus-visible { opacity: .85; transform: translateY(-1px); }


/* ── иконки действий в шапке (стиль сайта больницы) ───────────────────── */
.action-icon { display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand-dark); }
.action-icon svg { width: 26px; height: 26px; display: block; }
.action:hover .action-icon, .action:focus-visible .action-icon { color: var(--brand); }


/* ── кнопка отправки формы не должна прилипать к полю (баг: налезала на рамку) ── */
form > button[type="submit"] { margin-top: 16px; }
form > button[type="submit"].small { margin-top: 12px; }


/* ── соцсети: плавающие облачка справа (как на сайте центра) ──────────── */
.social-float { position: fixed; right: 16px; top: 58%; transform: translateY(-50%);
  z-index: 55; display: flex; flex-direction: column; gap: 14px; }
.soc-cloud { position: relative; width: 60px; height: 44px; display: flex;
  align-items: center; justify-content: center; background: #fff;
  border-radius: 26px; box-shadow: 0 8px 22px rgba(15, 23, 42, .18);
  text-decoration: none; font-weight: 800; font-size: 15px;
  color: var(--brand-dark); transition: transform .15s ease, box-shadow .15s ease; }
.soc-cloud::before, .soc-cloud::after { content: ""; position: absolute;
  background: #fff; border-radius: 50%; z-index: -1; }
.soc-cloud::before { width: 27px; height: 27px; left: 5px; top: -10px; }
.soc-cloud::after { width: 19px; height: 19px; right: 13px; top: -7px; }
.soc-cloud:hover, .soc-cloud:focus-visible { transform: translateX(-4px) scale(1.05);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .24); }
.soc-cloud.vk .soc-text { color: #0077ff; }
.soc-cloud.ok .soc-text { color: #ee8208; }
.soc-cloud.rutube .soc-text { color: #111111; }
.soc-cloud.max .soc-text { color: #7c5cff; }
.soc-tip { position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%); background: #ffffff; color: var(--ink);
  font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .16); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.soc-cloud:hover .soc-tip, .soc-cloud:focus-visible .soc-tip { opacity: 1; }
@media (max-width: 900px) { .social-float { display: none; } }
@media print { .social-float { display: none; } }


/* ── заставка «Демонстрационный стенд» перед сайтом ───────────────────── */
.gate-body { background: #eef4f6; margin: 0; }
.gate-screen { min-height: 100vh; display: flex; flex-direction: column;
  justify-content: space-between; align-items: center; padding: 6vh 24px 26px; }
.gate-top { text-align: center; max-width: 1020px; margin: 9vh auto 0; }
.gate-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: 12.5px;
  color: #0d7f9c; font-weight: 700; margin: 0 0 20px; }
.gate-title { font-size: clamp(46px, 9.5vw, 116px); line-height: 1.03;
  letter-spacing: -.035em; margin: 0 0 20px; color: #0a3a52; }
.gate-sub { font-size: 17.5px; color: #5a6b73; margin: 0 auto; max-width: 620px; }
.gate-bottom { width: 100%; max-width: 380px; margin: 6vh 0 1vh; }
.gate-form { background: #fff; border: 1px solid #dbe7ec; border-radius: 16px;
  padding: 14px 18px 18px; box-shadow: 0 10px 30px rgba(15, 23, 42, .09);
  text-align: left; }
.gate-form label { font-size: 13.5px; margin: 10px 0 4px; display: block; color: #334155; }
.gate-form input { min-height: 40px; padding: 9px 12px; font-size: 15px; width: 100%; }
.gate-form button { width: 100%; margin-top: 14px; min-height: 42px; }
.gate-note { font-size: 12.5px; color: #6b7b83; text-align: center; margin: 12px 0 0; }
.gate-error { background: #fdecec; color: #a11d1d; border: 1px solid #f3c9c9;
  padding: 10px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 12px;
  text-align: center; }
@media (max-width: 700px) {
  .gate-screen { padding: 4vh 16px 18px; }
  .gate-top { margin-top: 5vh; }
  .gate-sub { font-size: 15.5px; }
}


/* ── фотогалерея врача ────────────────────────────────────────────────── */
.doctor-gallery { position: relative; }
.doctor-gallery-track { display: flex; align-items: flex-start; overflow-x: auto;
  scroll-snap-type: x mandatory; gap: 10px; border-radius: var(--radius);
  scrollbar-width: thin; }
.doctor-gallery-track .doctor-photo-full { flex: 0 0 100%; align-self: flex-start;
  scroll-snap-align: center; width: 100%; height: auto !important;
  max-height: 620px; object-fit: contain; background: #fff;
  border-radius: var(--radius); }
.doctor-gallery-nav { display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 10px; }
.gallery-btn { width: 40px; height: 40px; min-height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--brand-dark);
  font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.gallery-btn:hover, .gallery-btn:focus-visible { background: var(--brand-soft); }
.gallery-hint { font-size: 12.5px; color: var(--muted); }


/* ── мобильная адаптация (телефоны) ────────────────────────────────────── */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; margin: 34px 0 12px; }
  .lead { font-size: 16px; margin-bottom: 18px; }

  /* сетки — в одну колонку, без горизонтального выезда */
  .grid, .grid-2, .split, .hero-media, .equip, .map-block, .doctor-hero,
  .channels, .gallery, .feat-grid, .why, .stats, .trust, .quick, .kpi,
  .foot-grid { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

  /* шапка */
  .head-top { gap: 10px; padding: 12px 0; }
  .emblem { width: 56px; height: 52px; }
  .brand-text i { font-size: 13px; line-height: 1.25; }
  .brand-text u { display: none; }
  .top-actions { width: 100%; gap: 6px; justify-content: space-between; }
  .action { font-size: 11.5px; max-width: 110px; }
  .action-icon svg { width: 22px; height: 22px; }
  .top-right { width: 100%; flex-direction: row; align-items: center;
    justify-content: space-between; margin-left: 0; gap: 8px; }
  .ver-top { font-size: 12px; }
  .phone { font-size: 15.5px; }
  .phone-note { display: none; }

  /* строка «версия для слабовидящих» + поиск */
  .ver-wrap { flex-direction: column; align-items: stretch; gap: 8px;
    padding: 8px 0 12px; }
  .ver-link { font-size: 13.5px; }
  .search { margin-left: 0; width: 100%; }
  .search input { flex: 1 1 auto; min-width: 0; }

  /* первый экран и карточки */
  .hero-photo { padding: 30px 18px; min-height: 300px; }
  .hero-photo h1 { font-size: 30px; }
  .hero-photo p { font-size: 16px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-note { font-size: 12px; }
  .card { padding: 16px; }
  .card-photo img { height: 170px; }
  .doc-card img { height: 300px; }
  .doctor-gallery-track .doctor-photo-full { max-height: 440px; }
  .doctor-hero { gap: 16px; }
  .gallery-hint { display: none; }

  /* служебная полоса и таблицы */
  .staffbar { flex-wrap: wrap; font-size: 13px; padding: 10px 12px; gap: 8px; }
  .staffbar .spacer { display: none; }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  main table { display: block; overflow-x: auto; max-width: 100%; }
  .card table { white-space: nowrap; }

  /* подвал */
  .resources-head { flex-direction: column; align-items: stretch; }
  .resource-card { flex: 1 1 160px; max-width: none; }
  footer { padding: 26px 0 30px; }
  .foot-req p { font-size: 13.5px; }

  /* формы и кнопки удобнее пальцем */
  .btn, button { font-size: 16px; }
  .btn.small, button.small { font-size: 14px; }
  .check label { font-size: 14.5px; }
  .soc-tip { display: none; }
  .cms-actions { flex-wrap: wrap; gap: 4px; }
}

@media (max-width: 380px) {
  .wrap { padding: 0 12px; }
  h1 { font-size: 24px; }
  .hero-photo h1 { font-size: 27px; }
  .action { font-size: 11px; max-width: 100px; }
}


/* ── мобильная шапка: одна колонка, ничего не обрезается ──────────────── */
.brand-short { display: none; }
@media (max-width: 640px) {
  .head-top { flex-direction: column; align-items: stretch; gap: 10px;
    position: relative; padding: 12px 0; }
  .brand { padding-right: 92px; align-items: center; }
  .brand-text { min-width: 0; }
  .brand-long, .brand-sub { display: none; }
  .brand-short { display: block; font-size: 14px; font-weight: 700;
    color: var(--brand-dark); text-decoration: none; margin-top: 2px; }
  .nav-btn { position: absolute; top: 14px; right: 0; margin: 0; }
  .top-actions { width: 100%; gap: 4px; justify-content: space-between;
    flex-wrap: nowrap; }
  .action { flex: 1 1 0; max-width: none; font-size: 11px; }
  .top-right { width: 100%; flex-direction: row; flex-wrap: wrap;
    align-items: center; justify-content: space-between; margin-left: 0; gap: 8px; }
  .search { width: 100%; display: flex; gap: 8px; }
  .search input { flex: 1 1 auto; width: auto; min-width: 0; }
  .search button { flex: 0 0 auto; min-height: 40px; }
  .ver-row .ver-wrap { padding-bottom: 10px; }
}

/* ── заставка на телефоне ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .gate-screen { padding: 5vh 16px 18px; }
  .gate-top { margin-top: 4vh; }
  .gate-kicker { font-size: 10.5px; letter-spacing: .10em; margin-bottom: 14px; }
  .gate-title { font-size: clamp(30px, 8.5vw, 40px); letter-spacing: -.02em;
    overflow-wrap: anywhere; }
  .gate-sub { font-size: 15px; }
  .gate-bottom { max-width: 100%; margin: 4vh 0 0; }
  .gate-form { padding: 12px 14px 16px; }
  .gate-note { font-size: 12px; }
}


/* короткое имя бренда на телефоне и планшете */
@media (max-width: 900px) {
  .brand-text i.brand-long, .brand-text u.brand-sub { display: none; }
  .brand-text u.brand-short { display: block; }
}
