/* ==========================================================================
   Редизайн 2026-10 — глобальные доработки поверх исходных стилей.
   Отключить всё разом: убрать <link redesign.css> из apps/site/index.html.
   ========================================================================== */
:root {
  --kz-lime: #a3cb02;
  --kz-green: #79c23d;
  --kz-ink: #050505;
  --kz-mist: #f5f5f5;
  --kz-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --kz-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Главные кнопки (2026-10, по просьбе владельца): салатовый фирменный + белый жирный текст с лёгкой тенью */
  --kz-cta-bg: linear-gradient(180deg, #a6d11c 0%, #86b80f 100%);
  --kz-cta-bg-hover: linear-gradient(180deg, #b3dc2a 0%, #92c414 100%);
  --kz-cta-solid: #93c414;
  --kz-cta-fg: #fff;
  --kz-cta-shadow: 0 12px 26px -14px rgb(120 170 10 / 0.95), inset 0 1px 0 rgb(255 255 255 / 0.3);
  --kz-cta-ring: 0 0 0 4px rgb(163 202 15 / 0.35);
}

/* ── Мобильное нижнее меню: центральная кнопка «Записаться» ── */
.menu-bar-item { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
.menu-bar-item--book { position: relative; }
.menu-bar-item--book .menu-bar-item__img {
  width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  background: var(--kz-lime); display: grid; place-items: center;
  box-shadow: 0 10px 22px -8px rgb(121 194 61 / 0.75), 0 0 0 5px #fff;
  transition: transform 0.25s var(--kz-spring);
  animation: kzBookPulse 3s var(--kz-ease) 2s infinite;
}
.menu-bar-item--book:active .menu-bar-item__img { transform: scale(0.92); }
.menu-bar-item--book .menu-bar-item__title { font-weight: 700; color: var(--kz-ink); }
@keyframes kzBookPulse {
  0% { box-shadow: 0 10px 22px -8px rgb(121 194 61 / 0.75), 0 0 0 5px #fff, 0 0 0 5px rgb(163 203 2 / 0.45); }
  70%, 100% { box-shadow: 0 10px 22px -8px rgb(121 194 61 / 0.75), 0 0 0 5px #fff, 0 0 0 16px rgb(163 203 2 / 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ── Появление при прокрутке (RevealObserver). Скрываем только при html.kz-motion ── */
.kz-motion [data-reveal] {
  opacity: 0;
  transition: opacity 0.8s var(--kz-ease), transform 0.9s var(--kz-ease), clip-path 1s var(--kz-ease), filter 0.8s var(--kz-ease);
  transition-delay: calc(var(--kz-i, 0) * 90ms);
  will-change: opacity, transform;
}
.kz-motion [data-reveal='up'] { transform: translateY(40px); }
.kz-motion [data-reveal='left'] { transform: translateX(-48px); }
.kz-motion [data-reveal='right'] { transform: translateX(48px); }
.kz-motion [data-reveal='scale'] { transform: scale(0.86) rotate(-6deg); filter: blur(6px); }
.kz-motion [data-reveal='clip'] { clip-path: inset(12% 12% 12% 12% round 20px); transform: scale(1.04); }
.kz-motion [data-reveal].kz-in { opacity: 1; transform: none; filter: none; }
.kz-motion [data-reveal='clip'].kz-in { clip-path: inset(0 0 0 0 round 20px); }
.kz-motion [data-reveal-stagger] > * { transition-delay: calc(var(--kz-i, 0) * 90ms); }

[data-parallax] { transform: translate3d(0, var(--kz-par, 0px), 0); will-change: transform; }

/* ── Главная: «Преимущества спортпарка» ── */
.section-advantages { opacity: 1 !important; transform: none !important; }
.section-advantages__title { position: relative; display: block; }
.kz-motion .section-advantages__title[data-reveal] { transform: translateY(24px); }
.kz-motion .section-advantages__title[data-reveal].kz-in { transform: none; }
.advantages-item { position: relative; overflow: hidden; isolation: isolate; transition: transform 0.5s var(--kz-ease), box-shadow 0.5s var(--kz-ease); }
@media (hover: hover) {
  .advantages-item:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -28px rgb(5 5 5 / 0.45); }
  .advantages-item .img { transition: transform 1.1s var(--kz-ease); }
  .advantages-item:hover .img { transform: scale(1.06) translate3d(0, var(--kz-par, 0px), 0); }
}
/* световой блик по карточке при наведении */
.advantages-item::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.28) 48%, transparent 62%);
  transform: translateX(-120%); transition: transform 0.9s var(--kz-ease);
}
@media (hover: hover) { .advantages-item:hover::after { transform: translateX(120%); } }
/* заголовок карточки — «вырастает» снизу */
.kz-motion .advantages-item .title { display: inline-block; transform: translateY(18px); opacity: 0; transition: transform 0.9s var(--kz-ease) 0.25s, opacity 0.9s var(--kz-ease) 0.25s; }
.kz-motion .advantages-item.kz-in .title, .kz-motion .kz-in .advantages-item .title { transform: none; opacity: 1; }
/* медаль «турниры»: лавры раскрываются, кольца вращаются */
.advantages-element__circle { animation: kzSpin 40s linear infinite; }
.advantages-element__circle.in { animation-direction: reverse; animation-duration: 28s; }
@keyframes kzSpin { from { transform: translateX(1px) rotate(0deg); } to { transform: translateX(1px) rotate(360deg); } }
.kz-motion .advantages-element .advantages-element__laurel { opacity: 0; transform: rotate(-25deg) scale(0.8); transition: transform 1.1s var(--kz-spring) 0.35s, opacity 0.8s var(--kz-ease) 0.35s; }
.kz-motion .advantages-element .advantages-element__laurel.right { transform: scaleX(-1) rotate(-25deg) scale(0.8); }
.kz-motion .advantages-element.kz-in .advantages-element__laurel { opacity: 1; transform: none; }
.kz-motion .advantages-element.kz-in .advantages-element__laurel.right { transform: scaleX(-1); }
.advantages-element__main { transition: transform 0.6s var(--kz-spring); }
@media (hover: hover) { .advantages-element:hover .advantages-element__main { transform: scale(1.04) rotate(-2deg); } }
/* иконки в нижнем ряду мягко «плавают» */
.section-advantages__items.grid3 .icon { animation: kzFloat 5s ease-in-out infinite; }
.section-advantages__items.grid3 .advantages-item:nth-child(2) .icon { animation-delay: -1.6s; }
.section-advantages__items.grid3 .advantages-item:nth-child(3) .icon { animation-delay: -3.2s; }
@keyframes kzFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.kz-cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; position: relative; z-index: 4; }
.kz-cta-row .button { height: 40px; padding: 0 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 20px -10px rgb(121 194 61 / 0.8); transition: transform 0.25s var(--kz-spring), box-shadow 0.25s; }
.kz-cta-row .button:hover { transform: translateY(-2px); }
.kz-cta-row--corner { position: absolute; left: 25px; bottom: 22px; margin: 0; }
@media (max-width: 840px) { .kz-cta-row--corner { left: 15px; bottom: 15px; } }

/* ── Меню: бургер (телефон) ── */
.burger-menu {
  clip-path: circle(0% at calc(100% - 40px) -40px);
  transform: none !important; opacity: 1 !important;
  transition: clip-path 0.6s var(--kz-ease), visibility 0s linear 0.6s !important;
}
.burger-menu.active { clip-path: circle(150% at calc(100% - 40px) -40px); transition: clip-path 0.7s var(--kz-ease), visibility 0s !important; }
.burger-menu__menu li, .kz-burger-cta {
  opacity: 0; transform: translateX(28px);
  transition: opacity 0.35s var(--kz-ease), transform 0.5s var(--kz-ease), background 0.25s;
}
.burger-menu.active .burger-menu__menu li, .burger-menu.active .kz-burger-cta { opacity: 1; transform: none; }
.burger-menu.active .kz-burger-cta { transition-delay: 0.12s; }
.burger-menu.active .burger-menu__menu li:nth-child(1) { transition-delay: 0.16s; }
.burger-menu.active .burger-menu__menu li:nth-child(2) { transition-delay: 0.2s; }
.burger-menu.active .burger-menu__menu li:nth-child(3) { transition-delay: 0.24s; }
.burger-menu.active .burger-menu__menu li:nth-child(4) { transition-delay: 0.28s; }
.burger-menu.active .burger-menu__menu li:nth-child(5) { transition-delay: 0.32s; }
.burger-menu.active .burger-menu__menu li:nth-child(6) { transition-delay: 0.36s; }
.burger-menu.active .burger-menu__menu li:nth-child(7) { transition-delay: 0.4s; }
.burger-menu.active .burger-menu__menu li:nth-child(8) { transition-delay: 0.44s; }
.burger-menu.active .burger-menu__menu li:nth-child(n+9) { transition-delay: 0.48s; }
.burger-menu__menu li a { position: relative; }
.burger-menu__menu li a::after { content: '→'; font-size: 20px; color: #666666; transition: transform 0.3s var(--kz-spring), color 0.2s; }
.burger-menu__menu li:active { transform: scale(0.98); }
.burger-menu__menu li:has(a.active) { background: var(--kz-lime); color: #0d0d0d; }
.burger-menu__menu li a.active::after { color: #fff; }
@media (hover: hover) { .burger-menu__menu li:hover a::after { transform: translateX(6px); color: var(--kz-ink); } }
.kz-burger-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 0 10px; }
.kz-burger-cta .button { height: 54px; border-radius: 60px; font-size: 16px; font-weight: 600; justify-content: center; }
.kz-burger-cta .button.gray { background: #f0f0f0; color: var(--kz-ink); }
/* сервис-меню (плитки в бургере): каскад */
.burger-menu .main_services__items > a { opacity: 0; transform: translateY(18px) scale(0.96); transition: opacity 0.4s var(--kz-ease), transform 0.55s var(--kz-spring); }
.burger-menu.active .main_services__items > a { opacity: 1; transform: none; }
.burger-menu.active .main_services__items > a:nth-child(2) { transition-delay: 0.05s; }
.burger-menu.active .main_services__items > a:nth-child(3) { transition-delay: 0.1s; }
.burger-menu.active .main_services__items > a:nth-child(4) { transition-delay: 0.15s; }
.burger-menu.active .main_services__items > a:nth-child(5) { transition-delay: 0.2s; }
.burger-menu.active .main_services__items > a:nth-child(6) { transition-delay: 0.25s; }
.burger-menu.active .main_services__items > a:nth-child(7) { transition-delay: 0.3s; }
.burger-menu.active .main_services__items > a:nth-child(8) { transition-delay: 0.35s; }

/* ── Меню: верхняя строка (десктоп) ── */
.fast-line__menu > li > a { position: relative; transition: color 0.2s; }
.fast-line__menu > li > a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--kz-lime); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--kz-ease);
}
.fast-line__menu > li > a:hover::after, .fast-line__menu > li > a.active::after { transform: scaleX(1); transform-origin: left; }
.fast-line__menu > li > a.active { color: var(--kz-ink); font-weight: 600; }
.menu-upper { transform: translateY(8px); box-shadow: 0 18px 30px -18px rgb(5 5 5 / 0.35); transition: opacity 0.25s var(--kz-ease), transform 0.3s var(--kz-ease), visibility 0.25s !important; }
.fast-line__menu li:hover .menu-upper { transform: none; }
.menu-upper a { transition: color 0.2s, padding-left 0.25s var(--kz-ease); }
.menu-upper a:hover { color: var(--kz-green); padding-left: 18px; }

/* ── Плитки видов спорта (шапка и меню) ── */
.services-item .services-item__imgs .background { transition: transform 0.8s var(--kz-ease); }
.services-item .services-item__imgs .img { transition: transform 0.6s var(--kz-spring); transform-origin: 60% 60%; }
@media (hover: hover) {
  .services-item:hover .services-item__imgs .background { transform: scale(1.08); }
  .services-item:hover .services-item__imgs .img { transform: rotate(-4deg) scale(1.05) translateY(-3px); }
}
.services-item .button { transition: transform 0.3s var(--kz-spring), background 0.2s, color 0.2s; }
/* Дрейф в покое (2026-10): передний слой и фон плиток медленно «плавают». Через translate/rotate/scale
   (отдельные свойства, не transform) — поэтому наведение работает поверх. Вне экрана — пауза (ServicesBar). */
@keyframes kzDrift {
  0% { translate: 0 0; rotate: 0deg; }
  50% { translate: var(--dx, 4px) var(--dy, -4px); rotate: var(--dr, 1.2deg); }
  100% { translate: calc(var(--dx, 4px) * -0.6) calc(var(--dy, -4px) * -0.7); rotate: calc(var(--dr, 1.2deg) * -0.5); }
}
@keyframes kzDriftBg { from { scale: 1.04; translate: 0 0; } to { scale: 1.06; translate: calc(var(--dx, 3px) * -0.4) calc(var(--dy, -3px) * -0.3); } }
.main_services__items .services-item__imgs .img { animation: kzDrift var(--d, 8s) ease-in-out var(--dl, 0s) infinite alternate; will-change: translate, rotate; }
.main_services__items .services-item__imgs .background { animation: kzDriftBg calc(var(--d, 8s) * 1.3) ease-in-out var(--dl, 0s) infinite alternate; }
.main_services__items > a:nth-child(1) .services-item { --d: 13.1s; --dl: -1.1s; --dx: 3px; --dy: -3px; --dr: 0.78deg; }
.main_services__items > a:nth-child(2) .services-item { --d: 11.2s; --dl: -3.4s; --dx: -3px; --dy: -2px; --dr: -0.72deg; }
.main_services__items > a:nth-child(3) .services-item { --d: 15.0s; --dl: -0.5s; --dx: 2px; --dy: 3px; --dr: 0.66deg; }
.main_services__items > a:nth-child(4) .services-item { --d: 10.2s; --dl: -2.6s; --dx: -3px; --dy: 2px; --dr: -0.9deg; }
.main_services__items > a:nth-child(5) .services-item { --d: 12.2s; --dl: -4.8s; --dx: 2px; --dy: -3px; --dr: -0.66deg; }
.main_services__items > a:nth-child(6) .services-item { --d: 15.7s; --dl: -1.9s; --dx: -3px; --dy: -2px; --dr: 0.75deg; }
.main_services__items > a:nth-child(7) .services-item { --d: 10.9s; --dl: -4.1s; --dx: 3px; --dy: 2px; --dr: 0.6deg; }
.main_services__items > a:nth-child(8) .services-item { --d: 14.1s; --dl: -0.8s; --dx: -3px; --dy: 3px; --dr: -0.84deg; }
.main_services.is-offscreen .services-item__imgs .img,
.main_services.is-offscreen .services-item__imgs .background { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .main_services__items .services-item__imgs .img,
  .main_services__items .services-item__imgs .background { animation: none; }
}
.services-item:hover .button { transform: translateY(-3px); }

/* ── Кнопка «Бронирование» в шапке: блик ── */
.main_header__buttons .button:not(.cabinet) { position: relative; overflow: hidden; }
.main_header__buttons .button:not(.cabinet)::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / 0.45) 50%, transparent 65%);
  transform: translateX(-120%); animation: kzShine 5s var(--kz-ease) 3s infinite;
}
@keyframes kzShine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ── Мобильная версия новых страниц: body там серый (#f5f5f5), поэтому контролы — белые ── */
@media (max-width: 840px) {
  .cp-tab, .sp-chip, .tc-chip, .cp-toggle, .cp-search, .tc-search, .sp-btn--ghost, .cp-btn--ghost, .tc-btn--ghost { background-color: #fff !important; }
  .cp-tab[aria-pressed="true"], .sp-chip[aria-pressed="true"], .tc-chip[aria-pressed="true"] { background-color: #050505 !important; }
  .tc-seg { background: #fff; }
  .tc-seg button[aria-pressed="true"] { background: #f5f5f5; box-shadow: none; }
  .cp-tabs, .sp-filters, .tc-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -8px; margin-right: -8px; padding: 0 8px; }
  .cp-tabs::-webkit-scrollbar, .sp-filters::-webkit-scrollbar, .tc-chips::-webkit-scrollbar { display: none; }
  .cp-tab, .sp-chip, .tc-chip { flex: none; }
  .cp-title, .sp-title, .tc-title, .ch-title { font-size: 28px !important; }
}
@media (max-width: 640px) {
  .cp-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .cp-card__body { padding: 10px 12px 12px !important; gap: 8px !important; }
  .cp-card__name { font-size: 14px !important; }
  .cp-card__role, .cp-card__more { display: none !important; }
  .cp-card .cp-btn { height: 40px; font-size: 13px; }
  .cp-card__badge { font-size: 10px; padding: 4px 8px; }
}

/* ── Шапка: верхняя строка читаемая (было 8px) ── */
.fast-line { height: 44px; }
.fast-line__menu { font-size: 12.5px; font-weight: 500; }
.fast-line__menu > li > a { padding: 0 9px; color: #3a3a3a; }
.fast-line__menu > li > a::after { left: 9px; right: 9px; }
.fast-line .line-live .h8, .fast-line .line-live p { font-size: 12px; }
.fast-line__search svg { width: 13px; }
.line-icons__icon svg { transform: scale(1.25); }
.menu-upper { min-width: 240px; padding: 6px 0; border-radius: 0 0 16px 16px; font-size: 13px; }
.menu-upper a { padding: 7px 16px !important; }
/* основная шапка: аккуратнее подсказка последней новости и кнопки */
.main_header__last-news { border-radius: 14px; padding: 8px 12px; transition: background 0.2s; }
.main_header__last-news:hover { background: #f5f5f5; }
.main_header__buttons .button { border-radius: 14px; transition: transform 0.25s var(--kz-spring), background 0.2s; }
.main_header__buttons .button:hover { transform: translateY(-2px); }
.header-chapter__icon { transition: transform 0.35s var(--kz-spring); }
.header-chapter:hover .header-chapter__icon { transform: rotate(-10deg) scale(1.08); }

/* ── Общие компоненты редизайна: пустые состояния и кнопки ── */
.kz-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 24px; border-radius: 28px; background: linear-gradient(135deg, #f7f9ee, #f5f5f5); margin: 10px 0 30px; }
.kz-empty__ic { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 34px; background: #fff; box-shadow: 0 16px 30px -20px rgb(5 5 5 / 0.4); animation: kzFloat 5s ease-in-out infinite; }
.kz-empty__title { font-size: 24px; font-weight: 800; margin: 6px 0 0; letter-spacing: -0.01em; }
.kz-empty__text { font-size: 15px; color: #5b5b5b; max-width: 460px; line-height: 1.5; margin: 0; }
.kz-empty__btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.kz-btn { height: 48px; padding: 0 22px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; transition: transform 0.25s var(--kz-spring), background 0.2s; }
.kz-btn:hover { transform: translateY(-2px); }
.kz-btn--lime { background: var(--kz-cta-bg); color: var(--kz-cta-fg); box-shadow: var(--kz-cta-shadow); text-shadow: 0 1px 2px rgb(50 80 0 / .45); }
.kz-btn--lime:hover { background: var(--kz-cta-bg-hover); box-shadow: var(--kz-cta-shadow), var(--kz-cta-ring); }
.kz-btn--ghost { background: #fff; color: var(--kz-ink); box-shadow: 0 0 0 1px #e8e8e8; }
.kz-btn--dark { background: var(--kz-ink); color: #fff; }

/* ── Текстовые страницы (документы, правила, оферта, политика) ── */
.section-text .container { max-width: 980px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.section-text .section-text__title { margin: 0 0 20px !important; }
.section-text__title { font-size: 40px !important; font-weight: 900 !important; letter-spacing: -0.03em; line-height: 1.1; }
.section-text__content, .text-content { font-size: 16px; line-height: 1.7; color: #262626; }
.section-text__content > p, .text-content > p { margin: 0 0 14px; max-width: 76ch; }
.section-text__content h2, .section-text__content h3, .text-content h2, .text-content h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 36px 0 12px; padding-top: 20px; border-top: 1px solid #efefef; scroll-margin-top: 90px; }
.section-text__content strong, .text-content strong { color: #050505; }
.section-text__content a, .text-content a { color: #4f7a00; text-decoration: underline; text-underline-offset: 3px; }
.section-text__content a:hover, .text-content a:hover { color: var(--kz-green); }
.section-text__content table, .text-content table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px #ececec; }
.section-text__content td, .section-text__content th, .text-content td, .text-content th { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; text-align: left; vertical-align: top; }
.section-text__content tr:nth-child(odd) td, .text-content tr:nth-child(odd) td { background: #fafafa; }
.kz-docnav { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 24px; }
.kz-docnav a { height: 36px; padding: 0 14px; border-radius: 999px; background: #f5f5f5; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: #050505; text-decoration: none; transition: background 0.2s; }
.kz-docnav a:hover { background: #eef6d3; }
.kz-docnav a.active { background: var(--kz-ink); color: #fff; }
@media (max-width: 840px) {
  .section-text__title { font-size: 28px !important; }
  .kz-empty { background: #fff; }
  .section-text .container { padding-left: 16px; padding-right: 16px; }
  /* Лента документов: прокрутка вбок с «затуханием» справа — видно, что есть ещё пункты */
  .kz-docnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin-left: -16px; margin-right: -16px; padding: 2px 16px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 40px), transparent); }
  .kz-docnav::-webkit-scrollbar { display: none; }
  .kz-docnav a { flex: none; background: #fff; scroll-snap-align: start; min-height: 40px; }
}
.section-text__content p, .section-text__content li, .text-content p, .text-content li { line-height: 1.65 !important; }

/* ── Главная: единый стиль заголовков секций и карточек верхнего блока ── */
.section-main__title { font-size: 20px !important; font-weight: 800 !important; letter-spacing: -0.01em; }
.section-advantages__title { font-size: 30px !important; font-weight: 800 !important; letter-spacing: -0.02em; text-align: left !important; margin-bottom: 18px !important; }
@media (max-width: 840px) { .section-advantages__title { font-size: 24px !important; } }
.main-about, .content-hotel__container, .main-school { transition: transform 0.45s var(--kz-ease), box-shadow 0.45s var(--kz-ease); }
@media (hover: hover) {
  .main-about:hover, .content-hotel__container:hover, .main-school:hover { transform: translateY(-5px); box-shadow: 0 28px 46px -30px rgb(5 5 5 / 0.45); }
  .main-about:hover .main-about__element { transform: rotate(-4deg) scale(1.03); }
  .main-school:hover .main-school__background { transform: scale(1.05); }
}
.main-about__element, .main-school__background { transition: transform 0.9s var(--kz-ease); }
.main-about, .main-school { overflow: hidden; }
.main-about__buttons .button { border-radius: 12px; transition: transform 0.25s var(--kz-spring), background 0.2s; }
.main-about__buttons .button:hover { transform: translateY(-2px); }
.main-school__link { transition: gap 0.25s; }
.main-school__link:hover { gap: 10px; }
.main-school__link:hover svg { transform: translate(2px, -2px); }
.main-school__link svg { transition: transform 0.25s; }

/* 2026-10 QA: тёмные варианты кнопок — белый текст. Главные кнопки теперь зелёные с белым текстом
   (см. «Главные кнопки» в конце файла) — иконки на них белые. */
.button.black { color: #fff; }
.button:not(.black):not(.gray):not(.white) > img { filter: brightness(0) invert(1); }
.button.black > img { filter: none; }

/* 2026-10 QA: на телефонах уже 392px контейнер (360/375px) прилипал к краям экрана — минимум 16px поля */
@media (max-width: 840px) {
  .container { max-width: min(360px, calc(100% - 32px)); }
  html body .cabinet-page .container { max-width: min(375px, calc(100% - 32px)); }
}

/* 2026-10 QA: базовые легаси-подписи .h7/.h8 на телефоне были 8–10px — нечитаемо.
   Нижняя граница только для базового правила (точечные правила с большей специфичностью не трогаем). */
@media (max-width: 840px) {
  html body .h7, html body .cabinet-page .h7 { font-size: 12px; }
  html body .h8, html body .cabinet-page .h8 { font-size: 11.5px; line-height: 1.35; }
}

/* 2026-10 QA: планшеты 600–840px — вместо узкой «телефонной» колонки 360px контейнер 600px */
@media (min-width: 600px) and (max-width: 840px) {
  .container { max-width: 600px; }
}

/* QA: подписи карточек-разделов отеля (.button.white) были 10px */
.button.white { font-size: 12px; }

/* QA (клавиатура): старые стили отключали outline везде — фокус не было видно.
   :focus-visible показывает рамку только при навигации с клавиатуры, мышью не мешает. */
html body :focus-visible {
  outline: 3px solid #a3cb02 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 5px rgb(13 13 13 / 0.85) !important;
  border-radius: 6px;
}
html body input:focus-visible, html body select:focus-visible, html body textarea:focus-visible { box-shadow: none !important; }
.kz-skip { position: fixed; left: 12px; top: -80px; z-index: 10000; padding: 12px 18px; border-radius: 12px; background: #0d0d0d; color: #fff !important; font: 700 15px 'Inter', sans-serif; text-decoration: none; transition: top 0.2s; }
.kz-skip:focus { top: 12px; }
.kz-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 840px) { .kz-desktop-only { display: none !important; } }

/* QA (iOS): поля с шрифтом <16px вызывают автоувеличение страницы при касании */
@media (max-width: 840px) {
  html body input:not([type=checkbox]):not([type=radio]):not([type=range]), html body select, html body textarea { font-size: max(16px, 1em) !important; }
}

/* Отель: единый лайм сайта (#A3CA0F) для главных кнопок «Проверить наличие» в шапке отеля
   (раньше #79C23D — рядом с лаймовой плавающей кнопкой было два разных зелёных). */
.page-hotel .main_header__buttons .button:not(.cabinet) { background: #a3ca0f; color: #0d0d0d; }
.page-hotel .main_header__buttons .button:not(.cabinet):hover { background: #8fb40c; }
.page-hotel .main_header__buttons .button:not(.cabinet) img { filter: brightness(0); }

/* 2026-10: обёртка .overflow (overflow:hidden) ломала position:sticky (подменю /hotel, навигация меню).
   clip режет так же, но не создаёт контейнер прокрутки; браузеры без clip оставят hidden. */
.overflow { overflow: clip; }

/* 2026-10: подписи «Отель / Спортпарк / Для детей» у иконок в шапке были 8px */
.header-chapter .h8 { font-size: 12px; line-height: 1.2; font-weight: 600; white-space: nowrap; }

/* ── Главная: блок преимуществ (2026-10, форк «Спортпарк») ──
   Площадка 20×40: текст в плашке поверх иллюстрации (раньше налезал на картинку).
   Карточки «Климат / Проживание / Спорт и восстановление»: высота по содержимому (раньше текст обрезался). */
.item-court .kz-court-card { position: relative; z-index: 2; justify-content: flex-end; height: 100%; }
.kz-court-card__title, .kz-court-card__text {
  margin: 0; max-width: 62%; background: rgb(255 255 255 / 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.kz-court-card__title { padding: 12px 14px 4px; border-radius: 14px 14px 0 0; font-weight: 800; font-size: 17px; line-height: 1.2; color: #050505; width: fit-content; }
.kz-court-card__text { padding: 2px 14px 12px; border-radius: 0 14px 14px 14px; font-size: 14px; line-height: 1.4; color: #333; }
.item-court .img { object-position: right top; }
.section-advantages__items.grid3.kz-feature-cards { height: auto; align-items: stretch; }
.kz-feature-cards .advantages-item { padding: 26px 26px 28px; border-radius: 20px; transition: transform .35s var(--kz-ease, ease), box-shadow .35s; }
.kz-feature-cards .advantages-item__container { justify-content: flex-start; gap: 18px; }
.kz-feature-cards .advantages-item__head { align-items: center; margin-bottom: 0; }
.kz-feature-cards .advantages-item__head .icon, .kz-feature-cards .icons .icon { width: 52px; height: 52px; flex: none; }
.section-advantages__items.grid3.kz-feature-cards .advantages-item__content { height: auto; }
.kz-feature-cards .advantages-item__content .text { font-size: 15px; line-height: 1.5; color: #333; }
.kz-feature-list { flex-direction: column; gap: 10px; }
.kz-feature-list .text { position: relative; padding-left: 16px; }
.kz-feature-list .text::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: #a3cb02; }
@media (hover: hover) { .kz-feature-cards .advantages-item:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgb(5 5 5 / 0.35); } }
@media (max-width: 840px) {
  .kz-court-card__title, .kz-court-card__text { max-width: 100%; }
  .advantages-item.item-court { height: auto; min-height: 300px; padding-top: 200px; }
  .item-court .img { height: 220px; top: 0; object-fit: contain; }
  .kz-feature-cards .advantages-item { padding: 22px; }
  /* круг «Инфраструктура…» на телефоне: без пустой полосы над ним */
  .section-advantages__items.grid2-5 { gap: 12px; }
  .advantages-element { position: relative; height: 270px; }
  .advantages-element__main { top: 6px; }
  .advantages-element__back { bottom: -6px; }
}

/* ── Главные кнопки (2026-10) ─────────────────────────────────────────────
   Владелец: «кнопки с зелёным фоном и тёмным текстом выглядят странно». Все лаймовые CTA —
   насыщенный зелёный с белым жирным текстом, при наведении — светлее и лаймовое свечение.
   Лайм остаётся акцентом (выбранные дни, отметки, точки). Специфичность через html — поверх модулей. */
html .button:where(:not(.gray, .white, .black)),
html [class*="_btnLime_"] {
  background: var(--kz-cta-bg); color: var(--kz-cta-fg); font-weight: 700;
  box-shadow: var(--kz-cta-shadow); text-shadow: 0 1px 2px rgb(50 80 0 / 0.45);
}
html .button:where(:not(.gray, .white, .black)):hover,
html [class*="_btnLime_"]:hover {
  background: var(--kz-cta-bg-hover); color: var(--kz-cta-fg);
  box-shadow: var(--kz-cta-shadow), var(--kz-cta-ring);
}
html .button.hover-green-light:before { background: var(--kz-cta-bg-hover); }
html [class*="_btnLime_"]:disabled { background: #b9bdb2; box-shadow: none; text-shadow: none; }
html [class*="_btnLime_"] svg { color: currentColor; }
html [class*="_btnLime_"] svg :is([stroke="#0d0d0d" i], [stroke="#050505"], [stroke="#000" i], [stroke="#000000"], [stroke="black"]) { stroke: currentColor; }
html [class*="_btnLime_"] svg :is([fill="#0d0d0d" i], [fill="#050505"], [fill="#000" i], [fill="#000000"], [fill="black"]) { fill: currentColor; }


/* QA 2026-10-04 (телефон): «Футбольный манеж» — текст обрезался (фикс. высота 255px и две колонки),
   «1000 лк» — подпись налезала на прожектор. */
@media (max-width: 840px) {
  .advantages-item.item-football { height: auto; min-height: 300px; }
  .advantages-item.item-football .advantages-item__head { flex-direction: column; gap: 6px; position: relative; z-index: 1; padding-bottom: 120px; }
  .advantages-item.item-football .title, .advantages-item.item-football .text { max-width: 100%; }
  .advantages-item.item-light .img { height: 78%; -webkit-mask-image: linear-gradient(to left, #000 60%, transparent); mask-image: linear-gradient(to left, #000 60%, transparent); }
  .advantages-item.item-light .advantages-item__content { position: relative; z-index: 1; }
  .advantages-item.item-light .text { max-width: 58%; text-shadow: 0 1px 8px #000; }
}

/* QA 2026-10-04: подписи 10px → 12px (бейдж «Для детей» на главной, подпись в круге «Инфраструктура…») */
.main-school__tag .h7 { font-size: 12px; }
.advantages-element__text .h7 { font-size: 12px; line-height: 1.2; }
.main-school__link { min-height: 32px; }
/* круг «Инфраструктура позволяет принимать турниры» на компьютере уже 160px — заголовок обрезался по краям */
@media (min-width: 841px) { .advantages-element__text .h5 { font-size: 13px; line-height: 1.15; letter-spacing: -0.01em; } }

/* Кнопки на первом экране главной (телефон): «Записаться» + «Цены» */
.kz-hero-actions { position: relative; z-index: 3; display: flex; gap: 10px; margin-top: 14px; }
.kz-hero-actions .button { height: 48px; padding: 0 22px; border-radius: 14px; font-size: 16px; }
.kz-hero-actions .button.white { background: #fff; color: #0d0d0d; box-shadow: 0 0 0 1.5px #0d0d0d inset; text-shadow: none; }
