/* ==========================================================================
   КДЦ МКТУ им. Х.А. Ясави — стили сайта (вёрстка по ayukdc.kz)
   ========================================================================== */

:root {
  --navy: #0A3F86;
  --navy-2: #0F4AA3;
  --navy-dark: #0D2B5B;
  --footer: #0A2C5E;
  --footer-bottom: #071F45;
  --text: #4a5568;
  --text-muted: #7A7A7A;
  --text-dark: #333333;
  --text-black: #1a1a1a;
  --bg-light: #F2F6FC;
  --bg-card: #F7FAFF;
  --accent: #605BE5;
  --accent-hover: #4A45D2;
  --tab: #408cec;
  --red: #D32F2F;
  --border: #E8E8E8;
  --shadow: 0 4px 16px rgba(10, 63, 134, .08);
  --shadow-lg: 0 8px 30px rgba(10, 63, 134, .15);
  --container: 1140px;
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy-dark); }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.ic { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}
.narrow { max-width: 860px; }
.text-center { text-align: center; }
.text-red { color: var(--red); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: #fff; color: var(--navy); padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header { position: relative; z-index: 50; }

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 28px;
  row-gap: 2px;
  min-height: 26px;
  padding: 3px 40px;
  background: var(--navy);
  color: #fff;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: none;
  border: 0;
  padding: 0;
}
.topbar__item .ic { font-size: 15px; }
a.topbar__item:hover, .topbar__item--a11y:hover { color: #DCE7F7; }
.topbar__lang { font-weight: 700; gap: 4px; }
.topbar__lang a { color: #fff; opacity: .85; }
.topbar__lang a.is-current, .topbar__lang a:hover { opacity: 1; color: #fff; }

.mainbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 40px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(10, 63, 134, .06);
}

.brand { display: flex; align-items: center; gap: 14px; color: var(--navy-2); }
.brand:hover { color: var(--navy-2); }
.brand__logo { width: 80px; height: auto; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; gap: 3px; max-width: 360px; }
.brand__title { font-size: 18px; font-weight: 700; line-height: 1.25; }
.brand__subtitle { font-size: 13px; font-weight: 600; line-height: 1.3; }

.mainbar__right { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }

.menu { display: flex; flex-wrap: nowrap; justify-content: flex-end; }
.menu > li { position: relative; }
.menu > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 15px 4px;
  margin: 0 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-black);
  white-space: nowrap;
}
.menu > li > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 2px;
  background: var(--navy-dark);
  transform: scaleX(0);
  transition: transform .25s;
}
.menu > li > a:hover, .menu > li > a.active { color: var(--navy-dark); }
.menu > li > a:hover::after, .menu > li > a.active::after { transform: scaleX(1); }

.caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 60;
}
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sub-menu a {
  display: block;
  padding: 13px 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dark);
  background: #fff;
}
.sub-menu a:hover, .sub-menu a.active { color: #fff; background: var(--accent); }

.search-btn {
  display: inline-flex;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--navy-dark);
  font-size: 20px;
}
.search-btn:hover { color: var(--navy); }

/* burger + mobile nav */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 50px;
  padding: 6px 4px;
  border: 0;
  background: none;
}
.burger span { display: block; height: 4px; background: var(--text-dark); transition: transform .25s, opacity .25s, background .2s; }
.burger:hover span { background: var(--accent); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  margin-top: 0;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
}
.mobile-nav.is-open { display: block; }
.mobile-menu li { background: #fff; }
.mobile-menu a {
  display: block;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dark);
  border-bottom: 1px solid #e8e8e8;
}
.mobile-menu a:hover, .mobile-menu a.active { color: #fff; background: var(--accent); }
.mobile-menu .sub-menu {
  position: static; opacity: 1; visibility: visible; transform: none;
  border: 0; min-width: 0;
}
.mobile-menu .sub-menu a { padding: 5px 10px 5px 24px; }

/* search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
  background: rgba(7, 31, 69, .85);
}
.search-overlay[hidden] { display: none; }
.search-box { position: relative; width: 100%; max-width: 640px; }
.search-form { display: flex; background: #fff; border-radius: 30px; overflow: hidden; }
.search-form input {
  flex: 1; min-width: 0;
  padding: 16px 22px;
  border: 0; outline: 0;
  font: inherit; font-size: 17px;
}
.search-form button { border: 0; background: var(--navy); color: #fff; padding: 0 22px; font-size: 18px; display: flex; align-items: center; }
.search-results { margin-top: 14px; background: #fff; border-radius: 12px; overflow: hidden; }
.search-results:empty { display: none; }
.search-results a { display: block; padding: 12px 20px; border-bottom: 1px solid var(--border); color: var(--text-dark); }
.search-results a:hover { background: var(--bg-light); color: var(--navy); }
.search-results small { display: block; color: var(--text-muted); font-size: 13px; }
.search-results .empty { padding: 12px 20px; color: var(--text-muted); }
.search-close {
  position: absolute; top: -56px; right: 0;
  border: 0; background: none; color: #fff; font-size: 40px; line-height: 1;
}

/* ==========================================================================
   Common blocks
   ========================================================================== */

.section { padding: 60px 40px; }
.section--white { background: #fff; }
.section--light { background: var(--bg-light); }
.section--tight { padding: 20px 40px 40px; }
.section--cards { padding: 25px 40px 55px; }
.section--news { padding-bottom: 50px; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 0;
  color: var(--navy);
}
.divider__line { width: 6%; max-width: 70px; min-width: 30px; height: 2px; background: var(--navy); opacity: .5; }
.divider__icon { width: 22px; height: 22px; fill: var(--navy); }

.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
}
.section-title--sm { font-size: 26px; }
.section-subtitle {
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
}
.section-subtitle--sm { font-size: 14px; }

.page-head { padding: 50px 40px 10px; }
.page-title { text-align: center; font-size: 34px; font-weight: 800; color: var(--navy); }
.page-head .divider { padding-top: 12px; padding-bottom: 4px; }
.page-head .section-subtitle { margin-top: 4px; }

.text-editor { color: var(--text-muted); font-size: 16px; line-height: 1.7; }
.text-editor p + p { margin-top: 14px; }
.text-editor strong { color: var(--text-dark); }
.text-editor a { color: var(--navy); }
.text-editor a:hover { text-decoration: underline; }

/* stacked icon box */
.stack-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 20px;
  transition: background .2s, transform .2s;
}
a.stack-icon:hover { background: var(--navy-dark); color: #fff; }
.stack-icon .ic { width: 1em; height: 1em; }

.icon-box__title { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.icon-box__title a { color: inherit; }
.icon-box__title a:hover { color: var(--navy-dark); }
.icon-box__text { font-size: 13px; color: var(--text); line-height: 1.55; }

/* grid of cards */
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding-top: 20px;
}
.cards-grid > * { flex: 0 0 calc((100% - 40px) / 3); }
.cards-grid--4 > * { flex-basis: calc((100% - 60px) / 4); }

.card-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
  padding: 24px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card-icon:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon--info .stack-icon { font-size: 22px; }
.card-icon--info .icon-box__title { font-size: 15px; }
.card-icon--sm { padding: 22px 16px; }
.card-icon--sm .icon-box__title { font-size: 14px; }
.card-icon--sm .icon-box__text { font-size: 12px; }

/* icon list (contacts) */
.icon-list li, .icon-list li > a { display: flex; align-items: flex-start; gap: 10px; color: var(--text-dark); font-size: 15px; }
.icon-list li { padding-bottom: 7px; }
.icon-list li > span a { color: inherit; }
.icon-list li + li { padding-top: 7px; }
.icon-list .ic { color: var(--navy); width: 16px; height: 16px; margin-top: 3px; }
.icon-list a:hover { color: var(--navy); }

/* check list */
.check-list li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; color: var(--text-dark); font-size: 15px; }
.check-list .ic { color: var(--navy); width: 16px; height: 16px; margin-top: 3px; }
.check-list a { color: inherit; }
.check-list a:hover { color: var(--navy); }

/* ==========================================================================
   Home
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 460px;
  padding: 90px 60px 130px;
  background: url("../img/mktu.jpg") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 63, 134, .9) 0%, rgba(10, 63, 134, .19) 100%);
}
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero__title { font-size: 42px; font-weight: 800; line-height: 1.15; color: #fff; }
.hero__subtitle { font-size: 17px; font-weight: 400; line-height: 1.5; color: #E8EFFA; }
.btn-hero {
  display: inline-block;
  margin-top: 6px;
  padding: 14px 28px;
  border-radius: 30px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  transition: background .2s, color .2s, transform .2s;
}
.btn-hero:hover { background: var(--navy-dark); color: #fff; transform: translateY(-2px); }

.features-wrap { position: relative; z-index: 2; margin-top: -60px; padding: 0 40px; }
.features {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 30px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.feature { display: flex; align-items: flex-start; gap: 12px; flex: 1 1 0; }
.feature__icon { color: var(--navy); font-size: 30px; line-height: 1; }
.feature__icon .ic { width: 30px; height: 30px; }
.feature__title { font-size: 13px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.feature__text { font-size: 12px; color: var(--text); line-height: 1.5; }

.about-grid { display: flex; gap: 24px; padding-top: 20px; }
.about-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 18px;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.about-card > img { width: 100%; aspect-ratio: 597 / 323; object-fit: cover; border-radius: 12px 12px 0 0; }
.about-card__body { display: flex; flex-direction: column; align-items: center; gap: 15px; padding: 0 16px; text-align: center; }
.about-card__body .icon-box__text { font-size: 13px; }

/* news grid */
.grid-filters { display: flex; justify-content: center; margin: 10px 0 20px; }
.grid-filters span {
  display: inline-block;
  padding: 3px 15px;
  border-radius: 3px;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
}
.grid-filters span.is-active, .grid-filters span:hover { color: #fff; background: var(--accent); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card { padding-top: 10px; }
.news-card__media { position: relative; display: block; overflow: hidden; }
.news-card__media img { width: 100%; aspect-ratio: 597 / 323; object-fit: cover; transition: transform .5s; }
.news-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .25);
  opacity: 0;
  transition: opacity .3s;
}
.news-card:hover .news-card__media::after { opacity: 1; }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__title { padding-top: 10px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.news-card__title a { color: var(--text-dark); }
.news-card__title a:hover { color: #54595f; }
.news-card__meta { display: flex; gap: 5px; margin-top: 10px; font-size: 14px; color: #9C9C9C; }
.news-card__meta a { color: #9C9C9C; }
.news-card__meta a:hover { color: var(--accent); }
.news-card__excerpt { margin-top: 10px; font-size: 14px; color: #6A6A6A; line-height: 1.6; }
.news-card__more { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--accent); }
.news-card__more:hover { color: var(--accent-hover); }

/* contacts block on home */
.contacts-row { display: flex; gap: 30px; align-items: stretch; }
.contacts-row__info { flex: 0 0 40%; display: flex; flex-direction: column; gap: 12px; }
.contacts-row__map { flex: 1 1 58%; }
.contacts-title { font-size: 28px; font-weight: 800; color: var(--navy); }
.map { display: block; width: 100%; height: 320px; border: 0; border-radius: 0; }

/* tabs */
.section--tabs { padding-top: 40px; }
.tabs { display: flex; flex-direction: column; gap: 30px; }
.tabs__menu { display: flex; justify-content: center; flex-wrap: wrap; }
.tab {
  width: 160px;
  padding: 8px;
  border: 2px solid #E0E0E0;
  background: var(--tab);
  color: #fff;
  font-size: 15px;
  text-align: center;
  transition: background .2s, border-color .2s;
}
.tab:hover, .tab:focus-visible { background: #2f78d6; outline: 0; }
.tab.is-selected { border-color: #0C0D0E; }
.tab-panel { padding: 10px; color: var(--text-muted); }
.tab-panel p + p { margin-top: 20px; }
.tab-panel a { color: var(--navy); }
.tab-panel a:hover { text-decoration: underline; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* about */
.about-row { display: flex; gap: 36px; align-items: flex-start; }
.about-row__img { flex: 0 0 42%; }
.about-row__img img { width: 100%; border-radius: 14px; }
.about-row__text { flex: 1 1 55%; }
.section--scope { padding: 40px 40px 50px; }
.two-lists { display: flex; gap: 40px; justify-content: center; margin-top: 16px; }
.two-lists > .check-list { flex: 0 0 auto; min-width: 280px; }

/* people */
.people-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.person {
  flex: 0 0 calc((100% - 40px) / 3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 20px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.person img { width: 100%; aspect-ratio: 300 / 240; object-fit: cover; margin-bottom: 8px; }
.person__name { font-size: 17px; font-weight: 700; color: var(--navy); padding: 0 12px; }
.person__role { font-size: 13px; font-weight: 500; color: var(--text); padding: 0 12px; }
.person__extra { font-size: 12px; font-weight: 400; color: var(--text-muted); padding: 0 12px; }

/* services */
.service-cols { display: flex; gap: 30px; }
.service-box {
  flex: 1 1 0;
  padding: 26px;
  background: var(--bg-light);
  border-radius: 14px;
}
.service-box__title { margin-bottom: 12px; font-size: 18px; font-weight: 800; color: var(--navy); }
.service-box--wide { margin-top: 30px; }
.service-note { margin-top: 30px; }
.lead { max-width: 860px; margin: 0 auto 10px; }

/* gov symbols */
.symbols h2 { margin: 30px 0 12px; font-size: 24px; font-weight: 800; color: var(--navy); }
.symbols .anthem { font-style: italic; }

/* contacts page */
.contacts-page { display: flex; gap: 30px; align-items: stretch; }
.contacts-card { flex: 0 0 40%; padding: 26px; background: var(--bg-light); border-radius: 14px; }
.contacts-page__map { flex: 1 1 58%; }
.contacts-page__map .map { height: 100%; min-height: 320px; border-radius: 14px; }

.section--booking { padding: 40px 40px 60px; }
.booking-card {
  max-width: 60%;
  margin: 24px auto 0;
  padding: 26px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* forms (CF7 / comments look) */
.cf-form p, .comment-form p { margin-bottom: 16px; }
.cf-form label, .comment-form label { display: block; font-size: 15px; color: var(--text-dark); }
.cf-form input[type="text"], .cf-form input[type="tel"], .cf-form input[type="email"], .cf-form select, .cf-form textarea,
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  border: 1px solid #d0d7e2;
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  color: var(--text-dark);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.cf-form textarea, .comment-form textarea { resize: vertical; }
.cf-form input:focus, .cf-form textarea:focus, .comment-form input:focus, .comment-form textarea:focus {
  outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10, 63, 134, .12);
}
.cf-form .is-invalid, .comment-form .is-invalid { border-color: #dc3232; }
.cf-form input[type="submit"], .comment-form input[type="submit"] {
  padding: 12px 30px;
  border: 0;
  border-radius: 30px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.cf-form input[type="submit"]:hover, .comment-form input[type="submit"]:hover { background: var(--navy-dark); }
.cf-response { padding: 10px 14px; border: 2px solid #46b450; border-radius: 6px; font-size: 14px; }
.cf-response.is-error { border-color: #ffb900; }

/* single post */
.single-post { padding: 50px 40px 60px; }
.entry-title { font-size: 34px; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.comments { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.comment-reply-title { font-size: 24px; font-weight: 700; color: var(--text-dark); margin-bottom: 14px; }
.comment-notes { font-size: 14px; color: var(--text-muted); }
.required { color: #dc3232; }
.comment-cookies { display: flex; align-items: flex-start; gap: 8px; }
.comment-cookies label { font-size: 14px; color: var(--text-muted); }
.comment-cookies input { margin-top: 4px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-main {
  display: flex;
  gap: 40px;
  padding: 50px 60px 40px;
  background: var(--footer);
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col--about { flex: 0 0 36%; }
.footer-col--links { flex: 0 0 28%; }
.footer-col--contacts { flex: 1 1 30%; }
.footer-col h4 { font-size: 16px; font-weight: 800; color: #fff; }
.footer-col p { font-size: 14px; color: var(--text-muted); line-height: 1.6; color: #b9c8de; }
.footer-list li, .footer-list li > a { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: #DCE7F7; }
.footer-list li { padding: 4px 0; }
.footer-list li > span a { color: inherit; }
.footer-list .ic { color: #5B84C4; width: 14px; height: 14px; margin-top: 3px; }
.footer-list a:hover { color: #fff; }
.footer-bottom { display: flex; padding: 14px 40px; background: var(--footer-bottom); }
.footer-bottom p { font-size: 12px; color: #8FA9CF; }

/* ==========================================================================
   Версия для слабовидящих
   ========================================================================== */

body.a11y { font-size: 20px; }
body.a11y, body.a11y .section, body.a11y .mainbar, body.a11y .card-icon, body.a11y .about-card,
body.a11y .person, body.a11y .service-box, body.a11y .contacts-card, body.a11y .booking-card,
body.a11y .features, body.a11y .section--light { background: #fff !important; }
body.a11y * { color: #000 !important; box-shadow: none !important; }
body.a11y .topbar, body.a11y .footer-main, body.a11y .footer-bottom, body.a11y .hero::before { background: #000 !important; }
body.a11y .topbar *, body.a11y .footer-main *, body.a11y .footer-bottom *, body.a11y .hero *,
body.a11y .stack-icon, body.a11y .stack-icon *, body.a11y .tab, body.a11y .btn-hero,
body.a11y input[type="submit"] { color: #fff !important; }
body.a11y .stack-icon, body.a11y .tab, body.a11y .btn-hero, body.a11y input[type="submit"] { background: #000 !important; }
body.a11y .card-icon, body.a11y .person, body.a11y .about-card, body.a11y .service-box,
body.a11y .contacts-card, body.a11y .booking-card, body.a11y .features { border: 2px solid #000; }
body.a11y img:not(.brand__logo) { filter: grayscale(1); }
body.a11y .menu > li > a, body.a11y .sub-menu a, body.a11y .mobile-menu a { font-size: 15px; }
body.a11y .topbar__item, body.a11y .feature__text, body.a11y .icon-box__text,
body.a11y .card-icon--sm .icon-box__text, body.a11y .footer-bottom p { font-size: 17px; }
body.a11y .feature__title, body.a11y .icon-box__title { font-size: 19px !important; }
body.a11y .text-editor, body.a11y .check-list li, body.a11y .icon-list li, body.a11y .footer-list li,
body.a11y .news-card__excerpt { font-size: 20px; }
body.a11y a:hover { text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1400px) {
  .menu > li > a { margin: 0 3px; font-size: 11px; }
  .menu { flex-wrap: nowrap; }
  .brand__text { max-width: 320px; }
  .brand__title { font-size: 17px; }
}

/* Английское и турецкое меню длиннее русского — раньше переходим на бургер */
@media (max-width: 1240px) {
  html[lang="en"] .main-nav, html[lang="tr"] .main-nav { display: none; }
  html[lang="en"] .burger, html[lang="tr"] .burger { display: flex; }
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .brand__title { font-size: 16px; }
  .brand__subtitle { font-size: 12px; }

  .features { flex-wrap: wrap; }
  .feature { flex: 1 1 calc(33.333% - 24px); min-width: 180px; }

  .about-grid { flex-direction: column; }
  .about-card { flex: none; }
  .about-card { flex-direction: row; align-items: center; padding-bottom: 0; }
  .about-card > img { width: 40%; border-radius: 12px 0 0 12px; align-self: stretch; }
  .about-card__body { flex: 1; align-items: flex-start; text-align: left; padding: 18px; }

  .cards-grid > *, .cards-grid--4 > *, .person { flex-basis: calc((100% - 20px) / 2); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { flex-wrap: wrap; }
  .footer-col--about { flex-basis: 100%; }
  .footer-col--links, .footer-col--contacts { flex: 1 1 40%; }
  .booking-card { max-width: 80%; }
}

@media (max-width: 767px) {
  .topbar { justify-content: center; column-gap: 16px; row-gap: 2px; padding: 4px 14px; }
  .topbar__item--addr { display: none; }
  /* Версия для слабовидящих на телефоне — только значок (подпись остаётся для экранных чтецов) */
  .topbar__item--a11y { order: 3; padding: 0 6px; }
  .topbar__item--a11y span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topbar__lang { order: 4; }
  /* Зоны нажатия в верхней полосе — не меньше 32px по высоте */
  .topbar a.topbar__item, .topbar__item--a11y { min-height: 32px; }
  .topbar__lang a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 6px; }

  .mainbar { padding: 12px 14px; gap: 10px; }
  .brand { gap: 10px; }
  .brand__logo { width: 56px; }
  .brand__title { font-size: 13px; }
  .brand__subtitle { font-size: 11px; }

  /* Шрифт полей 16px — иначе iPhone увеличивает страницу при вводе */
  .cf-form input[type="text"], .cf-form input[type="tel"], .cf-form input[type="email"], .cf-form select, .cf-form textarea,
  .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { font-size: 16px; }
  .comment-cookies input { width: 20px; height: 20px; flex: none; }
  .news-card__more { padding: 8px 0; }
  .mobile-menu a { padding: 13px 16px; font-size: 14px; }
  .mainbar__right { gap: 4px; }
  .burger { width: 40px; }

  .section, .section--cards, .section--tight, .section--scope, .section--booking, .page-head, .single-post { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 44px; padding-bottom: 44px; }

  .hero { padding: 50px 20px 80px; min-height: 380px; }
  .hero__title { font-size: 28px; }
  .hero__subtitle { font-size: 15px; }
  .hero__subtitle br, .hero__title br { display: none; }

  .features-wrap { padding: 0 16px; margin-top: -40px; }
  .features { flex-direction: column; padding: 18px; gap: 16px; }

  .section-title { font-size: 24px; }
  .page-title, .entry-title { font-size: 26px; }

  .about-card { flex-direction: column; padding-bottom: 18px; }
  .about-card > img { width: 100%; border-radius: 12px 12px 0 0; }
  .about-card__body { align-items: center; text-align: center; padding: 0 16px; }

  .cards-grid > *, .cards-grid--4 > *, .person { flex-basis: 100%; }
  .news-grid { grid-template-columns: 1fr; }

  .contacts-row, .contacts-page, .about-row, .service-cols, .two-lists { flex-direction: column; gap: 20px; }
  .two-lists { gap: 0; }
  .two-lists > .check-list { min-width: 0; }
  .contacts-row__info, .contacts-card, .about-row__img { flex-basis: auto; }
  .contacts-page__map .map { min-height: 300px; }
  .booking-card { max-width: 100%; padding: 18px; }

  .tab { width: auto; flex: 1 1 auto; font-size: 14px; }

  .footer-main { flex-direction: column; gap: 26px; padding: 34px 20px 26px; }
  .footer-bottom { padding: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Доп. элементы
   ========================================================================== */

.tab-empty { color: var(--text-muted); font-style: italic; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-link { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; text-decoration: none; }
.doc-link:hover span { text-decoration: underline; }
.doc-link .ic { width: 22px; height: 22px; flex: none; }
.doc-link small { color: var(--text-muted); font-weight: 400; }

.btn-outline {
  display: inline-block;
  padding: 10px 22px;
  border: 2px solid var(--navy);
  border-radius: 30px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.error-page { padding: 80px 40px 100px; text-align: center; }
.error-page__code { font-size: 120px; font-weight: 800; line-height: 1; color: var(--navy); opacity: .15; }
.error-page h1 { margin-top: -30px; font-size: 30px; font-weight: 800; color: var(--navy); }
.error-page p { margin: 16px auto 28px; max-width: 520px; color: var(--text); }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 767px) {
  .error-page { padding: 50px 16px 70px; }
  .error-page__code { font-size: 90px; }
}

/* ==========================================================================
   Врачи, отделения, график приёма, прейскурант (данные центра 2026)
   ========================================================================== */

.person--photo img { aspect-ratio: 3 / 4; object-position: center top; }
.person__meta { list-style: none; margin: 6px 0 0; padding: 0 12px 4px; font-size: 13px; color: var(--text-muted); }
.person__meta li { padding: 2px 0; }
.lead-note { margin: 28px auto 0; max-width: 760px; color: var(--text); }
.card-head { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--navy); }
.muted { color: var(--text-muted); }

.dept-toc ul { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dept-toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid #cfdcf0; border-radius: 18px; font-size: 14px; font-weight: 500; color: var(--navy); background: #fff; }
.dept-toc a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.dept { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 26px; margin-bottom: 26px; scroll-margin-top: 20px; }
.dept__title { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 22px; color: var(--navy); }
.dept__title .ic { width: 28px; height: 28px; flex: none; fill: var(--navy); }
.dept__body { display: flex; gap: 28px; align-items: flex-start; }
.dept__body > .person { flex: 0 0 240px; max-width: 240px; }
.dept__info { flex: 1; min-width: 0; }
.dept__desc { margin: 0 0 16px; color: var(--text); }
.dept__sub { margin: 0 0 8px; font-size: 16px; color: var(--navy-dark); }
.staff-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.staff-list__item { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--border); }
.staff-list__name { display: block; font-weight: 600; color: var(--text-dark); }
.staff-list__meta { display: block; font-size: 13px; color: var(--text-muted); }

.table-title { margin: 34px 0 14px; font-size: 22px; color: var(--navy); }
.table-wrap { overflow-x: auto; border-radius: 10px; box-shadow: var(--shadow); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { background: var(--navy); color: #fff; text-align: left; font-weight: 600; padding: 11px 12px; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tbody tr:nth-child(even) td { background: var(--bg-card); }
.data-table tbody tr:hover td { background: #e9f1fc; }
.slot { white-space: nowrap; }
.slot b { font-weight: 600; color: var(--navy-dark); margin-right: 4px; }
.slot--break { color: var(--text-muted); font-size: 13px; }
.slot--break b { color: var(--text-muted); font-weight: 500; }
.data-table--prices td:first-child { white-space: nowrap; color: var(--text-muted); font-size: 13px; }
.data-table--prices td:last-child, .data-table--prices th:last-child { text-align: right; white-space: nowrap; }

.price-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.price-search { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 50px; background: #fff; border: 2px solid #cfdcf0; border-radius: 25px; }
.price-search:focus-within { border-color: var(--navy); }
.price-search .ic { width: 18px; height: 18px; fill: var(--navy); flex: none; }
.price-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; background: transparent; }
.btn-print { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; background: #fff; }
.btn-print .ic { width: 16px; height: 16px; fill: currentColor; }
.price-empty { text-align: center; padding: 20px; color: var(--text-muted); }
.price-group { scroll-margin-top: 20px; }
.price-sec { margin-bottom: 12px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.price-sec > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--navy-dark); list-style: none; }
.price-sec > summary::-webkit-details-marker { display: none; }
.price-sec > summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); margin-left: 4px; transition: transform .2s; }
.price-sec[open] > summary::after { transform: rotate(-135deg); }
.price-sec > summary > span:first-child { flex: 1; }
.price-sec__count { font-size: 12px; font-weight: 600; color: var(--navy); background: var(--bg-light); border-radius: 10px; padding: 2px 9px; }
.price-sec .table-wrap { box-shadow: none; border-radius: 0 0 10px 10px; }
.price-note { margin: 0; padding: 0 18px 10px; font-size: 13px; color: var(--text-muted); }
.price-footnote { margin-top: 26px; font-size: 14px; color: var(--text-muted); }
.checkup { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: 12px; padding: 26px; margin-bottom: 10px; scroll-margin-top: 20px; }
.checkup__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.checkup h2 { margin: 0; font-size: 22px; color: #fff; }
.checkup__price { font-size: 28px; font-weight: 800; white-space: nowrap; }
.checkup p { color: #dbe7f8; margin: 10px 0 14px; }
.checkup summary { cursor: pointer; font-weight: 600; }
.checkup .check-list li { color: #fff; }
.checkup .check-list .ic { fill: #fff; color: #fff; }
.check-list--cols { columns: 2; column-gap: 24px; margin-top: 10px; }
.check-list--cols li { break-inside: avoid; }

.service-cols--3 .service-box { flex: 1; }
.service-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

@media (max-width: 1024px) {
  .service-cols--3 { flex-wrap: wrap; }
  .service-cols--3 .service-box { flex: 1 1 calc(50% - 15px); }
  .staff-list { columns: 1; }
}

@media (max-width: 767px) {
  .dept { padding: 18px; }
  .dept__title { font-size: 18px; }
  .dept__body { flex-direction: column; align-items: center; }
  .dept__body > .person { flex-basis: auto; max-width: 260px; width: 100%; }
  .dept__info { width: 100%; }
  .table-title { font-size: 19px; }
  .check-list--cols { columns: 1; }
  .price-tools { flex-direction: column; align-items: stretch; }
  .checkup__price { font-size: 24px; }
  /* Таблицы на телефоне — карточками */
  .data-table--stack thead { display: none; }
  .data-table--stack, .data-table--stack tbody, .data-table--stack tr, .data-table--stack td { display: block; width: 100%; }
  .data-table--stack tr { padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .data-table--stack tbody tr:nth-child(even) td, .data-table--stack tbody tr:hover td { background: transparent; }
  .data-table--stack tbody tr:nth-child(even) { background: var(--bg-card); }
  .data-table--stack td { border: 0; padding: 3px 0; text-align: left !important; white-space: normal !important; }
  .slot { white-space: normal; }
  .data-table--stack td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
  .data-table--prices td:nth-child(2)::before { display: none; }
  .data-table--prices td:nth-child(2) { font-weight: 500; color: var(--text-dark); }
  .data-table--prices td:last-child { font-weight: 700; color: var(--navy); }
}

@media print {
  .site-header, .site-footer, .price-tools, .dept-toc, .skip-link, .search-overlay { display: none !important; }
  .price-sec, .table-wrap, .dept { box-shadow: none; }
  .checkup { background: none; color: #000; border: 1px solid #999; }
  .checkup h2, .checkup .check-list li { color: #000; }
  .data-table th { background: #eee; color: #000; }
  .price-sec > summary::after { display: none; }
}

/* ==========================================================================
   Слайдер «Полезно знать», просмотр плакатов, страница скрининга
   ========================================================================== */

.slider { position: relative; margin-top: 10px; }
.slider__track { list-style: none; margin: 0; padding: 6px 4px 18px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; outline: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track:focus-visible { box-shadow: 0 0 0 3px var(--tab); border-radius: 12px; }
.slide { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.slide__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-light); }
.slide__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s; }
.slide__media:hover img { transform: scale(1.04); }
.slide__media--wide { background: #f7efe2; }
.slide__media--wide img { object-fit: contain; object-position: center; }
.slide__media--icon { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy) 0%, var(--tab) 100%); }
.slide__media--icon .ic { width: 92px; height: 92px; fill: rgba(255, 255, 255, .92); }
.slide__body { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 20px; }
.slide__title { margin: 0 0 8px; font-size: 18px; line-height: 1.3; color: var(--navy); }
.slide__text { flex: 1; margin: 0 0 14px; font-size: 14px; color: var(--text); }
.slide__more { align-self: flex-start; font-weight: 600; color: var(--accent); padding: 4px 0; }
.slide__more:hover { color: var(--accent-hover); }
.poster-thumb__zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(10, 63, 134, .85); }
.poster-thumb__zoom .ic { width: 16px; height: 16px; fill: #fff; }
.slider__btn { position: absolute; top: 34%; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: var(--shadow-lg); transition: background .2s, opacity .2s; }
.slider__btn .ic { width: 18px; height: 18px; fill: var(--navy); }
.slider__btn:hover { background: var(--navy); }
.slider__btn:hover .ic { fill: #fff; }
.slider__btn:disabled { opacity: 0; pointer-events: none; }
.slider__btn--prev { left: -22px; }
.slider__btn--prev .ic { transform: rotate(180deg); }
.slider__btn--next { right: -22px; }
.slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.slider__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 5px; background: #c9d6ea; cursor: pointer; transition: width .25s, background .25s; }
.slider__dots button[aria-current="true"] { width: 28px; background: var(--navy); }

/* Просмотр изображения */
.lightbox { max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; padding: 56px 70px; border: 0; background: rgba(5, 18, 40, .94); color: #fff; }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(5, 18, 40, .94); }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; min-height: 0; }
.lightbox__fig img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 6px; background: #fff; }
.lightbox__fig figcaption { margin-top: 12px; font-size: 15px; text-align: center; }
.lightbox__open { margin-top: 6px; font-size: 14px; color: #9fc3ff; text-decoration: underline; }
.lightbox__close { position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox__btn .ic { width: 20px; height: 20px; fill: #fff; }
.lightbox__btn--prev { left: 12px; }
.lightbox__btn--prev .ic { transform: rotate(180deg); }
.lightbox__btn--next { right: 12px; }
.lightbox__close:hover, .lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox__btn[hidden] { display: none; }

/* Страница «Скрининг и профилактика» */
.info-block { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 28px; margin-bottom: 28px; scroll-margin-top: 20px; }
.info-block__title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 22px; color: var(--navy); }
.info-block__title .ic { width: 28px; height: 28px; flex: none; fill: var(--navy); }
.info-block__lead { color: var(--text); margin: 0 0 18px; }
.info-block__source { font-size: 13px; color: var(--text-muted); margin: 14px 0 0; }
.info-block__where { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--navy-dark); }
.info-block__where .ic { width: 18px; height: 18px; fill: var(--navy); flex: none; margin-top: 3px; }
.info-block__posters { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.poster-thumb { position: relative; display: block; width: 220px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.poster-thumb img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.poster-thumb--wide { width: 360px; }
.poster-thumb--wide img { aspect-ratio: 1408 / 768; }
.scr-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.scr-facts > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; padding: 14px; border: 2px solid #cdeee8; border-radius: 10px; }
.scr-facts .ic { grid-row: span 2; width: 34px; height: 34px; fill: #1f9e8f; }
.scr-facts b { color: var(--navy-dark); }
.scr-facts span { font-size: 14px; color: var(--text); }
.scr-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scr-col { border-radius: 12px; border: 2px solid; overflow: hidden; }
.scr-col h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; font-size: 16px; color: #fff; text-transform: uppercase; }
.scr-col h3 .ic { width: 20px; height: 20px; fill: #fff; }
.scr-col ul { list-style: none; margin: 0; padding: 6px 14px 10px; }
.scr-col--women { border-color: #e8789a; } .scr-col--women h3 { background: #e8789a; }
.scr-col--men { border-color: #1d3f8a; } .scr-col--men h3 { background: #1d3f8a; }
.scr-col--both { border-color: #1f9e8f; } .scr-col--both h3 { background: #1f9e8f; }
.scr-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.scr-item:last-child { border-bottom: 0; }
.scr-item > .ic { width: 16px; height: 16px; fill: var(--navy); flex: none; margin-top: 3px; }
.scr-item b { display: block; color: var(--text-dark); font-size: 15px; }
.scr-age { display: inline-block; margin: 4px 8px 0 0; padding: 1px 10px; border-radius: 4px; font-weight: 700; color: #fff; background: var(--navy); }
.scr-col--women .scr-age { background: #e8789a; } .scr-col--both .scr-age { background: #1f9e8f; }
.scr-freq { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-muted); }
.scr-freq .ic { width: 12px; height: 12px; fill: currentColor; }
.scr-banner { display: flex; gap: 16px; align-items: flex-start; margin-top: 20px; padding: 18px 20px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #1f9e8f 0%, var(--navy) 100%); }
.scr-banner > .ic { width: 42px; height: 42px; fill: #fff; flex: none; }
.scr-banner b { font-size: 18px; }
.scr-banner p { margin: 6px 0 0; color: #e6f3ff; }
.scr-banner a { color: #fff; font-weight: 700; white-space: nowrap; }
.stages { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; margin-bottom: 16px; }
.stage { position: relative; padding: 18px 18px 18px 20px; border-radius: 12px; background: var(--bg-card); border: 1px solid #dce7f6; }
.stage h3 { margin: 0 0 8px; font-size: 17px; color: var(--navy); }
.stage p { margin: 0; color: var(--text); font-size: 15px; }
.stage__num { float: left; width: 30px; height: 30px; margin: -2px 10px 0 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: var(--navy); }
.stages:has(.stage--method) { grid-template-columns: 1fr 1fr; }
.timeline { list-style: none; display: flex; gap: 8px; margin: 14px 0 0; padding: 0; }
.timeline li { flex: 1; text-align: center; }
.timeline li span { display: block; padding: 8px 4px; border-radius: 8px; font-weight: 700; color: #fff; background: #1f9e8f; }
.results { display: flex; gap: 16px; flex-wrap: wrap; }
.result { flex: 1 1 240px; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 10px; border: 2px solid; }
.result b { display: block; font-size: 17px; }
.result span { font-size: 14px; }
.result--pass { border-color: #2e9d57; color: #1f6e3d; }
.result--pass .ic { width: 30px; height: 30px; fill: #2e9d57; }
.result--refer { border-color: var(--red); color: #9a2020; }
.result__x { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--red); color: #fff; font-size: 22px; line-height: 1; }
.benefits { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.benefits li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 18px 12px; border-radius: 12px; background: var(--bg-light); font-weight: 600; color: var(--navy-dark); }
.benefits .ic { width: 40px; height: 40px; fill: var(--navy); }

@media (max-width: 1024px) {
  .slide { flex-basis: calc((100% - 20px) / 2); }
  .slider__btn--prev { left: -8px; }
  .slider__btn--next { right: -8px; }
  .scr-cols { grid-template-columns: 1fr 1fr; }
  .scr-col--both { grid-column: span 2; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .slide { flex-basis: 84%; }
  .slider__btn { display: none; }
  .lightbox { padding: 56px 8px 20px; }
  .lightbox__btn { top: auto; bottom: 14px; transform: none; }
  .lightbox__fig img { max-height: calc(100vh - 190px); }
  .info-block { padding: 18px; }
  .info-block__title { font-size: 19px; }
  .scr-facts, .scr-cols, .stages, .stages:has(.stage--method) { grid-template-columns: 1fr; }
  .scr-col--both { grid-column: auto; }
  .timeline { flex-wrap: wrap; }
  .timeline li { flex: 1 1 28%; }
  .poster-thumb { width: calc(50% - 8px); }
  .poster-thumb--wide { width: 100%; }
  .scr-banner { flex-direction: column; }
}

@media print {
  .slider__btn, .slider__dots, .lightbox { display: none !important; }
}

/* ==========================================================================
   «О центре»: цифры, история, коллектив, коечный фонд, оборудование, галерея
   ========================================================================== */

.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stats li { text-align: center; padding: 18px 10px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.stats b { display: block; font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--navy); white-space: nowrap; }
.stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--text); }
.section--stats { padding-top: 34px; padding-bottom: 34px; }
.section--stats-home { padding-top: 10px; padding-bottom: 0; }
.stats--small { grid-template-columns: repeat(5, 1fr); margin-top: 20px; }
.stats--small b { font-size: 24px; }
.stats--small span { font-size: 13px; }

.about-h { margin: 46px 0 18px; font-size: 26px; color: var(--navy); scroll-margin-top: 20px; }
.about-h:first-of-type { margin-top: 10px; }
.about-h3 { margin: 0 0 12px; font-size: 18px; color: var(--navy-dark); }
.lead-note--left { margin: 0 0 16px; max-width: none; }
.about-2col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }

.timeline-v { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 3px solid #cfdcf0; }
.timeline-v li { position: relative; padding: 0 0 18px 16px; }
.timeline-v li::before { content: ""; position: absolute; left: -32px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.timeline-v__date { display: inline-block; font-weight: 700; color: var(--navy); }
.timeline-v p { margin: 2px 0 0; color: var(--text); }
.area-cards { display: grid; gap: 14px; }
.area-cards > div { padding: 20px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--navy) 0%, var(--tab) 100%); }
.area-cards b { display: block; font-size: 30px; font-weight: 800; }
.area-cards span { color: #e3eeff; }

.mission { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: start; margin-bottom: 22px; }
.mission__text { margin: 0; padding: 22px 26px; border-left: 5px solid var(--navy); border-radius: 0 12px 12px 0; background: var(--bg-light); font-size: 18px; line-height: 1.6; color: var(--navy-dark); }
.directions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.directions > div { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); font-weight: 600; color: var(--navy-dark); }
.directions .ic { width: 34px; height: 34px; flex: none; fill: var(--navy); }

.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.team-card { padding: 22px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.mini-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mini-table td { padding: 9px 0; border-bottom: 1px solid var(--border); }
.mini-table td:last-child { text-align: right; font-weight: 700; color: var(--navy); }
.mini-table .total td { border-bottom: 0; font-weight: 800; color: var(--navy-dark); }
.quals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quals li { display: flex; align-items: center; gap: 10px; }
.quals b { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; background: var(--navy); }
.quals span { font-size: 14px; color: var(--text); }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 28px; gap: 10px; align-items: center; padding: 6px 0; }
.bar__label { font-size: 13px; color: var(--text); }
.bar__track { height: 10px; border-radius: 5px; background: var(--bg-light); overflow: hidden; }
.bar__fill { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--tab), var(--navy)); }
.bars b { text-align: right; color: var(--navy); }

.bed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bed-card { border-radius: 12px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.bed-card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; color: #fff; background: var(--navy); font-weight: 600; }
.bed-card__head b { font-size: 22px; }
.bed-card ul { list-style: none; margin: 0; padding: 8px 16px 12px; }
.bed-card li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: 14px; color: var(--text); }
.bed-card li:last-child { border-bottom: 0; }
.bed-card li span:last-child { font-weight: 700; color: var(--navy-dark); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.feature-card { padding: 22px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.feature-card .ic { width: 36px; height: 36px; fill: var(--navy); }
.feature-card h3 { margin: 10px 0 6px; font-size: 17px; color: var(--navy); }
.feature-card p { margin: 0; font-size: 14px; color: var(--text); }

.equipment { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.equipment li { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; background: var(--bg-light); font-weight: 500; color: var(--navy-dark); }
.equipment .ic { width: 30px; height: 30px; flex: none; fill: var(--navy); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery__item { position: relative; display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 3; background: var(--bg-light); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 13px; font-weight: 500; color: #fff; background: linear-gradient(transparent, rgba(5, 18, 40, .8)); }

@media (max-width: 1024px) {
  .stats, .stats--small { grid-template-columns: repeat(3, 1fr); }
  .bed-grid, .feature-grid, .equipment { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .about-2col, .mission { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .stats, .stats--small { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats li:last-child:nth-child(odd) { grid-column: span 2; }
  .stats b { font-size: 26px; }
  .about-h { font-size: 21px; margin-top: 34px; }
  .directions, .team-grid, .bed-grid, .feature-grid, .equipment { grid-template-columns: 1fr; }
  .quals { grid-template-columns: 1fr; }
  .bars li { grid-template-columns: 1fr 28px; }
  .bar__track { grid-column: 1 / -1; grid-row: 2; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mission__text { font-size: 16px; padding: 16px 18px; }
}

/* ==========================================================================
   Соцсети, 2ГИС, call-центр
   ========================================================================== */

.socials { display: inline-flex; align-items: center; gap: 8px; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; transition: background .2s, transform .2s; }
.socials .ic { width: 16px; height: 16px; fill: currentColor; }
.socials a:hover { transform: translateY(-2px); }
.topbar__social { gap: 2px; }
.topbar__social a { width: 28px; height: 28px; color: #fff; }
.topbar__social a:hover { background: rgba(255, 255, 255, .18); }
.socials--footer { margin-top: 14px; }
.socials--footer a { color: #fff; background: rgba(255, 255, 255, .12); }
.socials--footer a:hover { background: var(--accent); }
.socials--light a { color: var(--navy); background: var(--bg-light); border: 1px solid #cfdcf0; }
.socials--light a:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 0; }
.contact-actions .btn-outline { display: inline-flex; align-items: center; gap: 8px; }
.contact-actions .btn-outline .ic { width: 16px; height: 16px; fill: currentColor; }

@media (max-width: 1400px) {
  .topbar__item--mail { display: none; }
}

@media (max-width: 1024px) {
  .topbar__item--addr { display: none; }
}

@media (max-width: 767px) {
  .topbar__item--reg { display: none; }
  .topbar__social { order: 2; }
  .topbar__social a { width: 32px; height: 32px; }
}

/* vacancies */
.vacancy-empty { text-align: center; padding: 36px 24px; background: var(--bg-card); border-radius: 14px; }
.vacancy-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); color: var(--navy); }
.vacancy-empty__icon .ic { width: 28px; height: 28px; }
.vacancy-empty h2 { margin: 16px 0 8px; font-size: 22px; color: var(--navy-dark); }
.vacancy-empty p { margin: 0 auto; max-width: 560px; color: var(--text); }
.vacancy-list { display: grid; gap: 20px; }
.vacancy { padding: 24px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.vacancy__title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 20px; color: var(--navy-dark); }
.vacancy__title .ic { width: 20px; height: 20px; color: var(--navy); flex: none; }
.vacancy-apply { margin-top: 28px; padding: 24px 26px; background: var(--bg-light); border-radius: 14px; }
.vacancy-apply h3 { margin: 0 0 12px; font-size: 18px; color: var(--navy-dark); }
body.a11y .vacancy-empty, body.a11y .vacancy, body.a11y .vacancy-apply { border: 2px solid #000; }

/* director blog / feedback / healthy lifestyle */
.director-blog { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.director-blog__photo { margin: 0; text-align: center; }
.director-blog__photo img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); }
.director-blog__photo figcaption { margin-top: 12px; display: grid; gap: 4px; }
.director-blog__photo figcaption b { color: var(--navy-dark); font-size: 18px; }
.director-blog__photo figcaption span { color: var(--text-muted); font-size: 14px; }
.director-blog__text { padding: 28px 32px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.director-blog__text h2 { margin: 0 0 14px; font-size: 24px; color: var(--navy-dark); }
.director-blog__text p { margin: 0 0 12px; }
.director-blog__sign { margin-top: 20px !important; color: var(--text-dark); }
.hls-plan { margin-bottom: 36px; }
.hls-title { margin-bottom: 20px; }
.hls-alert { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding: 20px 24px; border-left: 4px solid #dc3232; background: #fff4f4; border-radius: 10px; }
.hls-alert .ic { width: 34px; height: 34px; color: #dc3232; flex: none; }
.hls-alert p { margin: 0; }
.hls-alert a { color: #dc3232; font-weight: 700; }
.post-date { margin: 6px 0 0; color: var(--text-muted); font-size: 14px; }
@media (max-width: 900px) {
  .director-blog { grid-template-columns: 1fr; }
  .director-blog__photo { max-width: 280px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .director-blog__text { padding: 22px 18px; }
}
body.a11y .director-blog__text, body.a11y .hls-alert { border: 2px solid #000; }
.hls-plan .btn-outline { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.hls-plan .btn-outline .ic { width: 16px; height: 16px; fill: currentColor; }
.hls-plan .btn-outline small { font-weight: 400; }

/* vaccination */
.vacc-intro h2 { margin: 0 0 14px; font-size: 24px; color: var(--navy-dark); }
.vacc-intro h3 { margin: 24px 0 10px; font-size: 19px; color: var(--navy-dark); }
.vacc-table td:first-child { width: 30%; white-space: normal; }
.vacc-calendar { margin: 30px 0 0; text-align: center; }
.vacc-calendar img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
.vacc-calendar figcaption { margin-top: 8px; font-size: 14px; color: var(--text-muted); }

/* news from admin */
.post-image { margin: 0 0 22px; }
.post-image img { width: 100%; height: auto; border-radius: 12px; }
.post-content img { max-width: 100%; height: auto; border-radius: 8px; }
.post-back { margin-top: 28px; }
.vacancy .text-editor p { margin: 0 0 10px; }
.vacancy .text-editor ul { margin: 0 0 10px; padding-left: 22px; }

/* instagram */
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.ig-item { position: relative; display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 1; background: var(--bg-card); }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ig-item:hover img, .ig-item:focus-visible img { transform: scale(1.05); }
.ig-cap { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; font-size: 13px; line-height: 1.35; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); opacity: 0; transition: opacity .3s; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.ig-item:hover .ig-cap, .ig-item:focus-visible .ig-cap { opacity: 1; }
.ig-play { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(0, 0, 0, .55); }
.ig-play::after { content: ""; position: absolute; top: 17px; left: 21px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.ig-follow { display: inline-flex; align-items: center; gap: 8px; }
.ig-follow .ic { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }

/* patient thanks */
.section--thanks { background: var(--bg-light); }
.thanks-note { margin: 0 auto 24px; color: var(--text-muted); font-size: 14px; }
.thanks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.thanks-card { margin: 0; padding: 22px 24px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.thanks-card blockquote { margin: 0 0 14px; font-style: italic; line-height: 1.6; flex: 1; }
.thanks-card blockquote::before { content: "\201C"; display: block; font-size: 44px; line-height: .7; color: var(--navy-dark); font-style: normal; }
.thanks-card figcaption { font-weight: 600; color: var(--navy-dark); font-size: 14px; }
/* documents in tabs */
.doc-group { margin: 0 0 8px; font-size: 17px; color: var(--navy-dark); }
.doc-note { margin: 0 0 10px; font-size: 14px; color: var(--text-muted); }
.vacc-intro h2 + p, .vacc-intro p + h2 { margin-top: 28px; }
.section--thanks .section-title { margin-bottom: 12px; }

/* team & laws */
.gallery--team { margin-bottom: 24px; grid-template-columns: repeat(3, 1fr); }
.gallery--team .gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery--team .gallery__item img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .gallery--team { grid-template-columns: 1fr 1fr; } .gallery--team .gallery__item:first-child { grid-column: span 2; grid-row: auto; } }
.law-list { list-style: none; margin: 0; padding: 0; }
.law-list li { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.law-list li:last-child { border-bottom: 0; }
.law-list p { margin: 0 0 6px; }
.team-list { list-style: none; margin: 0 0 10px; padding: 0; }
.team-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 6px 0; }
.team-list b { color: var(--navy-dark); }
.team-list span { color: var(--text-muted); }
