/* Facts under hero */
.facts { position: relative; z-index: 2; margin-top: -56px; }
.facts-wrap { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 14px; background: #fff; box-shadow: 0 18px 48px rgba(42, 33, 28, .12); overflow: hidden; }
.facts-wrap .item { display: flex; flex-direction: column; gap: 6px; padding: 26px 28px; box-shadow: inset -1px 0 0 #e4e4e6; }
.facts-wrap .item:last-child { box-shadow: none; }
.facts-wrap .item__value { font-size: 34px; line-height: 40px; font-weight: 600; color: #c0583a; white-space: nowrap; }
.facts-wrap .item__label { font-size: 16px; line-height: 23px; color: #57524e; }

/* Home products */
.home-products { padding-top: 88px; }
.home-products-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.home-products-wrap__list { margin-top: 8px; }

/* Services */
.services, .route, .gallery, .steps, .location { padding-top: 88px; }
.services-wrap, .route-wrap, .gallery-wrap, .steps-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.services-wrap__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; margin-top: 8px; }
.services-wrap__list .item { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; border-radius: 10px; background: #f4f4f5; }
.services-wrap__list .item__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-bottom: 6px; }
.services-wrap__list .item__icon, .perks-wrap .item__icon, .status-links .item__icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 12px; background: #fff; }
.services-wrap__list .item__tag { padding: 5px 12px; border-radius: 999px; background: #fbeeea; font-size: 14px; line-height: 18px; font-weight: 500; color: #a8472c; }
.services-wrap__list .item__title { font-size: 24px; line-height: 31px; font-weight: 600; color: #2a211c; }
.services-wrap__list .item__text { font-size: 17px; line-height: 27px; color: #57524e; }
.services-wrap__list .item__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 17px; line-height: 22px; font-weight: 600; color: #2a211c; transition: color .3s, gap .3s; }
.services-wrap__list .item__link:hover { gap: 12px; color: #c0583a; }

/* Location */
.location-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: stretch; }
.location-wrap__info { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.location-wrap__info .section-head__text { width: auto; }
.location-wrap__info .price-list { width: 100%; }
.location-wrap__info .btn { margin-top: 8px; }
.location-wrap__map { min-height: 440px; border-radius: 14px; overflow: hidden; background: #f4f4f5; }
.location-wrap__map iframe { display: block; width: 100%; height: 100%; min-height: 440px; border: 0; }

/* CTA before footer */
.cta { padding: 88px 0 96px; }
.main-inner + .cta { padding-top: 0; margin-top: -8px; }
.cta-wrap { position: relative; border-radius: 16px; overflow: hidden; background: #2a211c; isolation: isolate; }
.cta-wrap__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(30, 23, 19, .94) 0%, rgba(30, 23, 19, .82) 45%, rgba(30, 23, 19, .35) 100%); }
.cta-wrap__content { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 780px; padding: 64px; }
.cta-wrap__title { font-size: 42px; line-height: 50px; font-weight: 500; color: #fff; }
.cta-wrap__text { font-size: 19px; line-height: 30px; color: rgba(255, 255, 255, .82); }
.cta-wrap__chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.cta-wrap__chips li { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; font-size: 15px; line-height: 19px; color: #fff; }
.cta-wrap__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 10px; }
.cta-wrap__ghost { padding: 13px 27px; font-size: 17px; line-height: 21px; font-weight: 500; white-space: nowrap; border: 1px solid rgba(255, 255, 255, .6); border-radius: 4px; color: #fff; background: transparent; transition: background .3s, color .3s; }
.cta-wrap__ghost:hover { background: #fff; color: #2a211c; }

/* Perks strip */
.perks { padding-top: 64px; }
.perks-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px; border-radius: 14px; background: #f4f4f5; }
.perks-wrap .item { display: flex; align-items: center; gap: 14px; min-width: 0; }
.perks-wrap .item__icon { width: 52px; height: 52px; }
.perks-wrap .item__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.perks-wrap .item__title { font-size: 17px; line-height: 22px; font-weight: 600; color: #2a211c; }
.perks-wrap .item__sub { font-size: 15px; line-height: 20px; color: #57524e; }
.cart-wrap > .woocommerce > .perks-wrap, .cart-wrap .perks-wrap { margin-top: 40px; }

/* Help card */
.help-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; border-radius: 14px; background: #f4f4f5; }
.help-card__title { font-size: 24px; line-height: 30px; font-weight: 600; color: #2a211c; }
.help-card__text { font-size: 16px; line-height: 25px; color: #57524e; }
.help-card__rows { display: flex; flex-direction: column; gap: 10px; margin: 6px 0; list-style: none; }
.help-card__rows li { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 22px; font-weight: 500; color: #2a211c; }
.help-card__rows a { color: inherit; transition: color .3s; }
.help-card__rows a:hover { color: #c0583a; }
.help-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.help-card__link { font-size: 16px; line-height: 21px; font-weight: 500; color: #c0583a; text-decoration: underline; text-underline-position: from-font; }
.help-card__link:hover { text-decoration: none; }
.help-card--inline { width: 100%; margin-top: 28px; padding: 22px 24px; }
.help-card--inline .help-card__title { font-size: 19px; line-height: 25px; }
.help-card--inline .help-card__rows { display: none; }

/* Text pages */
.text-page-wrap--aside { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 64px; align-items: start; max-width: none; }
.text-page-wrap__content { max-width: 780px; }
.text-page-wrap__aside { position: sticky; top: 112px; }
.text-page-wrap__content h2 { position: relative; padding-top: 28px; box-shadow: inset 0 1px 0 #e4e4e6; }
.text-page-wrap__content h2:first-child { padding-top: 0; box-shadow: none; }

/* 404 links */
.status-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 56px auto 0; }
.status-links .item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px 24px 26px; border: 1px solid #e4e4e6; border-radius: 12px; background: #fff; text-align: left; transition: border-color .3s, box-shadow .3s; }
.status-links .item:hover { border-color: #c0583a; box-shadow: 0 12px 32px rgba(42, 33, 28, .08); }
.status-links .item__icon { margin-bottom: 8px; background: #fbeeea; }
.status-links .item__title { font-size: 21px; line-height: 27px; font-weight: 600; color: #2a211c; }
.status-links .item__text { font-size: 16px; line-height: 23px; color: #57524e; }
.status-links .item__arrow { position: absolute; top: 28px; right: 24px; }

/* Contacts gallery */
.gallery-wrap__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: 100%; margin-top: 8px; }
.gallery-wrap__list .item { display: flex; flex-direction: column; gap: 10px; }
.gallery-wrap__list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.gallery-wrap__list figcaption { font-size: 16px; line-height: 22px; color: #57524e; }
.route .services-wrap__list .item__icon { margin-bottom: 6px; }

/* Membership steps */
.steps-wrap__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; margin-top: 8px; list-style: none; counter-reset: none; }
.steps-wrap__list .item { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 10px; background: #f4f4f5; }
.steps-wrap__list .item__num { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%; background: #c0583a; font-size: 19px; font-weight: 600; color: #fff; }
.steps-wrap__list .item__title { font-size: 21px; line-height: 27px; font-weight: 600; color: #2a211c; }
.steps-wrap__list .item__text { font-size: 16px; line-height: 25px; color: #57524e; }

/* Empty cart */
.cart-empty-wrap .perks-wrap { margin-top: 40px; }
.cart-empty-wrap__products { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 64px; }

@media (max-width: 1260px) {
    .facts-wrap .item { padding: 22px 20px; }
    .facts-wrap .item__value { font-size: 28px; line-height: 34px; }
    .perks-wrap { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 1100px) {
    .home-products-wrap__list > .item:nth-child(n+4) { display: none; }
    .text-page-wrap--aside { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
    .gallery-wrap__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .facts { margin-top: 0; padding-top: 24px; }
    .facts-wrap { grid-template-columns: repeat(2, 1fr); box-shadow: none; border: 1px solid #e4e4e6; }
    .facts-wrap .item:nth-child(odd) { box-shadow: inset -1px 0 0 #e4e4e6; }
    .facts-wrap .item:nth-child(-n+2) { border-bottom: 1px solid #e4e4e6; }
    .facts-wrap .item:nth-child(even) { box-shadow: none; }
    .services-wrap__list, .steps-wrap__list { grid-template-columns: 1fr 1fr; }
    .location-wrap { grid-template-columns: 1fr; gap: 32px; }
    .location-wrap__map, .location-wrap__map iframe { min-height: 360px; }
    .text-page-wrap--aside { grid-template-columns: 1fr; }
    .text-page-wrap__aside { position: static; }
    .status-links { grid-template-columns: 1fr; max-width: 520px; }
    .home-products-wrap__list > .item:nth-child(n+4) { display: flex; }
}

@media (max-width: 768px) {
    .home-products, .services, .route, .gallery, .steps, .location { padding-top: 64px; }
    .cta { padding: 64px 0 72px; }
    .cta-wrap::before { background: linear-gradient(180deg, rgba(30, 23, 19, .9) 0%, rgba(30, 23, 19, .86) 100%); }
    .cta-wrap__content { padding: 40px 28px; }
    .cta-wrap__title { font-size: 32px; line-height: 40px; }
    .cta-wrap__text { font-size: 17px; line-height: 27px; }
    .perks { padding-top: 48px; }
    .services-wrap__list, .steps-wrap__list { grid-template-columns: 1fr; }
    .services-wrap__list .item, .steps-wrap__list .item, .help-card { padding: 24px; }
    .facts-wrap .item__value { font-size: 26px; line-height: 32px; }
    .facts-wrap .item__label { font-size: 15px; line-height: 21px; }
}

@media (max-width: 576px) {
    .perks-wrap { grid-template-columns: 1fr; padding: 20px; }
    .gallery-wrap__list { grid-template-columns: 1fr 1fr; gap: 12px; }
    .facts-wrap .item { padding: 18px 16px; }
    .cta-wrap__actions .btn { width: 100%; justify-content: center; }
    .cta-wrap__content { padding: 32px 20px; }
    .cta-wrap__title { font-size: 28px; line-height: 35px; }
    .location-wrap__map, .location-wrap__map iframe { min-height: 300px; }
}

@media (max-width: 420px) {
    .facts-wrap .item__value { font-size: 22px; line-height: 28px; white-space: normal; }
    .gallery-wrap__list { grid-template-columns: 1fr; }
}

/* Trainers */
.trainers { padding-top: 88px; }
.trainers-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.trainers-wrap__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; width: 100%; }
.trainers-wrap__nav { display: flex; flex-shrink: 0; gap: 12px; }
.trainers-wrap__arrow { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; border: 1px solid #e0dfe1; border-radius: 50%; background: #fff; cursor: pointer; transition: background .3s, border-color .3s, opacity .3s; }
.trainers-wrap__arrow:hover { border-color: #c0583a; background: #fbeee9; }
.trainers-wrap__arrow--prev img { transform: rotate(180deg); }
.trainers-wrap__arrow.swiper-button-disabled { opacity: .35; cursor: default; }
.trainers-wrap__arrow.swiper-button-lock { display: none; }
.trainers-wrap__slider { width: 100%; margin-top: 8px; }
.trainers-wrap__list.swiper-wrapper { align-items: flex-start; }
.trainers-wrap__list .item { display: flex; flex-direction: column; height: auto; border-radius: 14px; background: #f4f4f5; overflow: hidden; }
.trainers-wrap__pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.trainers-wrap__pagination .swiper-pagination-bullet { width: 10px; height: 10px; margin: 0 !important; border-radius: 5px; background: #e0dfe1; opacity: 1; transition: width .3s, background .3s; }
.trainers-wrap__pagination .swiper-pagination-bullet-active { width: 28px; background: #c0583a; }
.trainers-wrap__pagination.swiper-pagination-lock { display: none; }
.trainers-wrap__list .item__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.trainers-wrap__list .item__body { display: flex; flex-direction: column; align-items: flex-start; flex-grow: 1; padding: 32px 36px 36px; }
.trainers-wrap__list .item__name { font-size: 30px; line-height: 38px; font-weight: 600; color: #2a211c; }
.trainers-wrap__list .item__rank { margin-top: 6px; font-size: 17px; line-height: 25px; font-weight: 500; color: #c0583a; }
.trainers-wrap__list .item__about { margin: 16px 0 24px; font-size: 17px; line-height: 27px; color: #57524e; }
.trainers-wrap__list .item__more { width: 100%; margin-top: auto; border-top: 1px solid #e0dfe1; border-bottom: 1px solid #e0dfe1; }
.trainers-wrap__list .item__toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0; border: 0; background: none; font: inherit; font-size: 18px; line-height: 24px; font-weight: 500; color: #2a211c; text-align: left; cursor: pointer; transition: color .3s; }
.trainers-wrap__list .item__toggle:hover { color: #c0583a; }
.trainers-wrap__list .item__toggle img { flex-shrink: 0; transition: transform .3s ease; }
.trainers-wrap__list .item__details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.trainers-wrap__list .item__details-inner { display: flex; flex-direction: column; gap: 22px; min-height: 0; overflow: hidden; }
.trainers-wrap__list .item--open .item__toggle { color: #c0583a; }
.trainers-wrap__list .item--open .item__toggle img { transform: rotate(45deg); }
.trainers-wrap__list .item--open .item__details { grid-template-rows: 1fr; }
.trainers-wrap__list .item__group:last-child { padding-bottom: 24px; }
.trainers-wrap__list .item__group { display: flex; flex-direction: column; gap: 10px; }
.trainers-wrap__list .item__group-title { font-size: 16px; line-height: 22px; font-weight: 600; color: #2a211c; }
.trainers-wrap__list .item__list { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.trainers-wrap__list .item__list li { position: relative; padding-left: 20px; font-size: 16px; line-height: 24px; color: #57524e; }
.trainers-wrap__list .item__list li::before { content: ""; position: absolute; top: 9px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #c0583a; }
.trainers-wrap__list .item__btn { margin-top: 28px; }

@media (max-width: 1100px) {
    .trainers-wrap__list .item__body { padding: 28px 28px 32px; }
    .trainers-wrap__list .item__name { font-size: 26px; line-height: 33px; }
}
@media (max-width: 768px) {
    .trainers { padding-top: 64px; }
    .trainers-wrap__slider { max-width: 560px; }
    .trainers-wrap__list.swiper-wrapper { display: grid; grid-template-columns: 1fr; gap: 24px; transform: none !important; }
    .trainers-wrap__list .item { width: auto !important; margin: 0 !important; }
    .trainers-wrap__nav, .trainers-wrap__pagination { display: none; }
}
@media (max-width: 576px) {
    .trainers-wrap__list .item__body { padding: 24px 20px 28px; }
    .trainers-wrap__list .item__rank, .trainers-wrap__list .item__about { font-size: 16px; line-height: 25px; }
    .trainers-wrap__list .item__btn { width: 100%; }
}

/* fixes */
.text-page-wrap .help-card a { text-decoration: none; }
.text-page-wrap .help-card .btn-primary { color: #fff; }
.text-page-wrap .help-card__rows a { color: #2a211c; }
.text-page-wrap .help-card__link { color: #c0583a; text-decoration: underline; }
.gallery-wrap__list .item { margin: 0; }
.shop-wrap__list .promo-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 12px; min-height: 100%; padding: 28px; border-radius: 10px; background: #2a211c; }
.shop-wrap__list .promo-card__icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: auto; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.shop-wrap__list .promo-card__title { font-size: 24px; line-height: 31px; font-weight: 600; color: #fff; }
.shop-wrap__list .promo-card__text { font-size: 16px; line-height: 25px; color: rgba(255, 255, 255, .75); }
.shop-wrap__list .promo-card .btn { margin-top: 8px; }
@media (max-width: 1100px) { .shop-wrap__list .promo-card { display: none; } }

/* checkout errors */
.checkout-wrap__row > .woocommerce-NoticeGroup { grid-column: 1 / -1; order: -1; }
.checkout-wrap__row > .woocommerce-NoticeGroup .woocommerce-error { margin-bottom: 0; }
.checkout-wrap__row > .woocommerce-NoticeGroup-checkout:not(:has(li:not([data-id]))) { display: none; }
.checkout-wrap .woocommerce-invalid .field__input, .checkout-wrap .woocommerce-invalid input.input-text { border-color: #c0583a; }
.checkout-wrap .checkout-inline-error-message { margin-top: 6px; font-size: 14px; line-height: 19px; color: #a8472c; }

/* Графік у контактах довгий — дозволити перенос */
.contacts-wrap__info .row { white-space: normal; }

/* Футер: графік праворуч у нижньому рядку */
.footer-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 40px; padding-top: 20px; box-shadow: inset 0 1px 0 #e4e4e6; }
.footer-bottom__nav { padding-top: 0; box-shadow: none; }
.footer-bottom__schedule { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; font-size: 15px; line-height: 20px; color: #57524e; text-align: right; }
.footer-bottom__schedule span { white-space: nowrap; }
@media (max-width: 1250px) {
  .footer-bottom { flex-direction: column; }
  .footer-bottom__schedule { justify-content: flex-start; text-align: left; }
}
/* Футер: підпис розробника (по лого CatCode пробігає відблиск, потім воно стає синім) */
.footer-credit { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 16px 0 20px; box-shadow: inset 0 1px 0 #efeeec; font-size: 14px; line-height: 18px; color: #8a847f; }
.footer-credit__link { display: inline-flex; align-items: baseline; gap: 10px; }
.footer-credit__logo { display: block; flex: none; width: 66px; height: auto; position: relative; top: 1px; overflow: visible; }
.footer-credit__base { fill: #2a211c; transition: fill .3s; }
.footer-credit__shine { transform: translateX(0); }
.footer-credit__link:hover .footer-credit__base, .footer-credit__link:focus-visible .footer-credit__base { fill: #3d7ef7; transition-delay: .45s; }
.footer-credit__link:hover .footer-credit__shine, .footer-credit__link:focus-visible .footer-credit__shine { animation: footer-credit-shine .7s ease-in-out; }
@keyframes footer-credit-shine { to { transform: translateX(1350px); } }
@media (max-width: 576px) {
  .footer-credit { flex-direction: column; align-items: flex-start; }
  .footer-bottom__schedule { flex-direction: column; }
  .footer-bottom__schedule span { white-space: normal; }
}

.memberships-wrap__veteran + .memberships-wrap__veteran { margin-top: -16px; }
