/* Қайта қолданылатын компоненттер */

/* Иконка (спрайттан: <svg class="icon"><use href="#i-..."/></svg>) */
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--solid {
  fill: currentColor;
  stroke: none;
}

/* Секция тақырыбы */
.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-600);
}

.section-title {
  margin-top: 6px;
  font-size: var(--fs-h2);
  font-weight: 700;
}

/* Тақырып + оң жақтағы «Барлық ... →» сілтемесі */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

/* Өте тар экранда «Барлық ... →» сілтемесі тақырыппен қатар сыймай, шетке шығып кетпеу үшін жаңа жолға түседі */
@media (max-width: 480px) {
  .section-head {
    flex-wrap: wrap;
  }
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-600);
  white-space: nowrap;
  transition: gap var(--transition);
}

.link-more:hover {
  gap: 12px;
}

.link-more .icon {
  width: 16px;
  height: 16px;
}

.section-head__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Батырма */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 46px;
  padding-inline: 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--transition), border-color var(--transition),
    color var(--transition), transform var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn--sm {
  height: 42px;
  padding-inline: 24px;
  font-size: var(--fs-sm);
}

.btn--accent {
  background: var(--yellow-500);
  color: var(--text);
}

.btn--accent:hover {
  background: var(--yellow-600);
}

.btn--dark {
  background: var(--green-800);
  color: #fff;
}

.btn--dark:hover {
  background: var(--green-900);
}

.btn--outline {
  background: #fff;
  border-color: var(--green-200);
  color: var(--green-600);
}

.btn--outline:hover {
  border-color: var(--green-600);
}

/* Бейдж */
.badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding-inline: 16px;
  border-radius: var(--radius-pill);
  background: var(--green-600);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Мәтіндегі сары акцент */
.text-accent {
  color: var(--yellow-500);
}

/* Дөңгелек батырма (слайдер бағыттауыштары) */
.round-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(12, 47, 40, 0.18);
  transition: background-color var(--transition), color var(--transition);
}

.round-btn:hover {
  background: var(--green-600);
  color: #fff;
}

.round-btn .icon {
  width: 18px;
  height: 18px;
}

.round-btn--sm {
  width: 32px;
  height: 32px;
  box-shadow: 0 2px 8px rgba(12, 47, 40, 0.12);
}

.round-btn--sm .icon {
  width: 15px;
  height: 15px;
}

.slider-arrows {
  display: flex;
  gap: 10px;
}

/* Карточка */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(12, 47, 40, 0.03);
}

/* Дөңгелек ішіндегі иконка */
.icon-circle {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
}

.icon-circle .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}

.icon-circle--green {
  background: linear-gradient(135deg, #7dbb5e, #4f9a45);
  color: #fff;
}

.icon-circle--yellow {
  background: linear-gradient(135deg, #ffdc62, #fbc62c);
  color: var(--text);
}

/* Артықшылық карточкасы: иконка + тақырып + мәтін */
.feature-card {
  padding: 24px;
}

.feature-card__title {
  margin-top: 18px;
  font-size: var(--fs-lg);
  font-weight: 600;
}

.feature-card__text {
  margin-top: 8px;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--text-muted);
}

/* Статистика элементі: иконка + сан + жазу */
.stat {
  display: flex;
  align-items: center;
  gap: 18px;
}

.stat__icon {
  width: 46px;
  height: 46px;
  color: var(--green-500);
}

.stat__value {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.stat__label {
  margin-top: 4px;
  font-size: var(--fs-md);
  line-height: 1.3;
}

/* Фото-карточка: сурет + иконкалы жазу */
.media-card {
  display: block;
  height: 100%;
  overflow: hidden;
}

.media-card__img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) var(--radius-sm) var(--radius-sm);
}

.media-card__caption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.media-card__caption .icon {
  width: 20px;
  height: 20px;
  color: var(--green-800);
}

/* Қадам карточкасы: нөмір + тақырып + мәтін */
.step-card {
  padding: 20px 22px 24px;
  background: rgba(255, 255, 255, 0.7);
}

.step-card__num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5fac5b, #0f8f52);
  color: #fff;
  font-size: var(--fs-md);
  font-weight: 700;
}

.step-card__title {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 600;
}

.step-card__text {
  margin-top: 8px;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--text-muted);
}

/* Тұлға карточкасы: тіктөртбұрыш фото (жартысын алады) + аты-жөні төменде */
.person-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.person-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #e9efec;
}

.person-card__body {
  padding: 16px 16px 20px;
}

.person-card__name {
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.35;
}

.person-card__role {
  margin-top: 6px;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--text-muted);
}

/* Жаңалық карточкасы: сурет + күні + тақырып + қысқаша мәтін */
.news-card {
  display: block;
  height: 100%;
  overflow: hidden;
}

.news-card__img {
  width: 100%;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) var(--radius-sm) var(--radius-sm);
}

.news-card__body {
  padding: 14px 18px 20px;
}

.news-card__date {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--green-600);
}

.news-card__title {
  margin-top: 8px;
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.4;
}

.news-card__text {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* Галерея плиткасы: фото + жасыл тег */
.gallery-tile {
  position: relative;
  display: block;
  min-height: 130px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-tile:hover .gallery-tile__img {
  transform: scale(1.05);
}

.tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 8px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f8f52, #2f9f57);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
}

/* Құжат карточкасы (PDF): басу арқылы попапта алдын ала қарауды ашады
   (.document-card__link және оң жақтағы дөңгелек .document-card__action батырмасы — екеуі де сол попапты ашады,
   ал жүктеп алу попаптың ішіндегі «Жүктеу» батырмасы арқылы жүзеге асады) */
.document-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 20px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.document-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.document-card__link {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  padding-block: 8px;
  cursor: pointer;
}

.document-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #7dbb5e, #4f9a45);
  color: #fff;
}

.document-card__icon .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

.document-card__body {
  flex: 1;
  min-width: 0;
}

.document-card__title {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.document-card__text {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.document-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.document-card__badge {
  padding: 3px 9px;
  border-radius: 6px;
  background: #fdecea;
  color: #c0392b;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.document-card__dot {
  color: var(--border);
}

.document-card__action {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--green-800);
  transition: background-color var(--transition), color var(--transition);
}

.document-card:hover .document-card__action {
  background: var(--green-600);
  color: #fff;
}

.document-card__action .icon {
  width: 19px;
  height: 19px;
}

/* Панель: иконкалы тақырып + мазмұн */
.panel {
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 16px;
}

.panel__head > .icon {
  width: 26px;
  height: 26px;
  color: var(--green-600);
}

.panel__title {
  font-size: var(--fs-lg);
  font-weight: 700;
}

.panel__head .link-more {
  margin-left: auto;
  padding-bottom: 0;
}

/* Аккордеон (details/summary, JS-сіз) */
.accordion {
  display: grid;
  gap: 8px;
}

.accordion__item {
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--transition);
}

.accordion__item[open],
.accordion__item:hover {
  border-color: var(--green-200);
}

.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.accordion__summary::-webkit-details-marker {
  display: none;
}

.accordion__summary .icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.accordion__item[open] .accordion__summary .icon {
  transform: rotate(45deg);
}

.accordion__body {
  padding: 0 14px 14px;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--text-muted);
}

/* Байланыс тізімі: иконка + атауы + мәні */
.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list__item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-list__item .icon {
  width: 28px;
  height: 28px;
  color: var(--green-800);
}

.contact-list__label {
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.contact-list__value {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

a.contact-list__value:hover {
  color: var(--green-600);
}

/* Карта (Google Maps ендірмесі) */
.map {
  display: block;
  min-height: 200px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.map__frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 0;
}

/* Әлеуметтік желілер: шеңбер ішіндегі иконкалар */
.social {
  display: flex;
  gap: 12px;
}

.social__link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  transition: background-color var(--transition), border-color var(--transition),
    color var(--transition);
}

.social__link:hover {
  background: var(--yellow-500);
  border-color: var(--yellow-500);
  color: var(--green-900);
}

.social__link .icon {
  width: 18px;
  height: 18px;
}

/* «Жоғарыға» батырмасы */
.to-top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: var(--green-900);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: background-color var(--transition), transform var(--transition);
}

.to-top:hover {
  background: var(--yellow-500);
  transform: translateY(-2px);
}

.to-top .icon {
  width: 20px;
  height: 20px;
}

/* Қолжазба стиліндегі жазу */
.script-text {
  font-family: var(--font-script);
  font-size: 32px;
  font-weight: 700;
  line-height: 0.95;
  color: var(--green-800);
}

/* «Артқа» сілтемесі: бөлек беттің (Жаңалықтар/Құрам/Фотоальбом/Құжаттар) page-head-інен жоғары,
   басты беттегі тиісті блокқа қайтарады */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: gap var(--transition), color var(--transition);
}

.back-link:hover {
  gap: 11px;
  color: var(--green-600);
}

.back-link .icon {
  width: 17px;
  height: 17px;
}

/* Бөлек беттің тақырып блогы: eyebrow + h1 + subtitle (Жаңалықтар/Құрам/Фотоальбом беттері) */
.page-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.page-head__subtitle {
  margin-top: 14px;
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: 1.7;
}

/* Попап (modal): фото-грид (Инфрақұрылым/Асхана) және мақала (Жаңалықтар) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 20, 15, 0.72);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Мазмұн (мақала мәтіні) осы блокта скролленеді, ал жабу түймесі
   .modal__panel-ге бекітілген күйде қалады да скроллмен бірге жылжымайды.
   Scrollbar-ды көзге көрінбейтін етеміз (тек скролл функциясы қалады),
   себебі әдепкі scrollbar-дың жоғарғы/төменгі көрсеткілері жабу
   түймесімен және бұрышпен қабаттасып, көрініс бұзылатын */
.modal__panel > [data-modal-content] {
  max-height: 85vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal__panel > [data-modal-content]::-webkit-scrollbar {
  display: none;
}

/* Фото-грид попабы: количествасына қарамастан тұрақты, кеңірек өлшем */
.modal__panel--gallery {
  width: min(960px, 92vw);
  max-width: none;
  height: min(640px, 82vh);
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Фото-грид/жеке фото көрінісі өз ішінде flex арқылы скроллданады,
   сондықтан сыртқы контейнерге бөлек скролл қоймаймыз */
.modal__panel--gallery > [data-modal-content] {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

/* PDF алдын ала қарау попабы (Оқу және тәрбие): тақырып + жүктеу батырмасы, астында iframe */
.modal__panel--pdf {
  width: min(980px, 94vw);
  max-width: none;
  height: min(880px, 92vh);
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal__panel--pdf > [data-modal-content] {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.modal__pdf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  padding: 14px 60px 10px 20px;
}

.modal__pdf-head .modal__title {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-base);
}

.modal__pdf-head .btn {
  flex-shrink: 0;
}

.modal__pdf-frame {
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 0;
  background: var(--bg-soft);
}

.modal.is-open .modal__panel {
  opacity: 1;
  transform: none;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(12, 47, 40, 0.18);
  transition: background-color var(--transition), color var(--transition);
}

.modal__close:hover {
  background: var(--green-600);
  color: #fff;
}

/* Мақала попабында (фото жоғарыда) жабу батырмасы фотоның шетімен қабаттаспай,
   толығымен фотоның үстінде — ортасында орналасуы үшін офсеті үлкейтіледі */
.modal__panel:has(.modal__article-img) .modal__close {
  top: 34px;
  right: 34px;
}

.modal__close .icon {
  width: 18px;
  height: 18px;
}

/* — Фото-грид мазмұны — */
.modal__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text);
}

.modal__head {
  flex-shrink: 0;
  padding: 22px 56px 0 24px;
}

.modal__gallery {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  align-content: start;
  gap: 12px;
  padding: 16px 24px 24px;
}

.modal__gallery::-webkit-scrollbar {
  display: none;
}

.modal__gallery-item {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal__gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-card);
}

.modal__gallery-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
}

/* Жеке фото көрінісі: үлкейтілген сурет + солға/оңға жылжыту.
   Фото ауыстырғанда рамка өлшемі әрдайым бірдей қалуы үшін сурет
   толық ені/биіктігімен рамканы толтырады да (object-fit: contain
   өз пропорциясын бұзбай ішіне сыйдырады), ал стрелкалар суретпен
   бірге емес, .modal__viewer шетіне position:absolute етіп
   бекітілген — сондықтан фото өлшеміне қарамай орны өзгермейді */
.modal__viewer {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Жоғарғы жиек батырмасымен қабаттаспау үшін үстіңгі padding кеңірек */
  padding: 64px 76px 24px;
}

.modal__viewer-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 61, 50, 0.06);
  color: var(--text);
  transition: background-color var(--transition);
}

.modal__nav--prev {
  left: 20px;
}

.modal__nav--next {
  right: 20px;
}

.modal__nav:hover {
  background: rgba(10, 61, 50, 0.12);
}

.modal__nav[hidden] {
  visibility: hidden;
}

.modal__nav .icon {
  width: 20px;
  height: 20px;
}

/* — Мақала мазмұны — */
.modal__article-img {
  display: block;
  width: calc(100% - 48px);
  margin: 20px 24px 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.modal__article-body {
  padding: 18px 24px 28px;
}

.modal__article-date {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--green-600);
}

.modal__article-body .modal__title {
  margin-top: 10px;
}

.modal__article-text {
  margin-top: 14px;
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--text-body);
}

/* Попап адаптив: тар экранда бүйір жиектер мен навигация батырмалары суретке кедергі жасамауы үшін */
@media (max-width: 600px) {
  .modal {
    padding: 12px;
  }

  .modal__panel--gallery {
    width: min(960px, 96vw);
    height: min(640px, 88vh);
  }

  .modal__panel--pdf {
    width: min(980px, 96vw);
    height: min(880px, 92vh);
  }

  .modal__pdf-head {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 62px 12px 16px;
  }

  .modal__pdf-head .modal__title {
    font-size: var(--fs-sm);
    line-height: 1.35;
  }

  .modal__pdf-head .modal__pdf-download {
    width: 38px;
    height: 38px;
    padding: 0;
    gap: 0;
  }

  .modal__pdf-head .modal__pdf-download span {
    display: none;
  }

  .modal__pdf-head .modal__pdf-download .icon {
    width: 18px;
    height: 18px;
  }

  .modal__head {
    padding: 18px 46px 0 16px;
  }

  .modal__gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 14px 16px 18px;
  }

  .modal__viewer {
    padding: 56px 42px 16px;
  }

  .modal__nav {
    width: 36px;
    height: 36px;
  }

  .modal__nav--prev {
    left: 6px;
  }

  .modal__nav--next {
    right: 6px;
  }

  .modal__article-img {
    width: calc(100% - 32px);
    margin: 16px 16px 0;
  }

  .modal__article-body {
    padding: 16px 16px 24px;
  }
}
