/* ==========================================================================
   РЦ ПМСП МЗ РК — главная страница + «Вопрос-ответ»
   Макет: 1920px, контейнер 1320px.

   КУДА ПОЛОЖИТЬ ВАШИ ФАЙЛЫ
   ---------------------------------------------------------------------------
   assets/svg/ornament-header.svg      — орнамент хедера (бесшовная полоса, повторяется по X)
   assets/svg/ornament-footer.svg      — орнамент футера (орёл/солнце справа, ~500×500)
   assets/svg/ornament-corner-faq.svg  — орнамент угла списка вопросов (опционально)
   assets/svg/ornament-corner-form.svg — орнамент угла формы (опционально)
   assets/svg/logo.svg                 — логотип (круглый, 64×64)
   assets/svg/icon-eye.svg             — режим для слабовидящих (необязательно, есть встроенная иконка)
   assets/svg/social-instagram.svg / social-telegram.svg / social-facebook.svg
   assets/svg/partner-moh.svg / partner-damumed.svg / partner-unicef.svg
   assets/svg/partner-who.svg / partner-fund.svg / partner-astana.svg / partner-egov.svg
   assets/img/hero.jpg                 — фото врача в первом экране
   assets/img/news-1.jpg … news-5.jpg  — фото новостей
   ========================================================================== */

:root {
  --teal: #017469;
  --teal-btn: #00897b;
  --teal-deep: #005048;
  --teal-grad: #1a8a78;
  --sky-deep: #2196b6;
  --header-bg: #b8e6e2;
  --mint: #e6f7f1;
  --sky: #e3f2fd;
  --card-sky: #e3f2fa;
  --text-dark: #1a2e2b;
  --muted: #7a9494;
  --border: #d0e8e0;
  --font-alt: 'Montserrat Alternates', 'Montserrat', sans-serif;
  --font-main: 'Montserrat', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-alt);
  font-weight: 400;
  line-height: 1.3;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

.container {
  width: min(1320px, 100% - 48px);
  margin-inline: auto;
}

.section-title {
  font-weight: 500;
  font-size: 32px;
  text-align: center;
  color: #000;
}

/* --------------------------------------------------------------------------
   Орнаменты (SVG подгружаются как фон — если файла нет, просто пусто)
   -------------------------------------------------------------------------- */
.ornament { pointer-events: none; }

.ornament--header {
  position: absolute;
  inset: 23px 0 auto 0;
  height: 55px;
  z-index: -1;                 /* позади логотипа, меню и кнопки; .header создаёт свой слой (z-index: 10), поэтому не уходит под фон */
  background: url('assets/svg/ornament-header.svg') repeat-x center / auto 100%;
}

.ornament--footer {
  position: absolute;
  right: 56px;
  top: 0;
  width: 500px;
  height: 500px;
  opacity: .1;
  background: url('assets/svg/ornament-footer.svg') no-repeat right top / contain;
}

.ornament--corner {
  position: absolute;
  width: 70px;
  height: 40px;
  background-repeat: no-repeat;
  background-size: contain;
}
.ornament--corner-faq  { left: -2px;  top: -60px; width: 40px; height: 60px; background-image: url('assets/svg/ornament-corner-faq.svg'); }
.ornament--corner-form { left: 38px;  top: -1px;  background-image: url('assets/svg/ornament-corner-form.svg'); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: relative;
  z-index: 10;
  height: 100px;
  background: var(--header-bg);
}

.header__inner {
  position: static;            /* шторка меню позиционируется от .header */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 11px; }
.logo__img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.logo__title { font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--teal); }
.logo__sub { font-weight: 400; font-size: 13px; line-height: 1.3; color: var(--teal-deep); }

.nav { display: flex; align-items: center; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 8px;
  margin-right: 8px;
  font-weight: 600;
  font-size: 20px;
  color: var(--teal);
  white-space: nowrap;
  transition: opacity .2s;
}
.nav__link:hover { opacity: .7; }

.chevron {
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  color: #fff;
  background: var(--teal);
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn--header { width: 200px; height: 50px; font-size: 20px; margin-left: 20px; }

.nav__eye { margin-left: 30px; padding: 8px 3px; color: var(--teal); display: inline-flex; }
.nav__eye svg { width: 22px; height: 22px; }

.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  padding: 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 860px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(to left, rgba(33,150,182,.29), rgba(26,138,120,.38) 55%),
    url('assets/img/hero.jpg') center / cover no-repeat,
    linear-gradient(120deg, #7fc4cf, #4aa6a3);
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 50px;
  padding-block: 80px;
}

.hero__text { flex: 0 1 790px; }

.hero__title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(40px, 3.65vw, 68px);
  line-height: 1.3;
  color: #ebfffd;
}

.hero__desc {
  max-width: 744px;
  margin-top: 40px;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 20px;
  color: #fff;
}

.btn--hero {
  width: 200px;
  height: 50px;
  margin-top: 32px;
  font-size: 20px;
  background: var(--teal-btn);
}

.hero__stats {
  flex: 0 0 500px;
  display: grid;
  grid-template-columns: 240px 240px;
  gap: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 24px 20px;
  background: rgba(255,255,255,.82);
  border-radius: 30px;
  backdrop-filter: blur(2px);
}
.stat--wide { grid-column: 1 / -1; padding-inline: 31px; }

.stat__num { font-weight: 700; font-size: 48px; line-height: 1.3; color: var(--teal); white-space: nowrap; }
.stat__label { font-family: var(--font-main); font-size: 16px; line-height: 1.3; color: #195e57; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services { padding: 52px 0 86px; background: #fff; }

.search {
  display: flex;
  align-items: center;
  width: min(778px, 100%);
  height: 51px;
  margin: 24px auto 0;
  background: #fff;
  border: 1px solid #00665c;
  border-radius: 30px;
  overflow: hidden;
}
.search__input {
  flex: 1;
  height: 100%;
  padding: 0 34px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
}
.search__input::placeholder { color: rgba(0,0,0,.33); }
.search__btn {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 40px;
  padding: 0 19px 0 18px;
  border-left: 1px solid rgba(0,0,0,.35);
  font-size: 16px;
}
.search__btn svg { width: 24px; height: 24px; }

.services__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  margin-top: 48px;
}
.services__cols { display: flex; gap: 42px; }

.services__item {
  position: relative;
  padding-left: 27px;
  font-size: 24px;
  line-height: 31px;
  margin-bottom: 16px;
  white-space: nowrap;
}
.services__item:last-child { margin-bottom: 0; }
.services__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-grad);
}

.services__all {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 0 24px 27px;
  border-left: 1px solid rgba(0,0,0,.35);
  font-size: 16px;
}
.services__plus {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #00665c;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Как записаться
   -------------------------------------------------------------------------- */
.booking {
  padding: 54px 0 70px;
  background: linear-gradient(180deg, var(--mint) 1.3%, var(--sky) 98.7%);
}

.booking__grid {
  display: grid;
  grid-template-columns: repeat(4, 305px);
  gap: 25px;
  justify-content: center;
  margin-top: 55px;
}

.way {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 320px;
  padding: 32px 22px 26px;
  text-align: center;
  background: #fff;
  border: 1.5px solid #bfe0d6;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(1,116,105,.07);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.way:hover, .way:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(1,116,105,.18); border-color: var(--teal-btn); }

/* Значок: светло-зелёная плашка, внутри — зелёный цвет Damumed (одинаково у всех четырёх) */
.way__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #0f9574;          /* цвет значка — как у логотипа Damumed */
  background: #e4f4ef;     /* цвет плашки — как у Damumed */
}
.way__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.way__icon--damumed  { width: auto; padding: 0 16px; }
.way__icon--damumed img { height: 22px; width: auto; }

.way__title { margin-top: 24px; font-weight: 700; font-size: 20px; line-height: 22.5px; color: var(--text-dark); }
.way__text { margin-top: 12px; max-width: 281px; flex: 1; font-weight: 500; font-size: 16px; line-height: 20px; color: var(--muted); }

/* Кнопка внизу карточки (нажимается вся карточка, кнопка — подсказка) */
.way__btn {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--teal-btn);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  transition: background .25s;
}
.way__btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.way:hover .way__btn, .way:focus-visible .way__btn { background: var(--teal-deep); }

/* --------------------------------------------------------------------------
   Новости
   -------------------------------------------------------------------------- */
.news { padding: 43px 0 72px; background: #fff; }

.news__grid {
  display: grid;
  grid-template-columns: repeat(5, 250px);
  gap: 25px;
  justify-content: center;
  margin-top: 59px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  background: var(--card-sky);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(33,150,182,.18); }

.card__img {
  position: relative;
  height: 180px;
  background-color: #b9dbe8;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
}
.card__date {
  position: absolute;
  left: 10px;
  top: 14px;
  padding: 7px 9px;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  background: rgba(255,255,255,.8);
  border-radius: 20px;
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 13px 14px; }
.card__title { min-height: 112px; font-weight: 700; font-size: 16px; line-height: 1.3; color: #000; }
.card__more { margin-top: auto; padding-top: 0; font-weight: 500; font-size: 12px; color: #6e6e6e; }
.card__more::before {
  content: '';
  display: block;
  width: 120px;
  margin-bottom: 6px;
  border-top: 1px solid rgba(110,110,110,.5);
}

/* --------------------------------------------------------------------------
   Помогите нам стать лучше
   -------------------------------------------------------------------------- */
.feedback {
  padding: 68px 0 70px;
  text-align: center;
  background: linear-gradient(180deg, var(--mint) 1.3%, var(--sky) 98.7%);
}
.feedback__text {
  max-width: 920px;
  margin: 46px auto 0;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  opacity: .4;
}
.feedback__btns { display: flex; justify-content: center; gap: 60px; margin-top: 57px; }

.btn-grad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 450px;
  max-width: 100%;
  height: 60px;
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(90deg, var(--teal-grad), var(--sky-deep));
  border-radius: 15px;
  transition: filter .2s, transform .2s;
}
.btn-grad:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Партнёры
   -------------------------------------------------------------------------- */
.partners { padding: 57px 0 66px; background: #fff; }
.partners__rows { display: flex; flex-direction: column; align-items: center; gap: 47px; margin-top: 54px; }
.partners__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 64px; }
/* Логотип партнёра: зелёно-серый по умолчанию, при наведении плавно появляется цветной */
.partner { display: inline-flex; align-items: center; }
.partner__logo { position: relative; display: inline-block; }
.partner__img { display: block; height: 74px; width: auto; object-fit: contain; transition: opacity .35s ease; }
.partner__img--color { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.partner:hover .partner__img--color,
.partner:focus-visible .partner__img--color { opacity: 1; }
.partner:hover .partner__img--muted,
.partner:focus-visible .partner__img--muted { opacity: 0; }


/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  overflow: hidden;
  padding: 45px 0 56px;
  background: linear-gradient(180deg, var(--mint) 1.3%, var(--sky) 98.7%);
}

.footer__cols {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.3fr 1.3fr;
  gap: 32px;
}

.footer__title { margin-bottom: 26px; font-weight: 600; font-size: 18px; line-height: 23px; }
.footer__links li + li { margin-top: 11px; }
.footer__links a,
.footer__text { font-weight: 500; font-size: 16px; line-height: 21px; opacity: .4; }
.footer__links a { transition: opacity .2s; }
.footer__links a:hover,
.footer__links a.is-active { opacity: 1; }
.footer__text + .footer__text { margin-top: 0; }
.footer__gap { margin-top: 26px; }

.footer__line { margin-top: 56px; border: 0; border-top: 1px solid rgba(26,138,120,.3); }

.footer__bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 26px;
}
.footer__copy p { font-weight: 500; font-size: 16px; line-height: 21px; opacity: .4; }
.footer__copy p + p { margin-top: 11px; }
.footer__social { display: flex; gap: 8px; }
.footer__social img { width: 27px; height: 27px; }

/* --------------------------------------------------------------------------
   Страница «Вопрос-ответ»
   -------------------------------------------------------------------------- */
.page-faq, .page-inner {
  background: linear-gradient(180deg, var(--mint) 1.3%, var(--sky) 98.7%);
  background-attachment: scroll;
}

.faq { padding: 28px 0 90px; }

.faq__title { font-weight: 600; font-size: 30px; line-height: 1.3; color: var(--teal); }

.faq__inner { width: min(1220px, 100%); margin: 0 auto; }

.faq__list { position: relative; margin-top: 60px; display: flex; flex-direction: column; gap: 20px; }

.faq-item {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.faq-item:hover { border-color: rgba(1,116,105,.35); }
.faq-item.is-open {
  background: #fff;
  border-color: rgba(1,116,105,.45);
  box-shadow: 0 10px 30px rgba(1,116,105,.10);
}

.faq-item__heading { font: inherit; }

.faq-item__q {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 98px;
  padding: 0 0 0 70px;
  text-align: left;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  color: #000;
}
.faq-item__q:focus-visible { outline: 3px solid rgba(1,116,105,.45); outline-offset: -3px; border-radius: 30px; }

.faq-item__text { flex: 1; padding-right: 30px; }

/* вертикальный разделитель + плюс */
.faq-item__icon {
  position: relative;
  flex: 0 0 135px;
  align-self: stretch;
}
.faq-item__icon::before {          /* разделитель */
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  height: 50px;
  margin-top: -25px;
  border-left: 1px solid var(--teal);
}
.faq-item__icon i {                /* плюс из двух линий */
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
}
.faq-item__icon i::before,
.faq-item__icon i::after {
  content: '';
  position: absolute;
  background: var(--teal);
  border-radius: 2px;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.faq-item__icon i::before { left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; }
.faq-item__icon i::after  { top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; }
.faq-item.is-open .faq-item__icon i::after { transform: rotate(90deg) scaleX(0); }
.faq-item.is-open .faq-item__icon i::before { transform: rotate(180deg); }

/* --- Анимация раскрытия: высота плавно растёт, нижние вопросы «отъезжают» вниз --- */
.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s cubic-bezier(.4, 0, .2, 1);
}
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }

.faq-item__a-inner {
  min-height: 0;
  overflow: hidden;
  visibility: hidden;                         /* скрытый контент не попадает в Tab */
  transition: visibility 0s linear .5s;
}
.faq-item.is-open .faq-item__a-inner { visibility: visible; transition-delay: 0s; }

.faq-item__a-content {
  padding: 0 205px 36px 70px;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: #3d5a55;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .35s ease, transform .5s cubic-bezier(.4, 0, .2, 1);
}
.faq-item.is-open .faq-item__a-content { opacity: 1; transform: none; transition-delay: .1s; }
.faq-item__a-content p + p,
.faq-item__a-content ul { margin-top: 12px; }
.faq-item__a-content ul + p { margin-top: 24px; }                 /* отступ перед новым абзацем после списка */
.faq-item__a-content .sub { font-weight: 600; color: var(--text-dark); }   /* подзаголовки внутри ответа */
.faq-item__a-content li { position: relative; padding-left: 22px; }
.faq-item__a-content li + li { margin-top: 6px; }
.faq-item__a-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(.75em - 6px);   /* середина строки (0.75em) минус половина точки, поднято на 2px под шрифт */
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-grad);
}
.faq-item__a-content a { color: var(--teal); font-weight: 600; border-bottom: 1px solid rgba(1,116,105,.4); }

/* --- Форма «Не нашли ответ?» --- */
.ask {
  position: relative;
  margin-top: 60px;
  padding: 40px 70px 56px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 30px;
}
.ask__title { font-weight: 500; font-size: 24px; line-height: 1.3; }
.ask__sub { margin-top: 18px; font-size: 16px; line-height: 1.3; }

.field { margin-top: 26px; }
.field__label { display: block; margin-bottom: 20px; font-size: 16px; line-height: 20px; }
.field__label b { color: #e53935; font-weight: 400; }
.field__control {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field__control:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(1,116,105,.15); }
textarea.field__control { height: 110px; padding: 10px 14px; resize: vertical; }

.agree { display: flex; align-items: center; gap: 11px; margin-top: 30px; font-size: 16px; cursor: pointer; }
.agree input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 2px solid #000;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.agree input:checked { background: #000; }
.agree input:checked::after {
  content: '';
  width: 5px;
  height: 9px;
  margin-top: -2px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.agree input:focus-visible { outline: 3px solid rgba(1,116,105,.4); outline-offset: 2px; }

.ask__actions { display: flex; justify-content: center; gap: 77px; margin-top: 38px; }
.btn--form { width: 250px; height: 40px; font-size: 15px; border-radius: 8px; }

.ask__status { margin-top: 18px; text-align: center; font-weight: 500; font-size: 16px; color: var(--teal); min-height: 22px; }

/* --------------------------------------------------------------------------
   Адаптив (базовый)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Навбар: шторка на всю ширину («О центре», «Пациентам»)
   Орнаменты шторки (кладите SVG в assets/svg/):
     ornament-menu-emblem.svg — эмблема слева
     ornament-menu-eagle.svg  — орёл/солнце справа (можно тот же файл, что ornament-footer.svg)
     ornament-header.svg      — нижняя полоса (тот же, что в хедере)
   Прозрачность эмблемы и орла меняется переменной --menu-ornament-opacity.
   -------------------------------------------------------------------------- */
.nav__item { position: static; }
.nav__trigger { position: relative; font-family: inherit; }
.nav__link.is-current,
.nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); }

.nav__trigger .chevron { transition: transform .25s ease; }
.nav__item:hover .nav__trigger .chevron,
.nav__item.is-open .nav__trigger .chevron { transform: rotate(225deg) translateY(2px); }

/* невидимый «мостик» между пунктом и шторкой, чтобы меню не закрывалось при движении мыши */
.nav__item:hover .nav__trigger::after,
.nav__item.is-open .nav__trigger::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 30px;
}

.nav__panel {
  --menu-ornament-opacity: .12;
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  z-index: 30;
  min-height: 470px;                /* шторка вытягивается, если пунктов меню много */
  overflow: hidden;
  background: var(--header-bg);
  box-shadow: 0 24px 40px rgba(1,116,105,.14);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .45s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .45s;
}
.nav__item:hover .nav__panel,
.nav__item.is-open .nav__panel {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition-delay: 0s;
}

.nav__orn {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: var(--menu-ornament-opacity);
}
.nav__orn--emblem { left: calc(50% - 763px); top: 88px;  width: 224px; height: 190px; background-image: url('assets/svg/ornament-menu-emblem.svg'); }
.nav__orn--eagle  { left: calc(50% + 505px); top: 60px;  width: 268px; height: 225px; background-image: url('assets/svg/ornament-menu-eagle.svg'); }
.nav__orn--strip  {
  left: 0; right: 0; bottom: 35px;
  height: 55px;
  opacity: 1;
  background-image: url('assets/svg/ornament-header.svg');
  background-repeat: repeat-x;
  background-size: auto 100%;
}

/* список пунктов: выравнивается по левому краю пункта-триггера (--sub-left считает script.js) */
.nav__sub {
  position: relative;
  z-index: 2;
  padding: 12px 0 110px var(--sub-left, 840px);   /* снизу место под полосу-орнамент */
}
.nav__sub li {
  display: flex;
  align-items: center;
  height: 46px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .3s ease, transform .35s ease;
}
.nav__item:hover .nav__sub li,
.nav__item.is-open .nav__sub li {
  opacity: 1;
  transform: none;
  transition-delay: calc(.12s + var(--i, 0) * 45ms);
}
.nav__sub a {
  display: inline-block;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: var(--teal);
  transition: transform .2s ease, opacity .2s ease;
}
.nav__sub a:hover,
.nav__sub a:focus-visible { transform: translateX(8px); outline: 0; }
.nav__sub a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); }

.nav__burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.nav__burger span,
.nav__burger span::before,
.nav__burger span::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.nav__burger span { top: 21px; }
.nav__burger span::before, .nav__burger span::after { content: ''; left: 0; }
.nav__burger span::before { top: -7px; }
.nav__burger span::after  { top: 7px; }
.header.menu-open .nav__burger span { background: transparent; }
.header.menu-open .nav__burger span::before { top: 0; transform: rotate(45deg); }
.header.menu-open .nav__burger span::after  { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Внутренние страницы (заготовки) и «Контакты»
   -------------------------------------------------------------------------- */
.page { min-height: 560px; padding: 28px 0 90px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--teal); }

.page__title { margin-top: 18px; font-weight: 600; font-size: 30px; line-height: 1.3; color: var(--teal); }

.page__card {
  margin-top: 36px;
  padding: 48px 70px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 30px;
}
.page__lead { font-family: var(--font-main); font-weight: 500; font-size: 20px; line-height: 1.5; color: #3d5a55; }
.page__lead a { color: var(--teal); font-weight: 600; border-bottom: 1px solid rgba(1,116,105,.4); }

.page__related { margin-top: 36px; }
.page__related-title { font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.page__chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.chip {
  padding: 10px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 15px;
  transition: border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.chip:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(1,116,105,.12); }

.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 36px; }
.contact-card {
  padding: 30px 32px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 30px;
}
.contact-card h2 { margin-bottom: 14px; font-weight: 700; font-size: 20px; color: var(--text-dark); }
.contact-card p { font-family: var(--font-main); font-weight: 500; font-size: 17px; line-height: 1.6; color: #3d5a55; }
.contact-card a:hover { color: var(--teal); }
.contacts-note { margin-top: 24px; padding: 28px 40px; }

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

@media (max-width: 1100px) {
  .header__inner { gap: 16px; }
  .nav__burger { display: inline-flex; margin-left: auto; }

  .nav {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    z-index: 40;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 8px 24px 24px;
    background: var(--header-bg);
    border-top: 1px solid rgba(1,116,105,.15);
    box-shadow: 0 18px 30px rgba(1,116,105,.18);
  }
  .header.menu-open .nav { display: flex; }

  .nav__link { margin-right: 0; width: 100%; height: 48px; justify-content: space-between; }
  .nav__item { width: 100%; }

  .nav__item:hover .nav__trigger::after,
  .nav__item.is-open .nav__trigger::after { display: none; }

  .nav__panel {
    position: static;
    height: auto;
    max-height: 0;
    overflow: hidden;
    visibility: visible;
    clip-path: none;
    background: rgba(255,255,255,.5);
    border-radius: 14px;
    box-shadow: none;
    transition: max-height .35s ease;
  }
  .nav__item:hover .nav__panel { max-height: 0; }
  .nav__item.is-open .nav__panel { max-height: 700px; }
  .nav__orn { display: none; }

  .nav__sub { padding: 6px 14px; }
  .nav__sub li, .nav__item:hover .nav__sub li { opacity: 1; transform: none; height: 44px; }
  .nav__sub a { font-size: 18px; }
  .nav__item:hover .nav__trigger .chevron { transform: rotate(45deg) translateY(-2px); }
  .nav__item.is-open .nav__trigger .chevron { transform: rotate(225deg) translateY(2px); }

  .btn--header { width: 100%; margin: 12px 0 0; }
  .nav__eye { margin: 8px 0 0; padding: 8px; }
  .nav__lang { margin: 0; }

  .page__card { padding: 28px 24px; }
}

@media (max-width: 1400px) {
  .booking__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .news__grid   { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero__inner  { gap: 32px; }
  .hero__stats  { flex-basis: 440px; grid-template-columns: 1fr 1fr; }
  .stat__num    { font-size: 40px; }
}

@media (max-width: 1100px) {
  .hero { min-height: 0; }                                            /* на планшете/телефоне высота по содержимому */
  .hero__inner { flex-direction: column; align-items: flex-start; padding-block: 60px; }
  .hero__text { flex-basis: auto; }   /* в колонке 790px считались высотой — отсюда был большой пробел */
  .hero__stats { flex-basis: auto; width: 100%; }
  .services__list { flex-direction: column; align-items: flex-start; }
  .services__cols { flex-direction: column; gap: 16px; }
  .services__item { white-space: normal; font-size: 20px; }
  .booking__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feedback__btns { flex-direction: column; align-items: center; gap: 20px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .faq-item__q { padding-left: 28px; font-size: 20px; }
  .faq-item__icon { flex-basis: 90px; }
  .faq-item__a-content { padding: 0 28px 28px; font-size: 16px; }
  .ask { padding: 28px 24px 40px; }
  .ask__actions { flex-direction: column; align-items: center; gap: 16px; }
}

@media (max-width: 640px) {
  .section-title { font-size: 26px; }
  .booking__grid, .news__grid, .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 20px; }
  .logo__sub { display: none; }
  .btn--header { width: 150px; height: 44px; font-size: 16px; margin-left: 0; }
  .faq__title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* --------------------------------------------------------------------------
   Страница «Контакты» (макет: две карточки 600×600 + карта во всю ширину)
   -------------------------------------------------------------------------- */
.contacts { padding-top: 28px; }

.contacts__title { font-weight: 600; font-size: 40px; line-height: 1.3; color: var(--teal); }

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 600px));
  justify-content: center;
  gap: 68px;
  margin-top: 30px;
}

.contacts__card {
  min-height: 600px;
  padding: 36px 40px 40px;
  background: #faffff;
  border: 1px solid var(--border);
  border-radius: 30px;
}
.contacts__card-title { font-weight: 500; font-size: 24px; line-height: 1.3; }

.contacts__info { margin-top: 38px; }
.contacts__row + .contacts__row,
.contacts__split + .contacts__row,
.contacts__row + .contacts__split { margin-top: 28px; }
.contacts__row dt { font-size: 16px; line-height: 1.3; }
.contacts__row dd { margin-top: 14px; font-size: 16px; line-height: 1.3; color: rgba(0,0,0,.8); }
.contacts__row dd a { transition: color .2s; }
.contacts__row dd a:hover { color: var(--teal); }
.contacts__hours { line-height: 1.6 !important; }

.contacts__split {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
}
@media (min-width: 641px) {
  .contacts__hours { white-space: nowrap; }
}
.contacts__split > div > .contacts__row + .contacts__row { margin-top: 28px; }

.contacts__form { margin-top: 22px; }
.contacts__form .field { margin-top: 24px; }
.contacts__form .field__label { margin-bottom: 14px; }
.contacts__form .field__label b { color: #ff3838; }
.contacts__form .field__control { background: #faffff; }
.contacts__textarea { height: 154px !important; }

.contacts__submit { width: 241px; height: 35px; margin-top: 35px; font-size: 16px; }
.contacts__status { margin-top: 14px; min-height: 22px; font-weight: 500; font-size: 15px; color: var(--teal); }

.contacts__map {
  height: 482px;
  margin-top: 50px;
  background: #e5eef0;
}
.contacts__map iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 1100px) {
  .contacts__grid { grid-template-columns: 1fr; gap: 24px; }
  .contacts__card { min-height: 0; padding: 28px 24px; }
  .contacts__title { font-size: 32px; }
}
@media (max-width: 640px) {
  .contacts__split { grid-template-columns: 1fr; gap: 0; }
  .contacts__split > .contacts__row { margin-top: 28px; }
  .contacts__map { height: 360px; }
  .contacts__submit { width: 100%; }
}

/* отступ перед «Номера телефонов» и «Электронная почта» в футере */
.footer__text.footer__gap { margin-top: 26px; }

/* --------------------------------------------------------------------------
   Документы (Государственные закупки и др.): карточки файлов + окно просмотра
   Иконки типов файлов: assets/icons/pdf.png, docx.png, pptx.png, xlsx.png
   -------------------------------------------------------------------------- */
.docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 430px));
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.doc {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px 28px 22px;
  background: #faffff;
  border: 1px solid var(--border);
  border-radius: 30px;
  transition: box-shadow .25s, transform .25s;
}
.doc:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(1,116,105,.10); }

.doc__title {
  flex: 1;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
}

.doc__bottom { display: flex; align-items: center; gap: 15px; margin-top: 20px; }

.doc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 117px;
  height: 33px;
  background: #faffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 500;
  font-size: 16px;
  color: #000;
  transition: border-color .2s, color .2s, background-color .2s;
}
.doc__btn:hover { border-color: var(--teal); color: var(--teal); background: var(--mint); }

.doc__meta { display: flex; align-items: flex-start; gap: 5px; margin-left: auto; text-align: right; }
.doc__icon { width: 16px; height: 16px; object-fit: contain; flex: 0 0 16px; }
.doc__icon[src=""] { visibility: hidden; }
.doc__info { font-family: var(--font-main); font-weight: 500; font-size: 11px; line-height: 1.4; color: #7a7a7a; }
.doc__date { color: #a0a0a0; }

/* окно просмотра */
.viewer {
  width: min(1100px, 100% - 32px);
  height: min(90vh, 900px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.viewer[open] { display: flex; flex-direction: column; animation: viewer-in .25s ease; }
.viewer::backdrop { background: rgba(10,40,36,.55); backdrop-filter: blur(2px); }
@keyframes viewer-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.viewer__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 14px 24px;
  background: var(--header-bg);
}
.viewer__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 16px;
  color: var(--teal);
}
.viewer__action {
  padding: 8px 14px;
  background: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--teal);
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.viewer__action:hover { background: var(--teal); color: #fff; }
.viewer__close { width: 36px; height: 36px; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--teal); }
.viewer__close:hover { background: rgba(255,255,255,.6); }

.viewer__body { position: relative; flex: 1; background: #eef3f3; }
.viewer__frame { display: block; width: 100%; height: 100%; border: 0; }
.viewer__note {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 24px;
  text-align: center;
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.6;
  color: #3d5a55;
}
.viewer__note[hidden] { display: none; }
.viewer__note a { color: var(--teal); font-weight: 600; border-bottom: 1px solid rgba(1,116,105,.4); }

@media (max-width: 1400px) { .docs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .doc__title { font-size: 20px; } }
@media (max-width: 640px) {
  .docs { grid-template-columns: 1fr; }
  .doc { min-height: 0; }
  .viewer__bar { flex-wrap: wrap; }
  .viewer__title { flex-basis: 100%; order: -1; }
}

/* --------------------------------------------------------------------------
   Страница «Карьера у нас» (careers.html)
   -------------------------------------------------------------------------- */
.careers { padding-bottom: 100px; }
.careers__lead { margin-top: 30px; max-width: 1320px; font-weight: 500; font-size: 24px; line-height: 1.3; }
.careers__h2 { margin-top: 70px; font-weight: 600; font-size: 40px; line-height: 1.3; color: var(--teal); scroll-margin-top: 20px; }
.careers__h2--center { text-align: center; }

/* Почему РЦ ПМСП */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 315px)); justify-content: center; gap: 15px; margin-top: 30px; }
.why__card {
  display: flex; flex-direction: column; align-items: center;
  min-height: 335px; padding: 44px 25px 30px;
  text-align: center; background: #faffff; border: 1px solid var(--border); border-radius: 30px;
  transition: transform .25s, box-shadow .25s;
}
.why__card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(1,116,105,.10); }
.why__icon { width: 60px; height: 60px; color: var(--teal-grad); }
.why__title { margin-top: 30px; font-weight: 500; font-size: 24px; line-height: 1.3; }
.why__text { margin-top: 18px; font-size: 16px; line-height: 1.3; color: rgba(0,0,0,.8); }

/* Вакансии */
.vacancies { display: grid; grid-template-columns: repeat(2, minmax(0, 600px)); justify-content: center; gap: 40px; margin-top: 50px; align-items: stretch; }
.vacancies__list { display: flex; flex-direction: column; gap: 30px; }
.vacancies__list .vacancy { flex: 1; }
.vacancy, .vacancies__form { padding: 40px; background: #faffff; border: 1px solid var(--border); border-radius: 30px; }
.vacancy__title { padding-bottom: 14px; border-bottom: 1px solid var(--teal); font-weight: 700; font-size: 24px; color: var(--teal); }
.vacancy p { margin-top: 20px; font-weight: 500; font-size: 22px; line-height: 1.3; }
.vacancy p b { font-weight: 700; }
.vacancies__form-title { padding-bottom: 14px; border-bottom: 1px solid var(--teal); font-weight: 500; font-size: 24px; }
.vacancies__form .field { margin-top: 26px; }
.vacancies__form .field__label { margin-bottom: 10px; }
.vacancies__form .field__label b { color: #ff3838; font-weight: 400; }
.vacancies__form .field__control { background: #faffff; }
.careers__letter { height: 170px !important; }

.upload {
  position: relative; display: block; min-height: 180px; padding: 20px 22px;
  background: #faffff; border: 1px dashed var(--border); border-radius: 10px; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.upload:hover { border-color: var(--teal); background: var(--mint); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload__btn { font-size: 16px; color: var(--teal); }
.upload__name { display: block; margin-top: 10px; font-size: 14px; color: rgba(0,0,0,.7); word-break: break-all; }

.consent { display: flex; gap: 10px; margin-top: 24px; font-size: 12px; line-height: 1.3; cursor: pointer; }
.consent input {
  appearance: none; -webkit-appearance: none; flex: 0 0 15px; width: 15px; height: 15px; margin-top: 1px;
  background: #faffff; border: 1px solid var(--border); border-radius: 5px; cursor: pointer; display: grid; place-items: center;
}
.consent input:checked { background: var(--teal); border-color: var(--teal); }
.consent input:checked::after { content: ''; width: 4px; height: 7px; margin-top: -1px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.vacancies__form .contacts__submit { display: flex; margin: 30px auto 0; }
.vacancies__form .contacts__status { text-align: center; }

/* Папки УПМП */
.upmp { margin-top: 30px; }
.upmp.is-entering > * { animation: upmp-in .35s ease both; }
@keyframes upmp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.folders { display: grid; grid-template-columns: repeat(3, minmax(0, 440px)); justify-content: center; gap: 44px 20px; padding-top: 16px; }

/* Папка: две «вкладки» сверху + карточка (по мотивам nrchd.kz, в зелёной гамме) */
.folder { position: relative; display: flex; flex-direction: column; transition: transform .3s ease; }
.folder:hover { transform: translateY(-6px); }

.folder__tab {
  position: absolute;
  top: -14px;
  height: 28px;
  border-radius: 14px 14px 0 0;
  transition: transform .3s ease;
}
.folder__tab--back  { left: 112px; width: 144px; background: #9fd9cf; border-top-right-radius: 18px; z-index: 1; }
.folder__tab--front { left: 16px;  width: 128px; background: #d6f0eb; z-index: 2; }
.folder:hover .folder__tab { transform: translateY(-2px); }

.folder__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 28px 28px 24px;
  background: #d6f0eb;
  border: 1px solid rgba(1,116,105,.08);
  border-radius: 0 20px 20px 20px;
  box-shadow: 0 1px 2px rgba(1,116,105,.06);
  transition: box-shadow .3s ease, background-color .3s ease;
}
.folder:hover .folder__body { box-shadow: 0 18px 36px rgba(1,116,105,.16); }

.folder__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.folder__title { font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--text-dark); }
.folder__icon { flex: 0 0 44px; width: 44px; height: 44px; color: var(--teal); opacity: .55; transition: opacity .3s, transform .3s; }
.folder__icon svg { width: 100%; height: 100%; }
.folder:hover .folder__icon { opacity: .9; transform: rotate(-6deg); }

.folder__count { margin-top: 10px; font-size: 15px; color: #3d6a63; }

.folder__open {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 16px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(1,116,105,.08);
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--teal);
  transition: background-color .2s, box-shadow .2s;
}
.folder__open svg { width: 16px; height: 16px; transition: transform .2s; }
.folder:hover .folder__open { background: #fff; box-shadow: 0 4px 12px rgba(1,116,105,.12); }
.folder:hover .folder__open svg { transform: translateX(5px); }
.folder:active .folder__body { transform: scale(.99); }
.folder__count + .folder__open { margin-top: 24px; }
.folder__body > .folder__count { flex: 1; }

.folder-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 24px; }
.folder-nav__back {
  padding: 8px 18px; background: #faffff; border: 1px solid var(--border); border-radius: 10px;
  font-weight: 500; font-size: 16px; color: var(--teal); transition: background-color .2s, border-color .2s;
}
.folder-nav__back:hover { background: var(--mint); border-color: var(--teal); }
.folder-nav__path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.folder-nav__path a { color: var(--teal); }
.folder-nav__path a:hover { text-decoration: underline; }
.folder-nav__path span:last-child { color: var(--text-dark); font-weight: 600; }

/* сетка документов с выравниванием по левому краю (неполный последний ряд — слева) */
.docs--left { justify-content: start; }
.careers .docs { margin-top: 30px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.careers .upmp .docs { margin-top: 0; }

@media (max-width: 1400px) {
  .why { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .folders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vacancies { grid-template-columns: 1fr; }
  .folders, .careers .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .careers__lead { font-size: 20px; }
  .careers__h2 { font-size: 32px; }
  .vacancy p { font-size: 18px; }
}
@media (max-width: 640px) {
  .why, .folders, .careers .docs { grid-template-columns: 1fr; }
  .vacancy, .vacancies__form { padding: 26px 22px; }
  .folder__title { font-size: 20px; }
}

/* --------------------------------------------------------------------------
   Страница «Комплаенс-служба» (compliance.html)
   -------------------------------------------------------------------------- */
.compliance { padding-bottom: 100px; }
.compliance__info { margin-top: 26px; font-size: 24px; line-height: 1.3; }
.compliance__lead { font-weight: 700; }
.compliance__list { margin-top: 8px; padding-left: 36px; list-style: disc; }
.compliance__list li { line-height: 1.7; }
.compliance__list li::marker { color: var(--teal); }
.compliance__list a { color: var(--teal); }
.compliance__list a:hover { text-decoration: underline; }
.compliance__text { margin-top: 12px; }
.compliance__poster { margin: 40px auto 0; max-width: 1200px; }
.compliance__poster img { width: 100%; height: auto; border-radius: 20px; background: #e5eef0; }
@media (max-width: 1100px) { .compliance__info { font-size: 19px; } .compliance__list { padding-left: 24px; } }

/* --------------------------------------------------------------------------
   Карточка документа в виде листа: загнутый уголок + цветная метка типа файла
   (действует на всех страницах с документами)
   -------------------------------------------------------------------------- */
.doc {
  position: relative;
  border-radius: 30px 0 30px 30px;               /* правый верхний угол — под «загиб» */
  background:
    linear-gradient(#faffff, #faffff) padding-box;
  overflow: hidden;
}
.doc::before {                                   /* загнутый уголок листа */
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 46px;
  height: 46px;
  background: linear-gradient(225deg, #e7f5f2 0 50%, #cfe9e3 50% 100%);
  border-bottom-left-radius: 12px;
  box-shadow: -3px 3px 6px rgba(1,116,105,.08);
  transition: width .25s ease, height .25s ease;
}
.doc:hover::before { width: 54px; height: 54px; }

.doc__badge {                                    /* метка типа файла: PDF / DOCX / PPTX / XLSX */
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  color: #fff;
  background: #7a9494;
}
.doc__badge[data-type="pdf"]  { background: #e0473b; }
.doc__badge[data-type="docx"] { background: #2b67c9; }
.doc__badge[data-type="pptx"] { background: #d9622b; }
.doc__badge[data-type="xlsx"] { background: #1f8a4c; }
.doc__badge + .doc__title { margin-top: 14px; }

/* --------------------------------------------------------------------------
   Страница «Сотрудничество» (cooperation.html)
   -------------------------------------------------------------------------- */
.why--tall .why__card { min-height: 415px; }
.coop__benefits { margin-top: 30px; padding-left: 36px; list-style: disc; font-size: 24px; line-height: 1.3; }
.coop__benefits li + li { margin-top: 12px; }
.coop__benefits li::marker { color: var(--teal); }
.coop__benefits b { font-weight: 700; }
.coop__form { max-width: 1220px; margin: 70px auto 0; }
.coop__sub { color: rgba(0,0,0,.8); }
.coop__form .consent { margin-top: 26px; }
@media (max-width: 1100px) { .coop__benefits { font-size: 19px; padding-left: 24px; } }

/* --------------------------------------------------------------------------
   Страница «Страхование / ДМС» (insurance.html)
   -------------------------------------------------------------------------- */
.ins__cta { display: flex; justify-content: center; margin-top: 40px; }
.ins__btn { padding: 0 40px; min-width: 400px; height: 50px; font-size: 20px; }

.ins__steps { margin-top: 30px; }
.ins__step { position: relative; min-height: 390px; }
.ins__text { text-align: left; }

.ins__terms {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px 24px;
  margin-top: 30px;
  padding-left: 40px;
  font-size: 24px;
  line-height: 1.3;
}
.ins__terms dt { font-weight: 700; text-align: right; }
.ins__terms dd a { color: var(--teal); }
.ins__terms dd a:hover { text-decoration: underline; }

.ins__faq { display: flex; flex-direction: column; gap: 20px; max-width: 1220px; margin: 30px auto 0; }
.ins__qa {
  padding: 34px 50px 38px;
  background: #faffff;
  border: 1px solid var(--border);
  border-radius: 30px;
}
.ins__q { font-weight: 500; font-size: 24px; line-height: 1.3; }
.ins__a { margin-top: 16px; padding-left: 40px; font-size: 16px; line-height: 1.3; color: rgba(0,0,0,.8); }

@media (max-width: 1100px) {
  .ins__terms { grid-template-columns: 1fr; gap: 4px; padding-left: 0; font-size: 19px; }
  .ins__terms dt { text-align: left; margin-top: 14px; }
  .ins__qa { padding: 26px 24px; }
  .ins__a { padding-left: 0; }
  .ins__btn { min-width: 0; width: 100%; font-size: 17px; }
}

/* Карточки «.why» (карьера, сотрудничество, страхование): заголовок всегда занимает место под 2 строки
   и центрируется по вертикали — поэтому тексты под заголовками начинаются на одном уровне */
.why__title {
  min-height: calc(2em * 1.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Страница «Служба поддержки пациентов» (patient-support.html)
   -------------------------------------------------------------------------- */
.support { font-size: 24px; line-height: 1.3; }
.support__row { display: grid; grid-template-columns: 1fr 636px; gap: 40px; align-items: center; margin-top: 30px; }
.support__row--reverse { grid-template-columns: 636px 1fr; margin-top: 50px; }
.support__lead { margin-top: 30px; font-weight: 500; }
.support__lead + .support__row { margin-top: 10px; }
.support__list, .support__phones { margin-top: 10px; padding-left: 36px; list-style: disc; }
.support__list li::marker, .support__phones li::marker { color: var(--teal); }
.support__img { width: 100%; height: auto; border-radius: 20px; background: #e5eef0; }
.support__note { margin-top: 24px; }
.support__contacts p + p { margin-top: 20px; }
.support__contacts a { color: var(--teal); font-weight: 700; }
.support__contacts a:hover { text-decoration: underline; }
.support__phones { font-weight: 700; }
.support__phones a { white-space: nowrap; }   /* номер телефона не разрывается на две строки */
@media (max-width: 1100px) {
  .support { font-size: 19px; }
  .support__row, .support__row--reverse { grid-template-columns: 1fr; }
  .support__list, .support__phones { padding-left: 24px; }
}

/* ==========================================================================
   Переключатель языка KZ / RU / ENG (шапка)
   ========================================================================== */
.lang { position: relative; margin-left: 10px; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 16px;
  color: var(--teal);
}
.lang__btn .chevron { transition: transform .25s ease; }
.lang.is-open .lang__btn .chevron { transform: rotate(225deg) translateY(-1px); }

.lang__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  z-index: 40;
  width: 85px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--teal);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .2s, transform .2s, visibility 0s linear .2s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }

.lang__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 16px;
  color: var(--teal);
  background: var(--header-bg);
  transition: background-color .15s;
}
.lang__opt img { width: 15px; height: 15px; flex: none; }
.lang__opt:hover,
.lang__opt.is-active { background: rgba(184, 230, 226, .3); }

@media (max-width: 1200px) {
  .lang { margin: 0; }
  .lang__menu { left: 0; transform: translateY(-6px); }
  .lang.is-open .lang__menu { transform: none; }
}

.nowrap { white-space: nowrap; }

/* ==========================================================================
   Администрация: директор + обращение, ниже руководители по 3 в ряд
   ========================================================================== */
.leaders { --card-w: 380px; --gap: 30px; margin-top: 30px; }

/* Ряд директора: слева обращение (на 2 колонки), справа карточка */
.leaders__head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, var(--card-w)));
  justify-content: center;
  gap: var(--gap);
  align-items: stretch;
}
.leaders__head .leader { grid-column: 3; }
.leaders__head--solo .leader { grid-column: 2; }   /* нет обращения — карточка по центру */

.leaders__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, var(--card-w)));
  justify-content: center;
  gap: var(--gap);
  margin-top: var(--gap);
}

/* ---- Обращение директора ---- */
.address {
  grid-column: 1 / span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 48px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 24px rgba(1, 116, 105, .08);
  overflow: hidden;
}
/* большая кавычка на фоне */
.address::before {
  content: '“';
  position: absolute;
  top: -30px;
  right: 30px;
  font-family: Georgia, serif;
  font-size: 220px;
  line-height: 1;
  color: var(--header-bg);
  opacity: .7;
  pointer-events: none;
}
/* тонкая полоса-акцент слева */
.address::after {
  content: '';
  position: absolute;
  left: 0;
  top: 44px;
  bottom: 44px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(#2aa596, var(--teal-btn));
}
.address__title { position: relative; font-weight: 600; font-size: 22px; color: var(--teal); }
.address__text { position: relative; margin-top: 16px; font-family: var(--font-main); font-size: 16px; line-height: 1.6; color: var(--text-dark); }
.address__text p + p { margin-top: 12px; }
.address__sign { position: relative; margin-top: 22px; font-family: var(--font-main); font-size: 16px; line-height: 1.5; color: var(--text-dark); }
.address__sign b { display: block; font-weight: 700; }
.address__actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.address__btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  background: var(--teal);
  transition: filter .2s, transform .2s;
}
.address__btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.address__btn--light { color: var(--teal); background: var(--mint); }

/* ---- Карточка-бейдж ---- */
.leader {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  isolation: isolate;
  padding: 14px 14px 22px;
  text-align: left;
  font-family: var(--font-alt);
  color: #fff;
  /* ЦВЕТ КАРТОЧКИ: светлее прежнего, из палитры сайта (#2aa596 → #00897b → #0b7e72) */
  background: linear-gradient(165deg, #2aa596 0%, var(--teal-btn) 55%, #0b7e72 100%);
  border-radius: 24px;
  box-shadow: 0 8px 26px rgba(1, 116, 105, .16);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.leader:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(1, 116, 105, .26); }
/* ОРНАМЕНТ НА КАРТОЧКЕ: прозрачная эмблема в правом нижнем углу (assets/svg/ornament-menu-emblem.svg) */
.leader::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  z-index: -1;
  width: 190px;
  height: 190px;
  background: url('assets/svg/ornament-menu-emblem.svg') center / contain no-repeat;
  opacity: .12;
  filter: brightness(0) invert(1);           /* делает орнамент белым */
  transition: transform .6s ease;
}
.leader:hover::after { transform: rotate(20deg); }
.leader:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* МЕСТО ДЛЯ ФОТО: вертикальное 4:5 (например 800×1000). Пока фото нет — инициалы */
.leader__photo,
.person__photo {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f4f8f8, #dfeeee);
  overflow: hidden;
}
.leader__photo { aspect-ratio: 4 / 5; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
/* мягкое затемнение снизу фото, чтобы оно «перетекало» в карточку */
.leader__photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(transparent, rgba(0, 80, 72, .18));
  pointer-events: none;
}
.leader__photo img,
.person__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform .4s ease;
}
.leader:hover .leader__photo img { transform: scale(1.04); }
.leader__initials {
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: 64px;
  letter-spacing: .04em;
  color: rgba(1, 116, 105, .35);
}

.leader__name {
  position: relative;
  display: block;
  margin-top: 18px;
  padding: 0 6px 12px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}
/* короткая светлая черта под ФИО */
.leader__name::after {
  content: '';
  position: absolute;
  left: 6px;
  bottom: 0;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--header-bg);
  transition: width .3s ease;
}
.leader:hover .leader__name::after { width: 70px; }
.leader__position {
  display: block;
  margin-top: 8px;
  padding: 0 6px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
  opacity: .85;
}
.leader__more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;      /* «Подробнее» всегда прижато к низу карточки */
  margin-left: 6px;
  padding-top: 16px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}
.leader__more span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .45);
  transition: transform .25s, background-color .25s, color .25s;
}
.leader__more svg { display: block; }
.leader:hover .leader__more span { transform: translateX(4px); background: #fff; color: var(--teal); }

/* ---- Окно с биографией: фото слева стоит на месте, справа текст со своим ползунком ---- */
.person { width: min(1100px, 100% - 32px); height: min(680px, 90vh); }
.person .viewer__bar { flex-wrap: nowrap; }
.person__body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 360px 1fr;
}
.person__photo { height: 100%; }                       /* фото на всю высоту окна */
.person__photo .leader__initials { font-size: 56px; }

.person__info {
  min-height: 0;
  overflow-y: auto;                                    /* ползунок справа */
  padding: 30px 34px 34px;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) #e6f2f0;
}
.person__info::-webkit-scrollbar { width: 8px; }
.person__info::-webkit-scrollbar-track { background: #e6f2f0; border-radius: 8px; }
.person__info::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 8px; }

.person__name { font-family: var(--font-alt); font-weight: 700; font-size: 30px; line-height: 1.25; color: var(--text-dark); }
.person__position { margin-top: 6px; font-family: var(--font-alt); font-weight: 500; font-size: 16px; line-height: 1.4; color: var(--teal); }
.person__contacts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-family: var(--font-main); font-size: 15px; }
.person__contacts a { color: var(--teal); }
.person__contacts a:hover { text-decoration: underline; }

.person__bio-title { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); font-family: var(--font-alt); font-weight: 600; font-size: 20px; color: var(--teal); }
.person__intro { margin-top: 14px; font-family: var(--font-main); font-size: 16px; line-height: 1.6; color: var(--text-dark); }
.person__empty { margin-top: 14px; font-family: var(--font-main); font-size: 16px; color: var(--muted); }

.bio-block { margin-top: 16px; padding: 16px 20px; border-left: 4px solid; border-radius: 10px; font-family: var(--font-main); font-size: 15px; line-height: 1.6; }
.bio-block__title { margin-bottom: 8px; font-family: var(--font-alt); font-weight: 600; font-size: 17px; }
.bio-block ul { list-style: none; display: grid; gap: 6px; }
.bio-block li { position: relative; padding-left: 16px; }
.bio-block li::before { content: ''; position: absolute; left: 0; top: calc(.8em - 3px); width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
.bio-block--edu    { background: var(--sky);  border-color: var(--sky-deep); color: #0d4a63; }
.bio-block--work   { background: var(--mint); border-color: var(--teal);     color: #0b4d45; }
.bio-block--awards { background: #fff7e3;     border-color: #e3a92b;         color: #6b4b06; }

@media (max-width: 1260px) {
  .leaders { --card-w: 1fr; }
  .leaders__head, .leaders__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .address { grid-column: 1 / -1; }
  .leaders__head .leader, .leaders__head--solo .leader { grid-column: 1 / -1; justify-self: center; max-width: 380px; }
}
@media (max-width: 700px) {
  .leaders__grid { grid-template-columns: minmax(0, 380px); }
  .address { padding: 30px 24px; }
  .address::before { font-size: 160px; right: 16px; }
  .person { height: 90vh; }
  .person__body { display: block; overflow-y: auto; }
  .person__photo { height: auto; aspect-ratio: 4 / 5; max-height: 340px; }
  .person__info { overflow: visible; padding: 20px; }
  .person__name { font-size: 24px; }
}

/* ==========================================================================
   Заставка при загрузке страницы (логотип по центру)
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--mint) 1.3%, var(--sky) 98.7%);
  /* Сначала заставка НЕВИДИМА. Появляется, только если страница грузится дольше 0.5 с.
     Чтобы поменять порог — измените 0.5s в первой анимации.
     Вторая анимация — запасной вариант: если скрипт не сработал, заставка сама исчезнет через 4 с. */
  opacity: 0;
  visibility: hidden;
  animation: preloader-show .3s ease .5s forwards, preloader-auto 0s linear 4s forwards;
}
.preloader__logo { width: 400px; max-width: 80vw; height: 150px; }   /* логотип статичный, без анимации */
.preloader__logo img { width: 100%; height: 100%; object-fit: contain; }
.preloader.is-hidden { animation: none; }                              /* загрузилась быстро — заставки не было */
.preloader.is-fading { animation: preloader-out .4s ease forwards; }  /* заставка была — плавно исчезает */
@keyframes preloader-show { from { opacity: 0; visibility: visible; } to { opacity: 1; visibility: visible; } }
@keyframes preloader-out  { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
@keyframes preloader-auto { to { opacity: 0; visibility: hidden; } }

/* ==========================================================================
   График работы врачей
   ========================================================================== */
/* ---- Режим работы ---- */
.hours {
  margin-top: 30px;
  padding: 30px 36px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 6px 24px rgba(1, 116, 105, .08);
}
.hours__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hours__item { padding: 20px 24px; background: var(--mint); border-radius: 20px; }
.hours__item--off { background: #f2f5f5; }
.hours__day { font-weight: 600; font-size: 16px; color: #3d5a55; }
.hours__time { margin-top: 6px; font-weight: 700; font-size: 28px; color: var(--teal); }
.hours__item--off .hours__time { color: var(--muted); }
.hours__note { margin-top: 2px; font-family: var(--font-main); font-size: 14px; color: #3d5a55; }
/* выделенное примечание о перерыве */
.hours__break {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 20px;
  font-family: var(--font-main);
  font-size: 16px;
  color: #6b4b06;
  background: #fff7e3;
  border-left: 4px solid #e3a92b;
  border-radius: 10px;
}
.hours__break b { font-weight: 700; }

/* ---- Подпись месяца и поиск ---- */
.sched-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; }
.sched-month { font-weight: 600; font-size: 22px; color: var(--teal); }
.sched-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(460px, 100%);
  height: 50px;
  padding: 0 18px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color .2s, box-shadow .2s;
}
.sched-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(1, 116, 105, .12); }
.sched-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 500 16px var(--font-main); color: var(--text-dark); }
.sched-empty { margin-top: 24px; font-family: var(--font-main); font-size: 16px; color: var(--muted); }

/* ---- Разделы-аккордеоны ---- */
.sched { display: grid; gap: 16px; margin-top: 20px; }
.sched__item {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.sched__item:hover { border-color: rgba(1, 116, 105, .35); }
.sched__item.is-open { background: #fff; border-color: rgba(1, 116, 105, .45); box-shadow: 0 10px 30px rgba(1, 116, 105, .10); }
.sched__heading { font: inherit; }
.sched__q {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 76px;
  padding: 0 36px;
  text-align: left;
  font-family: var(--font-alt);
  color: var(--text-dark);
}
.sched__title { flex: 1; font-weight: 600; font-size: 20px; line-height: 1.3; }
.sched__count { font-family: var(--font-main); font-size: 14px; color: var(--muted); white-space: nowrap; }
.sched__q .chevron { flex: none; width: 10px; height: 10px; color: var(--teal); transition: transform .3s ease; }
.sched__item.is-open .sched__q .chevron { transform: rotate(225deg) translateY(-2px); }

.sched__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.4, 0, .2, 1); }
.sched__item.is-open .sched__a { grid-template-rows: 1fr; }
.sched__a-inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .45s; }
.sched__item.is-open .sched__a-inner { visibility: visible; transition-delay: 0s; }

/* ---- Таблица ---- */
.sched__table-wrap { margin: 0 24px 24px; overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
.sched__table { width: 100%; min-width: 1100px; border-collapse: collapse; font-family: var(--font-main); font-size: 14px; line-height: 1.4; color: var(--text-dark); }
.sched__table th {
  padding: 12px 10px;
  vertical-align: top;
  text-align: left;
  background: var(--header-bg);
  border-right: 1px solid rgba(1, 116, 105, .15);
}
.sched__table th:last-child, .sched__table td:last-child { border-right: 0; }
.sched__kz { display: block; font-weight: 700; color: var(--teal); }
.sched__ru { display: block; margin-top: 2px; font-weight: 500; font-size: 13px; color: #3d5a55; }
.sched__table td { padding: 12px 10px; vertical-align: top; border-top: 1px solid var(--border); border-right: 1px solid var(--border); }
.sched__table tbody tr:nth-child(even) td { background: #f6fbfa; }
.sched__table tbody tr:hover td { background: var(--mint); }
.sched__td--name { font-weight: 600; min-width: 200px; }
.sched__td--area, .sched__td--room { text-align: center; white-space: nowrap; }
.sched__td--mon, .sched__td--tue, .sched__td--wed, .sched__td--thu, .sched__td--fri { white-space: nowrap; }
.sched__td--address { min-width: 220px; }
.sched__dash { color: var(--muted); }
.sched__soon td { padding: 22px; text-align: center; color: var(--muted); background: #fff !important; }

@media (max-width: 900px) {
  .hours { padding: 24px 20px; }
  .hours__grid { grid-template-columns: 1fr; gap: 12px; }
  .hours__time { font-size: 24px; }
  .sched-tools { flex-direction: column; align-items: stretch; }
  .sched-search { width: 100%; }
  .sched__q { padding: 0 20px; min-height: 64px; }
  .sched__title { font-size: 17px; }
  .sched__table-wrap { margin: 0 12px 12px; }
}

/* ==========================================================================
   Новости (news.html) + «Все новости» на главной
   ========================================================================== */
/* ---- Главная: карточка целиком кликабельна, фото через <img> ---- */
.card { position: relative; }
.card__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.card__img { overflow: hidden; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__date { z-index: 1; }
.card:hover .card__more { color: var(--teal); }
.news__all { margin-top: 36px; text-align: center; }
.news__all-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; color: var(--teal); }
.news__all-link span { transition: transform .2s; }
.news__all-link:hover span { transform: translateX(4px); }

/* ---- Сетка новостей: 3 в ряд по 430px ---- */
.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 430px));
  justify-content: center;
  gap: 26px 22px;
  margin-top: 30px;
}

/* ---- Карточка — «газетная вырезка» ---- */
.ncard {
  --paper: #fbf9f3;
  --ink: #1f2b29;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 360px;
  padding: 14px 16px 14px;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #e4e0d4;
  border-radius: 4px;
  box-shadow: 0 1px 0 #fff inset, 0 6px 18px rgba(31, 43, 41, .08);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
/* загнутый уголок, как у документов */
.ncard::after {
  content: '';
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 22px;
  height: 22px;
  background: linear-gradient(315deg, #e9f6f3 50%, #e2ddcf 50%);
  border-top-left-radius: 4px;
  box-shadow: -1px -1px 3px rgba(0, 0, 0, .06);
  transition: width .25s, height .25s;
}
.ncard:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: 0 16px 32px rgba(31, 43, 41, .14); }
.ncard:hover::after { width: 30px; height: 30px; }
.ncard:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.ncard.is-new { animation: ncard-in .45s ease both; }
@keyframes ncard-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* шапка газеты: название и дата, под ней двойная линия */
.ncard__mast {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 3px double var(--ink);
}

/* МЕСТО ДЛЯ ФОТО НОВОСТИ: ~400×220 (обрезается по центру) */
.ncard__img {
  position: relative;
  display: block;
  height: 210px;
  margin-top: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #e6ece9, #d9e7e3);
  outline: 1px solid rgba(31, 43, 41, .15);
  outline-offset: -1px;
}
.ncard__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform .4s ease, filter .4s; }
.ncard:hover .ncard__img img { transform: scale(1.04); filter: none; }

.ncard__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 12px 0 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
}
.ncard__foot {
  display: flex;
  margin-bottom: 0;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-main);
  font-size: 12px;
  border-top: 1px solid rgba(31, 43, 41, .25);
  translate: 0 0;
}
.ncard__issue { color: #6f7a77; font-style: italic; }
.ncard__read { margin-right: 18px; font-weight: 700; color: var(--teal); }
.ncard__read span { display: inline-block; transition: transform .2s; }
.ncard:hover .ncard__read span { transform: translateX(4px); }

/* ---- «Показать ещё» + номера страниц ---- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 36px; }
.pager__more {
  height: 48px;
  padding: 0 30px;
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: 15px;
  color: var(--teal);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pager__more:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.pager__list { display: flex; align-items: center; gap: 8px; }
.pager__item {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background-color .2s, color .2s, border-color .2s;
}
button.pager__item:hover { border-color: var(--teal); color: var(--teal); }
.pager__item.is-active { color: #fff; background: var(--teal); border-color: var(--teal); }
.pager__item--dots { border-color: transparent; background: none; color: var(--muted); }

/* ---- Окно новости — «газетная полоса». Стрелки «Предыдущая / Следующая запись» по бокам ---- */
.news-modal {
  width: min(1680px, 100% - 32px);
  max-width: none;
  max-height: none;
  height: fit-content;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.news-modal[open] {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1000px) 1fr;
  align-items: center;
  gap: 24px;
  animation: viewer-in .25s ease;
}
.news-modal::backdrop { background: rgba(10, 40, 36, .6); backdrop-filter: blur(2px); }

.paper {
  --paper: #fbf9f3;
  --ink: #1f2b29;
  position: relative;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.paper__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  transition: background-color .2s, color .2s;
}
.paper__close:hover { background: var(--teal); color: #fff; }

.news-modal__body {
  flex: 1;
  min-height: 0;
  padding: 26px 48px 40px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) #ece8dc;
}

/* шапка газеты */
.paper__mast { text-align: center; }
.paper__name {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: .02em;
  color: var(--teal-deep);
}
.paper__line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 6px 0;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-top: 1px solid var(--ink);
  border-bottom: 3px double var(--ink);
}

.paper__title {
  margin-top: 22px;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.2;
}
.paper__tags { margin-top: 10px; font-family: var(--font-main); font-weight: 500; font-size: 14px; color: var(--teal); }

.paper__figure { margin-top: 20px; }
.news-modal__photo {
  aspect-ratio: 16 / 9;
  max-height: 460px;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #e6ece9, #d9e7e3);
  outline: 1px solid rgba(31, 43, 41, .2);
  outline-offset: -1px;
}
.news-modal__photo img { width: 100%; height: 100%; object-fit: cover; }
.news-modal__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.news-modal__thumb { width: 84px; aspect-ratio: 4 / 3; overflow: hidden; opacity: .6; outline: 2px solid transparent; transition: opacity .2s, outline-color .2s; }
.news-modal__thumb.is-active, .news-modal__thumb:hover { opacity: 1; outline-color: var(--teal); }
.news-modal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.paper__caption { margin-top: 6px; font-family: var(--font-main); font-style: italic; font-size: 12px; color: #6f7a77; }

/* текст одной колонкой (окно прокручивается вниз) */
.paper__text {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 43, 41, .3);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.6;
}
.paper__text p { margin: 0 0 14px; text-indent: 2em; }        /* красная строка: отступ перед каждым абзацем */
.paper__text a {
  /* ссылка одним куском: если не влезает в строку — целиком переносится вниз,
     если длиннее строки (на телефоне) — обрезается многоточием */
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  color: var(--teal);
  text-decoration: underline;
}

.news-modal__nav {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 24px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  color: #1f2b29;
  background: #fbf9f3;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  white-space: nowrap;
  transition: background-color .2s, color .2s, opacity .2s;
}
.news-modal__nav--next { justify-self: start; }
.news-modal__nav:hover:not(:disabled) { background: var(--teal); color: #fff; }
.news-modal__nav:disabled { opacity: .35; cursor: default; }

@media (max-width: 1500px) {
  .news-modal[open] { grid-template-columns: 1fr 1fr; width: min(1000px, 100% - 32px); }
  .news-modal__box { grid-column: 1 / -1; grid-row: 1; }
  .news-modal__nav { grid-row: 2; height: 50px; }
  .news-modal__nav--prev { justify-self: start; }
  .news-modal__nav--next { justify-self: end; }
}
@media (max-width: 1400px) { .news-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-modal__body { padding: 22px 22px 30px; }
  .paper__name { font-size: 26px; }
  .paper__title { font-size: 26px; }
  .paper__line span:nth-child(2) { display: none; }
}
@media (max-width: 640px) {
  .news-list { grid-template-columns: minmax(0, 430px); }
  .news-modal__box { max-height: 78vh; }
  .paper__title { font-size: 22px; }
  .news-modal__nav { padding: 0 14px; font-size: 14px; }
}

/* ==========================================================================
   Страница «О центре» (about.html)
   ========================================================================== */
/* ---- История + фото здания ---- */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 40px;
  align-items: stretch;
  margin-top: 30px;
  padding: 40px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 6px 24px rgba(1, 116, 105, .08);
}
.about-intro__badge {
  display: inline-block;
  padding: 8px 16px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--teal);
  background: var(--mint);
  border-radius: 999px;
}
.about-intro__badge b { font-weight: 700; }
.about-intro__title { margin-top: 18px; font-weight: 600; font-size: 28px; line-height: 1.3; color: var(--text-dark); }
.about-intro__text > p:not(.about-intro__badge) { margin-top: 16px; font-family: var(--font-main); font-size: 17px; line-height: 1.65; color: #2c3e3b; }

/* МЕСТО ДЛЯ ФОТО ЗДАНИЯ: assets/img/about/building.jpg */
.about-intro__photo {
  position: relative;
  min-height: 380px;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23017469' stroke-width='2' opacity='.35'%3E%3Cpath d='M8 56h48M14 56V22l18-10 18 10v34M24 56V40h16v16M22 28h4M30 28h4M38 28h4'/%3E%3C/svg%3E") center 42% / 96px no-repeat,
    linear-gradient(135deg, var(--header-bg), #d9eef6);
}
.about-intro__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-intro__photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 14px;
  font-family: var(--font-main);
  font-size: 13px;
  color: var(--text-dark);
  background: rgba(255, 255, 255, .88);
  border-radius: 999px;
}

/* ---- Три роли (используют карточки .why) ---- */
.about-roles { grid-template-columns: repeat(3, minmax(0, 420px)); }
.about-roles .why__card { min-height: 280px; }

/* ---- Миссия и видение ---- */
.about-mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 50px; }
.about-mv__card {
  position: relative;
  padding: 40px 44px;
  color: #fff;
  background: linear-gradient(165deg, #2aa596 0%, var(--teal-btn) 55%, #0b7e72 100%);
  border-radius: 30px;
  overflow: hidden;
}
.about-mv__card::after {               /* большая кавычка на фоне */
  content: '“';
  position: absolute;
  right: 26px;
  top: -34px;
  font-family: Georgia, serif;
  font-size: 200px;
  line-height: 1;
  opacity: .14;
}
.about-mv__card--light { color: var(--text-dark); background: #fff; border: 1px solid var(--border); }
.about-mv__card--light::after { color: var(--teal); }
.about-mv__label { font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.about-mv__card--light .about-mv__label { color: var(--teal); opacity: 1; }
.about-mv__text { position: relative; margin-top: 14px; font-weight: 500; font-size: 22px; line-height: 1.45; }

/* ---- Ценности ---- */
.values { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; list-style: none; }
.values__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color .2s, transform .2s;
}
.values__item:hover { border-color: var(--teal); transform: translateY(-2px); }
.values__dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--teal-grad); box-shadow: 0 0 0 4px var(--mint); }

/* ---- Задачи: 3 колонки с галочками ---- */
.tasks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
  list-style: none;
}
.tasks li {
  position: relative;
  padding: 22px 24px 22px 62px;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: #2c3e3b;
  background: #faffff;
  border: 1px solid var(--border);
  border-radius: 20px;
}
.tasks li::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 22px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23017469' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ---- Укомплектованность: кольца с процентами ---- */
.staff { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.staff__item { padding: 30px 20px; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 30px; }
.staff__ring {
  --p: 0;
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--teal-grad) calc(var(--p) * 1%), var(--mint) 0);
}
.staff__ring span {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #fff;
  font-weight: 700;
  font-size: 28px;
  color: var(--teal);
}
.staff__item p { margin-top: 16px; font-family: var(--font-main); font-weight: 500; font-size: 16px; line-height: 1.4; color: #2c3e3b; }

@media (max-width: 1200px) {
  .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .about-intro { grid-template-columns: 1fr; padding: 28px 24px; }
  .about-intro__photo { min-height: 260px; }
  .about-roles { grid-template-columns: 1fr; }
  .about-roles .why__card { min-height: 0; }
  .about-mv { grid-template-columns: 1fr; }
  .about-mv__card { padding: 30px 26px; }
  .about-mv__text { font-size: 19px; }
}
@media (max-width: 640px) {
  .tasks { grid-template-columns: 1fr; }
  .staff { grid-template-columns: 1fr 1fr; gap: 12px; }
  .staff__ring { width: 104px; height: 104px; }
  .staff__ring span { width: 82px; height: 82px; font-size: 22px; }
  .about-intro__title { font-size: 23px; }
  .values__item { font-size: 16px; padding: 13px 20px; }
}

/* ==========================================================================
   Отделения: список (departments.html) и страница отделения (department.html)
   ========================================================================== */
/* ---- Иконки: единый стиль — контур + мятная заливка ---- */
.dicon { display: block; width: 72px; height: 72px; color: var(--teal); }
.dicon .f * { fill: #c9eee8; stroke: none; }
.dicon .s * { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dicon .s .w { fill: #fff; }
.dicon .d * { fill: currentColor; stroke: none; }

/* ---- Список: 3 в ряд, карточки 420×180 (как в Figma) ---- */
.depts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 420px));
  justify-content: center;            /* неполный последний ряд — слева */
  gap: 30px;
  margin-top: 30px;
}
.dept-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 180px;
  padding: 24px 34px 24px 32px;
  background: #faffff;
  border: 1px solid var(--border);
  border-radius: 30px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.dept-card:hover { transform: translateY(-4px); border-color: rgba(1, 116, 105, .4); box-shadow: 0 14px 30px rgba(1, 116, 105, .12); }
.dept-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.dept-card__name { flex: 1; font-weight: 500; font-size: 20px; line-height: 1.3; text-align: center; color: #000; }
.dept-card__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #eef9f6;
  transition: background-color .3s, transform .3s;
}
.dept-card:hover .dept-card__icon { background: #dff4ef; transform: scale(1.06) rotate(-4deg); }

/* ---- Страница отделения ---- */
.dept-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; color: var(--teal); }
.dept-back span { transition: transform .2s; }
.dept-back:hover span { transform: translateX(-4px); }

.dept-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 40px;
  margin-top: 20px;
  padding: 40px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 6px 24px rgba(1, 116, 105, .08);
}
.dept-hero__icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #eef9f6; }
.dept-hero__icon .dicon { width: 60px; height: 60px; }
.dept-hero__title { margin-top: 18px; font-weight: 600; font-size: 36px; line-height: 1.25; color: var(--teal); }
.dept-hero__p { margin-top: 16px; font-family: var(--font-main); font-size: 17px; line-height: 1.65; color: #2c3e3b; }
.dept-hero__p--muted { color: var(--muted); }
.dept-hero__quote {
  margin-top: 22px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: var(--teal-deep);
  background: var(--mint);
  border-left: 4px solid var(--teal-grad);
  border-radius: 0 12px 12px 0;
}
/* МЕСТО ДЛЯ ФОТО ОТДЕЛЕНИЯ (assets/img/departments/<slug>.jpg). Пока фото нет — большая иконка */
.dept-hero__photo {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--header-bg), #d9eef6);
}
.dept-hero__ph { width: 150px; height: 150px; opacity: .55; }
.dept-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.dept-h2 { margin-top: 56px; font-weight: 600; font-size: 32px; line-height: 1.3; color: var(--teal); }
.dept-h2--small { font-size: 26px; }

.dept-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 20px; margin-top: 24px; align-items: stretch; }   /* карточки в ряду одной высоты */
.dept-sec--wide { grid-column: 1 / -1; }                       /* на всю ширину */
.dept-sec--tall { grid-row: span 2; }                          /* слева на две карточки справа */
.dept-sec--wide .dept-sec__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.dept-sec--wide .dept-sec__list:has(> li:only-child) { grid-template-columns: 1fr; }   /* один пункт — в одну строку */
.dept-sections--one { grid-template-columns: 1fr; }
.dept-sec { padding: 28px 30px; background: #faffff; border: 1px solid var(--border); border-radius: 24px; }
.dept-sec__title { padding-bottom: 12px; font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--text-dark); border-bottom: 1px solid var(--border); }
.dept-sec__list { display: grid; gap: 12px; margin-top: 16px; list-style: none; font-family: var(--font-main); font-size: 16px; line-height: 1.55; color: #2c3e3b; }
.dept-sec__list li { position: relative; padding-left: 34px; }
.dept-sec__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23017469' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.dept-sections--one .dept-sec__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }

.dept-when { margin-top: 56px; padding: 30px 34px; background: #fff7e3; border-left: 5px solid #e3a92b; border-radius: 0 24px 24px 0; }
.dept-when .dept-h2 { margin-top: 0; color: #6b4b06; }
.dept-when__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; list-style: none; }
.dept-when__list li { padding: 10px 16px; font-family: var(--font-main); font-weight: 500; font-size: 15px; color: #5a3f05; background: #fff; border-radius: 999px; }

.dept-pluses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.dept-plus { padding: 28px 24px; text-align: center; background: #faffff; border: 1px solid var(--border); border-radius: 24px; }
.dept-plus__title { font-weight: 600; font-size: 19px; color: var(--teal); }
.dept-plus__text { margin-top: 10px; font-family: var(--font-main); font-size: 15px; line-height: 1.5; color: #2c3e3b; }

.dept-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 56px;
  padding: 34px 40px;
  color: #fff;
  background: linear-gradient(165deg, #2aa596 0%, var(--teal-btn) 55%, #0b7e72 100%);
  border-radius: 30px;
}
.dept-cta__title { font-weight: 600; font-size: 28px; }
.dept-cta__text { margin-top: 8px; font-family: var(--font-main); font-size: 16px; line-height: 1.5; opacity: .95; }
.dept-cta__text a { color: #fff; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.dept-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.dept-cta__btn { display: inline-flex; align-items: center; height: 50px; padding: 0 26px; font-weight: 600; font-size: 17px; color: var(--teal); background: #fff; border-radius: 8px; transition: transform .2s, background-color .2s, color .2s; }
.dept-cta__btn:hover { transform: translateY(-2px); }
.dept-cta__btn--light { color: #fff; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .6); }
.dept-cta__btn--light:hover { background: #fff; color: var(--teal); }

.dept-others { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dept-empty { padding: 40px 0; }
.dept-empty p { margin-top: 12px; font-family: var(--font-main); font-size: 17px; }
.dept-btn { margin-top: 20px; height: 50px; padding: 0 26px; }

@media (max-width: 1400px) { .depts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .depts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dept-hero { grid-template-columns: 1fr; padding: 28px 24px; }
  .dept-hero__photo { min-height: 240px; order: -1; }
  .dept-pluses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dept-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .dept-sections, .dept-sections--one .dept-sec__list, .dept-sec--wide .dept-sec__list { grid-template-columns: 1fr; }
  .dept-sec--tall { grid-row: auto; }
}
@media (max-width: 640px) {
  .depts { grid-template-columns: 1fr; gap: 16px; }
  .dept-card { min-height: 130px; padding: 18px 20px; }
  .dept-card__name { font-size: 18px; text-align: left; }
  .dept-card__icon { width: 76px; height: 76px; }
  .dept-card__icon .dicon { width: 56px; height: 56px; }
  .dept-hero__title { font-size: 28px; }
  .dept-pluses { grid-template-columns: 1fr; }
  .dept-cta { padding: 28px 24px; }
}
/* короткие сведения отделения: режим работы, телефоны */
.dept-info { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-family: var(--font-main); font-size: 15px; }
.dept-info div { display: grid; grid-template-columns: 210px 1fr; gap: 12px; }
.dept-info dt { font-weight: 600; color: var(--text-dark); }
.dept-info dd { color: #2c3e3b; }
.dept-info a { color: var(--teal); font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .dept-info div { grid-template-columns: 1fr; gap: 2px; } }

/* ==========================================================================
   Цены и услуги (prices.html) + блок «Стоимость услуг» в отделениях
   ========================================================================== */
.prices-sub { margin-top: 8px; font-family: var(--font-main); font-size: 16px; color: #3d5a55; }

.prices-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.prices-info__card { padding: 24px 26px; background: #fff; border: 1px solid var(--border); border-radius: 24px; }
.prices-info__card--cta { color: #fff; background: linear-gradient(165deg, #2aa596 0%, var(--teal-btn) 55%, #0b7e72 100%); border: 0; }
.prices-info__label { font-weight: 600; font-size: 15px; color: var(--teal); }
.prices-info__card--cta .prices-info__label { color: #fff; }
.prices-info__value { margin-top: 8px; font-weight: 600; font-size: 19px; line-height: 1.4; color: var(--text-dark); }
.prices-info__value a { color: var(--text-dark); white-space: nowrap; }
.prices-info__hint { margin-top: 8px; font-family: var(--font-main); font-size: 14px; line-height: 1.5; color: #3d5a55; }
.prices-info__card--cta .prices-info__hint { color: rgba(255, 255, 255, .92); }
.prices-info__hint a { color: var(--teal); font-weight: 600; white-space: nowrap; }
.prices-info__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.prices-btn { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; font-weight: 600; font-size: 15px; color: var(--teal); background: #fff; border-radius: 8px; transition: transform .2s; }
.prices-btn:hover { transform: translateY(-2px); }
.prices-btn--light { color: #fff; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .6); }

.prices-note { margin-top: 20px; padding: 14px 20px; font-family: var(--font-main); font-size: 15px; line-height: 1.5; color: #6b4b06; background: #fff7e3; border-left: 4px solid #e3a92b; border-radius: 0 12px 12px 0; }

.prices-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 34px; }
.prices-search { width: min(560px, 100%); }
.prices-actions { display: flex; flex-wrap: wrap; gap: 18px; }
.prices-link { font-weight: 600; font-size: 15px; color: var(--teal); border-bottom: 1px dashed rgba(1, 116, 105, .5); transition: border-color .2s; }
.prices-link:hover { border-bottom-color: var(--teal); }
.prices-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.prices-chip { height: 38px; padding: 0 16px; font-family: var(--font-alt); font-weight: 500; font-size: 14px; color: var(--text-dark); background: #fff; border: 1px solid var(--border); border-radius: 999px; transition: background-color .2s, color .2s, border-color .2s; }
.prices-chip:hover { border-color: var(--teal); }
.prices-chip.is-active { color: #fff; background: var(--teal); border-color: var(--teal); }

/* ---- Разделы-аккордеоны ---- */
.prices { display: grid; gap: 14px; margin-top: 22px; }
.price-cat { background: rgba(255, 255, 255, .92); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; transition: border-color .3s, box-shadow .3s; scroll-margin-top: 20px; }
.price-cat:hover { border-color: rgba(1, 116, 105, .35); }
.price-cat.is-open { background: #fff; border-color: rgba(1, 116, 105, .45); box-shadow: 0 10px 30px rgba(1, 116, 105, .10); }
.price-cat__heading { font: inherit; }
.price-cat__q { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 76px; padding: 0 34px; text-align: left; font-family: var(--font-alt); color: var(--text-dark); }
.price-cat__name { flex: 1; font-weight: 600; font-size: 21px; line-height: 1.3; }
.price-cat__meta { font-family: var(--font-main); font-size: 14px; color: var(--muted); white-space: nowrap; }
.price-cat__q .chevron { flex: none; width: 10px; height: 10px; color: var(--teal); transition: transform .3s ease; }
.price-cat.is-open .price-cat__q .chevron { transform: rotate(225deg) translateY(-2px); }
.price-cat__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.4, 0, .2, 1); }
.price-cat.is-open .price-cat__a { grid-template-rows: 1fr; }
.price-cat__inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear .45s; }
.price-cat.is-open .price-cat__inner { visibility: visible; transition-delay: 0s; }
.price-subs { display: grid; gap: 26px; padding: 0 34px 30px; }
.price-pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 0 34px 30px; align-items: start; }

/* ---- Строки: название ……… цена ---- */
.price-sub__title { padding-bottom: 8px; font-weight: 600; font-size: 17px; color: var(--teal); border-bottom: 2px solid var(--mint); }
.price-list { list-style: none; columns: 2; column-gap: 48px; margin-top: 8px; }
.price-row { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; font-family: var(--font-main); font-size: 15px; line-height: 1.45; color: #2c3e3b; break-inside: avoid; border-bottom: 1px solid #eef4f3; }
.price-row__name { flex: 0 1 auto; }
.price-row__dots { flex: 1 1 20px; min-width: 20px; border-bottom: 1px dotted #b9cfcb; transform: translateY(-4px); }
.price-row__price { flex: none; font-weight: 700; color: var(--text-dark); white-space: nowrap; }
.price-row--none .price-row__price { color: var(--muted); font-weight: 500; }
.price-row--note { display: block; padding-top: 14px; font-weight: 600; color: var(--text-dark); border-bottom: 0; }
.price-row mark, .price-row__name mark { background: #ffe9a8; color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---- Комплексы (медсправки) ---- */
.price-pkg { display: flex; flex-direction: column; height: 100%; padding: 22px 24px; background: #faffff; border: 1px solid var(--border); border-radius: 20px; }
.price-pkg__title { font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--text-dark); }
.price-pkg__label { margin-top: 10px; font-family: var(--font-main); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.price-pkg__list { list-style: none; margin-top: 4px; }
.price-pkg .price-row { padding: 6px 0; font-size: 14px; }
.price-pkg__total { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--teal); }
.price-pkg__total b { font-size: 24px; font-weight: 700; }

/* ---- В отделениях ---- */
.dept-prices__lead { margin-top: 8px; font-family: var(--font-main); font-size: 15px; color: #3d5a55; }
.dept-prices { display: grid; gap: 22px; margin-top: 18px; padding: 28px 30px; background: #fff; border: 1px solid var(--border); border-radius: 24px; }
.dept-prices .price-pkg { max-width: 520px; }
.price-sub.is-cut .price-row:nth-child(n + 9) { display: none; }
.price-sub__more { margin-top: 12px; }
.dept-prices__all { display: flex; width: fit-content; margin-left: auto; gap: 8px; margin-top: 16px; font-weight: 600; font-size: 16px; color: var(--teal); }
.dept-prices__all span { transition: transform .2s; }
.dept-prices__all:hover span { transform: translateX(4px); }
.dept-pricecats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.dept-pricecat { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: #faffff; border: 1px solid var(--border); border-radius: 20px; transition: transform .2s, border-color .2s; }
.dept-pricecat:hover { transform: translateY(-3px); border-color: var(--teal); }
.dept-pricecat span { font-weight: 600; font-size: 17px; color: var(--text-dark); }
.dept-pricecat b { font-family: var(--font-main); font-weight: 600; font-size: 15px; color: var(--teal); }

@media (max-width: 1100px) {
  .prices-info { grid-template-columns: 1fr 1fr; }
  .prices-info__card--cta { grid-column: 1 / -1; }
  .price-list { columns: 1; }
  .price-pkgs, .dept-pricecats { grid-template-columns: 1fr 1fr; }
  .prices-tools { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .prices-info, .price-pkgs, .dept-pricecats { grid-template-columns: 1fr; }
  .price-cat__q { padding: 0 20px; min-height: 64px; }
  .price-cat__name { font-size: 17px; }
  .price-cat__meta { display: none; }
  .price-subs, .price-pkgs { padding: 0 18px 22px; }
  .dept-prices { padding: 20px 18px; }
}

/* ---- Печать прайса: только таблицы ---- */
@media print {
  .header, .footer, .preloader, .prices-tools, .prices-chips, .prices-info, .lang, .nav { display: none !important; }
  body, .page { background: #fff !important; }
  .price-cat { break-inside: auto; border: 0; box-shadow: none; }
  .price-cat__a { grid-template-rows: 1fr !important; }
  .price-cat__inner { visibility: visible !important; }
  .price-cat__q .chevron, .price-cat__meta { display: none; }
  .price-list { columns: 1; }
  .price-row { font-size: 11pt; padding: 3px 0; }
}
/* цветной логотип вместо иконки (молодёжный центр) — на заглушке фото не бледнеет */
.dept-hero__ph.dicon--raw { opacity: .9; }

/* ==========================================================================
   Главная: ссылки на отделения в «Предоставляемых услугах» + умный поиск
   ========================================================================== */
.services__item a { transition: color .2s; }
.services__item a:hover { color: var(--teal); }
.services__more { display: flex; flex-direction: column; gap: 6px; border-left: 1px solid rgba(0,0,0,.35); }
.services__more .services__all { border-left: 0; padding: 14px 0 14px 27px; transition: color .2s; }
.services__more .services__all:hover { color: var(--teal); }
.services__more .services__plus { font-size: 20px; }

.search-wrap { position: relative; width: min(778px, 100%); margin: 24px auto 0; }
.search-wrap .search { width: 100%; margin: 0; }
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 440px;
  padding: 10px;
  overflow-y: auto;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(1, 80, 72, .16);
}
.search-results__group { padding: 10px 14px 4px; font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.search-results__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-dark);
  border-radius: 12px;
  transition: background-color .15s;
}
.search-results__item:hover, .search-results__item.is-active { background: var(--mint); }
.search-results__item small { flex: none; font-weight: 600; font-size: 14px; color: var(--teal); white-space: nowrap; }
.search-results__item mark { background: #ffe9a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.search-results__all span { font-weight: 600; color: var(--teal); }
.search-results__empty { padding: 14px; font-family: var(--font-main); font-size: 15px; color: #3d5a55; }
.search-results__empty a { color: var(--teal); font-weight: 600; white-space: nowrap; }

@media (max-width: 1100px) {
  .services__more { flex-direction: row; border-left: 0; gap: 20px; }
  .services__more .services__all { padding: 0; }
}

/* Номер WhatsApp в футере — ссылка */
.footer__text a { transition: opacity .2s; }
.footer__text a:hover { opacity: .75; text-decoration: underline; }

/* ==========================================================================
   ПЕРЕВОД KZ / EN: защита вёрстки от длинных слов и строк
   (казахский текст в среднем на 15–30% длиннее русского)
   ========================================================================== */
/* длинное слово переносится внутри блока, а не вылезает за край */
body { overflow-wrap: break-word; }
/* ровные переносы строк — только в KZ/EN, русская версия остаётся как в макете */
html:not([lang="ru"]) :is(h1, h2, h3, h4) { text-wrap: balance; hyphens: auto; }
html:not([lang="ru"]) :is(p, li, dd) { text-wrap: pretty; }

/* сетки с 1fr не должны расширяться из-за одного длинного слова */
.hero__text, .stat, .dept-card, .dept-card__name, .folder, .folder__title,
.dept-hero__text, .dept-hero__photo, .staff__item, .ins__terms dt, .ins__terms dd,
.services__cols, .services__cols > *, .card__title, .way { min-width: 0; }
.hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* кнопки: вместо жёсткой ширины — минимальная, текст может быть длиннее */
.btn--header  { width: auto; min-width: 200px; padding-inline: 20px; white-space: nowrap; }
.btn--hero    { width: auto; min-width: 200px; padding-inline: 24px; }
.btn--form    { width: auto; min-width: 250px; padding-inline: 24px; }
.contacts__submit { width: auto; min-width: 241px; padding-inline: 24px; }

/* цифры в статистике: подпись «15+ лет работы» может уйти на 2 строки */
.stat__num { white-space: normal; }
.stat__label { hyphens: auto; }   /* «Квалифициро-ванных» переносится с дефисом, а не рвётся */

/* «Предоставляемые услуги»: длинные названия переносятся, колонки делят ширину */
.services__list { max-width: 100%; }
.services__cols { flex: 0 1 auto; }
.services__item { white-space: normal; }
.services__more .services__all { max-width: 170px; text-align: center; }

/* поиск: поле сжимается, кнопка «Найти» не обрезается */
.search__input { min-width: 0; }
.search__btn { flex-shrink: 0; }

/* ценности на «О центре»: «таблетка» не шире экрана */
.values__item { max-width: 100%; }

/* «Страхование»: колонка с подписями не меньше 200px, но расширяется под длинное слово */
@media (min-width: 1101px) {
  .ins__terms { grid-template-columns: minmax(200px, max-content) minmax(0, 1fr); }
}

/* очень длинное слово в заголовке/«таблетке» можно разорвать в любом месте */
.hero__title, .values__item, .dept-hero__title, .contacts__title, .page__title { overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .services__cols > * { width: 100%; }
  .hero__text { width: 100%; }
}

@media (max-width: 640px) {
  .hero__title { font-size: clamp(28px, 8.4vw, 40px); }
  .hero__desc  { font-size: 17px; margin-top: 24px; }
  .hero__stats { gap: 12px; }
  .stat { padding: 18px 16px; border-radius: 22px; }
  .stat--wide { padding-inline: 18px; }
  .stat__num { font-size: 30px; }
  .stat__label { font-size: 14px; }
  .search__input { padding: 0 18px; }
  .search__btn { gap: 0; padding: 0 14px; font-size: 0; }    /* на телефоне — только иконка лупы */
  .contacts__title, .careers__h2 { font-size: 26px; }
  .page__title { font-size: 24px; }
  .values__item { padding: 12px 18px; }
  .btn--header { min-width: 0; }
  .btn--form, .contacts__submit { min-width: 0; width: 100%; }
}

/* шапка в KZ/EN на ноутбуках (1101–1400px): пункты меню чуть компактнее, чтобы не уходили за край */
@media (min-width: 1101px) and (max-width: 1400px) {
  html:not([lang="ru"]) .nav__link { font-size: 17px; padding-inline: 6px; margin-right: 4px; }
  html:not([lang="ru"]) .btn--header { min-width: 0; height: 46px; padding-inline: 16px; font-size: 17px; margin-left: 12px; }
  html:not([lang="ru"]) .nav__eye { margin-left: 16px; }
  html:not([lang="ru"]) .logo__title { font-size: 18px; }
}

/* выпадающий список языков у правого края не должен давать горизонтальную прокрутку */
@media (min-width: 1101px) and (max-width: 1400px) {
  .lang__menu { left: auto; right: 0; transform: translateY(-6px); }
  .lang.is-open .lang__menu { transform: translateY(0); }
}
@media (min-width: 1101px) and (max-width: 1250px) {
  html:not([lang="ru"]) .logo { flex-shrink: 0; }
  html:not([lang="ru"]) .logo__title { font-size: 17px; white-space: nowrap; }
  html:not([lang="ru"]) .logo__sub { display: none; }
  html:not([lang="ru"]) .nav__link { font-size: 15px; padding-inline: 5px; margin-right: 2px; }
  html:not([lang="ru"]) .btn--header { font-size: 15px; padding-inline: 12px; margin-left: 8px; }
  html:not([lang="ru"]) .nav__eye { margin-left: 10px; }
}

/* ==========================================================================
   Страница «Пациентам» (patients.html)
   ========================================================================== */
.pat__lead { font-size: 20px; font-weight: 500; color: #2c3e3b; }

/* ---- Быстрые действия: онлайн-очередь + статус ОСМС ---- */
.pat-actions { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-top: 36px; }
.pat-action {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 18px 22px; align-items: start;
  min-width: 0; padding: 30px 32px; background: #fff; border: 1px solid var(--border); border-radius: 30px;
  box-shadow: 0 6px 24px rgba(1, 116, 105, .06);
}
.pat-action__icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #eef9f6; color: var(--teal-grad); }
.pat-action__icon svg { width: 40px; height: 40px; }
.pat-action__title { font-weight: 600; font-size: 26px; line-height: 1.25; color: var(--text-dark); }
.pat-action__text { margin-top: 8px; font-family: var(--font-main); font-size: 16px; line-height: 1.5; color: #3d5a55; }
.pat-action__btn {
  grid-column: 2; justify-self: start;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px;
  border-radius: 10px; font-weight: 600; font-size: 17px; color: var(--teal); background: #fff; border: 1.5px solid var(--teal);
  transition: background-color .2s, color .2s, transform .2s;
}
.pat-action__btn span { transition: transform .2s; }
.pat-action__btn:hover { background: var(--teal); color: #fff; }
.pat-action__btn:hover span { transform: translateX(4px); }
.pat-action--main { color: #fff; background: linear-gradient(135deg, var(--teal-grad), var(--teal-deep)); border-color: transparent; box-shadow: 0 14px 34px rgba(1, 116, 105, .25); }
.pat-action--main .pat-action__icon { background: rgba(255,255,255,.16); color: #fff; }
.pat-action--main .pat-action__icon path[stroke="#fff"] { stroke: var(--teal-deep); }
.pat-action--main .pat-action__title { color: #fff; }
.pat-action--main .pat-action__text { color: rgba(255,255,255,.88); }
.pat-action--main .pat-action__btn { color: var(--teal-deep); background: #fff; border-color: #fff; }
.pat-action--main .pat-action__btn:hover { color: var(--teal-deep); background: #e9fbf6; }

/* ---- Разделы ---- */
.pat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.pat-tile {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 230px;
  padding: 28px 26px 24px; background: #faffff; border: 1px solid var(--border); border-radius: 26px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pat-tile::after {
  content: '→'; position: absolute; right: 24px; bottom: 20px; font-size: 20px; color: var(--teal);
  opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s;
}
.pat-tile:hover { transform: translateY(-4px); border-color: rgba(1, 116, 105, .4); box-shadow: 0 14px 30px rgba(1, 116, 105, .12); }
.pat-tile:hover::after { opacity: 1; transform: none; }
.pat-tile:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.pat-tile__icon { width: 52px; height: 52px; margin-bottom: 10px; color: var(--teal-grad); }
.pat-tile__title { font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--text-dark); }
.pat-tile__text { font-family: var(--font-main); font-size: 15px; line-height: 1.45; color: #4b6662; }
.pat-tile__meta:empty { display: none; }
.pat-tile__meta {
  align-self: flex-start; margin-top: auto; padding: 5px 12px; border-radius: 30px;
  font-family: var(--font-main); font-weight: 600; font-size: 13px; color: var(--teal); background: #e3f5f0;
}

/* ---- Территория обслуживания ---- */
.pat-terr {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 0; margin-top: 30px;
  background: #fff; border: 1px solid var(--border); border-radius: 30px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(1, 116, 105, .06);
}
.pat-terr__map { position: relative; min-height: 520px; background: #e8f3f0 url("assets/svg/logo.svg") center / 90px no-repeat; }
.pat-terr__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pat-terr__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 30px 30px 28px; }
.pat-terr__label { font-weight: 600; font-size: 20px; color: var(--text-dark); }
.pat-terr__label--small { margin-top: 8px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pat-terr__search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border: 1px solid var(--border); border-radius: 14px; background: #faffff; transition: border-color .2s, box-shadow .2s; }
.pat-terr__search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(1,116,105,.15); }
.pat-terr__search svg { flex: none; width: 20px; height: 20px; color: var(--teal); }
.pat-terr__search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; }
.pat-terr__result:empty { display: none; }
.pat-terr__result { display: grid; gap: 8px; }
.pat-terr__hit { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: #eef9f6; transition: background-color .2s; }
.pat-terr__hit:hover { background: #dff4ef; }
.pat-terr__hit-top { font-weight: 700; font-size: 18px; color: var(--teal); }
.pat-terr__hit-top small { margin-left: 6px; font-weight: 600; font-size: 13px; color: var(--muted); }
.pat-terr__hit-doc { font-family: var(--font-main); font-weight: 600; font-size: 15px; color: var(--text-dark); }
.pat-terr__hit-addr { font-family: var(--font-main); font-size: 14px; color: #4b6662; }
.pat-terr__hit-more { margin-top: 4px; font-weight: 600; font-size: 14px; color: var(--teal); }
.pat-terr__none { padding: 14px 16px; border-radius: 14px; background: #fff8e6; font-family: var(--font-main); font-size: 14px; line-height: 1.5; color: #5a4a1a; }
.pat-terr__none a { font-weight: 600; color: var(--teal); white-space: nowrap; }
.pat-terr__czs { display: grid; gap: 8px; list-style: none; }
.pat-terr__czs a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; transition: border-color .2s, background-color .2s; }
.pat-terr__czs a:hover { border-color: var(--teal); background: #f3fbf9; }
.pat-terr__czs b { flex: none; font-weight: 700; font-size: 16px; color: var(--teal); }
.pat-terr__czs span { font-family: var(--font-main); font-size: 14px; text-align: right; color: #4b6662; }
.pat-terr__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.pat-terr__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 15px; color: #fff; background: var(--teal); transition: filter .2s; }
.pat-terr__btn:hover { filter: brightness(1.1); }
.pat-terr__btn--light { color: var(--teal); background: #fff; border: 1.5px solid var(--teal); }

/* ---- Памятки: карточки как документы, но с первой страницей ---- */
.memos { margin-top: 30px; }
.memos__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.memo { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.memo:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(1, 116, 105, .14); }
.memo__cover {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 210 / 230; overflow: hidden; cursor: pointer;
  background: linear-gradient(180deg, #eef9f6, #e3f2fa); border-bottom: 1px solid var(--border);
}
/* первая страница «листом» — видна верхняя часть, как у превью документов */
.memo__canvas, .memo__cover img { position: absolute; left: 8%; top: 8%; width: 84%; height: auto; border-radius: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); transition: transform .3s; }
.memo:hover .memo__canvas, .memo:hover .memo__cover img { transform: translateY(-4px) scale(1.02); }
.memo__ph { width: 76px; height: 76px; color: var(--teal-grad); }
.memo__type { position: absolute; right: 12px; bottom: 12px; padding: 3px 9px; border-radius: 6px; font-weight: 700; font-size: 12px; color: #fff; background: #d64545; }
.memo__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 20px; }
.memo__tag { align-self: flex-start; padding: 3px 10px; border-radius: 30px; font-family: var(--font-main); font-weight: 600; font-size: 12px; color: var(--teal); background: #e3f5f0; }
.memo__title { font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--text-dark); hyphens: auto; }
.memo__btns { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.memo__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 40px; border-radius: 9px; font: inherit; font-weight: 600; font-size: 14px; color: #fff; background: var(--teal); cursor: pointer; transition: filter .2s; }
.memo__btn:hover { filter: brightness(1.1); }
.memo__btn--light { color: var(--teal); background: #fff; border: 1.5px solid var(--teal); }
.memos__all { display: flex; width: fit-content; margin: 22px 0 0 auto; gap: 8px; font-weight: 600; font-size: 16px; color: var(--teal); }
.memos__empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 24px; text-align: center; background: #fff; border: 1px dashed var(--border); border-radius: 26px; }
.memos__empty p { font-family: var(--font-main); font-size: 17px; color: #4b6662; }
.memos__empty .memos__all { margin: 0; }

@media (max-width: 1400px) {
  .pat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .pat-actions { grid-template-columns: 1fr; }
  .pat-terr { grid-template-columns: 1fr; }
  .pat-terr__map { min-height: 380px; }
  .memos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pat__lead { font-size: 18px; }
}
@media (max-width: 760px) {
  .pat-tiles, .memos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pat-tile { min-height: 0; padding: 22px 18px 18px; }
  .pat-tile__title { font-size: 17px; }
}
@media (max-width: 640px) {
  .pat-action { grid-template-columns: 1fr; padding: 24px 22px; }
  .pat-action__btn { grid-column: 1; width: 100%; justify-content: center; }
  .pat-action__title { font-size: 22px; }
  .pat-tiles { grid-template-columns: 1fr; }
  .pat-tile { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  .pat-tile__icon { width: 40px; height: 40px; margin: 0; }
  .pat-tile__title { flex: 1; }
  .pat-tile__text { flex-basis: 100%; }
  .pat-tile__meta { margin-top: 4px; }
  .pat-terr__side { padding: 22px 18px; }
  .pat-terr__map { min-height: 320px; }
  .memo__title { font-size: 15px; }
  .memo__btns { flex-direction: column; }
}

/* ==========================================================================
   Анкеты для пациентов (survey.html) + капча «Найдите медицинских работников»
   ========================================================================== */
.survey { max-width: 820px; margin: 10px auto 0; scroll-margin-top: 20px; }
.survey__card {
  padding: 40px 44px 36px; background: #fff; border: 1px solid var(--border); border-radius: 30px;
  box-shadow: 0 10px 34px rgba(1, 116, 105, .08); animation: svIn .35s ease;
}
@keyframes svIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.survey__kicker { display: inline-block; padding: 5px 12px; border-radius: 30px; font-family: var(--font-main); font-weight: 600; font-size: 13px; color: var(--teal); background: #e3f5f0; }
.survey__title { margin-top: 14px; font-weight: 600; font-size: 32px; line-height: 1.25; color: var(--teal); }
.survey__intro { margin-top: 12px; font-family: var(--font-main); font-size: 17px; line-height: 1.55; color: #3d5a55; }
.survey__note { margin-top: 18px; font-family: var(--font-main); font-size: 13px; line-height: 1.5; color: var(--muted); }
.survey__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.survey__btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 200px; height: 52px; margin-top: 22px; padding: 0 28px;
  border-radius: 12px; font: inherit; font-weight: 600; font-size: 17px; color: #fff; background: var(--teal); cursor: pointer;
  transition: filter .2s, transform .2s, opacity .2s;
}
.survey__btn:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.survey__btn:disabled { opacity: .4; cursor: not-allowed; }
.survey__btn--light { color: var(--teal); background: #fff; border: 1.5px solid var(--teal); }
.survey__other { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); font-family: var(--font-main); font-size: 15px; color: var(--muted); }
.survey__switch { margin-left: 6px; font-weight: 600; color: var(--teal); border-bottom: 1px solid rgba(1,116,105,.35); }

/* ---- капча ---- */
.captcha { margin-top: 28px; }
.captcha__title { font-weight: 600; font-size: 22px; color: var(--text-dark); }
.captcha__hint { margin-top: 6px; font-family: var(--font-main); font-size: 15px; color: #4b6662; }
.captcha__frame { margin-top: 16px; padding: 10px; background: #1d1f22; border-radius: 26px; box-shadow: 0 12px 26px rgba(0,0,0,.22); max-width: 560px; }
.captcha__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; overflow: hidden; border-radius: 16px; background: #d9dee0; }
.captcha__tile { position: relative; display: block; aspect-ratio: 1; padding: 0; overflow: hidden; background: #f3f5f5; cursor: pointer; }
.captcha__tile svg { display: block; width: 100%; height: 100%; transition: transform .2s; }
.captcha__tile:hover svg { transform: scale(1.04); }
.captcha__tile:focus-visible { outline: 3px solid #4fc3a1; outline-offset: -3px; z-index: 1; }
.captcha__tile[aria-pressed="true"] svg { transform: scale(.86); border-radius: 10px; }
.captcha__tile[aria-pressed="true"]::after { content: ''; position: absolute; inset: 0; border: 4px solid var(--teal); }
.captcha__check { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.85); border: 2px solid #b9c4c7; transition: background-color .15s, border-color .15s; }
.captcha__tile[aria-pressed="true"] .captcha__check { background: var(--teal); border-color: var(--teal); }
.captcha__tile[aria-pressed="true"] .captcha__check::after { content: ''; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border-right: 2.6px solid #fff; border-bottom: 2.6px solid #fff; transform: rotate(45deg); }
.captcha__err { min-height: 22px; margin-top: 10px; font-family: var(--font-main); font-weight: 600; font-size: 15px; color: #c62828; }

/* ---- вопросы ---- */
.survey__progress { height: 8px; border-radius: 8px; background: #e3f0ed; overflow: hidden; }
.survey__progress span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--teal-grad), #4fc3a1); transition: width .4s ease; }
.survey__step { margin-top: 18px; font-family: var(--font-main); font-weight: 600; font-size: 14px; color: var(--muted); }
.survey__q { margin-top: 8px; font-weight: 600; font-size: 26px; line-height: 1.3; color: var(--text-dark); }
.survey__q:focus { outline: none; }
.survey__opts { display: grid; gap: 10px; margin-top: 22px; }
.survey__opt { position: relative; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 12px 18px; border: 1.5px solid var(--border); border-radius: 14px; background: #faffff; cursor: pointer; transition: border-color .2s, background-color .2s; }
.survey__opt:hover { border-color: rgba(1,116,105,.45); }
.survey__opt input { position: absolute; opacity: 0; pointer-events: none; }
.survey__opt-mark { flex: none; width: 22px; height: 22px; border: 2px solid #9fb5b1; border-radius: 50%; background: #fff; transition: border-color .2s, box-shadow .2s; }
.survey__opt-text { font-family: var(--font-main); font-weight: 500; font-size: 17px; color: var(--text-dark); }
.survey__opt:has(input:checked) { border-color: var(--teal); background: #e9f7f3; }
.survey__opt input:checked + .survey__opt-mark { border-color: var(--teal); box-shadow: inset 0 0 0 5px var(--teal); }
.survey__opt input:focus-visible + .survey__opt-mark { outline: 3px solid rgba(1,116,105,.35); outline-offset: 2px; }
/* шкала 1–10 — кнопки в ряд */
.survey__opts--scale { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.survey__opts--scale .survey__opt { flex-direction: column; justify-content: center; gap: 8px; min-height: 92px; padding: 14px 6px; text-align: center; }
.survey__opts--scale .survey__opt-text { font-weight: 700; font-size: 20px; }
.survey__hint { margin-top: 10px; font-family: var(--font-main); font-size: 14px; color: var(--muted); }
.survey__text { width: 100%; min-height: 170px; margin-top: 22px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 14px; background: #faffff; font: inherit; font-family: var(--font-main); font-size: 16px; line-height: 1.5; resize: vertical; outline: 0; transition: border-color .2s, box-shadow .2s; }
.survey__text:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(1,116,105,.15); }
.survey__count { margin-top: 6px; text-align: right; font-family: var(--font-main); font-size: 13px; color: var(--muted); }
.survey__nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.survey__nav--center { justify-content: center; }

/* ---- спасибо ---- */
.survey__card--done { text-align: center; padding-block: 50px 44px; }
.survey__ok { display: inline-grid; width: 84px; height: 84px; color: var(--teal); }
.survey__ok path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: svTick .5s .2s ease forwards; }
@keyframes svTick { to { stroke-dashoffset: 0; } }

@media (max-width: 640px) {
  .survey__card { padding: 26px 20px 24px; border-radius: 24px; }
  .survey__title { font-size: 24px; }
  .survey__q { font-size: 20px; }
  .captcha__frame { padding: 6px; border-radius: 18px; }
  .captcha__grid { border-radius: 13px; }
  .survey__opts--scale { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .survey__opts--scale .survey__opt { min-height: 74px; padding: 10px 2px; }
  .survey__opts--scale .survey__opt-text { font-size: 15px; }
  .survey__btn { flex: 1; min-width: 0; }
}
/* анкеты: числовые шкалы 0–10 / 1–10, подписи краёв шкалы, строка ответа */
.survey__opts--scale { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
.survey__opts--scale:is([style*="--n:10"], [style*="--n:11"]) .survey__opt { min-height: 74px; padding: 10px 2px; gap: 6px; }
.survey__opts--scale:is([style*="--n:10"], [style*="--n:11"]) .survey__opt-mark { width: 18px; height: 18px; }
.survey__ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-family: var(--font-main); font-size: 13px; color: var(--muted); }
.survey__line { width: 100%; height: 54px; margin-top: 22px; padding: 0 16px; border: 1.5px solid var(--border); border-radius: 14px; background: #faffff; font: inherit; font-family: var(--font-main); font-size: 16px; outline: 0; transition: border-color .2s, box-shadow .2s; }
.survey__line:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(1,116,105,.15); }
@media (max-width: 640px) {
  .survey__opts--scale:is([style*="--n:10"], [style*="--n:11"]) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .survey__opts--scale .survey__opt-mark { display: none; }
}

/* ---- Капча маленьким окном (формы: Вопрос-ответ, Контакты, Карьера, Сотрудничество) ---- */
.captcha-dlg {
  width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 28px 28px 24px;
  border: 0; border-radius: 26px; background: #fff; box-shadow: 0 24px 60px rgba(0, 40, 36, .3); overflow: auto;
}
.captcha-dlg::backdrop { background: rgba(10, 40, 37, .45); backdrop-filter: blur(3px); }
.captcha-dlg[open] { animation: svIn .25s ease; }
.captcha-dlg .captcha__title { padding-right: 40px; font-size: 21px; }
.captcha-dlg .captcha__frame { max-width: none; }
.captcha-dlg__close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--teal); background: #eef9f6; cursor: pointer; }
.captcha-dlg__close:hover { background: #dff4ef; }
.captcha-dlg__btns { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.captcha-dlg__new { padding: 8px 0; font: inherit; font-weight: 600; font-size: 15px; color: var(--teal); background: none; cursor: pointer; }
.captcha-dlg__new:hover { text-decoration: underline; }
.captcha-dlg__ok { margin-top: 0; min-width: 170px; }
.btn--captcha.is-passed { background: #e3f5f0; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); cursor: default; transform: none; }
.form-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 35px; }
.form-btns--center { justify-content: center; }
.form-btns .contacts__submit { margin: 0; }
.vacancies__form .form-btns .contacts__submit { display: inline-flex; margin: 0; }
@media (max-width: 640px) {
  .captcha-dlg { padding: 22px 16px 18px; border-radius: 20px; }
  .form-btns .contacts__submit { flex: 1 1 100%; }
}

/* скрытое поле-ловушка для ботов в формах (человек его не видит) */
.form-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
button[type="submit"]:disabled { opacity: .6; cursor: progress; }

/* График: примечание под таблицей раздела (заведующий, старшая медсестра) */
.sched__note { margin: -10px 26px 22px; font-family: var(--font-main); font-size: 14px; color: var(--muted); }

/* Новости: маркированные списки в тексте (строки «• …» в news-data.js) */
.paper__list { margin: 0 0 14px 2em; padding-left: 1.1em; }
.paper__list li { margin-bottom: 6px; }
.paper__list li::marker { color: var(--teal); }

.dept-info dd { white-space: pre-line; }

/* ==========================================================================
   ЯЗЫКИ (KZ / RU / EN)
   ========================================================================== */
/* пока страница переводится — показываем только заставку, без мелькания русского текста */
html.i18n-wait body > *:not(.preloader) { visibility: hidden; }
/* логотип заставки — свой для каждого языка */
.preloader__logo .pl-kz, .preloader__logo .pl-en { display: none; }
html[lang="kk"] .preloader__logo .pl-ru, html[lang="en"] .preloader__logo .pl-ru { display: none; }
html[lang="kk"] .preloader__logo .pl-kz, html[lang="en"] .preloader__logo .pl-en { display: block; }
/* График: в шапке таблицы две строки (каз. + рус.). На казахском оставляем казахскую, на английском — английскую */
html[lang="kk"] .sched__kz + .sched__ru { display: none; }
html[lang="en"] .sched__kz:has(+ .sched__ru) { display: none; }

/* ---- ПЕРЕВОД: правки только для казахской версии ----
   Казахское название центра длиннее русского, поэтому заголовок первого экрана
   на казахском чуть меньше — чтобы он не вырастал на 1–2 строки. */
html[lang="kk"] .hero__title { font-size: clamp(34px, 3.2vw, 54px); }
@media (max-width: 640px) {
  html[lang="kk"] .hero__title { font-size: clamp(24px, 7.2vw, 34px); }
}

/* ==========================================================================
   РЕЖИМ ДЛЯ СЛАБОВИДЯЩИХ (кнопка с глазом в шапке; скрипт — раздел 18б в script.js)
   Работает только когда на <html> есть класс a11y — на обычную версию не влияет.
   Цвета схем (текст / фон) можно поменять здесь:
   ========================================================================== */
html.a11y-c-bw    { --a-fg: #000;    --a-bg: #fff; }
html.a11y-c-wb    { --a-fg: #fff;    --a-bg: #000; }
html.a11y-c-blue  { --a-fg: #063462; --a-bg: #9dd1ff; }
html.a11y-c-brown { --a-fg: #4d4b43; --a-bg: #f7f3d6; }

/* панель настроек над шапкой */
.a11y-bar[hidden] { display: none; }
.a11y-bar { position: relative; z-index: 30; border-bottom: 2px solid var(--a-fg, #000); font-family: Arial, Helvetica, sans-serif; font-size: 16px; }
.a11y-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-block: 10px; }
.a11y-bar__grp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.a11y-bar__label { margin-right: 4px; font-weight: 700; }
.a11y-bar__btn {
  min-width: 40px; height: 40px; padding: 0 10px; border: 2px solid; border-radius: 6px;
  font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 16px; line-height: 1;
}
.a11y-bar__btn.is-active { outline: 3px solid var(--a-fg, #000); outline-offset: 2px; }
.a11y-bar .a11y-bar__a1 { font-size: 20px; }
.a11y-bar .a11y-bar__a2 { font-size: 24px; }
.a11y-bar__reset { margin-left: auto; }
/* кнопки-образцы цвета всегда своего цвета */
html.a11y .a11y-bar .a11y-bar__c-bw    { color: #000 !important; background-color: #fff !important; border-color: #000 !important; }
html.a11y .a11y-bar .a11y-bar__c-wb    { color: #fff !important; background-color: #000 !important; border-color: #000 !important; }
html.a11y .a11y-bar .a11y-bar__c-blue  { color: #063462 !important; background-color: #9dd1ff !important; border-color: #063462 !important; }
html.a11y .a11y-bar .a11y-bar__c-brown { color: #4d4b43 !important; background-color: #f7f3d6 !important; border-color: #4d4b43 !important; }

/* цвет сайта: один цвет текста, один цвет фона, без теней, градиентов и фоновых картинок */
html.a11y body,
html.a11y body *:not(svg):not(svg *):not(img):not(video):not(iframe):not(canvas) {
  color: var(--a-fg) !important;
  background-color: var(--a-bg) !important;
  background-image: none !important;
  border-color: var(--a-fg) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}
html.a11y body *::before, html.a11y body *::after { box-shadow: none !important; text-shadow: none !important; }
html.a11y a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y :focus-visible { outline: 3px solid var(--a-fg) !important; outline-offset: 2px; }
html.a11y .btn, html.a11y .way__btn, html.a11y .way__icon { border: 2px solid var(--a-fg) !important; }
html.a11y input::placeholder, html.a11y textarea::placeholder { color: var(--a-fg) !important; -webkit-text-fill-color: var(--a-fg) !important; opacity: .7; }
/* декор не нужен */
html.a11y .ornament, html.a11y .nav__orn, html.a11y .hero::before, html.a11y .hero::after { display: none !important; }
/* то, что нарисовано цветом фона (полоски, точки, линии), — цветом текста */
html.a11y .nav__burger span, html.a11y .nav__burger span::before, html.a11y .nav__burger span::after { background-color: var(--a-fg) !important; }
html.a11y .header.menu-open .nav__burger span { background-color: transparent !important; }
html.a11y hr { border: 0 !important; border-top: 2px solid var(--a-fg) !important; }
/* шапка растёт вместе с текстом */
html.a11y .header { height: auto; min-height: 100px; }
html.a11y .header__inner { flex-wrap: wrap; row-gap: 8px; padding-block: 10px; }
html.a11y .hero { min-height: 0; padding-block: 60px; }

/* изображения: чёрно-белые / скрыть (логотип и капча остаются) */
html.a11y-img-gray img, html.a11y-img-gray video, html.a11y-img-gray iframe, html.a11y-img-gray canvas { filter: grayscale(1) !important; }
html.a11y-img-off img:not(.logo__img), html.a11y-img-off video, html.a11y-img-off picture { display: none !important; }

/* интервал: шире между буквами и словами (строки раздвигает скрипт) */
html.a11y-sp body *:not(svg):not(svg *) { letter-spacing: .08em !important; word-spacing: .16em !important; }
/* простой шрифт */
html.a11y-ff body, html.a11y-ff body *:not(svg):not(svg *) { font-family: Arial, Helvetica, sans-serif !important; }

/* ПЕРЕВОД: часы работы на «Контактах» на KZ/EN — каждая часть с новой строки, как на русском
   (переносы \n стоят в переводе в i18n-data.js) */
html[lang="kk"] .contacts__hours, html[lang="en"] .contacts__hours { white-space: pre-line; }
@media (min-width: 641px) {
  html[lang="kk"] .contacts__hours, html[lang="en"] .contacts__hours { white-space: pre; }
}

/* ==========================================================================
   ПРАЗДНИЧНОЕ ОФОРМЛЕНИЕ И ТРАУР (календарь — themes-data.js)
   Картинки стоят на свободных полях слева и справа от контента, только на
   широких экранах (от 1560px) — текст не закрывают, на клики не влияют.
   Картинки тем: assets/svg/themes/<тема>.svg (правая сторона — зеркально).
   ========================================================================== */
html[data-theme="newyear"]      { --theme-side: url('assets/svg/themes/newyear.svg'); }
html[data-theme="march8"]       { --theme-side: url('assets/svg/themes/march8.svg'); }
html[data-theme="nauryz"]       { --theme-side: url('assets/svg/themes/nauryz.svg'); }
html[data-theme="unity"]        { --theme-side: url('assets/svg/themes/unity.svg'); }
html[data-theme="defender"]     { --theme-side: url('assets/svg/themes/defender.svg'); }
html[data-theme="victory"]      { --theme-side: url('assets/svg/themes/victory.svg'); }
html[data-theme="medic"]        { --theme-side: url('assets/svg/themes/medic.svg'); }
html[data-theme="capital"]      { --theme-side: url('assets/svg/themes/capital.svg'); }
html[data-theme="constitution"] { --theme-side: url('assets/svg/themes/constitution.svg'); }
html[data-theme="republic"]     { --theme-side: url('assets/svg/themes/republic.svg'); }
html[data-theme="independence"] { --theme-side: url('assets/svg/themes/independence.svg'); }

@media (min-width: 1560px) {
  html[data-theme]:not([data-theme="mourning"]) body::before,
  html[data-theme]:not([data-theme="mourning"]) body::after {
    content: ''; position: fixed; top: 0; bottom: 0; z-index: 1; pointer-events: none;
    width: min(300px, calc((100vw - 1320px) / 2 - 16px));
    background: var(--theme-side) left center / contain no-repeat;
  }
  html[data-theme]:not([data-theme="mourning"]) body::before { left: 0; }
  html[data-theme]:not([data-theme="mourning"]) body::after  { right: 0; transform: scaleX(-1); }   /* правая — зеркально */
}
html.a11y[data-theme] body::before, html.a11y[data-theme] body::after { display: none !important; }
@media print { html[data-theme] body::before, html[data-theme] body::after { display: none !important; } }

/* ТРАУР: сайт чёрно-белый, траурная лента в левом верхнем углу (на всех экранах) */
html[data-theme="mourning"] { filter: grayscale(1); }
html[data-theme="mourning"] body::before {
  content: ''; position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  width: 64px; height: 64px; background: url('assets/svg/themes/mourning-ribbon.svg') 0 0 / contain no-repeat;
}
@media (max-width: 640px) { html[data-theme="mourning"] body::before { width: 44px; height: 44px; } }
html.a11y[data-theme="mourning"] body::before { display: block !important; }
