/**
 * Audit fixes 2026 — karaway.by
 * Loaded after theme CSS; safe overrides only.
 */

/* 1. Header: readable menu + smooth background */
.s-header .header-panel {
  background: linear-gradient(
    180deg,
    rgba(245, 245, 245, 0.92) 0%,
    rgba(245, 245, 245, 0.78) 55%,
    rgba(245, 245, 245, 0.35) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}

/*
 * Desktop: compact header sitting ABOVE the hero video
 * (not overlaying it). Theme CSS loads after this file, so
 * layout offsets use !important. Mobile/tablet keep overlay.
 */
@media (min-width: 1251px) {
  :root {
    --kw-header-h: 88px;
  }

  .s-header,
  .s-header.scrolled,
  .s-header.scrolled.scrolled-visible {
    position: fixed !important;
    top: 0 !important;
    transform: none !important;
  }

  .s-header .header-panel,
  .s-header.scrolled .header-panel {
    padding: 8px 0 !important;
    background: #f5f5f5 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  }

  .s-header .header {
    gap: 16px;
    min-height: 72px;
  }

  .s-header .header__logo,
  .s-header.scrolled .header__logo {
    width: 200px !important;
    height: auto !important;
    padding-top: 0 !important;
  }

  .s-header .header__logo img,
  .s-header .header__logo__karaway {
    max-height: 64px !important;
    width: auto !important;
    max-width: 200px !important;
    height: auto !important;
  }

  .s-header .header__descr {
    font-size: 12px;
    line-height: 1.25;
    max-width: 13em;
  }

  .s-header .header__center {
    gap: 16px;
  }

  .s-header .header__services-btn {
    padding: 0.35em 12px 0.35em 0.45em !important;
    font-size: 15px !important;
    border-radius: 12px;
  }

  .s-header .header__nav {
    font-size: 15px;
    gap: 0.95em;
  }

  .s-header .phone-block__val {
    font-size: 15px;
    line-height: 1.25;
  }

  /* Push homepage hero + video below the header bar */
  .s-intro.s-intro--home,
  .s-intro--home.s-intro--big {
    margin-top: 88px !important;
    padding-top: 28px !important;
  }

  .s-intro--home .intro__content > br {
    display: none !important;
  }

  .s-intro--home .intro__img-wrap {
    top: 0 !important;
    overflow: hidden;
  }

  .s-intro--home #bx_651765591_5 {
    top: 0 !important;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-width: 0 !important;
    min-height: 0 !important;
  }

  .s-intro--home .main-bg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: top center;
  }
}

.s-header.scrolled .header-panel {
  background: rgba(245, 245, 245, 0.92);
  box-shadow: 0 5px 35px 0 rgba(0, 0, 0, 0.06);
}

/*
 * Header text / icons → black
 * Overrides theme .header--white { color:#FFF } and white nav links.
 */
.s-header .header,
.s-header .header.header--white,
.header--white:not(.s-header.scrolled .header--white),
.s-header .header__descr,
.s-header .header__nav a,
.s-header .header__services-btn,
.s-header .phone-block,
.s-header .phone-block__val,
.s-header .phone-block__descr,
.s-header .phone-block__callback,
.header--white:not(.s-header.scrolled .header--white) .header__nav a,
.header--white:not(.s-header.scrolled .header--white) .phone-block__descr,
.header--white:not(.s-header.scrolled .header--white) .phone-block__callback {
  color: #000 !important;
  text-shadow: none;
}

.s-header .phone-block__callback,
.header--white:not(.s-header.scrolled .header--white) .phone-block__callback {
  text-decoration-color: rgba(0, 0, 0, 0.35) !important;
}

@media (hover: hover) {
  .s-header .phone-block__callback:hover,
  .header--white:not(.s-header.scrolled .header--white) .phone-block__callback:hover {
    text-decoration-color: #000 !important;
  }
}

.s-header .phone-block__callback:active,
.header--white:not(.s-header.scrolled .header--white) .phone-block__callback:active {
  text-decoration-color: #000 !important;
}

/* Social icons: keep contrast on light header panel */
.s-header .header .soc,
.header--white:not(.s-header.scrolled .header--white) .soc {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}

.s-header .header .soc img,
.s-header .header .soc svg,
.header--white:not(.s-header.scrolled .header--white) .soc img,
.header--white:not(.s-header.scrolled .header--white) .soc svg {
  filter: none;
  color: #000;
  fill: #000;
}

@media (hover: hover) {
  .s-header .header .soc:hover,
  .header--white:not(.s-header.scrolled .header--white) .soc:hover {
    background: rgba(0, 0, 0, 0.12);
  }
}

/*
 * SearchWP: keep original field look — only gray → black
 * (text, border, icon, placeholder). No dark redesign.
 */
.s-header .searchwp-form,
.s-header .searchwp-form-input-container,
.s-header .swp-input,
.s-header .swp-input--search,
.s-header #searchwp-form-1 input[type="search"],
.s-header #searchwp-form-1 input[type="text"],
.s-header .searchwp-form input[type="search"],
.s-header .searchwp-form input[type="text"],
.mob-panel .searchwp-form,
.mob-panel .searchwp-form-input-container,
.mob-panel .swp-input,
.mob-panel .swp-input--search,
.mob-panel #searchwp-form-1 input[type="search"],
.mob-panel #searchwp-form-1 input[type="text"],
.mob-panel .searchwp-form input[type="search"],
.mob-panel .searchwp-form input[type="text"] {
  color: #000 !important;
  caret-color: #000;
}

.s-header .swp-input,
.s-header .swp-input--search,
.s-header #searchwp-form-1 input[type="search"],
.s-header #searchwp-form-1 input[type="text"],
.s-header .searchwp-form input[type="search"],
.s-header .searchwp-form input[type="text"],
.mob-panel .swp-input,
.mob-panel .swp-input--search,
.mob-panel #searchwp-form-1 input[type="search"],
.mob-panel #searchwp-form-1 input[type="text"],
.mob-panel .searchwp-form input[type="search"],
.mob-panel .searchwp-form input[type="text"] {
  border-color: #000 !important;
}

.s-header .swp-input::placeholder,
.s-header .swp-input--search::placeholder,
.s-header #searchwp-form-1 input::placeholder,
.s-header .searchwp-form input::placeholder,
.mob-panel .swp-input::placeholder,
.mob-panel .swp-input--search::placeholder,
.mob-panel #searchwp-form-1 input::placeholder,
.mob-panel .searchwp-form input::placeholder {
  color: #000 !important;
  opacity: 1;
}

.s-header .swp-input::-webkit-input-placeholder,
.s-header .searchwp-form input::-webkit-input-placeholder,
.mob-panel .swp-input::-webkit-input-placeholder,
.mob-panel .searchwp-form input::-webkit-input-placeholder {
  color: #000 !important;
}

.s-header .swp-input::-moz-placeholder,
.s-header .searchwp-form input::-moz-placeholder,
.mob-panel .swp-input::-moz-placeholder,
.mob-panel .searchwp-form input::-moz-placeholder {
  color: #000 !important;
  opacity: 1;
}

.s-header .swp-input:-ms-input-placeholder,
.s-header .searchwp-form input:-ms-input-placeholder,
.mob-panel .swp-input:-ms-input-placeholder,
.mob-panel .searchwp-form input:-ms-input-placeholder {
  color: #000 !important;
}

.s-header .searchwp-form input[type="submit"],
.s-header #searchwp-form-1 input[type="submit"],
.s-header .searchwp-form button,
.s-header .searchwp-form .swp-input--button,
.s-header .searchwp-form svg,
.mob-panel .searchwp-form input[type="submit"],
.mob-panel #searchwp-form-1 input[type="submit"],
.mob-panel .searchwp-form button,
.mob-panel .searchwp-form .swp-input--button,
.mob-panel .searchwp-form svg {
  color: #000 !important;
  fill: #000;
  border-color: #000;
}

/* SearchWP default icon is #CFCFCF SVG on .swp-input--search — make it black */
.s-header .searchwp-form input.swp-input--search,
.mob-panel .searchwp-form input.swp-input--search {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none'%3E%3Cpath fill='%23000000' d='M6.068 12.136c1.31 0 2.533-.426 3.527-1.136l3.74 3.74c.174.173.402.26.64.26.512 0 .883-.395.883-.9a.87.87 0 0 0-.253-.63L10.89 9.744a6.04 6.04 0 0 0 1.247-3.677C12.136 2.73 9.406 0 6.068 0 2.722 0 0 2.73 0 6.068s2.722 6.068 6.068 6.068m0-1.31c-2.612 0-4.758-2.154-4.758-4.758S3.456 1.31 6.068 1.31c2.604 0 4.758 2.154 4.758 4.758s-2.154 4.758-4.758 4.758'/%3E%3C/svg%3E") !important;
}

/* Kill horizontal scroll on tablet/mobile (header overflow) */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@media (max-width: 1250px) {
  .s-header,
  .header-panel,
  .header,
  .container-wide {
    max-width: 100vw;
  }

  .header {
    gap: 12px;
    padding-right: 56px;
    box-sizing: border-box;
  }

  .header__left {
    min-width: 0;
    flex: 1 1 auto;
  }

  .header__logo img,
  .header__logo__karaway {
    max-width: min(160px, 42vw);
    height: auto;
  }

  .header__right {
    flex-shrink: 0;
  }

  .header__right .socs {
    flex-wrap: wrap;
    max-width: 42vw;
  }

  .phone-block__val {
    font-size: clamp(12px, 2.4vw, 15px);
    white-space: nowrap;
  }

  /* Page title under logo / head collision */
  .s-page-head {
    padding-top: 1.25rem;
    clear: both;
  }

  .s-page-head h1,
  .s-page-head .h1 {
    position: relative;
    z-index: 1;
    max-width: 100%;
    word-break: break-word;
  }

  .breadcrumbs {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .header {
    padding-right: 48px;
    gap: 8px;
  }

  .header__logo img,
  .header__logo__karaway {
    max-width: min(130px, 38vw);
  }

  .header__right .socs .soc:nth-child(n + 3) {
    display: none;
  }
}

/* 3. Promo (Акция) image crop on laptop */
.intro-trigger-banner {
  overflow: visible;
}

.intro-trigger-banner__img {
  max-height: none !important;
  width: auto !important;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
}

@media (min-width: 1025px) and (max-width: 1440px) {
  .intro-triggers {
    align-items: stretch;
  }

  .intro-trigger-banner {
    overflow: hidden;
    min-height: 280px;
  }

  .intro-trigger-banner__img {
    max-height: 100% !important;
    object-fit: contain;
  }
}

/* 4. Second feed / photos block overlap */
.s-home-photos,
.home-photos-slider,
.s-seo #sb_instagram,
.s-seo .sbi {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
}

.home-photos__dec-1,
.reviews-slider-block__dec-1,
.reviews-slider-block__dec-2,
.reviews-slider-block__dec-3 {
  pointer-events: none;
  max-width: 40vw;
}

.s-seo {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* Blocks protruding past main column */
.main-container,
.s-def .container,
.s-def .container-wide,
.s-def .container-middle {
  max-width: 100%;
}

@media (max-width: 1250px) {
  .anim-preview,
  .prog-incs-grid,
  .tariffs,
  .places__list {
    overflow: hidden;
  }
}

/* 6. Bitrix online chat: lower + safer z-index */
#b24-widget-button-wrapper,
.b24-widget-button-wrapper,
.bx-livechat-wrapper,
div[class*="b24-widget-button"] {
  z-index: 35 !important;
}

#b24-widget-button-wrapper,
.b24-widget-button-wrapper {
  bottom: 18px !important;
  right: 18px !important;
}

@media (max-width: 768px) {
  #b24-widget-button-wrapper,
  .b24-widget-button-wrapper {
    bottom: 72px !important;
    right: 12px !important;
    z-index: 30 !important;
  }
}

/* Category / program scroll: reserve space, reduce jump */
.s-page-head,
.breadcrumbs,
.filter-block,
#filter {
  scroll-margin-top: 100px;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Keep tablet cards from overflowing, but keep heads visible */
@media (max-width: 1024px) {
  .anim-preview__img,
  .intro-trigger-banner__img,
  .home-photos__item__img,
  .prog-inc__img {
    object-fit: contain;
    object-position: top center;
    width: 100%;
    height: auto;
    max-height: none;
  }

  .anim-preview__stage {
    overflow: visible;
  }
}

/*
 * Homepage alignment: action banner cards and August promotion.
 * The campaign artwork is a square source image, so constrain it by the
 * banner/section bounds instead of allowing its intrinsic size to dictate
 * the layout.
 */
.s-intro-triggers {
  position: relative;
}

.intro-triggers {
  align-items: stretch;
}

.intro-trigger-banner {
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.intro-trigger-banner__title {
  max-width: 54%;
  overflow-wrap: anywhere;
}

.intro-trigger-banner__img {
  width: auto !important;
  height: auto;
  max-width: 46%;
  max-height: calc(100% - 12px) !important;
  object-fit: contain;
  object-position: right bottom;
}

/* The longer August copy needs a little more room than the standard card. */
.intro-trigger-banner[href="/aktsiya/"] .intro-trigger-banner__title {
  width: 52%;
  max-width: 52%;
}

/* Keep the hero CTA row centred and consistently sized when more actions appear. */
.s-intro--home .intro__actions {
  flex-wrap: wrap;
  align-items: stretch;
}

.s-intro--home .intro__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/*
 * August promotion: reserve a dedicated text column and anchor the artwork
 * inside the purple section, preventing it from covering the CTA or leaking
 * into the following section.
 */
.s-home-quests {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.s-home-quests .container {
  position: relative;
  z-index: 1;
}

.s-home-quests .home-quests {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(300px, 27vw, 460px);
  max-width: min(48%, 560px);
}

.s-home-quests .home-quests__title,
.s-home-quests .home-quests__descr {
  max-width: 100%;
}

.s-home-quests .home-quests__descr {
  margin-bottom: 28px;
}

.s-home-quests .home-quests__img {
  left: auto;
  right: max(0px, calc((100vw - 1440px) / 2));
  bottom: 0;
  width: min(48vw, 680px);
  max-width: none;
  max-height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

@media (max-width: 1024px) {
  .intro-triggers {
    align-items: stretch;
  }

  .intro-trigger-banner {
    display: block;
    height: 112px;
  }

  .intro-trigger-banner__title,
  .intro-trigger-banner[href="/aktsiya/"] .intro-trigger-banner__title {
    width: 54%;
    max-width: 54%;
  }

  .intro-trigger-banner__img {
    width: auto !important;
    height: auto;
    max-width: 44%;
    max-height: calc(100% - 8px) !important;
    object-fit: contain;
  }

  .s-home-quests .home-quests {
    min-height: clamp(280px, 40vw, 380px);
    max-width: 50%;
  }

  .s-home-quests .home-quests__img {
    right: -3vw;
    width: min(54vw, 560px);
  }
}

@media (max-width: 680px) {
  .s-intro--home .intro__actions {
    justify-content: center;
  }

  .s-intro--home .intro__actions .btn {
    width: min(100%, 320px);
  }

  .s-home-quests .home-quests {
    align-items: center;
    min-height: 0;
    max-width: none;
    text-align: center;
  }

  .s-home-quests .home-quests__title,
  .s-home-quests .home-quests__descr {
    margin-left: auto;
    margin-right: auto;
  }

  .s-home-quests .home-quests__img {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 520px);
    max-width: 100%;
    max-height: none;
    margin: 20px auto 0;
  }
}

@media (max-width: 480px) {
  .intro-trigger-banner {
    width: 100%;
    min-height: 112px;
    height: auto;
  }

  .intro-trigger-banner__title,
  .intro-trigger-banner[href="/aktsiya/"] .intro-trigger-banner__title {
    width: 55%;
    max-width: 55%;
  }
}

/*
 * Hero video: keep the TOP of the frame visible (cover was cropping heads).
 * Also applied below 1251px where the header still overlays.
 */
@media (min-width: 1025px) {
  .s-intro--home .intro__img-wrap {
    overflow: hidden;
  }

  .s-intro--home #bx_651765591_5 {
    top: 0 !important;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-width: 0 !important;
    min-height: 0 !important;
  }

  .s-intro--home video.main-bg {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover !important;
    object-position: top center !important;
  }
}

/*
 * Grids + carousels: keep full figure AND heads.
 * contain + top: the face stays in frame even if the card is short.
 * Do not overflow-hide the top of the stage / lift the image on hover.
 */
.anim-preview {
  overflow: hidden;
}

.anim-preview__stage {
  overflow: visible !important;
}

.anim-preview__img,
.animators-slider .anim-preview__img,
.animators-grid .anim-preview__img {
  top: 0 !important;
  left: 0 !important;
  right: 0;
  bottom: auto;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: top center !important;
}

@media (hover: hover) {
  .anim-preview:hover .anim-preview__img {
    transform: none;
  }
}

.intro-trigger-banner__img,
.intro-trigger-banner[href="/kvesty/"] .intro-trigger-banner__img,
.intro-trigger-banner[href="/aktsiya/"] .intro-trigger-banner__img {
  object-fit: contain !important;
  object-position: top center !important;
}

.show-preview__head {
  overflow: hidden;
}

.show-preview__img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: top center !important;
}

.add-preview__img {
  object-fit: contain !important;
  object-position: top center !important;
}

.s-home-quests .home-quests__img {
  object-fit: contain !important;
  object-position: top center !important;
}

.home-photos__item {
  overflow: hidden;
}

.home-photos__item__img,
.home-photos__item video {
  object-fit: cover !important;
  object-position: top center !important;
}

/*
 * Program / service pages: unify stacked Elementor articles
 * (title + landscape photo + text) with the sick-seven 2-column layout.
 * Pages that already have carousel + tabs are left untouched.
 */
@media (min-width: 1025px) {
  .s-anim-about:not(:has(.elementor-col-33)):not(:has(.elementor-widget-tabs)) > .elementor {
    display: grid;
    grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
    gap: 24px 48px;
    align-items: start;
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 32px 48px;
  }

  .s-anim-about:not(:has(.elementor-col-33)):not(:has(.elementor-widget-tabs)) > .elementor > .elementor-top-section:first-child {
    grid-column: 1;
    grid-row: 1 / span 20;
  }

  .s-anim-about:not(:has(.elementor-col-33)):not(:has(.elementor-widget-tabs)) > .elementor > .elementor-top-section:nth-child(n + 2) {
    grid-column: 2;
  }

  .s-anim-about:not(:has(.elementor-col-33)):not(:has(.elementor-widget-tabs)) .elementor-section-full_width > .elementor-container {
    max-width: 100%;
    padding: 0;
  }

  .s-anim-about:not(:has(.elementor-col-33)):not(:has(.elementor-widget-tabs)) .elementor-widget-image img,
  .s-anim-about:not(:has(.elementor-col-33)):not(:has(.elementor-widget-tabs)) .elementor-section-full_width img {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    max-height: min(70vh, 720px);
    object-fit: contain !important;
    object-position: top center !important;
    margin-left: auto;
    margin-right: auto;
  }

  .s-anim-about:not(:has(.elementor-col-33)):not(:has(.elementor-widget-tabs)) > .elementor > .elementor-top-section:nth-child(n + 2) .elementor-widget-text-editor {
    background: #fffdf5;
    border-radius: 24px;
    padding: 8px 8px 8px 0;
    color: #4f453d;
  }
}

.s-anim-about .elementor-widget-image img,
.s-anim-about .elementor-image-carousel img,
.s-anim-about .swiper-slide-image,
.s-anim-about .gallery-icon img {
  object-fit: contain !important;
  object-position: top center !important;
}

/* Full-screen logo preloader */
.kw-preloader {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff6d6;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

.kw-preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.kw-preloader__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.kw-preloader__logo {
  display: block;
  width: min(240px, 58vw);
  height: auto;
  animation: kw-preloader-pulse 1.35s ease-in-out infinite;
  transform-origin: center;
}

@keyframes kw-preloader-pulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.78;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kw-preloader__logo {
    animation: none;
    opacity: 1;
  }

  .kw-preloader {
    transition-duration: 0.01ms;
  }
}

/*
 * News / blog article: readable column, no program chrome.
 */
.s-article {
  background: #fffdf5;
  padding: 8px 0 72px;
}

.s-article__head {
  padding: 12px 0 8px;
}

.s-article__head h1 {
  color: #4f453d;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.s-article__meta {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #7c7570;
  font-size: 14px;
  font-weight: 500;
}

.s-article__cat {
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff6d6;
  color: #4f453d;
}

.s-article__body,
.s-article__body.container {
  margin-top: 28px;
  color: #4f453d;
  font-size: 18px;
  line-height: 1.65;
}

.s-article__body > *:first-child {
  margin-top: 0;
}

.s-article__body p,
.s-article__body li {
  margin: 0 0 1em;
}

.s-article__body h2,
.s-article__body h3 {
  margin: 1.6em 0 0.55em;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.s-article__body img,
.s-article__body .aligncenter,
.s-article__body .wp-image,
.s-article__body figure:not(.gallery-item) {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: var(--br-40, 24px);
}

.s-article__body ul,
.s-article__body ol {
  padding-left: 1.2em;
}

.s-article__body a {
  color: #4f453d;
  text-decoration-color: #ffcf01;
  text-underline-offset: 3px;
}

/* Event / news galleries: site cards instead of WP 10-col dump */
.s-article .elementor,
.s-article .elementor-section,
.s-article .elementor-container,
.s-article .elementor-column,
.s-article .elementor-widget-wrap,
.s-article .elementor-image-gallery {
  max-width: 100%;
  width: 100%;
}

.s-article .elementor-section-boxed > .elementor-container {
  max-width: 100% !important;
  padding: 0 !important;
}

.s-article .gallery,
.s-article .elementor-image-gallery .gallery,
.s-article [class*="gallery-columns-"] {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap, 14px);
  width: 100% !important;
  margin: 8px 0 0 !important;
}

.s-article .gallery-item,
.s-article .gallery .gallery-item,
.s-article [class*="gallery-columns-"] .gallery-item {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left;
}

.s-article .gallery-icon,
.s-article .gallery-icon a {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  border-radius: var(--br-40, 24px);
  overflow: hidden;
  background: var(--panels, #efe9e9);
  box-shadow: 0 10px 30px rgba(79, 69, 61, 0.06);
}

.s-article .gallery-icon a {
  aspect-ratio: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.s-article .gallery-icon img,
.s-article .gallery-icon a img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: top center !important;
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .s-article .gallery-icon a:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(79, 69, 61, 0.12);
  }

  .s-article .gallery-icon a:hover img {
    transform: scale(1.04);
  }
}

.s-article .gallery-caption {
  display: none;
}

@media (max-width: 1024px) {
  .s-article .gallery,
  .s-article .elementor-image-gallery .gallery,
  .s-article [class*="gallery-columns-"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .s-article .gallery,
  .s-article .elementor-image-gallery .gallery,
  .s-article [class*="gallery-columns-"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .s-article .gallery-icon a {
    border-radius: 16px;
  }
}

.s-article-related {
  padding: 0 0 80px;
  background: #fffdf5;
}

.s-article-related .h2 {
  margin: 0 0 20px;
}

.s-article-related__list {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.s-article-related__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border-radius: 20px;
  color: #4f453d;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(79, 69, 61, 0.06);
}

.s-article-related__card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
}

.s-article-related__card span {
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .s-article-related__list {
    grid-template-columns: 1fr;
  }
}

body.kw-article .s-animators-incs,
body.kw-article .s-home-photos,
body.kw-article .s-tariffs,
body.kw-article .s-animators-slider {
  display: none !important;
}

/*
 * Program pages: hide empty Elementor leftovers, keep sick-seven rhythm.
 */
body.kw-program .s-anim-about {
  --ab-color: #fffdf5;
}

body.kw-program .s-anim-about .elementor-element:empty,
body.kw-program .s-anim-about .elementor-widget-wrap:empty,
body.kw-program .s-anim-about .elementor-section:empty {
  display: none !important;
}

body.kw-program .s-anim-about .elementor-widget-text-editor,
body.kw-program .s-anim-about .elementor-tab-content {
  color: #4f453d;
  font-size: 17px;
  line-height: 1.55;
}

body.kw-program .s-page-head {
  padding-bottom: 8px;
}
