html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
[id] {
  scroll-margin-top: clamp(88px, 10vw, 128px);
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

/* ========== Header ========== */
:root {
  --w-frame: 1440px; /* «рамка» макета (крупные зоны, баннеры) */
  --w-content: 1240px; /* основная ширина контента (текст, карточки) */
  --gutter: 20px; /* боковые поля на пк */
  --c-muted: #666;
  --c-primary: #fff;
  --c-border: #eaeaea;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font-size: 16px;
  --line: 1.18;
  --font-family: Roboto;
  --c-blue2: #15538b;
  --c-blue3: #0966b7;
  --c-blue1: #96c3de;
  --b-radius: 25px;
  --m-rate: 1;
  --arrow-distance: 20px;   /* насколько опускается */
  --arrow-speed: 1.4s;     /* скорость цикла */
}

@media (max-width: 768px) {
  :root {
    --gutter: 15px;
    --m-rate: 0.5;
  }
}

body {
  margin: 0; /* убираем дефолтные 8px */
  color: var(--c-blue3);
  background: var(--c-primary);
  font-family: var(--font-family);
  font-size: var(--font-size);
  font-weight: 400;
  line-height: var(--line);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* страховка от горизонтального скролла */
}

/* Базовая типографика */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
}
h1 {
  font-size: 64px;
}
h2 {
  font-size: 32px;
}
h3 {
  font-size: 24px;
}

p {
  margin: 0;
}
ul,
ol {
  margin: 0 0 1em 1.25em;
  padding: 0;
}
li {
  margin: 0.25em 0;
}
small {
  font-size: 87.5%;
  color: var(--c-muted);
}

.szvo-section-title {
  margin: 0 0 clamp(18px, 2.4vw, 32px);
  color: var(--c-blue3);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.15;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Ссылки */
a {
  color: var(--c-blue3);
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* Картинки и медиа */
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
}
button:focus {
  border: none;
  outline: none;
}

/* Формы — наследуют шрифт */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* Таблицы */
table {
  border-collapse: collapse;
  width: 100%;
}

.a-center{
  text-align: center;
}

.ml-12 {
  margin-left: 0;
}
.mb-140 {
  margin-bottom: calc(140px * var(--m-rate));
}
.mb-100 {
  margin-bottom: calc(100px * var(--m-rate));
}
.mb-80 {
  margin-bottom: calc(80px * var(--m-rate));
}
.mb-60 {
  margin-bottom: calc(60px * var(--m-rate));
}
.mb-40 {
  margin-bottom: calc(40px * var(--m-rate));
}
.mb-20 {
  margin-bottom: 20px;
}
.mt-140 {
  margin-top: calc(140px * var(--m-rate));
}
.mt-100 {
  margin-top: calc(100px * var(--m-rate));
}
.mt-60 {
  margin-top: calc(60px * var(--m-rate));
}
.mt-40 {
  margin-top: calc(40px * var(--m-rate));
}
.mt-20 {
  margin-top: 20px;
}
.w-100 {
  width: 100% !important;
}

.site-header {
  background: var(--c-bg);
  color: var(--c-blue3);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  height: 80px;
  background: var(--c-primary);
  padding: 0 var(--gutter);
  transition: box-shadow .2s ease, background-color .2s ease;
   will-change: box-shadow;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
}
.header-row {
  display: grid;
  grid-template-columns: 150px auto auto;
  align-items: center;
}



.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.site-logo__img {
  
}
.site-logo__text {
  font-weight: 700;
  font-size: 20px;
}

.header-col--nav {
  display: block;
  align-items: center;
}
.primary-menu {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-menu a {
  display: inline-block;
  text-decoration: none;
  color: var(--c-blue3);
}

.primary-menu a:hover {
  color: var(--c-blue3);
}

@media(min-width:998px){
  .primary-menu a{
    font-size: 14px;
  }
  
  .header-col--logo {
    
  }
  .ml-12 {
    margin-left: 12%;
  }
}
@media(min-width:1200px){
  .primary-menu a{
    font-size: 16px;
  }
  .primary-menu {
      gap: 20px;
    }
}
@media(min-width:1300px){
  .header-col--logo {
    
  }
}
.site-header .btn {
  margin-left: 20px;
}
.header-col--cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.header-icon img {
  max-width: 38px;
}
.header-phone {
  white-space: nowrap;
  text-decoration: none;
  color: var(--c-blue3);
  font-weight: 400;
}
.header-phone:hover {
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px;
  border-radius: 27px;
  cursor: pointer;
  width: 214px;
}
.btn--standart {
  background: transparent;
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
}
.btn--white {
  background: var(--c-primary);
  color: var(--c-blue3);
}
.btn--blue {
  background: var(--c-blue3);
  color: var(--c-primary);
}
.btn--blue-border {
  color: var(--c-blue3);
  border: 1px solid var(--c-blue2);
}
.btn--white:hover,
.btn--standart:hover,
.btn--blue-border:hover {
  background: var(--c-blue3);
  color: var(--c-primary);
}
.btn--blue:hover {
  background: var(--c-primary);
  color: var(--c-blue3);
  border: 1px solid var(--c-blue3);
  padding: 16px;
}



/* ===== Видимость колонок по брейкпоинтам ===== */
.header-col--nav,

.header-col--mobile {
  display:flex; align-items:center;
  gap:20px; }

.header-phone__compact{ font-weight:600; white-space:nowrap; }

/* ===== Бургер (на белом фоне) ===== */
.burger{
      --bar-w: 28px;
    --bar-h: 2px;
    --bar-gap: 4px;
    display: inline-flex
;
    flex-direction: column;
    gap: var(--bar-gap);
    width: 40px;
    height: 40px;
    padding: 8px 6px;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.burger__bar{
  width:var(--bar-w); height:var(--bar-h); background:var(--c-blue3);
  border-radius:2px; transition:transform .2s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] .burger__bar:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2){ opacity:0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

/* ===== Off-canvas ===== */
.mobile-nav{ position:fixed; inset:0; z-index:1000; display:none; }
.mobile-nav.is-open{ display:block; }
body.is-locked{ overflow:hidden; touch-action:none; }

.mobile-nav__overlay{
  position:absolute; inset:0; background:rgba(0,0,0,.4);
  opacity:0; transition:opacity .2s ease;
  backdrop-filter:saturate(120%) blur(2px);
}
.mobile-nav.is-open .mobile-nav__overlay{ opacity:1; }

.mobile-nav__panel{
  position:absolute; top:0; right:0; height:100%; width:min(86vw,420px);
  background:#fff; border-left:1px solid var(--c-border);
  box-shadow:-8px 0 24px rgba(0,0,0,.08);
  transform:translateX(100%); transition:transform .25s ease;
  display:flex; flex-direction:column;
}
.mobile-nav.is-open .mobile-nav__panel{ transform:translateX(0); }

/* ===== Список меню + аккордеоны подменю ===== */
.mobile-menu{ list-style:none; margin:0; padding:10px; overflow:auto; -webkit-overflow-scrolling:touch; }
.mobile-menu li{ position:relative; }
.mobile-menu a{
  display:block; padding:14px 12px; color:var(--c-text); text-decoration:none; border-radius:10px;
}
.mobile-menu a:hover{ background:#f6f6f6; }

.mobile-menu .menu-item-has-children > a{ padding-right:48px; }
.submenu-toggle{
  position:absolute; right:8px; top:8px; width:36px; height:36px;
  border:1px solid var(--c-border); border-radius:10px; background:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.submenu-toggle svg{ transition:transform .2s ease; }
.submenu-toggle[aria-expanded="true"] svg{ transform:rotate(180deg); }

.mobile-menu .sub-menu{
  list-style:none; margin:0 0 8px 0; padding:0 0 8px 12px;
  border-left:2px solid #eef1f5; border-radius:0 0 0 8px;
  max-height:0; overflow:hidden; transition:max-height .25s ease;
}
.mobile-menu .sub-menu.is-open{ max-height:999px; } /* достаточно для анимации */

/* Фокус-рамки (доступность) */
.burger:focus-visible,
.submenu-toggle:focus-visible,
.mobile-menu a:focus-visible{ outline:2px solid var(--c-blue3); outline-offset:2px; }


/* Modal */
#appointmentModal{
  position: relative;
  z-index: 2;
}
.modal[aria-hidden="false"] {
  display: block;
}
.modal[hidden] {
  display: none;
}
.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.modal__dialog {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  width: min(92vw, 640px);
}
.modal--video .modal__dialog {
  width: min(92vw, 960px);
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.modal--success .modal__dialog {
  width: min(92vw, 480px);
}
.modal--success .modal__content {
  position: relative;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 32px 28px 28px;
  color: var(--c-blue3);
  text-align: center;
}
.modal--success .modal__close {
  top: 10px;
  right: 12px;
  color: var(--c-blue3);
}
.modal__close {
  position: absolute;
  top: -22px;
    right: -17px;
    font-size: 30px;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.modal__title {
  margin: 0 0 12px 0;
}
.modal-form {
  display: grid;
  gap: 12px;
}
.modal-form label {
  display: grid;
  gap: 6px;
}
.modal-form input {
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 10px 12px;
}

.video-modal__content {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}
.video-modal__content iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.modal-success__title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}
.modal-success__text {
  margin: 0 0 24px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-col--nav {
    display: none;
  }

  .header-col--mobile {
    display: flex;
  }
  .header-row {
    grid-template-columns: 100px auto auto;
    gap: 0;
  }
  .site-logo__img {
    height: 40px;
  }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 2px solid var(--c-blue3);
  margin-top: 80px;
}
.footer-top {
  gap: 16px;
  align-items: center;
  padding: 30px 20px 20px;
  display: flex;
  justify-content: space-between;
}

.footer-col--nav .footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
.footer-col--nav .footer-menu a {
  color: var(--c-text);
  text-decoration: none;
  padding: 6px 0;
}
.footer-col--nav .footer-menu a:hover {
  color: var(--c-primary);
}

.footer-col--contacts {
  position: relative;
}
.footer-phone {
  font-weight: 700;
  text-decoration: none;
  color: var(--c-text);
}
.footer-phone:hover {
  color: var(--c-primary);
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  right: 0;
  position: absolute;
}
.footer-socials__link {
}
.footer-socials__link--vk {
  color: #0077ff;
}
.footer-socials__link--tg {
  color: #229ed9;
}
.footer-socials__link:hover {
  filter: brightness(1.05);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
}
.footer-copy {
  font-size: 14px;
}
.footer-legal__menu {
  
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-legal__menu a {
  font-size: 14px;
  color: var(--c-text);
  text-decoration: none;
}
.footer-legal__menu a:hover {
  color: var(--c-primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile layout */
@media (max-width: 1024px) {
  .footer-top {
    flex-direction: column;
    padding: 30px;
  }
  .footer-col--contacts {
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .footer-legal__menu {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
  .footer-col--nav .footer-menu {
    gap: 12px;
    justify-content: center;
    gap: 20px;
  }
  .footer-socials {
      position: relative;
      justify-content: center;
      margin-top: 15px;
  }
}

/* ===== Doctor single ===== */

.doctor-single {
  background-color: var(--c-blue2);
  color: var(--c-primary);
  padding: 76px 0 120px;
}
.doctor-hero {
  display: grid;
  gap: 30px;
}
@media (min-width: 1024px) {
  .doctor-single {
  border-radius: 65px;
}

  .doctor-hero {
    grid-template-columns: .85fr 1.15fr;
    align-items: start;
    gap: 155px;
  }
}
.doctor-hero__gallery {
  position: relative;
}
.doctor-swiper-main {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.doctor-swiper-main .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 450px;
}
.doctor-swiper-thumbs {
  margin-top: 8px;
}
.doctor-swiper-thumbs .swiper-slide {
  width: auto;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}


.doctor-hero__meta .doctor-title {
  margin: 0 0 10px 0;
  font-size: 32px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
}
.doctor-pos {
  margin: 0 0 30px 0;
  font-size: 20px;
}
.doctor-exp {
  margin: 0 0 12px 0;
  color: var(--c-muted);
}

.tbl--schedule td {
  padding: 10px 0;
}
.tbl--schedule tr:not(:last-child) {
  border-bottom: 1px solid var(--c-primary);
}

.doctor-departments {
  margin-top: 16px;
}
.doctor-departments__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

/* Contacts */
.doctor-contacts__grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 960px) {
  .doctor-contacts__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.contact-card {
  background-color: var(--c-blue3);
  border-radius: var(--b-radius);
  padding: 20px;
}
.contact-card a {
  color: var(--c-primary);
}
.contact-card__label {
  margin-bottom: 10px;
}
.contact-socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* фото-слайдер врача: одинаковая высота и обрезка без искажений */
.doctor-photos-swiper .swiper-slide {
  height: 285px;
  display: flex; /* чтобы картинка растянулась по высоте */
  align-items: stretch;
}
.doctor-photos-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* красивое кадрирование без растягивания */
  object-position: center;
  border-radius: var(--b-radius);
  display: block;
}

.doctor-photos-swiper .swiper-pagination {
  position: relative;
}

/* ВАЖНО: Swiper внутри CSS Grid — не даём колонке распираться */
.doctor-photos .grid-1-3-2-3 > *,
.grid-1-4-3-4 > * {
  min-width: 0;
}

/* контейнер самого свайпера */
.doctor-photos .doctor-photos-swiper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* (не обязательно, но полезно) выравнивание слайдов по высоте */
.doctor-photos-swiper .swiper-wrapper {
  align-items: stretch;
}

/* ВАЖНО: в grid-колонках отключаем min-content поведение */
.doctor-hero__gallery,
.doctor-hero__meta {
  min-width: 0; /* <-- ключевая строка */
}

/* Контейнеры свайпера не должны пытаться шириться за пределы колонки */
.doctor-swiper-main,
.doctor-swiper-thumbs {
  width: 100%;
  max-width: 100%;
  overflow: hidden; /* страховка от расползаний */
}

/* Картинки в слайдах — не шире контейнера */
.doctor-swiper-main .swiper-slide img,
.doctor-swiper-thumbs .swiper-slide img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 25px;
}

/* Миниатюры — фиксированная ширина кадра (чтобы slidesPerView:auto работал предсказуемо) */
.doctor-swiper-thumbs .swiper-slide img {
  width: 70px;
}
@media (min-width: 640px) {
  .doctor-swiper-thumbs .swiper-slide img {
    width: 70px;
  }
}
@media (min-width: 1024px) {
  .doctor-swiper-thumbs .swiper-slide img {
    width: 70px;
  }
}

/* ===== Lecturer single ===== */
.lecturer-single {
  background-color: var(--c-blue2);
  color: var(--c-primary);
  padding: 76px 0 120px;
  margin-bottom: -80px;
}
.lecturer-single .breadcrumbs {
  color: var(--c-primary);
}
.lecturer-single .breadcrumbs a,
.lecturer-single .breadcrumb_last {
  color: inherit;
}
.lecturer-single__container {
  min-width: 0;
}
.lecturer-hero {
  display: grid;
  gap: 30px;
  align-items: start;
}
@media (min-width: 1024px) {
  .lecturer-single {
    border-radius: 65px;
  }

  .lecturer-hero {
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
  }
}
.lecturer-title {
  margin: 0 0 10px 0;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  text-transform: none;
}
.lecturer-exp {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: rgba(255, 255, 255, .82);
}
.lecturer-specialization {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .94);
}
.lecturer-contacts {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.lecturer-contacts__item {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: baseline;
}
.lecturer-contacts__label {
  color: rgba(255, 255, 255, .68);
}
.lecturer-contacts__value {
  color: var(--c-primary);
  text-decoration: none;
  font-weight: 700;
}
.lecturer-contacts__value:hover {
  text-decoration: underline;
}
.lecturer-hero__invite {
  align-self: flex-start;
}
.lecturer-hero__photo {
  overflow: hidden;
  border-radius: var(--b-radius);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, .08);
}
.lecturer-hero__img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.lecturer-section {
  margin-top: 36px;
  border-radius: var(--b-radius);
  background: rgba(255, 255, 255, .06);
  padding: 24px;
}
.lecturer-section__title {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.8vw, 34px);
}
.lecturer-section__content {
  color: var(--c-primary);
}
.lecturer-topics {
  margin: 0;
}
.lecturer-talks {
  display: grid;
  gap: 20px;
}
@media (min-width: 768px) {
  .lecturer-talks {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .lecturer-talks {
    grid-template-columns: repeat(3, 1fr);
  }
}
.lecturer-talk {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: var(--b-radius);
  padding: 24px;
  background: var(--c-primary);
  color: var(--c-blue3);
  min-width: 0;
}
.lecturer-talk.has-background {
  background-color: #fff;
  background-image: linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .82)), var(--lecturer-talk-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.lecturer-talk__title {
  margin: 0;
  font-size: 20px;
  color: inherit;
}
.lecturer-talk__desc {
  color: inherit;
}
.lecturer-talk__button {
  margin-top: auto;
  align-self: flex-start;
}
.lecturer-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  grid-auto-flow: dense;
}
.lecturer-gallery__item {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: calc(var(--b-radius) - 2px);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lecturer-gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 102, 183, 0) 55%, rgba(9, 102, 183, .14) 100%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.lecturer-gallery__item:hover,
.lecturer-gallery__item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(8, 32, 61, .14);
}
.lecturer-gallery__item:hover::after,
.lecturer-gallery__item:focus-visible::after {
  opacity: 1;
}
.lecturer-gallery__item:focus-visible {
  outline: 2px solid var(--c-blue3);
  outline-offset: 2px;
}
.lecturer-gallery__item--hero {
  grid-column: span 6;
  grid-row: span 2;
}
.lecturer-gallery__item--tall {
  grid-column: span 3;
  grid-row: span 2;
}
.lecturer-gallery__item--wide {
  grid-column: span 4;
  grid-row: span 1;
}
.lecturer-gallery__item--square {
  grid-column: span 3;
  grid-row: span 1;
}
.lecturer-gallery__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 1199px) {
  .lecturer-gallery {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-auto-rows: clamp(84px, 9vw, 128px);
  }

  .lecturer-gallery__item--hero {
    grid-column: span 8;
    grid-row: span 2;
  }

  .lecturer-gallery__item--tall {
    grid-column: span 4;
    grid-row: span 2;
  }

  .lecturer-gallery__item--wide,
  .lecturer-gallery__item--square {
    grid-column: span 4;
    grid-row: span 1;
  }
}
@media (max-width: 767px) {
  .lecturer-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
  }

  .lecturer-gallery__item {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 4 / 3;
  }
}

.home-lecturers__more {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ===== Shared galleries / partners ===== */
.szvo-gallery-section,
.partners-section {
  padding: clamp(28px, 4vw, 56px) 0;
}
.szvo-gallery__title,
.partners-section__title {
  color: var(--c-primary);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.15;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
}
#news-gallery-title{
  color: var(--c-blue3);
}
.szvo-gallery {
  position: relative;
}
.szvo-gallery__grid {
  columns: 3 280px;
  column-gap: 18px;
}
.szvo-gallery__item {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  break-inside: avoid;
  transition: transform .2s ease, box-shadow .2s ease;
}
.szvo-gallery__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(8, 32, 61, .16);
}
.szvo-gallery__item:focus-visible {
  outline: 2px solid var(--c-blue3);
  outline-offset: 2px;
}
.szvo-gallery__image {
  display: block;
  width: 100%;
  height: auto;
}
.szvo-gallery__swiper {
  display: none;
  position: relative;
  overflow: hidden;
  padding: 0 56px;
}
.szvo-gallery__swiper .swiper-wrapper {
  align-items: stretch;
}
.szvo-gallery__swiper .swiper-slide {
  height: auto;
}
.szvo-gallery__swiper .swiper-slide .szvo-gallery__item {
  margin: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.szvo-gallery__swiper .szvo-gallery__item {
  aspect-ratio: 4 / 3;
}
.szvo-gallery__swiper .szvo-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.szvo-gallery__nav,
.partners-swiper__nav {
  --swiper-navigation-size: 18px;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(9, 102, 183, .15);
  color: var(--c-blue3);
  box-shadow: var(--shadow);
}
.szvo-gallery__nav.swiper-button-disabled,
.partners-swiper__nav.swiper-button-disabled {
  opacity: .35;
}
.partners-swiper {
  position: relative;
  padding: 0;
  overflow: visible;
}
.partners-swiper .swiper-wrapper {
  align-items: stretch;
}
.partners-swiper .swiper-slide {
  display: flex;
  height: auto;
  min-width: 0;
}
.partner-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  flex: 1 1 auto;
  min-width: 0;
  padding: 18px 16px 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(9, 102, 183, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.partner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(8, 32, 61, .14);
}
.partner-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 136px;
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(150, 195, 222, .16), rgba(255, 255, 255, .9));
}
.partner-card__logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
  display: block;
}
.partner-card__logo--empty {
  color: var(--c-blue3);
  font-size: 44px;
  font-weight: 700;
  text-transform: uppercase;
}
.partner-card__name {
  color: var(--c-blue3);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

/* ===== About / category hero blocks ===== */
.page-about {
  padding: clamp(28px, 4vw, 56px) 0 80px;
}
.page-about__hero,
.category-news__hero {
  display: grid;
  gap: 24px;
  align-items: center;
}
.page-about__banner,
.category-news__banner {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}
.page-about__banner {
  height: clamp(260px, 40vw, 540px);
}
.page-about__banner--empty,
.category-news__banner--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(150, 195, 222, .3), rgba(9, 102, 183, .92));
  color: var(--c-primary);
}
.page-about__image,
.category-news__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-about__banner-empty,
.category-news__banner-empty {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: .02em;
}
.page-about__content,
.category-news__content {
  min-width: 0;
}
.page-about__title,
.category-news__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
}
.page-about__text,
.category-news__description {
  color: var(--c-blue3);
  font-size: 18px;
  line-height: 1.6;
}
.page-about__text {
  max-width: 940px;
}
.category-news {
  padding: clamp(28px, 4vw, 56px) 0 40px;
}
.category-news__hero {
  margin-bottom: 32px;
}
.category-news__banner {
  height: clamp(260px, 36vw, 460px);
}
.category-news__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.category-news__description {
  max-width: 760px;
}

/* ===== Partner single ===== */
.partner-single {
}
.partner-single__container {
  min-width: 0;
}
.partner-single__grid {
  display: grid;
  gap: 24px;
}
.partner-single__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  min-height: 220px;
}
.partner-single__logo {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
}
.partner-single__placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(150, 195, 222, .18), rgba(9, 102, 183, .92));
  color: var(--c-primary);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
}
.partner-single__content {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}
.partner-single__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
}
.partner-single__text {
  color: var(--c-blue3);
}

@media (min-width: 992px) {
  .category-news__hero {
    grid-template-columns: minmax(280px, .95fr) minmax(320px, 1.05fr);
  }

  .partner-single__grid {
    grid-template-columns: minmax(180px, 20%) minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 991px) {
  .szvo-gallery__grid {
    columns: 2 260px;
  }
}

@media (max-width: 767px) {
  .partners-swiper {
    overflow: hidden;
    padding-block: 4px 24px;
  }
  .home-lecturers__more{
    justify-content: center;
    padding-bottom: 40px;
  }
  .szvo-gallery__grid {
    columns: 1 100%;
  }

  .szvo-gallery__swiper {
    padding: 0 44px;
  }

  .szvo-gallery.is-swiper-mounted .szvo-gallery__grid {
    display: none;
  }

  .szvo-gallery.is-swiper-mounted .szvo-gallery__swiper {
    display: block;
  }

  .page-about__banner,
  .category-news__banner {
    height: 240px;
  }

  .category-news__hero,
  .partner-single__grid {
    grid-template-columns: 1fr;
  }

  .partner-single__content {
    padding: 22px;
  }
}

/* ===== Department page (section-advanced) ===== */

.department-hero {
  margin-bottom: 40px;
}
.department .about {
  color: var(--c-blue3);
}
.department .intro {
  max-width: 860px;
}


.dept-section__head {
  font-size: 24px;
  text-transform: uppercase;
}
.dept-section__subhead {
  font-size: 20px;
}

/* Слои фона: два градиента из дизайна + картинка из CSS-переменной --hero */
.banner--hero {
 background: linear-gradient(0deg, rgba(101, 151, 225, 0.5), rgba(101, 151, 225, 0.5)),
linear-gradient(241.14deg, #96C3DE 42.62%, #0966B7 77.49%);

  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
  overflow: hidden;
  color: var(--c-primary);

}

.dept-banner__inner {
  padding: 24px 16px;
}
.dept-banner__title {
  margin: 0 0 10px 0;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .dept-banner__title {
    font-size: 32px;
  }
}
@media (min-width: 1200px) {
  .dept-banner__title {
    font-size: 40px;
  }
}

/* Breadcrumbs (Yoast) — точка-разделитель */
.breadcrumbs-wrap {
  margin: 0 0 20px;
}
.breadcrumbs {
  font-size: 16px;
  color: var(--c-blue1);
}
.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--c-blue1);
}

.breadcrumbs span + span::before {
  content: "•";
  margin: 0 7px;
  color: var(--c-blue1);
  position: relative;
  top: 1px;
}
.breadcrumb_last {
  color: var(--c-blue3);
}

/* Layout: aside + content */
.dept-layout {
  display: grid;
  gap: 16px;
}
/* десктопная колонка с TOC */
@media (min-width: 1024px){
  .breadcrumbs-wrap {
    margin: 0 0 60px;
  }
  .dept-layout{ grid-template-columns: 1fr 3fr; align-items: start; }
  .dept-aside{ position: sticky; top: calc(var(--header-h, 80px) + 4px); display: block; }
}
/* скрываем aside-меню на мобилке */
@media (max-width: 1023.98px){
  .dept-aside{ display:none; }
}

/* мобильный select-тоc, липнет под шапку */
.dept-toc-mobile{
  position: sticky;
  top: var(--header-h, 80px);
  z-index: 50;
  padding-top: 4px;
  display: none; /* скрыт на десктопе */
}
@media (max-width: 1023.98px){
  .dept-toc-mobile{ display:block; }
}

.dept-toc-mobile .toc-select-wrap{
  position: relative;
  max-width: 100%;
}
.dept-toc-mobile select{
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 12px 42px 12px 12px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--c-text);
}
.dept-toc-mobile .sel-arrow{
  position: absolute;
  top: 50%;
  right: 12px;
  width: 24px; height: 24px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--c-blue3);
}

.dept-aside {
  min-width: 0;
}
.dept-content {
  min-width: 0;
}

/* TOC (left menu) */
.dept-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (min-width: 1024px) {
  .dept-toc ul {
    display: block;
  }
}
.dept-toc a {
  display: block;
  padding: 0;
  color: var(--c-blue3);
  text-transform: uppercase;
  opacity: 0.5;
}
.dept-toc li:not(:last-child) a:after {
  content: "";
  height: 22px;
  width: 2px;
  background: var(--c-blue1);
  display: block;
}

.dept-toc a:hover,
.dept-toc a.is-active {
  opacity: 1;
}

/* About */
.dept-entry img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Diseases grid */
.dz-grid {
  display: grid;
  gap: 16px;
  align-items: center;
  font-weight: 700;
}
@media (min-width: 1024px) {
  .dz-grid {
    grid-template-columns: 1fr 2fr;
  }
}
.bulleted {
  margin: 0;
  padding-left: 18px;
}
.bulleted li {
  margin: 6px 0;
}
.dz-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 25px;
}

/* Doctors slider (2 rows × 3) */

.doctor-card {
  border-radius: var(--b-radius);
  padding: 0;
  text-align: left;
  background: #fff;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}
.benefits-docs .doctor-card{
  background: transparent;
}
.doctor-card__image {
    border: 1px solid var(--c-blue2);
    display: block;
    height: 250px;
    max-height: 250px;
    overflow: hidden;
    border-radius: var(--b-radius);
    background: #fff;
}
.benefits-docs .doctor-card__image{
  background: #fff;
}

.doctor-card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1 1 auto;
  min-height: 0;
  color: var(--c-blue3);
}
.doctor-card__title{
  color: var(--c-blue3);
  font-weight: 700;
}
.doctor-card__body .btn {
  margin-top: auto; /* прижимаем к низу */
  max-width: 100%;
  padding: 5px 15px;
    text-align: center;
}
@media (min-width: 1024px) {
  .doctor-card__body .btn {
    max-width: 100%;
      padding: 15px 14px;
  }
}
.doctor-card img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* заполняет с обрезкой */
  object-position: center;
  display: block;
}
@media (max-width: 760px) {
  .doctor-card img{
    object-fit: cover;
  }
}

.doctor-card__pos {
  margin: 0 0 6px 0;
}
.doctor-card__exp {
  margin: 0;
  font-size: 14px;
  color: var(--c-blue3);
  opacity: .8;
}
/* если родитель — grid/flex: не даём колонке распухать */
.doctor-group { min-width: 0; }
.doctor-group .doctors-swiper { width: 100%; max-width: 100%; overflow: hidden; }

.doctors-swiper .swiper-wrapper{
  row-gap: 20px;           /* вертикальный отступ между рядами */
  align-items: stretch;     /* чтобы ряды растягивались равномерно */
}
.doctors-swiper .swiper-slide{
  display: flex;            /* карточка растянется по высоте слайда */
  /* УБРАТЬ height:auto !important; */
}
.doctor-group{ min-width:0; }                 /* фикс если родитель — grid/flex */
.doctor-group .doctors-swiper{ width:100%; max-width:100%; overflow:hidden; }
.doctor-card{ height:100%; }                  /* карточка заполняет слайд */
.doctor-card { height: 100%; }

/* пагинация под слайдером */
.doctors-swiper .swiper-pagination { position: static; margin-top: 20px; }

/* Prep grid */
.prep-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px 20px;
}
@media (min-width: 768px) {
  .prep-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.prep-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-direction: column;
}
@media (max-width: 768px) {
  .prep-item {
    align-items: center;
    flex-direction: row;
    align-content: center;
    justify-content: center;
  }
  .prep-grid {
    gap:20px;
  }
}
.prep-item--image {
  overflow: hidden;
  align-items: center;
}
.prep-item--image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 120px;
}
.prep-item--cta {
  align-items: center;
  justify-content: center;
}
.prep-icon-wrap {
  flex: 0 0 auto;
}
.prep-icon {
  width: 50px;
  height: 50px;
  display: block;
}
.prep-text {
  flex: 1 1 auto;
}

/* Prices table (responsive) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
}
.tbl th,
.tbl td {
  border: 0;
  text-align: left;
  vertical-align: top;
}



.tbl--prices {
  background-color: var(--c-blue2);
  border-radius: 25px;
  color: var(--c-primary);
  font-size: 20px;
  padding: 40px 20px;
}
.tbl--prices tr {
  padding: 7px 20px;
  background-color: var(--c-blue1);
  border-radius: 25px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}


.tbl-before {
  display: grid;
  grid-template-columns: 2fr 1fr;
}
.tbl-before--icon {
  display: flex;
  justify-content: center;
  align-items: center;
}
.tbl-before--desc {
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tbl-before .desc-item {
  display: flex;
  align-items: flex-start;
}
.tbl-before .desc-item svg {
  width: 15px;
  margin-right: 10px;
  margin-top: 4px;
}
.tbl-before .desc-item div {
  width: fit-content;
}

/* колонка с иконками внутри таблицы услуг */
.tbl--prices .tbl-icons{
  display: flex
;
    align-items: center;
    width: 10%;
}
.tbl--prices .tbl-service{
  width: 70%;
}
.tbl--prices .tbl-price{
  display: flex
;
    align-content: center;
    flex-wrap: wrap;
}

@media (max-width: 760px) {
  .tbl-before .desc-item svg {
    width: 18px
  }
  .tbl thead {
    display: none;
  }
  .tbl tr {
    display: block;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    padding: 10px;
    font-size: 15px;
  }
  .tbl td {
    display: flex;
    gap: 10px;
    border: 0;
  }
  .tbl td:last-child {
    border-bottom: 0;
  }
  .tbl td::before {
    content: attr(data-label);
    min-width: 80px;
    font-weight: 700;
    font-size: 16px;
  }
  .tbl--prices .tbl-service{
    width: 100%;
  }
}

.svc-icons{ display: inline-flex; gap: 10px; vertical-align: middle; }
.svc-ico{ display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; }
.svc-ico .ico-svg{ width: 20px; height: 20px; display: block; }

/* если нужны одноцветные иконки под текущий цвет темы */
.svc-ico { color: var(--c-primary); }

/* на маленьких экранах (у тебя таблица адаптивная через data-label) – добавим отступы */
@media (max-width: 768px){
  .svc-icons{ gap: 0px; }
  .svc-ico{ width: 22px; height: 22px; }
  .svc-ico .ico-svg{ width: 18px; height: 18px; }
  .tbl-before--icon{
    display: none;
  }
  .tbl-before{
    grid-template-columns: 1fr;
  }
}


/* Gallery mosaic */

.gallery-mosaic {
  --g-gap: 20px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--g-gap);
  height: 600px;
  overflow: hidden;
  padding: 25px;
  margin: -25px;
}

.gallery-mosaic__left {
  display: grid;
  grid-template-rows: 0.8fr 1fr;
  gap: var(--g-gap);
  min-height: 0;
}

.gallery-mosaic__right {
  display: grid;
  grid-template-rows: 1.2fr 1fr;
  gap: var(--g-gap);
  min-height: 0;
}

.right-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--g-gap);
  min-height: 0;
}

.card {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 25px;

  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.card > img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* заполняет с обрезкой */
  object-position: center; /* центрируем */
  display: block;
}

/* ====== адаптив ====== */
@media (max-width: 1024px) {
  .gallery-mosaic {
    height: auto;
  }
}
@media (max-width: 768px) {
  .gallery-mosaic {
    grid-template-columns: 1fr 1fr; /* в одну колонку */
    height: auto; /* убираем фикс. высоту */
    padding: 0;
    margin: 0;
  }
  .gallery-mosaic__left,
  .gallery-mosaic__right {
    grid-template-rows: auto;
  }
  .right-grid {
    grid-template-columns: 1fr;
  } /* два нижних — в столбик */
  .card--hero,
  .right-grid .card {
    margin-top: 0;
  }
}

/* Секция с фоном на 100% */
.section {
  width: 100%;
}

/* Рамка: ограничивает «визуальную сцену» (по макету 1440), чаще не нужна,
   но полезна для баннеров/сложных хедеров */
.frame {
  width: 100%;
  max-width: var(--w-frame);
  margin-inline: auto;
  padding-inline: 15px;
  box-sizing: border-box;
}

/* Контейнер для контента (1200) */
.container {
  width: 100%;
  max-width: var(--w-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
  /* важно для гридов/слайдеров, чтобы не раздувало */
  min-width: 0;
  position: relative;
}

/* Вариант на 1440, если в конкретной секции контент должен быть шире обычного */
.container--wide {
  max-width: var(--w-frame);
}

/* ===== Home: HERO ===== */

.home-hero {
  position: relative;
  margin-bottom: clamp(28px, 4vw, 72px);
  overflow: hidden;
  isolation: isolate;
  height: calc(100svh - 80px);
  min-height: 420px;
  background: linear-gradient(241.14deg, #96C3DE 42.62%, #0966B7 77.49%);
}

.home-services,
.home-benefits {
  margin-bottom: 0;
}

.home-hero__swiper {
  width: 100%;
  height: 100%;
}

.home-hero__swiper .swiper-wrapper,
.home-hero__swiper .swiper-slide {
  height: 100%;
}

.home-hero__slide {
  position: relative;
}

.home-hero__media {
  position: relative;
  width: 100%;
  height: 100%;
  line-height: 0;
  background: linear-gradient(241.14deg, #96C3DE 42.62%, #0966B7 77.49%);
  overflow: hidden;
}

.home-hero__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 22, 41, 0.08) 0%, rgba(5, 22, 41, 0.02) 38%, rgba(5, 22, 41, 0.34) 100%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 34%);
}

.home-hero__image {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.02);
  transition: transform 1.2s ease, filter 1.2s ease, opacity 0.6s ease;
}

.home-hero .swiper-slide-active .home-hero__image {
  transform: scale(1);
}

.home-hero__pagination.swiper-pagination-progressbar {
  position: absolute;
  left: clamp(12px, 1.8vw, 24px);
  right: clamp(12px, 1.8vw, 24px);
  bottom: clamp(12px, 2vw, 22px);
  top:auto;
  z-index: 3;
  width: auto;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px) saturate(125%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.home-hero__pagination.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.92) 38%, #ffffff 58%, #d4ebff 100%);
  background-size: 220% 100%;
  transition-property: transform;
  transform-origin: left center;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation: homeHeroProgressShift 1.6s linear infinite;
  will-change: transform;
}

@supports not (height: 100svh) {
  .home-hero {
    height: calc(100vh - 80px);
  }
}

@media (max-width: 767px) {
  .home-hero {
    height: calc(100svh - 80px);
    min-height: 420px;
  }

  .home-hero__pagination.swiper-pagination-progressbar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 5px;
  }
}

@media (min-width: 1200px) {
  .home-hero {
    height: calc(100svh - 80px);
  }
}

@keyframes homeHeroProgressShift {
  0% {
    background-position: 200% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Анимация */
.arrow-bounce{
  display:inline-block;
  animation: arrowBounce var(--arrow-speed) ease-in-out infinite;
  transform-box: fill-box;       /* корректный origin для SVG */
  transform-origin: center;      /* центр фигуры */
  will-change: transform;
}

/* Пауза по наведению — опционально */
.arrow-bounce:hover{
  animation-play-state: paused;
}

@keyframes arrowBounce{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(var(--arrow-distance)); }
}

/* Доступность: отключить анимацию по системной настройке */
@media (prefers-reduced-motion: reduce){
  .arrow-bounce{ animation: none; }
}

.h-like {
  font-size: 18px;
  font-weight: 400;
  
  margin: 0;
  text-transform: uppercase;
}
.doctor-single .h-like {
  color: var(--c-primary);
}
.services-desc {
  font-size: 24px;
  color: var(--c-blue3);
  font-weight: 500;
  margin-bottom: 59px;
}

/* ===== Helpers grids ===== */
.grid-1-3-2-3 {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1024px) {
  .h-like {
  font-size: 16px;
}
  .grid-1-3-2-3 {
    grid-template-columns: 1fr 2fr;
  }
}

.grid-1-4-3-4 {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1024px) {
  .grid-1-4-3-4 {
    grid-template-columns: 0.64fr 2fr;
  }
}

.grid-1-2-1-2 {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .grid-1-2-1-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.home-text .grid-1-2-1-2 {
  align-items: center
}
.home-text--title {
  font-size: 24px;
  font-weight: 700;
}
.home-text--desc {
  margin-bottom: 30px;
}


/* ===== Services block ===== */
.home-services__deps {
  display: grid;
  gap: 20px;
}
.home-services__deps .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 760px) {
  .home-services__deps .row {
    grid-template-columns: 1fr;
  }
}
.home-services__deps .cell.dep {
  height: 214px;
  max-height: 214px;
  background: var(--c-blue2);
  font-size: 24px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  border-radius: 25px;
  overflow: hidden;
}

/* когда есть фото — поверх него накладываем градиент */
.home-services__deps .cell.dep.has-photo,
.section-card.has-photo{
  /* первый слой — градиент (сверху → вниз), второй — сама картинка */
  background-image:
    linear-gradient(180deg, rgba(101,151,225,0) 0%, var(--c-blue2) 70%),
    var(--dep-bg);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

/* на всякий случай — чтобы текст не прилипал к краю на маленьких */
@media (max-width: 640px){
  .home-services__deps .cell.dep{ padding: 16px; font-size: 20px; }
}

.home-services__deps .cell.more a {
  color: var(--c-blue3);
  text-decoration: underline;
}
.home-services__deps .cell.more a:hover {
  color: var(--c-blue3);
  text-decoration: none;
}
.home-services__deps .cell.more a svg {
  margin-left: 3px;
}
.home-services__deps .cell.dep a {
  color: var(--c-primary);
}
.home-services__deps .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #e6eefc;
  display: inline-block;
}
.dep-card {
}
.dep-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}
.dep-card span {
  text-transform: uppercase;
}
.dep-card--wide {
  justify-content: center;
}
.home-services__deps .dep-wide {
  grid-column: 2/4;
}
@media (max-width: 760px) {
  .home-services__deps .dep-wide {
    grid-column: auto;
  }
}
.home-services__deps .more {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Benefits — list ===== */
.home-benefits,
.home-articles {
  padding: 60px 0;
      background: #f9fafb;
}
.home-benefits .h-like,
.home-articles .h-like {
  color: var(--c-primary);
}
.home-benefits--desc {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 50px;
}
.benefits-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 50px;
}
@media (min-width: 1024px) {
  .home-services__deps .cell.more a{
    font-size: 20px;
  }
  .home-benefits--desc,
  .services-desc{
    font-size: 32px;
  }
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 130px;
  }
  .benefit div {
    font-size: 64px;
  }
}
.benefit {
  text-align: center;
  color: var(--c-primary);
}
.benefit div {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 5px;
}
.benefit p {
  font-size: 14px;
}

/* ===== Benefits — doctors mosaic (2 rows, tall tile) ===== */
.docs-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
}
.docs-grid .cell {
  min-width: 0;
}
.docs-grid .seeall{
  height: 250px;
      display: flex
  ;
      flex-direction: column;
      justify-content: flex-end;
}
.docs-grid .seeall a{
  color: var(--c-primary);
  width: 100%;
}
.home-lecturers {
  scroll-margin-top: clamp(92px, 12vw, 140px);
}

@media (max-width: 1024px) {
  
   .docs-grid{
    grid-template-columns:1fr 1fr;

  }


  .docs-grid .seeall{
    height: auto;
  }


  .home-benefits{
    padding: 60px 0 0px;
  }

}
.doc-tile {
  color: var(--c-primary);
}
.doc-tile img {
  border-radius: 10px;
}
.doc-tile--tall img {
  height: auto;
}
.doc-meta span {
  display: block;
  margin-top: 5px;
}

/* ===== Live ===== */
.home-live,
.home-reviews {
  margin-bottom: 80px;
}

body.home main.site-main > section:not(.home-hero) {
  margin-bottom: clamp(48px, 6vw, 96px);
}

body.home main.site-main > section:last-of-type {
  margin-bottom: 0;
}

.video-embed iframe,
.map-embed iframe {
  width: 100%;
  border: 0;
  border-radius: var(--b-radius);
  min-height: 260px;
}
.ui-form .form-row {
  margin-bottom: 10px;
}
.ui-form input,
.ui-form textarea {
  width: 100%;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 10px;
}

/* ===== Reviews ===== */
.reviews-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1024px) {
  .reviews-layout {
    grid-template-columns: 1fr 1fr;
  }

}
.reviews-left {
  position: relative;
  min-height: 100px;
}
.reviews-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
}
.reviews-nav svg {
  margin: 0 auto;
}
.reviews-prev,
.reviews-next {
  border: 0;
  border-radius: 25px;
  cursor: pointer;
  width: 65px;
  height: 65px;
  background-color: var(--c-blue3);
}
.reviews-right {
  min-width: 0;
  min-height: 180px;
  background-color: var(--c-blue2);
  border-radius: 25px;
  color: var(--c-primary);
}
.review-card {
  padding: 25px 20px;
}
.review-text {
  margin-bottom: 20px;
}
.review-head {
  display: flex;
  gap: 5px;
  flex-direction: column;
}
.review-head .avatar {
  border-radius: 50%;
  height: 53px;
  width: 53px;
}
.review-head div div {
  font-size: 12px;
}

@media (min-width: 1024px) {
  .reviews-left,
  .reviews-right {
    height: 100%; /* grid растянет по высоте одной строки */
  }
  .reviews-right {
    display: flex;
    align-items: stretch;
  }
  .reviews-right .reviews-swiper {
    width: 100%;
    height: 100%;
  }
  .reviews-right .swiper-wrapper {
    align-items: stretch;
  }
  .reviews-right .swiper-slide {
    height: auto; /* чтобы слайд подстраивался под карточку */
    display: flex; /* растянуть карточку на всю высоту */
  }
  .reviews-right .review-card {
    flex: 1 1 auto; /* карточка заполняет высоту слайда */
    display: flex;
    flex-direction: column;
  }
}

/* на всякий — запретим «дрыгать» высоту стрелками */
.reviews-prev,
.reviews-next {
  line-height: 0;
}

/* ===== Articles mosaic ===== */
.articles-mosaic {
  display: grid;
  gap: 12px;
}
@media (min-width: 1024px) {
  .articles-mosaic {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
  }
  .a1 {
    grid-column: 1/3;
  } /* 2/3 превью */
  .a2 {
    grid-column: 3/4;
  }
  .a3 {
    grid-column: 1/2;
  }
  .a4 {
    grid-column: 2/3;
  }
  .a5 {
    grid-column: 3/4;
  }
  .a6 {
    grid-column: 1/2;
  }
  .a7 {
    grid-column: 2/4;
  }
}
.articles-mosaic .a {
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}
.articles-mosaic .a .img img {
  border-radius: 10px;
}

/* Utils */
.text-muted,
.muted {
  color: var(--c-muted);
}

/* ===== Doctors Archive ===== */
.doctors-hero {
  color: #fff;
  background: var(--c-blue2);
  background-image: linear-gradient(
      0deg,
      rgba(101, 151, 225, 0.5),
      rgba(101, 151, 225, 0.5)
    ),
    linear-gradient(241.14deg, rgba(101, 151, 225, 0) 42.62%, var(--c-blue2) 77.49%);
  background-size: cover;
  background-position: center;
}

.search-wrap {
  position: relative;
}
/* Search */
.search-input {
  width: 100%;
  border: 1px solid var(--c-blue2);
  border-radius: 100px;
  height: 50px;
  padding: 13px 20px;
}
.search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 5;
  max-height: 320px;
  overflow: auto;
}
.suggest-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
}
.suggest-item:hover {
  background: #f7f9ff;
}
.suggest-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.suggest-item .meta {
  display: flex;
  flex-direction: column;
}
.suggest-item .meta small {
  color: var(--c-muted);
}

/* Filter chips */
.specialty-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 8px auto 20px;
}
.chip {
  border: 1px solid var(--c-border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.chip.is-active {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: #f1fffb;
}


/* Grid/Snapping safety */
.doctors-groups .container > * {
  min-width: 0;
}

/* ===== Hero ===== */
.dep-hero {
  color: #fff;
  background: var(--c-blue2);
  background-image: linear-gradient(
      0deg,
      rgba(101, 151, 225, 0.5),
      rgba(101, 151, 225, 0.5)
    ),
    linear-gradient(241.14deg, rgba(101, 151, 225, 0) 42.62%, var(--c-blue2) 77.49%);
  background-size: cover;
  background-position: center;
}


/* ===== Grid 3 columns ===== */
.dep-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .dep-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .dep-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.dep-card__title a {
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

/* ===== Lead form box ===== */
.dep-online svg{
  margin: 0 auto;
}
.dep-online__block{
  background: var(--c-blue2);
  color: var(--c-primary);
  border-radius: var(--b-radius);
  padding: 40px;
}
.dep-online__title{
  font-size: 32px;
  margin-bottom: 20px;
}
.dep-online__desc{
  font-size: 20px;
  margin-bottom: 20px;
}

.lead-box {
  background: var(--c-blue2);
  color: var(--c-primary);
  border-radius: var(--b-radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
@media (min-width: 1024px) {
  .lead-box {
    padding: 20px;
  }
}
.lead-title {
  line-height: 1.1;
  margin: 0 0 clamp(18px, 2.4vw, 32px);
  font-size: clamp(22px, 2.4vw, 36px);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lead-meta {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  opacity: 0.95;
  margin-bottom: 12px;
}
.lead-meta .i {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.lead-phone {
  display: flex
  ;
      gap: 6px;
      align-items: flex-start;
      flex-wrap: wrap;
      margin: 10px 0 14px;
      flex-direction: column;
}
.big-phone {
  font-size: clamp(26px, 3vw, 24px);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.lead-hint {
  opacity: 0.5;
  font-size: 14px;
}
.lead-form {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.lead-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lead-form input[type="text"],
.lead-form input[type="tel"] {
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  background: #fff;
  color: #111;
}
.chk {
  grid-column: 1/-1;
  display: flex;
  gap: 10px;
  align-items: center;
  opacity: 0.95;
  margin: -10px 0;
  font-size: 12px;
}
.btn--block {
  grid-column: 1/-1;
  border-radius: 999px;
  padding: 14px;
}

@media (min-width: 640px) {
  .lead-hint,
  .chk{
    font-size: initial;
  }
  .lead-form {
    grid-template-columns: 1fr 1fr;
  }
   .lead-form{
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "r1 r2"
      "r3 r3";
  }
  .lead-form .r1{grid-area:r1}
  .lead-form .r2{grid-area:r2}
  .lead-form .r3{grid-area:r3}
}


/* ===== Specialty dropdown ===== */
.spec-select {
  position: relative;
  max-width: 420px;
  margin: 8px auto 20px;
  width: 100%;
  height: 47px;
}
.spec-wrap h2{
  margin-bottom: 30px;
}
.spec-select__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid var(--c-blue2);
  border-radius: var(--b-radius);
  cursor: pointer;
  font: inherit;
  color: inherit;
  background-color: var(--c-primary);
  z-index: 3;
  position: relative;
}
.spec-select__btn:focus  {
  border: 1px solid var(--c-blue2);
}
.spec-select__arrow {
  transition: transform 0.2s ease;
}
.spec-select.is-open .spec-select__arrow {
  transform: rotate(180deg);
}

.spec-select__list {
  position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    background: #fff;
    border: 1px solid var(--c-blue2);
    border-top: none;
    border-bottom-left-radius: var(--b-radius);
    border-bottom-right-radius: var(--b-radius);
    box-shadow: var(--shadow);
    z-index: 2;
    padding: 30px 0 0 0;
    list-style: none;
    margin: 0;
    max-height: 340px;
    overflow: auto;
}
.spec-option {
  padding: 10px;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.spec-option:hover,
.spec-option.is-active {
  background: var(--c-blue1);
  color: var(--c-primary);
}

/* на маленьких экранах — на всю ширину контейнера */


.contacts-clinic,
.contacts-mrt{
  background-color: var(--c-blue1);
  border-radius: var(--b-radius);
  padding: 100px;
}

.sections-grid{
  display: grid
  ;
      grid-template-columns: 1fr 1fr 1fr 1fr;
      gap: 20px;
}
.section-card{
  background-color: var(--c-blue2);
  border-radius: var(--b-radius);
  aspect-ratio: 1 / 1;
  color: var(--c-primary);
  font-size: 20px;
  padding: 0 20px;
  text-align: center;
  display: flex
  ;
      align-items: center;
}
@media (max-width: 764px) {
  .spec-select {
    max-width: 100%;
  }
  .section-card{
    padding: 0 5px;
  }
  .section-card h3{
    font-size: 20px;
  }
  .sections-grid{
    grid-template-columns: 1fr 1fr
  }
  .contacts-clinic,
  .contacts-mrt{
    padding: 0;
    background-color: transparent;
  }
  .lead-box{
    order: 1;
  }
  .map-embed{
    order: 2;
  }
}
.error404 main,
body.page-template-default:not(.page-id-2,.page-id-416,.page-id-519) main{
  background-color: var(--c-blue3);
  color: var(--c-primary);
  padding: 100px 0;
}
.error404 .page-content{
  padding: 80px 0;
  text-align: center;
}
.error404 .page-content svg{
  display: block;
  margin: 0 auto 40px;
}
.error404 .page-content a{
  color: var(--c-primary);
  text-decoration: underline;
}
.error404 .page-content a:hover {
  color: var(--c-blue1);
}


@media (min-width: 1024px) {
  .site-header{
    padding: 0;
  }
}
.content-wrap p{
  margin: revert
}
.offer-page h1{
  font-size: 24px;
  margin-bottom: 20px;
  text-transform: uppercase;
}


/* Кнопка лупы */
.header-search-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px; height:40px;
  border:0; border-radius:10px; background:#fff; color:var(--c-blue3);
  cursor: pointer;
      margin-left: 10px;
}
.header-search-btn.is-mobile{ margin-right:8px; }

/* Панель поиска под шапкой (только sticky — без absolute!) */
.header-search{
  border-top: 1px solid var(--c-border);
  background: #fff;
  display: none;
}
.header-search.is-open{
  display: block;
  position: absolute;
  top: var(--header-h, 80px);
  z-index: 40;
  width: 100%;
  left: 0;
}

/* Строка: [лупа] [поле с кнопкой внутри] [крестик] */
.header-search__form{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}

/* Лупа слева, вне инпута */
.header-search__icon{
  color: var(--c-blue3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

/* Обёртка поля */
.header-search__field{
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 28px;
}

/* Сам инпут тянется, справа место под кнопку */
.header-search__input{
  width: 100%;
  border: 0;
  outline: 0;
  background: #F5F5F5;
  font: inherit;
  padding: 10px 120px 10px 14px; /* справа запас под кнопку */
  border-radius: 20px;           /* чтобы курсор не упирался в границу */
}
.header-search__input::placeholder {
  color: var(--c-blue3);
  opacity: 1; /* Firefox */
}

.header-search__input::-ms-input-placeholder { /* Edge 12 -18 */
  color: var(--c-blue3);
}
/* Кнопка «Найти» внутри поля, справа */
.header-search__submit{
  position: absolute;
  top: 50%;
  right: 3px;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 7px 24px;
  border-radius: 22px;
  width: auto;
}
.header-search__submit.btn--blue:hover{
  padding: 7px 24px;
}

/* Крестик справа от поля */
.header-search__close{
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-blue3);
  cursor: pointer;
}


/* Моб-адаптация */
@media (max-width: 640px){
  .header-search__form{ gap: 8px; }
  .header-search__submit{ padding: 8px 12px; }
  .header-search__input{ padding-right: 112px; }
  .header-search-btn{
    margin-left: 0;
  }
}


/* Результаты */

.header-search__group{ margin-top:8px; }
.header-search__group-title{ font-weight:700; margin:8px 0 4px; color:var(--c-text); }
.header-search__item{
  display:flex; gap:10px; align-items:center; padding:8px; border-radius:12px;
}
.header-search__item:hover{ background:#eef3ff; }
.header-search__thumb{ width:44px; height:44px; flex:0 0 44px; border-radius:8px; background:#e9eef7; overflow:hidden; }
.header-search__title{ font-weight:600; line-height:1.2; color:var(--c-text); }
.header-search__type{ font-size:12px; opacity:.6; }

/* Мобильная адаптация */
@media (max-width: 640px){
  .header-search__submit{ padding:8px 12px; }
  .header-search__form{ padding:10px; }
 
}

.header-search__results{
  max-height: var(--search-max-h, 60dvh);
  padding: 0 10px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.header-search__empty{
  margin: 10px 0;
  color: var(--c-text);
  opacity: .7;
}



.lead-form .form-row textarea{
  width: 100%;
  border: 1px solid var(--c-border);
  border-radius: 25px;
  padding: 10px 12px;
  background: #fff;
  font: inherit;
  min-height: 150px;
  max-height: 250px;
  max-width: 100%;
  min-width: 100%;
}
.lead-form .form-row.is-invalid input,
.lead-form .form-row.is-invalid textarea{
  border-color: #E53935; background: #fff6f6;
}
.lead-form .btn{
  margin-bottom: -12px;
}

.lead-form__message{
  min-height: 1.2em;
  margin: 12px 0 4px;
  font-size: 14px;
  color: var(--c-primary);
}
.lead-form__message.is-error{
  color: #ffd7d7;
}
.lead-form__message.is-success{
  color: #dfffe8;
}
.lead-form__message.is-pending{
  opacity: .75;
}


.lead-form .field-error[data-for="agree"]{ margin-left: 28px; }

.field-error {
  display: block;
  min-height: 1.2em;
  color: #e53935;
  font-size: 13px;
  line-height: 1.25;
}

.chk.is-invalid {
  color: #e53935;
}

button[disabled] {
  cursor: wait;
  opacity: .65;
}

.szvo-event-order-cta {
  margin: 24px 0;
}

.szvo-event-order-cta__button {
  width: auto;
  min-width: 240px;
  text-transform: none !important;
}

.modal--event-order {
  position: relative;
  z-index: 1001;
}

.modal--event-order .modal__dialog {
  width: min(94vw, 820px);
  max-height: min(90dvh, 860px);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal--event-order .modal__close {
  top: 12px;
  right: 16px;
  color: var(--c-blue3);
}

.event-order {
  padding: clamp(24px, 4vw, 40px);
  color: var(--c-blue3);
}

.event-order__title {
  margin: 0 36px 18px 0;
  color: var(--c-blue3);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  text-transform: uppercase;
}

.event-order__message {
  min-height: 1.2em;
  margin: 0 0 12px;
  color: var(--c-blue3);
  font-size: 14px;
}

.event-order__message.is-error {
  color: #e53935;
}

.event-order__message.is-pending {
  opacity: .72;
}

.event-order-form {
  display: grid;
  gap: 18px;
}

.event-order-form__grid {
  display: grid;
  gap: 14px;
}

.event-order-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-order-form label {
  font-weight: 600;
}

.event-order-form input[type="text"],
.event-order-form input[type="email"],
.event-order-form input[type="tel"],
.event-order-form textarea {
  width: 100%;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: #111;
}

.event-order-form textarea {
  min-height: 110px;
  resize: vertical;
}

.event-order-form .form-row.is-invalid input,
.event-order-form .form-row.is-invalid textarea {
  border-color: #e53935;
  background: #fff6f6;
}

.event-order-summary {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: #f5f8fb;
}

.event-order-summary h3 {
  margin: 0 0 4px;
  color: var(--c-blue3);
  font-size: 18px;
}

.event-order-summary p {
  line-height: 1.4;
}

.event-order-form__agree {
  margin: 0;
  align-items: flex-start;
  color: var(--c-blue3);
  opacity: 1;
}

.event-order-form__agree input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.event-order-form__agree a {
  text-decoration: underline;
}

.event-order-form .btn--block {
  width: 100%;
}

@media (min-width: 720px) {
  .event-order-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-order-form .form-row--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .szvo-event-order-cta__button {
    width: 100%;
    min-width: 0;
  }

  .modal--event-order .modal__dialog {
    width: 94vw;
  }
}

.icon {
  position:relative; padding-left:24px; /* место для иконки слева */
}
.icon::before{
  content:"";
  position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:20px; height:20px;
  background-color: currentColor;
  mask-repeat: no-repeat;
}
.icon--phone::before{
  -webkit-mask-image: url('/wp-content/themes/szvo/assets/img/icon-phone.svg');
          mask-image: url('/wp-content/themes/szvo/assets/img/icon-phone.svg');
}
.icon--point::before{
  -webkit-mask-image: url('/wp-content/themes/szvo/assets/img/icon-point.svg');
          mask-image: url('/wp-content/themes/szvo/assets/img/icon-point.svg');
}
.icon--time::before{
  -webkit-mask-image: url('/wp-content/themes/szvo/assets/img/icon-time.svg');
          mask-image: url('/wp-content/themes/szvo/assets/img/icon-time.svg');
}


/* ====== Founders (СЗВО) ====== */
.szvo-founders {


  background: #f9fafb;            /* светло-серый фон как на макете */
  padding: clamp(32px, 5vw, 72px) 0;
}

.szvo-founders__inner {
  width: min(var(--wrap-max), 92%);
  margin: 0 auto;
  position: relative;
}

/* маленький левый заголовок "О НАС" */
.szvo-founders__label {
  color: var(--c-blue2);
  font-weight: 800;
  font-size: clamp(18px, 2.5vw, 28px);
  letter-spacing: .02em;
  margin-bottom: clamp(12px, 2vw, 20px);
}

/* большой центральный заголовок */
.szvo-founders__title {
  position: absolute;
    left: 50%;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;
    text-transform: uppercase;
    font-size: 23px;
    line-height: 1.1;
    font-weight: bold;
}

/* две колонки с людьми */
.szvo-founders__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: clamp(16px, 4vw, 48px);
  min-height: 360px; /* для красивого «воздуха» как на макете */
}

/* карточка человека */
.szvo-founders__person {
  margin: 0;
  display: grid;
  justify-items: center;
  align-items: end;
  gap: 12px;
  grid-template-columns: 1fr;
}

/* фото — адаптив, без обрезки контента (png с вырезанным фоном) */
.szvo-foundors__photo {
  height: auto;
  display: block;
  object-fit: contain;
}

/* подпись под фото */
.szvo-founders__name {
  color: var(--c-blue2);
  text-align: center;
  font-size: clamp(18px, 1.8vw, 18px);
  line-height: 1.25;
  font-weight: 600;
}

/* симметрия: левый/правый края ближе к границам, как в рефе */
.szvo-founders__person.is-left  { justify-self: start; }

/* адаптив */
@media (max-width: 980px) {
  .szvo-founders__grid {
    gap: clamp(12px, 4vw, 28px);
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .szvo-founders__grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .szvo-founders__person.is-left,
  .szvo-founders__person.is-right {
    justify-self: center;
  }
  .szvo-foundors__photo {
    width: min(100%, 340px);
  }
  .szvo-founders__person{
    grid-template-columns: 1fr 160px;
    align-items: center;
  }
  .szvo-founders__title {
      position: relative;
      font-size: 20px;
      margin-bottom: 10px;
      display: block;
  }
}


/* ===== Секция: Новости (СЗВО) ===== */
.szvo-news {
  --c-blue2: #1F64C4;
  --szvo-line: #cfe3f6;
  --szvo-text: #0f172a;
  --wrap-max: 1100px;

  padding: clamp(28px, 4vw, 56px) 0;
}

.szvo-news__inner {
  width: min(var(--wrap-max), 92%);
  margin: 0 auto;
}

.szvo-news__title {
  color: var(--c-blue3);
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.15;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 clamp(18px, 2.4vw, 32px);
}

.szvo-news__media-label {
  color: #9aa9bc;
  font-size: 12px;
  margin-bottom: clamp(14px, 2vw, 22px);
}

/* список */
.szvo-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* разделитель между карточками */
.szvo-news__divider {
  height: 1px;
  background: var(--szvo-line);
  margin: clamp(16px, 3vw, 28px) 0;
}

/* карточка */
.szvo-news__item { margin: 0; }

.szvo-news__card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(14px, 3vw, 28px);
  align-items: center;
  text-decoration: none;
  color: inherit;
}

/* миниатюра */
.szvo-news__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 18px;
  overflow: hidden;
}
.szvo-news__thumb.is-empty { background: var(--c-blue2); }

.szvo-news__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* иконка Play для видео-постов */
.szvo-news__play {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.szvo-news__play::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 16px;
  width: 0;
  height: 0;
  border-left: 18px solid var(--c-blue2);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

/* текстовая часть */
.szvo-news__body { align-self: center; }


.szvo-news__excerpt {
  margin: 0;
  color: #2b3a4d;
  font-size: 15px;
  line-height: 1.45;
}
.szvo-news__all{
  margin-left: auto;
}
/* hover */
.szvo-news__card:hover .szvo-news__item-title { text-decoration: underline; }

/* адаптив */
@media (max-width: 768px) {
  .szvo-news__card {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .szvo-news__thumb { max-width: 520px; }
  h1{
    font-size: 40px;
    line-height: 1.01;
  }
}

/* делаем любые iframe внутри контента резиновыми */
.content-wrap iframe{
  display: block;
  max-width: 100%;
  width: 100% !important;
  height: auto;                
  aspect-ratio: 16 / 9;         
  border: 0;
  background: #000;             
}

/* можно точечно настроить провайдеров, если нужно */
.content-wrap iframe[src*="youtube.com"],
.content-wrap iframe[src*="youtu.be"],
.content-wrap iframe[src*="vimeo.com"],
.content-wrap iframe[src*="rutube.ru"],
.content-wrap iframe[src*="vk.com/video"],
.content-wrap iframe[src*="ok.ru/video"] {
  aspect-ratio: 16 / 9;
}

.content-wrap iframe[src*="maps.google."],
.content-wrap iframe[src*="yandex.ru/map"] {
  aspect-ratio: 4 / 3; /* карты часто 4:3 */
}


/* ========== Events ========== */
.szvo-events-section {
  padding: clamp(28px, 4.8vw, 76px) 0 clamp(52px, 6vw, 96px);
}

.szvo-events-section > .container,
.szvo-events-archive__content {
  max-width: 1920px;
}

.szvo-events-section__heading {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: clamp(22px, 3vw, 44px);
}

.szvo-events-section__heading .szvo-section-title {
  margin-bottom: 0;
}

.szvo-events-section__all {
  margin-left: auto;
  color: var(--c-blue3);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.szvo-events-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(16px, 2vw, 30px);
}

.szvo-event-card {
  height: 100%;
  overflow: hidden;
  min-width: 0;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e1e5e8;
  box-shadow: 0 2px 6px rgba(13, 54, 88, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.szvo-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(13, 54, 88, .14);
}

.szvo-event-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #171717;
}

.szvo-event-card__link:focus-visible {
  outline: 3px solid var(--c-blue3);
  outline-offset: 4px;
}

.szvo-event-card__media {
  position: relative;
  aspect-ratio: 1.46 / 1;
  background: #dce8ef;
}

.szvo-event-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.szvo-event-card__image--placeholder {
  display: block;
  background: linear-gradient(145deg, #dcecf5, #8fc5e3 55%, #0aaee2);
}

.szvo-event-card__date-badge {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  display: inline-flex;
  max-width: calc(100% - 28px);
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 12px;
  color: #fff;
  background: rgba(7, 42, 70, .82);
  box-shadow: 0 8px 22px rgba(3, 29, 51, .2);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  backdrop-filter: blur(9px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.szvo-event-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 270px;
  padding: clamp(20px, 2vw, 28px);
}

.szvo-event-card__title {
  display: -webkit-box;
  overflow: hidden;
  color: #111;
  font-size: clamp(20px, 1.55vw, 26px);
  line-height: 1.42;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.szvo-event-card__location {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 28px;
  color: #8b8585;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.5;
}

.szvo-events-empty {
  padding: 30px;
  color: #55636d;
  background: #f3f7fa;
  border-left: 4px solid var(--c-blue3);
}

.szvo-events-archive__header,
.szvo-event-single__header {
  padding: clamp(38px, 5vw, 78px) 0 clamp(26px, 4vw, 56px);
  background: #f1f7fb;
}

.szvo-events-archive__header h1,
.szvo-event-single__header h1 {
  color: var(--c-blue3);
  font-size: clamp(38px, 5vw, 64px);
}

.szvo-events-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
  color: #647783;
  font-size: 14px;
}

.szvo-events-breadcrumbs a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.szvo-events-archive__content {
  padding-top: clamp(44px, 5vw, 78px);
  padding-bottom: clamp(60px, 7vw, 110px);
}

.szvo-events-group + .szvo-events-group {
  margin-top: clamp(64px, 8vw, 120px);
}

.szvo-events-group--past .szvo-event-card__date-badge {
  background: rgba(65, 83, 94, .86);
}

.szvo-event-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 6vw, 88px) 0 clamp(54px, 7vw, 104px);
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(68, 189, 231, .34), transparent 29%),
    radial-gradient(circle at 4% 94%, rgba(243, 151, 36, .25), transparent 25%),
    linear-gradient(135deg, #0a2440 0%, #0b3d68 58%, #086bb7 100%);
}

.szvo-event-hero::after {
  position: absolute;
  right: -110px;
  bottom: -210px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(255, 255, 255, .035), 0 0 0 108px rgba(255, 255, 255, .025);
  content: "";
  pointer-events: none;
}

.szvo-event-hero .container {
  z-index: 1;
  max-width: 1040px;
}

.szvo-event-hero .szvo-events-breadcrumbs,
.szvo-event-hero .szvo-events-breadcrumbs a {
  color: rgba(255, 255, 255, .7);
}

.szvo-event-hero__eyebrow {
  margin: 0 0 16px;
  color: #8ddcff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.szvo-event-hero h1 {
  max-width: 980px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.szvo-event-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 4vw, 42px);
}

.szvo-event-hero__meta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 178px;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #0b3357;
  background: #fff;
  font-size: 16px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.szvo-event-hero__meta .szvo-event-hero__program {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.szvo-event-hero__meta .btn:hover {
  border-color: #6fdcff;
  background: #6fdcff;
  color: #092943;
}

.szvo-event-hero__lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.szvo-event-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
  padding-top: clamp(42px, 6vw, 80px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.szvo-event-single__layout--mobile {
  grid-template-columns: 1fr;
}

.szvo-event-single__cover {
  margin: 0 0 clamp(42px, 5vw, 66px);
  overflow: hidden;
  border-radius: clamp(18px, 2.5vw, 32px);
  box-shadow: 0 22px 62px rgba(14, 47, 76, .14);
}

.szvo-event-single__cover img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.szvo-event-single__about {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid #e4edf3;
  border-radius: clamp(18px, 2.5vw, 30px);
  background: #fff;
  box-shadow: 0 16px 50px rgba(18, 57, 87, .07);
}

.szvo-event-section-heading {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.szvo-event-section-heading > span {
  display: block;
  margin-bottom: 8px;
  color: #0a77c7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.szvo-event-section-heading h2 {
  margin: 0;
  color: #102f4b;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.szvo-event-single__content {
  color: #334956;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.72;
}

.szvo-event-single__content > * + * {
  margin-top: 1.15em;
}

.szvo-event-single__content img {
  border-radius: 18px;
}

.szvo-event-single__aside {
  position: sticky;
  top: 104px;
}

.szvo-event-facts {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: clamp(22px, 2.5vw, 34px);
  border: 1px solid #dce9f2;
  border-radius: 24px;
  background: linear-gradient(155deg, #f5faff, #eaf5fc);
  box-shadow: 0 18px 48px rgba(16, 65, 101, .1);
}

.szvo-event-facts p {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 15px 0;
  color: #293a45;
  border-bottom: 1px solid #d3e3ed;
}

.szvo-event-facts p:first-child { padding-top: 0; }
.szvo-event-facts p:last-of-type { border-bottom: 0; }

.szvo-event-facts strong {
  color: #0a609e;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.szvo-event-facts a:not(.btn) {
  color: #0966b7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.szvo-event-facts .btn,
.szvo-event-single__formats-link {
  width: 100%;
  margin-top: 20px;
}

.szvo-event-single__mobile-facts {
  padding-top: 24px;
}

.szvo-event-share {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #dbe8f0;
}

.szvo-event-share > strong {
  display: block;
  margin-bottom: 11px;
  color: #536b7a;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.szvo-event-share__links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.szvo-event-share__links a {
  display: inline-flex;
  min-width: 45px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1px solid #cedfe9;
  border-radius: 999px;
  color: #0966b7;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.szvo-event-share__links a:hover {
  border-color: #0966b7;
  color: #fff;
  background: #0966b7;
}

.szvo-event-program {
  scroll-margin-top: 104px;
  margin-top: clamp(52px, 7vw, 92px);
}

.szvo-event-program__groups {
  display: grid;
  gap: 14px;
}

.szvo-event-program__group {
  overflow: hidden;
  border: 1px solid #dce9f2;
  border-radius: 20px;
  background: #fff;
}

.szvo-event-program__group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 24px;
  color: #123854;
  cursor: pointer;
  list-style: none;
  font-size: 19px;
  font-weight: 800;
}

.szvo-event-program__group summary::-webkit-details-marker { display: none; }
.szvo-event-program__group summary::after { content: "+"; color: #0878c8; font-size: 28px; font-weight: 400; }
.szvo-event-program__group[open] summary::after { content: "−"; }
.szvo-event-program__group summary small { margin-left: auto; color: #788c99; font-size: 12px; font-weight: 600; }

.szvo-event-program__items {
  border-top: 1px solid #e4edf3;
}

.szvo-event-program__item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 20px;
  padding: 21px 24px;
}

.szvo-event-program__item + .szvo-event-program__item { border-top: 1px solid #edf2f6; }
.szvo-event-program__item time { color: #0878c8; font-weight: 800; font-variant-numeric: tabular-nums; }
.szvo-event-program__item h3 { margin: 0; color: #1c3548; font-size: 17px; line-height: 1.4; }
.szvo-event-program__item p { margin: 7px 0 0; color: #70828d; font-size: 14px; line-height: 1.45; }

.szvo-event-single__purchase {
  padding-bottom: clamp(64px, 8vw, 120px);
}

.szvo-event-formats {
  scroll-margin-top: 104px;
  padding: clamp(30px, 5vw, 64px);
  border-radius: clamp(24px, 3vw, 42px);
  background:
    radial-gradient(circle at 92% 8%, rgba(49, 174, 223, .23), transparent 27%),
    #0b2948;
  box-shadow: 0 26px 70px rgba(7, 34, 60, .18);
}

.szvo-event-section-heading--light > span { color: #76d8ff; }
.szvo-event-section-heading--light h2 { color: #fff; }

.szvo-event-formats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 18px;
}

.szvo-event-format {
  --format-accent: #ff9e2c;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(155deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .045));
  box-shadow: inset 0 1px rgba(255, 255, 255, .12);
}

.szvo-event-format--online { --format-accent: #56d4f2; }
.szvo-event-format--recording { --format-accent: #b59bff; }

.szvo-event-format__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--format-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.szvo-event-format__topline i { width: 38px; height: 4px; border-radius: 99px; background: var(--format-accent); }
.szvo-event-format h3 { margin: 28px 0 18px; color: #fff; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.08; }
.szvo-event-format__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.szvo-event-format__price strong { color: var(--format-accent); font-size: clamp(34px, 4vw, 48px); line-height: 1; }
.szvo-event-format__price del { color: rgba(255, 255, 255, .47); font-size: 17px; }
.szvo-event-format__label { margin: 10px 0 0; color: rgba(255, 255, 255, .67); font-size: 13px; }
.szvo-event-format ul { display: grid; gap: 11px; margin: 26px 0; padding: 0; list-style: none; }
.szvo-event-format li { position: relative; padding-left: 24px; color: rgba(255, 255, 255, .82); line-height: 1.45; }
.szvo-event-format li::before { position: absolute; left: 0; color: var(--format-accent); content: "✓"; font-weight: 900; }
.szvo-event-format__next-price { margin: auto 0 16px; padding: 10px 12px; border-radius: 10px; color: #dbeeff; background: rgba(255, 255, 255, .08); font-size: 13px; }
.szvo-event-format__action { margin-top: auto; }
.szvo-event-format__unavailable { display: flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; color: rgba(255, 255, 255, .72); font-weight: 700; }
.szvo-event-format .mtqt-ticket-form--compact > .mtqt-button:hover { border-color: var(--format-accent); background: var(--format-accent); color: #102d4b; }

.szvo-event-gallery {
  margin-top: clamp(48px, 6vw, 84px);
}

.szvo-event-gallery h2 {
  margin-bottom: 24px;
  color: var(--c-blue3);
}

.szvo-event-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.szvo-event-gallery__grid a {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.szvo-event-gallery__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.szvo-event-gallery__grid a:hover img {
  transform: scale(1.04);
}

@media (max-width: 1024px) {
  .szvo-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .szvo-events-section__heading {
    display: grid;
    gap: 12px;
  }

  .szvo-events-section__all {
    margin-left: 0;
  }

  .szvo-events-grid {
    grid-template-columns: 1fr;
  }

  .szvo-event-card__body {
    height: 230px;
  }

  .szvo-event-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .szvo-event-hero { padding-top: 32px; }
  .szvo-event-hero__meta { display: grid; }
  .szvo-event-hero__meta .btn { width: 100%; }
  .szvo-event-single__layout { padding-top: 24px; }
  .szvo-event-single__about { padding: 22px 18px; }
  .szvo-event-program__group summary { padding: 18px; }
  .szvo-event-program__group summary small { display: none; }
  .szvo-event-program__item { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  .szvo-event-formats { padding: 24px 16px; border-radius: 24px; }
  .szvo-event-format { min-height: 0; }
}

/* КУКИ БАННЕР */

.cookie-notice {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;

    display: none;
    align-items: center;
    gap: 16px;

    width: calc(100% - 40px);
    max-width: 520px;
    padding: 14px 14px 14px 18px;

    color: #252525;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);

    font-family: inherit;
    font-size: 13px;
    line-height: 1.45;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.cookie-notice.is-visible {
    display: flex;
}

.cookie-notice.is-active {
    opacity: 1;
    transform: translateY(0);
}

.cookie-notice.is-hiding {
    opacity: 0;
    transform: translateY(12px);
}

.cookie-notice__text {
    flex: 1;
    min-width: 0;
}

.cookie-notice__text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 0.75;
}

.cookie-notice__text a:hover {
    opacity: 1;
}

.cookie-notice__button {
    flex-shrink: 0;
    min-height: 38px;
    padding: 9px 17px;

    color: #0070a5;
    background: #f9fafb;
    border: 1px solid var(--c-blue2);
    border-radius: 10px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.cookie-notice__button:hover {
    background: #000;
}

.cookie-notice__button:active {
    transform: scale(0.97);
}

.cookie-notice__button:focus-visible,
.cookie-notice__text a:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .cookie-notice {
        right: 10px;
        bottom: 10px;

        gap: 12px;
        width: calc(100% - 20px);
        max-width: none;
        padding: 12px 12px 12px 14px;

        border-radius: 12px;
        font-size: 12px;
    }

    .cookie-notice__button {
        min-height: 36px;
        padding: 8px 14px;
        border-radius: 9px;
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .cookie-notice {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .cookie-notice__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-notice,
    .cookie-notice__button {
        transition: none;
    }
}
