/* ============================================================
   ГБУЗ «Зубцовская ЦРБ» — дизайн-система
   Тёплая, человечная, спокойная. Lora + Golos Text.
   ============================================================ */

/* ---------- 1. Токены ---------- */
:root {
  /* палитра: тёплая бумага + хвойный зелёный + мёд */
  --paper:      #FAF7F1;
  --paper-deep: #F2EDE2;
  --card:       #FFFFFF;
  --ink:        #20312C;
  --ink-2:      #57655F;
  --ink-3:      #8B968F;
  --line:       #E5DECF;
  --line-soft:  #EFE9DC;

  --pine:       #14604F;
  --pine-deep:  #0C4A3C;
  --pine-ink:   #093327;
  --pine-tint:  #E2EFE8;
  --pine-tint2: #D2E5DC;

  --honey:      #E8A33B;
  --honey-deep: #C9820F;
  --honey-tint: #FBF0DB;

  --red:        #B3402F;
  --red-tint:   #F9E9E5;

  --shadow-sm: 0 1px 2px rgba(32, 49, 44, .06);
  --shadow-md: 0 6px 24px -8px rgba(32, 49, 44, .14);
  --shadow-lg: 0 20px 50px -20px rgba(12, 74, 60, .25);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --font-body: 'Golos Text', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Lora', Georgia, serif;

  --container: 1180px;
  --header-h: 76px;

  font-size: 100%;
}

/* версия для слабовидящих: размер шрифта */
html[data-fs="2"] { font-size: 115%; }
html[data-fs="3"] { font-size: 132%; }

/* ---------- 2. Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* полоса прокрутки всегда занимает место — нет скачка макета между страницами */
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: var(--pine); text-decoration-color: color-mix(in srgb, var(--pine) 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--pine-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.22; text-wrap: balance; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--pine-deep); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm); text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

/* ---------- 3. Верхняя полоса ---------- */
.topbar { background: var(--pine-ink); color: #DCE9E2; font-size: .85rem; }
.topbar__in { display: flex; align-items: center; gap: 20px; min-height: 38px; flex-wrap: wrap; padding-block: 4px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar__item svg { width: 14px; height: 14px; flex: none; opacity: .75; }
a.topbar__item:hover { color: #fff; }
.topbar__spacer { flex: 1; }
.topbar__emg { color: #FFD9C9; font-weight: 600; }
.topbar__a11y {
  display: inline-flex; align-items: center; gap: 7px;
  color: inherit; font-size: .85rem; padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
}
.topbar__a11y:hover { background: rgba(255,255,255,.1); }
.topbar__a11y svg { width: 15px; height: 15px; }

/* панель доступности */
.a11y-panel {
  background: var(--pine-deep); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.a11y-panel__in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 12px; }
.a11y-panel__group { display: flex; align-items: center; gap: 8px; }
.a11y-panel__label { font-size: .85rem; opacity: .8; }
.a11y-btn {
  min-width: 42px; padding: 6px 12px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.35); color: #fff; font-weight: 600;
}
.a11y-btn:hover { background: rgba(255,255,255,.12); }
.a11y-btn[aria-pressed="true"] { background: #fff; color: var(--pine-deep); border-color: #fff; }
.a11y-btn--fs2 { font-size: 1.15em; }
.a11y-btn--fs3 { font-size: 1.3em; }

/* ---------- 4. Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header__in { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__t { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; line-height: 1.1; letter-spacing: .01em; white-space: nowrap; }
.brand__t small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .72rem; color: var(--ink-2); letter-spacing: .04em; margin-top: 3px; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  display: block; padding: 9px 11px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500;
  white-space: nowrap;
  transition: background .15s;
}
.nav__link:hover { background: var(--pine-tint); color: var(--pine-deep); }
.nav__link--active { background: var(--pine-tint); color: var(--pine-deep); }

.header__cta { display: flex; align-items: center; gap: 12px; }
.header__cta .btn { white-space: nowrap; }

.burger { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); position: relative; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .25s, opacity .25s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* мобильное меню */
.mobile-menu {
  display: none; position: fixed; inset: 0; top: 0; z-index: 90;
  background: var(--paper); padding-top: calc(var(--header-h) + 24px);
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
/* открытое меню: глушим прокрутку страницы (она на <html>) и фиксируем
   шапку с крестиком поверх меню — sticky внутри overflow:hidden не работает */
html.menu-locked, html.menu-locked body { overflow: hidden; }
html.menu-locked .header { position: fixed; top: 0; left: 0; right: 0; }
.mobile-menu__list { padding: 8px clamp(16px, 4vw, 32px) 24px; }
.mobile-menu__link {
  display: block; padding: 15px 6px; font-size: 1.25rem; font-weight: 500;
  font-family: var(--font-display); color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu__link--active { color: var(--pine); }
.mobile-menu__foot { padding: 8px clamp(16px, 4vw, 32px) 40px; display: grid; gap: 12px; }

/* ---------- 5. Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none; text-align: center;
  border: 2px solid transparent;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--cta { background: var(--honey); color: var(--pine-ink); box-shadow: var(--shadow-sm); }
.btn--cta:hover { background: #F0B255; color: var(--pine-ink); box-shadow: var(--shadow-md); }

.btn--primary { background: var(--pine); color: #fff; }
.btn--primary:hover { background: var(--pine-deep); color: #fff; }

.btn--outline { border-color: var(--pine-tint2); color: var(--pine-deep); background: transparent; }
.btn--outline:hover { border-color: var(--pine); background: var(--pine-tint); }

.btn--ghost { color: var(--pine-deep); }
.btn--ghost:hover { background: var(--pine-tint); }

.btn--lg { padding: 15px 30px; font-size: 1.05rem; }
.btn--sm { padding: 8px 17px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, var(--pine-tint) 0%, transparent 65%),
    radial-gradient(700px 380px at -10% 100%, var(--honey-tint) 0%, transparent 60%),
    var(--paper);
}
.hero::before {
  /* тонкая сетка медицинских крестов */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M34 30h4v-8h-4v8zm0 20v-8h4v8h-4zm-12-12v-4h8v4h-8zm20 0v-4h8v4h-8z' fill='%2314604F' fill-opacity='.05'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__in {
  position: relative;
  display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}
.hero__overline {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pine);
  margin-bottom: 18px;
}
.hero__overline::before { content: ""; width: 28px; height: 2px; background: var(--honey); }
.hero__title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; margin-bottom: 18px; }
.hero__title em { font-style: italic; color: var(--pine); }
.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-2); max-width: 54ch; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .93rem; color: var(--ink-2); }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--pine); flex: none; }

/* карточка-телефонник в hero */
.hero-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 26px 26px 20px; position: relative;
}
.hero-card::before {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1px dashed var(--line); border-radius: calc(var(--r-lg) - 8px);
}
.hero-card__title {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 4px;
}
.hero-card__list { margin-top: 14px; }
.hero-card__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 10px 2px; border-top: 1px solid var(--line-soft);
}
.hero-card__row:first-child { border-top: none; }
.hero-card__label { font-size: .9rem; color: var(--ink-2); }
.hero-card__tel { font-weight: 700; font-size: 1.02rem; white-space: nowrap; text-decoration: none; }
.hero-card__foot { margin-top: 12px; font-size: .83rem; color: var(--ink-3); }

/* статус «открыто» */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-size: .87rem; font-weight: 600;
  background: var(--pine-tint); color: var(--pine-deep);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.status[data-state="open"]::before { background: #2FA56B; box-shadow: 0 0 0 4px rgba(47,165,107,.18); }
.status[data-state="closed"] { background: var(--red-tint); color: var(--red); }
.status[data-state="closed"]::before { background: var(--red); }

/* ---------- 7. Секции ---------- */
.section { padding-block: clamp(44px, 6vw, 84px); }
.section--alt { background: linear-gradient(var(--paper-deep), var(--paper-deep)); }
.section--tight { padding-block: clamp(28px, 4vw, 48px); }
.section__head { max-width: 720px; margin-bottom: clamp(26px, 4vw, 44px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__overline {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--honey-deep); margin-bottom: 10px;
}
.section__title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section__sub { color: var(--ink-2); margin-top: 12px; }
.section__more { text-align: center; margin-top: clamp(24px, 4vw, 40px); }

/* ---------- 8. Плитки быстрых действий ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px 22px 20px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--pine-tint2); color: var(--ink); }
.tile__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--pine-tint); color: var(--pine);
}
.tile__icon--honey { background: var(--honey-tint); color: var(--honey-deep); }
.tile__icon--red { background: var(--red-tint); color: var(--red); }
.tile__icon svg { width: 26px; height: 26px; }
.tile__title { font-weight: 600; font-size: 1.06rem; line-height: 1.3; }
.tile__desc { font-size: .9rem; color: var(--ink-2); margin-top: -8px; }
.tile__arrow { margin-top: auto; color: var(--pine); display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; }
.tile__arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.tile:hover .tile__arrow svg { transform: translateX(4px); }

/* ---------- 9. Карточки ---------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card__title { font-size: 1.12rem; margin-bottom: 10px; }
.card__text { color: var(--ink-2); font-size: .96rem; }
.card__text + .card__text { margin-top: 6px; }
.card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pine-tint); color: var(--pine); margin-bottom: 16px; }
.card__icon svg { width: 22px; height: 22px; }
.card--center { text-align: center; }
.card--center .card__icon { margin-inline: auto; }

/* режим работы */
.hours-card { display: flex; flex-direction: column; gap: 6px; }
.hours-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.hours-card__row { display: flex; justify-content: space-between; gap: 16px; font-size: .95rem; padding-block: 7px; border-top: 1px dashed var(--line); }
.hours-card__row dt { color: var(--ink-2); }
.hours-card__row dd { font-weight: 600; text-align: right; }

/* новости */
.news-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; text-decoration: none; color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--ink); }
.news-card__date {
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--honey-deep);
}
.news-card__title { font-size: 1.12rem; }
.news-card__text { color: var(--ink-2); font-size: .94rem; }

/* информер «последние новости» на главной (uCoz, $MYINF_N$) */
.news-informer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-informer .news-card { height: 100%; }
/* если uCoz вывел информер таблицей — отключаем сетку, раскладывает таблица */
.news-informer:has(table) { display: block; }
.news-informer table { width: 100%; border-collapse: separate; border-spacing: 12px; }
.news-informer td { vertical-align: top; }

/* лента новостей (страница) */
.news-item {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.news-item + .news-item { margin-top: 16px; }
.news-item__date { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--honey-deep); margin-bottom: 8px; }
.news-item__title { font-size: 1.25rem; margin-bottom: 10px; }
.news-item__text { color: var(--ink-2); }
.news-item__text ul { padding-left: 20px; margin-top: 8px; }

/* ---------- 9а. Актуальная информация (редактируемый слот объявлений) ---------- */
.notice {
  background: var(--honey-tint);
  border: 1px solid color-mix(in srgb, var(--honey) 45%, var(--line));
  border-left: 5px solid var(--honey);
  border-radius: var(--r-md);
  padding: 22px 26px;
}
.notice__badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  background: var(--honey); color: var(--pine-ink);
  font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  margin-bottom: 12px;
}
.notice__title { font-size: 1.22rem; margin-bottom: 10px; }
.notice__body { color: var(--ink-2); }
.notice__body p + p { margin-top: 8px; }
.notice__body ul { padding-left: 20px; margin-top: 8px; }
.notice__body li { margin-block: 4px; }
.notice img { max-width: 100%; height: auto; border-radius: var(--r-sm); margin-top: 10px; }
/* варианты: спокойное информационное и срочное */
.notice--info { background: var(--pine-tint); border-color: var(--pine-tint2); border-left-color: var(--pine); }
.notice--info .notice__badge { background: var(--pine); color: #fff; }
.notice--alert { background: var(--red-tint); border-color: color-mix(in srgb, var(--red) 35%, var(--line)); border-left-color: var(--red); }
.notice--alert .notice__badge { background: var(--red); color: #fff; }
.notice + .notice, .notice + .banner-row, .banner-row + .notice,
.notice + .media-grid, .media-grid + .notice, .notice + .doc-list, .doc-list + .notice { margin-top: 16px; }

/* сетка картинок/фото с подписями */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.media-grid figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.media-grid img { width: 100%; height: auto; display: block; }
.media-grid figcaption { padding: 10px 14px; font-size: .88rem; color: var(--ink-2); }

/* список документов (PDF, приказы, графики) */
.doc-list { display: grid; gap: 8px; }
.doc-list a {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  text-decoration: none; font-weight: 500;
}
.doc-list a::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314604F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E") center/contain no-repeat;
}
.doc-list a:hover { border-color: var(--pine); background: var(--pine-tint); }
.doc-list small { color: var(--ink-3); font-weight: 400; margin-left: auto; white-space: nowrap; }

/* ряд баннеров-картинок (ссылки на разделы и внешние ресурсы) */
.banner-row { display: flex; flex-wrap: wrap; gap: 14px; }
.banner-row a {
  display: block; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.banner-row a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.banner-row img { height: 130px; width: auto; display: block; }
@media (max-width: 640px) {
  .banner-row a { width: 100%; }
  .banner-row img { height: auto; width: 100%; }
}

/* ---------- 10. Инфобоксы ---------- */
.info-box {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--pine);
  border-radius: var(--r-sm); padding: 22px 26px;
}
.info-box--honey { border-left-color: var(--honey); }
.info-box--red { border-left-color: var(--red); background: var(--red-tint); border-color: color-mix(in srgb, var(--red) 25%, var(--line)); }
.info-box__title { font-weight: 700; font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 8px; }
.info-box ul { padding-left: 20px; color: var(--ink-2); }
.info-box li { margin-block: 4px; }
.info-box p { color: var(--ink-2); }
.info-box p + p { margin-top: 8px; }

/* шаги записи */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step {
  position: relative; counter-increment: step;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 56px 22px 22px;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 18px; left: 22px;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; font-style: italic;
  color: var(--pine-tint2);
}
.step__title { font-weight: 600; margin-bottom: 6px; }
.step__text { font-size: .92rem; color: var(--ink-2); }
.step__text a { font-weight: 600; }

/* ---------- 11. Расписание ---------- */
.sched-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-bottom: 26px;
}
.sched-search { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.sched-search svg {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-3); pointer-events: none;
}
.sched-search input {
  width: 100%; padding: 12px 16px 12px 44px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--card);
}
.sched-search input:focus { outline: none; border-color: var(--pine); }
.sched-today-note { font-size: .9rem; color: var(--ink-2); }
.sched-today-note strong { color: var(--pine-deep); }

.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.chip {
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.chip:hover { border-color: var(--pine); color: var(--pine-deep); }

.sched-group { margin-bottom: clamp(34px, 5vw, 56px); }
.sched-group__title {
  font-size: 1.35rem; margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.sched-group__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-sm); }
.sched-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.sched-table th, .sched-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.sched-table thead th {
  background: var(--pine-tint); color: var(--pine-ink);
  font-weight: 600; font-size: .85rem; letter-spacing: .03em;
  white-space: nowrap;
}
.sched-table tbody tr:last-child td { border-bottom: none; }
.sched-table tbody tr:hover td { background: color-mix(in srgb, var(--pine-tint) 35%, transparent); }
.sched-table .t-name { font-weight: 600; min-width: 180px; }
.sched-table .t-name small { display: block; font-weight: 400; color: var(--ink-2); }
.sched-table .t-cab { white-space: nowrap; color: var(--ink-2); }
.sched-table .t-dash { color: var(--ink-3); }
.sched-table th.is-today, .sched-table td.is-today { background: var(--honey-tint); }
.sched-table thead th.is-today { color: var(--honey-deep); box-shadow: inset 0 -3px 0 var(--honey); }
.sched-table tr.is-hidden { display: none; }
.sched-empty { display: none; padding: 28px; text-align: center; color: var(--ink-2); }

/* мобильная версия таблицы — карточки */
@media (max-width: 760px) {
  .table-wrap { border: none; background: none; box-shadow: none; overflow: visible; }
  .sched-table, .sched-table tbody, .sched-table tr, .sched-table td { display: block; }
  .sched-table thead { display: none; }
  .sched-table tr {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
  }
  .sched-table td { border: none; padding: 6px 0; }
  .sched-table td[data-label]::before {
    content: attr(data-label);
    float: left; margin-right: 12px;
    color: var(--ink-2); font-size: .88rem;
  }
  .sched-table td[data-label] { text-align: right; font-weight: 500; border-top: 1px dashed var(--line-soft); }
  .sched-table .t-name { text-align: left; font-size: 1.08rem; padding-bottom: 8px; }
  .sched-table td.is-today { background: var(--honey-tint); border-radius: 6px; padding-inline: 8px; }
}

/* ---------- 12. Аккордеон ---------- */
.acc-search { margin-bottom: 26px; }
.accordion { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); overflow: hidden; box-shadow: var(--shadow-sm); }
.acc-item + .acc-item { border-top: 1px solid var(--line-soft); }
.acc-item.is-hidden { display: none; }
.acc-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 18px 22px; text-align: left;
  font-weight: 600; font-size: 1.02rem;
  transition: background .15s;
}
.acc-trigger:hover { background: color-mix(in srgb, var(--pine-tint) 40%, transparent); }
.acc-trigger svg { width: 20px; height: 20px; flex: none; color: var(--pine); transition: transform .25s; }
.acc-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc-panel { display: none; padding: 2px 22px 22px; color: var(--ink-2); }
.acc-panel.is-open { display: block; }
.acc-panel ul, .acc-panel ol { padding-left: 22px; margin-block: 8px; }
.acc-panel li { margin-block: 4px; }
.acc-panel p + p { margin-top: 10px; }
.acc-panel h4 { color: var(--ink); margin: 14px 0 6px; font-family: var(--font-body); font-size: 1rem; }

.acc-heading { font-size: 1.35rem; margin: clamp(28px, 4vw, 40px) 0 14px; display: flex; align-items: center; gap: 12px; }
.acc-heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.acc-heading:first-of-type { margin-top: 0; }

/* ---------- 13. Хлебные крошки и заголовок страницы ---------- */
.page-head {
  background:
    radial-gradient(700px 300px at 90% -40%, var(--pine-tint) 0%, transparent 70%),
    var(--paper);
  border-bottom: 1px solid var(--line-soft);
  padding-block: clamp(28px, 4.5vw, 56px);
}
.breadcrumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--pine); }
.page-head__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.page-head__sub { color: var(--ink-2); margin-top: 10px; max-width: 70ch; }

/* ---------- 14. Контакты ---------- */
.contact-list { display: grid; gap: 0; }
.contact-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 13px 4px; border-top: 1px solid var(--line-soft);
}
.contact-row:first-child { border-top: none; }
.contact-row dt { color: var(--ink-2); font-size: .95rem; }
.contact-row dd { font-weight: 600; text-align: right; white-space: nowrap; }
.contact-row a { text-decoration: none; }

.map-frame { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }

/* формы */
.form-grid { display: grid; gap: 16px; }
.form-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--card);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--pine); }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ink-3); }

/* ---------- 15. Баннер «Решаем вместе» ---------- */
.banner {
  position: relative; overflow: hidden;
  background: var(--pine-deep); color: #E8F1EC;
  border-radius: var(--r-lg); padding: clamp(28px, 4.5vw, 52px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center;
}
.banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M34 30h4v-8h-4v8zm0 20v-8h4v8h-4zm-12-12v-4h8v4h-8zm20 0v-4h8v4h-8z' fill='%23ffffff' fill-opacity='.06'/%3E%3C/svg%3E");
}
.banner > * { position: relative; }
.banner__title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: #fff; margin-bottom: 10px; }
.banner__text { opacity: .85; max-width: 56ch; }
.banner .btn--cta { white-space: nowrap; }

/* слот баннера ПОС «Решаем вместе» (заполняется из /pos-banner.html) */
.pos-banner-slot { padding-block: clamp(20px, 3vw, 40px); }
.pos-banner-slot #pos-banner { border-radius: var(--r-lg); overflow: hidden; }
.pos-banner-slot:has(#pos-banner:empty) { display: none; }

/* ---------- 16. Полоса экстренной помощи ---------- */
.emg-strip { background: var(--red); color: #fff; }
.emg-strip__in {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding-block: 13px; font-weight: 500; font-size: .97rem; text-align: center;
}
.emg-strip svg { width: 20px; height: 20px; flex: none; }
.emg-strip a { color: #fff; font-weight: 800; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.45); }
.emg-strip a:hover { border-bottom-color: #fff; color: #fff; }

/* ---------- 17. Подвал ---------- */
.footer { background: var(--pine-ink); color: #B9CCC2; font-size: .92rem; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
  padding-block: clamp(40px, 5vw, 64px);
}
.footer__brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-bottom: 18px; }
.footer__brand .brand__t small { color: #8FA89D; }
.footer__title { font-family: var(--font-display); color: #fff; font-size: 1.02rem; font-weight: 600; margin-bottom: 14px; }
.footer__list li { margin-block: 7px; }
.footer__list a { color: #B9CCC2; text-decoration: none; }
.footer__list a:hover { color: #fff; }
.footer__contact { display: flex; gap: 10px; margin-block: 9px; }
.footer__contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--honey); }
.footer__contact a { color: #DCE9E2; text-decoration: none; }
.footer__contact a:hover { color: #fff; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding-block: 20px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .84rem; color: #8FA89D;
}
.footer__bottom a { color: #B9CCC2; }

/* ---------- 18. Анимации появления (только при работающем JS) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }
/* элементы, видимые сразу при загрузке, показываем мгновенно — без «дёргания» при переходах */
html.js .reveal.reveal--instant { transition: none; }
html.js .reveal[data-delay="1"] { transition-delay: .08s; }
html.js .reveal[data-delay="2"] { transition-delay: .16s; }
html.js .reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 19. Высокий контраст (версия для слабовидящих) ---------- */
html[data-contrast="high"] body { background: #fff; color: #000; }
html[data-contrast="high"] .topbar,
html[data-contrast="high"] .a11y-panel,
html[data-contrast="high"] .footer,
html[data-contrast="high"] .emg-strip,
html[data-contrast="high"] .banner { background: #000; color: #fff; }
html[data-contrast="high"] .header,
html[data-contrast="high"] .hero,
html[data-contrast="high"] .page-head,
html[data-contrast="high"] .section--alt { background: #fff; }
html[data-contrast="high"] .hero::before, html[data-contrast="high"] .banner::before { display: none; }
html[data-contrast="high"] .card, html[data-contrast="high"] .tile, html[data-contrast="high"] .news-card,
html[data-contrast="high"] .notice, html[data-contrast="high"] .media-grid figure,
html[data-contrast="high"] .doc-list a,
html[data-contrast="high"] .news-item, html[data-contrast="high"] .info-box, html[data-contrast="high"] .accordion,
html[data-contrast="high"] .hero-card, html[data-contrast="high"] .table-wrap, html[data-contrast="high"] .step,
html[data-contrast="high"] .chip {
  background: #fff; border-color: #000; box-shadow: none; color: #000;
}
html[data-contrast="high"] h1, html[data-contrast="high"] h2, html[data-contrast="high"] h3,
html[data-contrast="high"] h4, html[data-contrast="high"] p, html[data-contrast="high"] dt,
html[data-contrast="high"] dd, html[data-contrast="high"] li, html[data-contrast="high"] span,
html[data-contrast="high"] .nav__link, html[data-contrast="high"] .tile__title, html[data-contrast="high"] .acc-trigger { color: #000; }
html[data-contrast="high"] a, html[data-contrast="high"] .tile__arrow { color: #00007B; text-decoration: underline; }
html[data-contrast="high"] .topbar a, html[data-contrast="high"] .footer a, html[data-contrast="high"] .footer span,
html[data-contrast="high"] .emg-strip a, html[data-contrast="high"] .banner__text, html[data-contrast="high"] .banner__title { color: #fff; }
html[data-contrast="high"] .btn { background: #000; color: #fff; border-color: #000; }
html[data-contrast="high"] .btn--outline, html[data-contrast="high"] .btn--ghost { background: #fff; color: #000; }
html[data-contrast="high"] .sched-table thead th { background: #000; color: #fff; }
html[data-contrast="high"] .sched-table th.is-today, html[data-contrast="high"] .sched-table td.is-today { background: #FFF3C4; }
html[data-contrast="high"] .status { background: #fff; color: #000; border: 2px solid #000; }

/* ---------- 20. Адаптив ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__cta .btn--cta { display: none; }
  .hero__in { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .grid--4, .grid--3, .news-informer { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .topbar__addr, .topbar__mail { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4, .news-informer { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .banner { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; }
  .contact-row { flex-direction: column; gap: 2px; }
  .contact-row dd { text-align: left; white-space: normal; }
}

/* ---------- 21. Печать ---------- */
@media print {
  .topbar, .a11y-panel, .header, .mobile-menu, .emg-strip, .footer,
  .sched-toolbar, .chip-nav, .banner, .hero__actions, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .table-wrap { border: none; box-shadow: none; }
  .sched-table th, .sched-table td { border: 1px solid #999; padding: 6px 8px; }
  .sched-table thead th { background: #eee !important; color: #000; position: static; }
  a { color: #000; text-decoration: none; }
}
