/*
 * ENERGY Fitness — основной файл стилей
 * Сохраняет подключение базовых стилей проекта и объединяет дополнительные
 * компоненты: cookies, подвал, рекламное окно, анимации и выбор филиала.
 */

@import url('base.css');
@import url('sections.css');
@import url('carousels.css');
@import url('ui.css');

/* =========================================================
   ОБЩИЕ ПЕРЕМЕННЫЕ И БАЗОВЫЕ ПРАВИЛА
   ========================================================= */

:root {
  --energy-yellow: #FFD600;
  --energy-yellow-soft: rgba(255, 214, 0, .14);
  --energy-black: #0b0b0b;
  --energy-panel: #171717;
  --energy-panel-light: #202020;
  --energy-border: rgba(255, 255, 255, .10);
  --energy-text: #f5f5f5;
  --energy-muted: #a5a5a5;
  --energy-radius: 16px;
  --energy-shadow: 0 18px 55px rgba(0, 0, 0, .35);
  --energy-ease: cubic-bezier(.2, .75, .25, 1);
}

* {
  box-sizing: border-box;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--energy-yellow);
  outline-offset: 3px;
}

/* =========================================================
   COOKIE-БАННЕР
   ========================================================= */

.cookie-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 9999;
  padding: 16px 24px;
  color: var(--energy-text);
  background: rgba(10, 10, 10, .96);
  border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(105%);
  transition: transform .45s var(--energy-ease);
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-consent__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  width: min(100%, 1200px);
  margin: 0 auto;
}

.cookie-consent__text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 300px;
  min-width: 0;
}

.cookie-consent__text p {
  margin: 0;
  color: #c8c8c8;
  font-size: 14px;
  line-height: 1.55;
}

.cookie-consent__buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.cookie-consent__btn:hover {
  transform: translateY(-1px);
}

.cookie-consent__btn--accept {
  color: #111;
  background: var(--energy-yellow);
}

.cookie-consent__btn--accept:hover {
  background: #ffe34d;
}

.cookie-consent__btn--settings {
  color: #e5e5e5;
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .14);
}

.cookie-consent__btn--settings:hover {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .24);
}

/* =========================================================
   МОДАЛЬНОЕ ОКНО НАСТРОЕК COOKIES
   ========================================================= */

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.cookie-modal.active {
  display: flex;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.cookie-modal__content {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-width: 560px;
  max-height: min(86dvh, 760px);
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--energy-text);
  background: #191919;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 17px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .65);
  animation: energyModalIn .32s var(--energy-ease) both;
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid #2b2b2b;
}

.cookie-modal__header h3 {
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cookie-modal__close {
  flex: 0 0 auto;
  padding: 0;
  color: #999;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}

.cookie-modal__close:hover {
  color: #fff;
  transform: rotate(90deg);
}

.cookie-modal__body {
  padding: 18px 22px;
}

.cookie-modal__body > p {
  margin: 0 0 16px;
  color: #aaa;
  line-height: 1.55;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid #2b2b2b;
}

.cookie-option:last-child {
  border-bottom: 0;
}

.cookie-option > div {
  flex: 1;
  min-width: 0;
}

.cookie-option strong {
  color: #eee;
}

.cookie-option p {
  margin: 4px 0 0;
  color: #999;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Переключатели cookies */

.cookie-toggle {
  position: relative;
  display: inline-block;
  flex: 0 0 50px;
  width: 50px;
  height: 28px;
  margin-top: 2px;
}

.cookie-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: #393939;
  cursor: pointer;
  transition: background .22s ease;
}

.cookie-toggle__slider::before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #858585;
  transition: transform .22s ease, background .22s ease;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: #b99c00;
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(22px);
  background: #fff;
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
  opacity: .5;
  cursor: not-allowed;
}

.cookie-toggle input:focus-visible + .cookie-toggle__slider {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.cookie-modal__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 22px 22px;
  border-top: 1px solid #2b2b2b;
}

.cookie-modal__footer .cookie-consent__btn {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* =========================================================
   ПОДВАЛ И РЕКВИЗИТЫ
   ========================================================= */

.footer {
  padding: 40px 0 20px;
  color: #ddd;
  background: #0a0a0a;
  border-top: 1px solid #202020;
}

.footer__container {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid #202020;
}

.footer__logo-img {
  display: block;
  width: auto;
  height: 50px;
  max-width: 100%;
  object-fit: contain;
}

.footer__info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #777;
  font-size: 14px;
}

.footer__divider {
  color: #444;
}

.footer__requisites {
  padding: 25px 0;
  border-bottom: 1px solid #202020;
}

.footer__requisites-title {
  margin: 0 0 16px;
  color: #999;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer__requisites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px 30px;
}

.footer__requisites-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.footer__requisites-label {
  color: #777;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer__requisites-value {
  color: #d0d0d0;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.footer__bottom {
  padding-top: 20px;
  text-align: center;
}

.footer__motto {
  margin: 0;
  color: #666;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .2em;
}

/* Юридические ссылки в подвале */

.footer__legal--links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 18px;
}

.footer-legal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  max-width: 100%;
  padding: 8px 13px;
  color: #b9c4c1;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible {
  color: var(--energy-yellow);
  background: rgba(255, 214, 0, .09);
  border-color: var(--energy-yellow);
  transform: translateY(-1px);
  outline: none;
}

.footer-legal-link--button {
  appearance: none;
  font-family: inherit;
}

/* =========================================================
   ОКНО АКЦИИ / РЕКЛАМНОЕ ОКНО
   ========================================================= */

body.energy-campaign-open {
  overflow: hidden;
}

.energy-campaign-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 8, 10, .80);
  backdrop-filter: blur(12px) saturate(.8);
  -webkit-backdrop-filter: blur(12px) saturate(.8);
  perspective: 1200px;
  animation: energyFadeIn .28s ease both;
}

.energy-campaign-overlay.is-closing {
  animation: energyFadeOut .22s ease both;
  pointer-events: none;
}

.energy-campaign-card {
  position: relative;
  isolation: isolate;
  width: min(540px, 100%);
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(155deg, #242424 0%, #121212 65%, #191919 100%);
  border: 1px solid rgba(255, 214, 0, .5);
  border-radius: 25px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .62), 0 0 55px rgba(255, 214, 0, .09);
  animation: energyCampaignEntrance .62s var(--energy-ease) both;
}

.energy-campaign-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 12%;
  width: 76%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 230, 80, .9), transparent);
  pointer-events: none;
}

.energy-campaign-visual {
  position: relative;
  height: clamp(160px, 32vw, 245px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 214, 0, .32), transparent 58%),
    linear-gradient(135deg, #343019, #151515 70%);
}

.energy-campaign-visual::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(15, 15, 15, .36));
  pointer-events: none;
}

.energy-campaign-visual--empty {
  height: 118px;
}

.energy-campaign-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  animation: energyCampaignImageIn .9s var(--energy-ease) both;
}

.energy-campaign-close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #fff;
  background: rgba(10, 10, 10, .58);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  font-size: 27px;
  line-height: 1;
  opacity: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .2s ease, color .2s ease, transform .25s ease, border-color .2s ease;
}

.energy-campaign-close:hover {
  color: #111;
  background: var(--energy-yellow);
  border-color: var(--energy-yellow);
  transform: rotate(90deg);
}

.energy-campaign-content {
  position: relative;
  z-index: 2;
  padding: 28px clamp(22px, 5vw, 38px) 34px;
}

.energy-campaign-tag {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 8px 12px;
  color: #ffe35a;
  background: rgba(255, 214, 0, .1);
  border: 1px solid rgba(255, 214, 0, .26);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  animation: energyCampaignTextIn .5s .12s both;
}

.energy-campaign-card h2 {
  max-width: 16ch;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.04;
  text-wrap: balance;
  animation: energyCampaignTextIn .55s .18s both;
}

.energy-campaign-card p {
  max-width: 52ch;
  margin: 0 0 25px;
  color: rgba(255, 255, 255, .76);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
  animation: energyCampaignTextIn .55s .24s both;
}

.energy-campaign-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 21px;
  color: #111;
  background: var(--energy-yellow);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 214, 0, .13);
  animation: energyCampaignTextIn .55s .3s both;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.energy-campaign-action:hover {
  background: #ffe34d;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 214, 0, .22);
}

.energy-campaign-action span {
  font-size: 19px;
  transition: transform .2s ease;
}

.energy-campaign-action:hover span {
  transform: translate(3px, -2px);
}

.energy-campaign-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 214, 0, .36);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 22px rgba(255, 214, 0, .035),
    0 0 0 44px rgba(255, 214, 0, .025),
    inset 0 0 38px rgba(255, 214, 0, .08);
  animation: energyOrbit 12s linear infinite;
}

.energy-campaign-orbit::before,
.energy-campaign-orbit::after {
  content: "✦";
  position: absolute;
  color: var(--energy-yellow);
  font-size: 23px;
  text-shadow: 0 0 22px rgba(255, 214, 0, .65);
}

.energy-campaign-orbit::before {
  top: 26px;
  left: 18px;
}

.energy-campaign-orbit::after {
  right: 15px;
  bottom: 28px;
  font-size: 14px;
}

/* =========================================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ БЛОКОВ ПРИ ПРОКРУТКЕ
   ========================================================= */

.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .65s ease var(--reveal-delay, 0ms),
    transform .65s var(--energy-ease) var(--reveal-delay, 0ms);
}

.scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   ПЕРЕКЛЮЧАТЕЛЬ ФИЛИАЛА В ШАПКЕ
   Эти классы используются новым компактным вариантом выбора.
   ========================================================= */

.header-branch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  max-width: min(230px, 34vw);
  min-height: 40px;
  padding: 8px 13px;
  color: #f2f2f2;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.header-branch:hover {
  color: var(--energy-yellow);
  background: rgba(255, 214, 0, .08);
  border-color: rgba(255, 214, 0, .55);
  transform: translateY(-1px);
}

.header-branch__name,
#headerBranchName {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-branch i,
.header-branch__icon {
  flex: 0 0 auto;
  color: var(--energy-yellow);
}

/* Модальное окно выбора филиала.
   Ожидаемые элементы: #branchModal, .branch-modal__backdrop,
   .branch-modal__dialog, .branch-modal__option.
*/

.branch-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.branch-modal.is-open,
.branch-modal.active {
  display: flex;
}

.branch-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  animation: energyFadeIn .25s ease both;
}

.branch-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(88dvh, 720px);
  padding: clamp(24px, 5vw, 38px);
  overflow-y: auto;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 214, 0, .10), transparent 36%),
    linear-gradient(145deg, #222 0%, #111 72%);
  border: 1px solid rgba(255, 214, 0, .32);
  border-radius: 22px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .68);
  animation: energyModalIn .4s var(--energy-ease) both;
}

.branch-modal__eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--energy-yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.branch-modal__title {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(25px, 5vw, 34px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.branch-modal__description {
  margin: 0 0 24px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.6;
}

.branch-modal__options {
  display: grid;
  gap: 12px;
}

.branch-modal__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 68px;
  padding: 16px 18px;
  color: #eee;
  text-align: left;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 13px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.branch-modal__option:hover,
.branch-modal__option:focus-visible {
  background: rgba(255, 214, 0, .09);
  border-color: rgba(255, 214, 0, .65);
  transform: translateY(-2px);
}

.branch-modal__option strong {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

.branch-modal__option small {
  display: block;
  margin-top: 4px;
  color: #999;
  font-size: 12px;
  line-height: 1.4;
}

.branch-modal__option i,
.branch-modal__option-icon {
  flex: 0 0 auto;
  color: var(--energy-yellow);
  font-size: 20px;
}

.branch-modal__hint {
  margin: 18px 0 0;
  color: #777;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* =========================================================
   СОСТОЯНИЯ И ДОСТУПНОСТЬ
   ========================================================= */

@keyframes energyModalIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes energyFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes energyFadeOut {
  to { opacity: 0; }
}

@keyframes energyCampaignEntrance {
  from {
    opacity: 0;
    transform: translateY(30px) scale(.94) rotateX(5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
  }
}

@keyframes energyCampaignImageIn {
  from {
    opacity: .3;
    transform: scale(1.07);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes energyCampaignTextIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes energyOrbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =========================================================
   АДАПТИВНОСТЬ
   ========================================================= */

@media (max-width: 768px) {
  .cookie-consent {
    padding: 15px 16px;
  }

  .cookie-consent__content {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .cookie-consent__text {
    flex-basis: auto;
  }

  .cookie-consent__buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie-consent__btn {
    min-width: 0;
    padding: 11px 12px;
    white-space: normal;
  }

  .footer__top {
    flex-direction: column;
    text-align: center;
  }

  .footer__requisites-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer__requisites-item {
    text-align: center;
  }

  .header-branch {
    max-width: 38vw;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .energy-campaign-overlay {
    padding: 14px;
  }

  .energy-campaign-card {
    border-radius: 21px;
  }

  .energy-campaign-visual {
    height: 180px;
  }

  .energy-campaign-visual--empty {
    height: 105px;
  }

  .energy-campaign-content {
    padding: 23px 22px 26px;
  }

  .energy-campaign-card h2 {
    font-size: clamp(27px, 8vw, 35px);
  }

  .energy-campaign-card p {
    font-size: 14px;
  }

  .cookie-modal {
    padding: 10px;
  }

  .cookie-modal__content {
    width: 100%;
    max-height: 90dvh;
    border-radius: 13px;
  }

  .cookie-modal__header {
    padding: 15px 16px;
  }

  .cookie-modal__header h3 {
    font-size: 18px;
  }

  .cookie-modal__body {
    padding: 14px 16px;
  }

  .cookie-option {
    gap: 12px;
    padding: 13px 0;
  }

  .cookie-option p {
    font-size: 13px;
    line-height: 1.45;
  }

  .cookie-modal__footer {
    padding: 0 16px 16px;
    flex-direction: column;
  }

  .cookie-modal__footer .cookie-consent__btn {
    flex: 1 1 auto;
    width: 100%;
  }

  .footer__legal--links {
    gap: 8px;
  }

  .footer-legal-link {
    width: 100%;
    font-size: 12px;
  }

  .branch-modal {
    padding: 12px;
  }

  .branch-modal__dialog {
    padding: 25px 20px;
    border-radius: 18px;
  }

  .branch-modal__option {
    min-height: 62px;
    padding: 14px;
  }
}

@media (max-width: 380px) {
  .cookie-consent__buttons {
    grid-template-columns: 1fr;
  }

  .cookie-modal__header {
    padding: 13px 12px;
  }

  .cookie-modal__body {
    padding: 12px;
  }

  .cookie-modal__footer {
    padding: 0 12px 12px;
  }

  .cookie-toggle {
    flex-basis: 44px;
    width: 44px;
    height: 26px;
  }

  .cookie-toggle input:checked + .cookie-toggle__slider::before {
    transform: translateX(16px);
  }

  .header-branch {
    max-width: 42vw;
    gap: 5px;
    padding: 6px 8px;
    font-size: 10px;
  }

  .energy-campaign-content {
    padding-right: 17px;
    padding-left: 17px;
  }
}

/* Пользователям, отключившим анимацию, оставляем статичные состояния. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .scroll-reveal,
  .scroll-reveal.is-revealed {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
}

/* Служебные ограничения текущего сайта — оставлены без изменения поведения. */
.schedule-class-tile {
  cursor: default !important;
  pointer-events: none !important;
}

.schedule-class-tile-hint {
  display: none !important;
}

/* Кнопки тарифов в текущей версии сайта отключены. */
.price-card__btn {
  display: none !important;
}

/* =========================================================
   КНОПКИ ВЫБОРА ФИЛИАЛА — ENERGY FITNESS
   Реальные классы из HTML: .branch-option
   ========================================================= */

.branch-modal__options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    margin-top: 26px;
}

.branch-modal__options .branch-option {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;

    position: relative;
    display: flex;
    align-items: center;
    gap: 17px;

    width: 100%;
    min-height: 88px;
    margin: 0;
    padding: 17px 20px;

    color: #fff;
    text-align: left;
    font-family: inherit;

    background: linear-gradient(
        135deg,
        #252525 0%,
        #1b1b1b 100%
    );

    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 15px;

    cursor: pointer;

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

/* Иконка филиала */

.branch-option__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 50px;
    width: 50px;
    height: 50px;

    color: #FFD600;
    background: rgba(255, 214, 0, .10);

    border: 1px solid rgba(255, 214, 0, .18);
    border-radius: 13px;

    font-size: 20px;

    transition:
        color .25s ease,
        background .25s ease,
        transform .25s ease;
}

/* Текст кнопки */

.branch-option__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 6px;

    min-width: 0;
}

.branch-option__text strong {
    display: block;

    color: #fff;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.3;

    transition: color .25s ease;
}

.branch-option__text small {
    display: block;

    color: #999;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;

    transition: color .25s ease;
}

/* Стрелка */

.branch-option__arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 34px;
    width: 34px;
    height: 34px;

    color: #888;
    background: rgba(255, 255, 255, .045);

    border-radius: 50%;

    font-size: 14px;

    transition:
        color .25s ease,
        background .25s ease,
        transform .25s ease;
}

/* Наведение */

.branch-modal__options .branch-option:hover {
    color: #fff;

    background: linear-gradient(
        135deg,
        rgba(255, 214, 0, .13) 0%,
        #242424 100%
    );

    border-color: rgba(255, 214, 0, .65);

    transform: translateY(-3px);

    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.branch-modal__options .branch-option:hover .branch-option__icon {
    color: #111;
    background: #FFD600;
    transform: scale(1.05);
}

.branch-modal__options .branch-option:hover .branch-option__text strong {
    color: #FFD600;
}

.branch-modal__options .branch-option:hover .branch-option__text small {
    color: #ccc;
}

.branch-modal__options .branch-option:hover .branch-option__arrow {
    color: #111;
    background: #FFD600;
    transform: translateX(3px);
}

/* Нажатие */

.branch-modal__options .branch-option:active {
    transform: translateY(-1px) scale(.99);
}

/* Фокус с клавиатуры */

.branch-modal__options .branch-option:focus-visible {
    outline: 2px solid #FFD600;
    outline-offset: 4px;
}

/* Нижняя подпись модального окна */

.branch-modal__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    margin-top: 25px;
    padding-top: 19px;

    color: #858585;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;

    border-top: 1px solid rgba(255, 255, 255, .09);
}

.branch-modal__footer i {
    flex: 0 0 auto;
    color: #FFD600;
    font-size: 14px;
}

/* Мобильная версия */

@media (max-width: 480px) {
    .branch-modal__options {
        gap: 11px;
        margin-top: 21px;
    }

    .branch-modal__options .branch-option {
        min-height: 78px;
        gap: 13px;
        padding: 13px 14px;
        border-radius: 13px;
    }

    .branch-option__icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .branch-option__text strong {
        font-size: 15px;
    }

    .branch-option__text small {
        font-size: 12px;
    }

    .branch-option__arrow {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .branch-modal__footer {
        font-size: 11px;
    }
}

/* Устройства без наведения */

@media (hover: none) {
    .branch-modal__options .branch-option:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Отключение анимации по настройкам устройства */

@media (prefers-reduced-motion: reduce) {
    .branch-modal__options .branch-option,
    .branch-option__icon,
    .branch-option__arrow {
        transition: none;
    }
}