@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Stalinist+One&display=swap');

:root {
    /* Див. client.css: без color-scheme системні списки й вибір дати/часу
       малюються світлими, і текст у них стає нечитабельним. */
    color-scheme: dark;

    --bg: #050507;
    --surface: rgba(19, 19, 22, 0.86);
    --surface-2: rgba(32, 32, 36, 0.86);
    --line: rgba(255, 255, 255, 0.14);
    --text: #f6f6f7;
    --muted: #b3b3bd;
    --accent: #ff6424;
    --accent-2: #ffbf17;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    background:
        /* глибший градієнт зліва для читабельності тексту */
        linear-gradient(90deg, rgba(5, 5, 7, 0.97) 0%, rgba(5, 5, 7, 0.82) 42%, rgba(5, 5, 7, 0.30) 70%, rgba(5, 5, 7, 0.70) 100%),
        /* тіньова смуга знизу для "заземлення" персонажа */
        linear-gradient(to top, rgba(5, 5, 7, 0.90) 0%, transparent 22%),
        url("../assets/home/space-bg.webp") center / cover no-repeat;
    color: var(--text);
    font-family: "Montserrat", Arial, sans-serif;
    letter-spacing: 0;
}

/* Внутрішні сторінки (послуги, абонементи, розклад, контакти) ростуть за
   вмістом: робимо body окремим контейнером прокрутки, щоб картки будь-якої
   кількості показувалися повністю, на відміну від «банерної» головної. */
.content-page {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.topbar {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 20;
    display: grid;
    grid-template-columns: 140px 1fr auto auto;
    /* Кнопку «Встановити» (PWA) вставляє скрипт — додаткові елементи мають
       ставати новими колонками в тому ж рядку, а не переноситися вниз. */
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    gap: 18px;
    width: min(1180px, calc(100% - 48px));
    height: 74px;
    transform: translateX(-50%);
}

.brand {
    font-family: "Stalinist One", Impact, sans-serif;
    font-size: 16px;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 34px;
}

.main-nav a,
.login-btn,
.mobile-menu a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.main-nav a {
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s;
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--text);
}

.main-nav a.active::after,
.main-nav a:hover::after {
    width: 100%;
}

.login-btn {
    border: 1px solid rgba(255, 100, 36, 0.45);
    border-radius: var(--radius);
    padding: 11px 28px;
    background: rgba(255, 100, 36, 0.08);
    color: var(--text) !important;
    transition: background 0.22s, border-color 0.22s,
                box-shadow 0.22s, transform 0.22s, color 0.22s;
}

.login-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #111 !important;
    box-shadow: 0 0 22px rgba(255, 100, 36, 0.45);
    transform: scale(1.06);
}

.menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(20, 20, 22, 0.72);
    color: var(--text);
}

.mobile-menu {
    position: fixed;
    top: 64px;
    right: 12px;
    z-index: 30;
    display: none;
    flex-direction: column;
    width: 186px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    background: rgba(8, 8, 11, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 6px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 0.5px rgba(255,255,255,0.04);
    transform-origin: top right;
}

@keyframes menu-pop {
    from { opacity: 0; transform: scale(0.94) translateY(-6px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.mobile-menu.active {
    display: flex;
    animation: menu-pop 0.18s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.01em;
}

.mobile-menu a:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.9);
}
.mobile-menu a.active {
    color: var(--accent);
    background: rgba(255,100,36,0.08);
}
/* Роздільник перед "Увійти" */
.mobile-menu a[href*="login"] {
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 12px;
    border-radius: 0 0 10px 10px;
    color: var(--accent);
    font-weight: 700;
}
.mobile-menu a[href*="login"]::before {
    background: var(--accent);
    opacity: 0.7;
}
.mobile-menu a[href*="login"]:hover {
    background: rgba(255,100,36,0.08);
    color: var(--accent);
}
.mobile-menu a[href*="login"]::before {
    display: none;
}

/* Трикутник-вказівник */
.mobile-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 20px;
    width: 9px;
    height: 9px;
    background: rgba(8,8,11,0.98);
    border-left: 1px solid rgba(255,255,255,0.09);
    border-top: 1px solid rgba(255,255,255,0.09);
    transform: rotate(45deg);
}

.page-shell {
    position: relative;
    display: grid;
    width: min(1180px, calc(100% - 48px));
    height: 100svh;
    margin: 0 auto;
    padding-top: 84px;
    padding-bottom: 24px;
}

/* ── Анімації входу ── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes statue-enter {
    from { opacity: 0; transform: translateY(48px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-shell {
    grid-template-columns: minmax(0, 0.58fr) minmax(420px, 0.42fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    gap: 0 22px;
    padding-bottom: 0;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

/* Staggered entrance для елементів hero-copy */
.hero-copy .eyebrow {
    animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.1s;
}

.hero-copy h1 {
    animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.25s;
}

.hero-copy .hero-sub {
    animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.45s;
}

.hero-copy .hero-actions {
    animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.6s;
}

.hero-visual {
    animation: statue-enter 1s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.2s;
}

.hero-stats {
    animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.8s;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    font-family: "Stalinist One", Impact, sans-serif;
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.04;
    text-transform: uppercase;
}

.accent {
    color: var(--accent);
}

h2 {
    font-size: 22px;
}

p {
    color: var(--muted);
    line-height: 1.45;
}

.hero-copy p:not(.eyebrow),
.page-heading p {
    max-width: 520px;
    margin-top: 18px;
    font-size: 16px;
    font-weight: 600;
}

/* Підзаголовок героя — яскравіший і більший */
.hero-sub {
    color: rgba(246, 246, 247, 0.82) !important;
    font-size: 17px !important;
    font-weight: 600;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.primary-btn,
.outline-btn {
    display: inline-grid;
    place-items: center;
    min-width: 170px;
    min-height: 44px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 900;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.primary-btn {
    background: var(--accent);
    color: #111;
    /* Тиха пульсація — тінь, а не розмір */
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 100, 36, 0); }
    50%       { box-shadow: 0 0 0 6px rgba(255, 100, 36, 0.18); }
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 100, 36, 0.38);
    animation: none;
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 100, 36, 0.28);
}

.outline-btn {
    border: 1px solid var(--accent);
    color: var(--accent);
}

.outline-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 100, 36, 0.18);
    background: rgba(255, 100, 36, 0.06);
}

.outline-btn:active {
    transform: translateY(0);
}

.hero-visual {
    position: relative;
    z-index: 1;
    align-self: stretch;
    justify-self: end;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: visible;
    /* Правий край виходить до межі вікна браузера */
    margin-right: calc((min(1180px, 100vw - 48px) - 100vw) / 2);
}

.hero-visual img {
    display: block;
    /* Висота = весь viewport, щоб статуя заповнювала екран знизу вгору */
    height: calc(100svh - 80px);
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.62));
}

/* ── Блок статистики ── */
.hero-stats {
    position: absolute;
    bottom: 28px;
    left: 0;
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    align-items: center;
    z-index: 3;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 28px;
}

.hero-stat:first-child {
    padding-left: 0;
}

.hero-stat strong {
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}

.hero-stat span {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.content-shell {
    grid-template-rows: auto 1fr;
    height: 100svh;
    overflow: hidden;
    gap: 22px;
}

.page-heading {
    align-self: start;
}

.cards-grid {
    display: grid;
    gap: 16px;
    align-content: start;
}

.service-grid,
.plan-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.orange-card,
.dark-card {
    display: grid;
    gap: 10px;
    min-height: 210px;
    border-radius: var(--radius);
    padding: 18px;
}

.orange-card {
    background:
        radial-gradient(circle at top right, rgba(255, 191, 23, 0.3), transparent 34%),
        var(--accent);
    color: #111;
}

.orange-card p {
    color: rgba(17, 17, 17, 0.72);
    font-size: 13px;
    font-weight: 700;
}

.card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-stats span {
    border: 1px solid rgba(17, 17, 17, 0.28);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
}

/* На темних картках (тарифи) чипи отримують світлу рамку та приглушений колір. */
.dark-card .card-stats span {
    border-color: var(--line);
    color: var(--muted);
}

.orange-card a {
    align-self: end;
    width: max-content;
    border-bottom: 2px solid #111;
    font-size: 12px;
    font-weight: 900;
}

/* ── Картки абонементів (мобільний карусель) ── */
.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 14px 18px;
    border-radius: 12px;
    background: rgba(22, 22, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    min-height: 220px;
    transition: border-color 0.25s;
}

/* Тонка помаранчева смужка зліва — у всіх */
.plan-card::after {
    content: '';
    position: absolute;
    left: 0; top: 16px; bottom: 16px;
    width: 2px;
    background: rgba(255, 100, 36, 0.35);
    border-radius: 2px;
}

/* Featured: яскравіший акцент */
.plan-card--featured {
    border-color: rgba(255, 100, 36, 0.3);
    background: rgba(255, 100, 36, 0.04);
}

.plan-card--featured::after {
    top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    border-radius: 12px 0 0 12px;
}

/* Стрічка «Популярний» */
.plan-card__ribbon {
    position: absolute;
    top: 14px;
    right: -26px;
    width: 105px;
    padding: 4px 0;
    background: var(--accent-2, #ffbf17);
    color: #050507;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(45deg);
    z-index: 2;
}

/* Великий номер-watermark на фоні */
.plan-card__bg-num {
    position: absolute;
    bottom: -10px;
    right: 8px;
    font-size: 80px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.02em;
}

.plan-card--featured .plan-card__bg-num {
    color: rgba(255, 100, 36, 0.08);
}

.plan-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plan-card__num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.28);
}

.plan-card__icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
}

.plan-card--featured .plan-card__icon {
    color: var(--accent);
}

.plan-card__desc {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.45);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.plan-card__title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
}

.plan-card__perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plan-card__perks li {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    padding-left: 14px;
    position: relative;
}

.plan-card__perks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: rgba(255, 100, 36, 0.6);
    font-weight: 700;
}

.plan-card--featured .plan-card__perks li::before {
    color: var(--accent);
}

.plan-card__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 4px 0;
}

.plan-card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 4px;
}

.plan-card__amount {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    color: var(--text);
}

.plan-card--featured .plan-card__amount {
    color: var(--accent);
}

.plan-card__currency {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

.plan-card__cta {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--accent);
}

.plan-card--featured .plan-card__cta {
    color: var(--accent);
}

/* ── Картки послуг ── */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 18px;
    flex: 1;
    min-height: 0;
}

/* ── Carousel wrapper + nav ── */
.svc-carousel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
}

.svc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.svc-nav-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.svc-nav-btn:hover {
    background: rgba(255,100,36,0.15);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.08);
}

.svc-nav-btn:disabled {
    opacity: 0.25;
    pointer-events: none;
}

.svc-nav-dots {
    display: flex;
    gap: 7px;
}

.svc-nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 0.2s, transform 0.2s;
}

.svc-nav-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

.svc-card {
    position: relative;
    height: 100%;
    min-height: 180px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1);

    /* Фонове зображення або градієнт */
    background-size: cover;
    background-position: center;
}

.svc-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 24px 52px rgba(0, 0, 0, 0.55),
        0 0 36px color-mix(in srgb, var(--svc-color, var(--accent)) 18%, transparent);
}

/* Темний overlay поверх фото — майже непрозорий у спокої */
.svc-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(5, 5, 7, 0.96) 0%,
            rgba(5, 5, 7, 0.80) 40%,
            rgba(5, 5, 7, 0.55) 100%);
    transition: background 0.38s ease;
}

/* При наведенні overlay трохи зникає — фото стає помітнішим */
.svc-card:hover .svc-card__overlay {
    background:
        linear-gradient(to top,
            rgba(5, 5, 7, 0.88) 0%,
            rgba(5, 5, 7, 0.50) 40%,
            rgba(5, 5, 7, 0.20) 100%);
}

/* Контент поверх overlay */
.svc-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 22px 22px;
    height: 100%;
    justify-content: flex-end;
}

.svc-card__num {
    position: absolute;
    top: 18px;
    left: 22px;
    z-index: 1;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.3s;
}

.svc-card:hover .svc-card__num {
    color: rgba(255, 255, 255, 0.6);
}

.svc-card__title {
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
}

.svc-card__desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    line-height: 1.55;
    margin: 0;
}

.svc-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.svc-card__chips span {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.04);
}

.svc-card__cta {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 0.05em;
    transition: letter-spacing 0.22s;
}

.svc-card:hover .svc-card__cta {
    letter-spacing: 0.12em;
}

/* ── Розкладка тарифів: «популярний» закріплено зліва, решта — список праворуч ── */
.plans-layout {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

/* Mobile карусель прихована на desktop */
.plans-mobile-carousel { display: none; }

/* Виділена картка-вітрина: закріплюється (sticky) і лишається на видноті
   при прокручуванні списку інших тарифів. */
.plan-feature {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    padding: 30px 28px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
    background:
        radial-gradient(circle at top right, rgba(255, 100, 36, 0.28), transparent 50%),
        radial-gradient(circle at bottom left, rgba(255, 191, 23, 0.12), transparent 55%),
        var(--surface);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 100, 36, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Кутова стрічка «Популярний». */
.plan-feature__ribbon {
    position: absolute;
    top: 24px;
    right: -36px;
    width: 140px;
    padding: 6px 0;
    text-align: center;
    transform: rotate(45deg);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.plan-feature__head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-feature__tag {
    width: max-content;
    border-radius: 999px;
    padding: 5px 13px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(255, 100, 36, 0.14);
    border: 1px solid rgba(255, 100, 36, 0.35);
}

.plan-feature__title {
    margin: 0;
    font-size: 27px;
    font-weight: 900;
    line-height: 1.12;
    color: var(--text);
}

.plan-feature__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}

.plan-feature__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.plan-feature__chips span {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

.plan-feature__price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.plan-feature__amount {
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
    color: var(--accent);
}

.plan-feature__currency {
    font-size: 15px;
    font-weight: 700;
    color: var(--muted);
}

/* Список решти тарифів — горизонтальні рядки. На екрані видно ~4 рядки,
   решта відкривається власним м'яким скролом; нижній край делікатно згасає. */
.plan-list {
    display: grid;
    gap: 14px;
    max-height: calc(100svh - 230px);
    overflow-y: auto;
    padding: 4px 10px 14px 4px;
    margin: -4px -10px -14px -4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 100, 36, 0.4) transparent;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
}

.plan-list::-webkit-scrollbar {
    width: 6px;
}

.plan-list::-webkit-scrollbar-thumb {
    background: rgba(255, 100, 36, 0.4);
    border-radius: 999px;
}

.plan-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 100, 36, 0.65);
}

.plan-row {
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--surface);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s;
}

/* Акцентна смужка ліворуч, що «виїжджає» при наведенні. */
.plan-row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.plan-row:hover {
    transform: translateX(4px);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.45),
        0 0 26px rgba(255, 100, 36, 0.10);
}

.plan-row:hover::before {
    transform: scaleY(1);
}

.plan-row__lead {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.plan-row__num {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.28);
    transition: color 0.3s;
}

.plan-row:hover .plan-row__num {
    color: var(--accent);
}

.plan-row__tag {
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.16);
    white-space: nowrap;
}

.plan-row__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.plan-row__title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
}

.plan-row__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
}

.plan-row__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.plan-row__chips span {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.04);
}

.plan-row__price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
    padding-top: 3px;
}

.plan-row__amount {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    color: var(--text);
}

.plan-row:hover .plan-row__amount {
    color: var(--accent);
}

.plan-row__currency {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.plan-row__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.plan-row__buy {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s, transform 0.2s, background 0.2s, color 0.2s;
}

.plan-row:hover .plan-row__buy {
    opacity: 1;
    transform: translateY(0);
}

.plan-row__buy:hover {
    background: var(--accent);
    color: #fff;
}

@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 100, 36, 0.55); }
    50%       { box-shadow: 0 0 0 10px rgba(255, 100, 36, 0); }
}

/* Кнопка в featured плані */
.plan-feature__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    padding: 13px 20px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    animation: cta-pulse 2s ease-in-out infinite;
    transition: opacity 0.2s, transform 0.2s;
}

.plan-feature__cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    animation: none;
    box-shadow: 0 0 0 4px rgba(255, 100, 36, 0.3);
}

/* Картка-заглушка, коли тарифів немає. */
.dark-card {
    display: grid;
    gap: 10px;
    min-height: 210px;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
}

.schedule-board {
    display: grid;
    gap: 12px;
    align-content: start;
}

.schedule-board article {
    display: grid;
    grid-template-columns: 86px 1fr auto;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 15px;
}

.schedule-board strong,
.schedule-board a:not(.sch-card__btn) {
    color: var(--accent);
    font-weight: 900;
}

.schedule-spots {
    color: var(--accent-2);
    font-weight: 700;
}

.schedule-spots.full {
    color: var(--muted);
}

/* ── Новий розклад ── */
#schedule-board {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sch-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 60px 20px;
    color: var(--muted);
}
.sch-empty p { font-size: 16px; font-weight: 600; color: var(--text); margin: 0; }
.sch-empty span { font-size: 13px; }

.sch-day__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.sch-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sch-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    transition: background 0.18s, border-color 0.18s;
}
.sch-card:hover {
    background: var(--surface-2);
}
.sch-card--full {
    border-left-color: var(--line);
    opacity: 0.75;
}

.sch-card__time {
    font-size: 20px;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1;
    text-align: center;
}
.sch-card--full .sch-card__time {
    color: var(--muted);
}

.sch-card__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.sch-card__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sch-card__trainer {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}
.sch-card__cap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.sch-bar {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: var(--line);
    overflow: hidden;
    min-width: 80px;
    max-width: 160px;
}
.sch-bar__fill {
    height: 100%;
    border-radius: 99px;
    background: var(--accent);
    transition: width 0.4s ease;
}
.sch-bar__fill--full {
    background: var(--muted);
}

.sch-spots {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
}
.sch-spots--full {
    color: var(--muted);
}

.sch-card__btn {
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.18s;
    flex-shrink: 0;
    line-height: 1;
}
.sch-card__btn:hover { opacity: 0.85; }
.sch-card__btn--full {
    background: var(--surface-2);
    color: var(--muted);
    border: 1px solid var(--line);
}
.sch-card__btn--full:hover { opacity: 0.7; }

@media (max-width: 600px) {
    /* Зберігаємо 3 колонки, але компактніше — кнопка не займає ширину картки */
    .sch-card {
        grid-template-columns: 48px 1fr auto;
        grid-template-rows: auto;
        gap: 6px 10px;
        padding: 10px 12px;
    }
    .sch-card__btn {
        align-self: center;
        padding: 6px 10px;
        font-size: 10px;
        white-space: nowrap;
    }
    .sch-card__time {
        font-size: 16px;
        align-self: center;
    }
    /* Зменшуємо мінімум бару, щоб "0/10" не переповнювало рядок */
    .sch-bar {
        min-width: 36px;
        max-width: 80px;
    }
    .sch-spots {
        font-size: 10px;
        white-space: nowrap;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    align-content: start;
}

.contact-grid article,
.contact-cta {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 18px;
}

.contact-grid span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-grid strong {
    line-height: 1.35;
}

.contacts-shell {
    grid-template-rows: auto 1fr auto;
}

/* Про нас — заповнює весь екран на десктопі */
body:has(.about-shell) {
    height: 100dvh;
    overflow: hidden;
}

body:has(.about-shell) .page-shell {
    height: calc(100dvh - 58px);
    overflow: hidden;
    padding-bottom: 0;
}

/* ── Сторінка "Про нас" ── */
.about-shell {
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.about-shell .page-heading {
    padding-bottom: 0;
    flex-shrink: 0;
}

/* Стрічка цифр */
.about-nums {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 2px solid var(--accent);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.about-nums > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 22px;
    background: var(--bg, #050507);
    transition: background 0.2s;
}
.about-nums > div:hover {
    background: rgba(255,100,36,0.04);
}

.about-nums strong {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 0 28px rgba(255,100,36,0.45);
}

.about-nums span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 24px;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

.about-contacts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    background: rgba(255,255,255,0.025);
    overflow-y: auto;
    min-height: 0;
}

.about-contacts .primary-btn {
    width: 100%;
    min-width: 0;
    color: #fff;
    font-size: 14px;
}

.about-contact-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.about-contact-list > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 10px;
    margin: 0 -10px;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: background 0.2s, border-color 0.2s;
    cursor: default;
}
.about-contact-list > div:hover {
    background: rgba(255,100,36,0.05);
    border-left-color: var(--accent);
}

.about-contact-list dt {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.about-contact-list dd {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text);
}

.about-contact-list dd a {
    color: var(--text);
    transition: color 0.2s;
}

.about-contact-list dd a:hover {
    color: var(--accent);
}

.about-rules {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.about-rules__title {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.about-rules ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.about-rules li {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.about-rules li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: rgba(255,100,36,0.5);
}

.about-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.about-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    transition: border-color 0.2s, color 0.2s;
}

.about-social-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.about-social-btn svg {
    width: 18px;
    height: 18px;
}

.about-social-btn--cta {
    width: auto;
    border-radius: 999px;
    padding: 0 18px;
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.about-social-btn--cta:hover {
    background: color-mix(in srgb, var(--accent) 85%, #fff);
    border-color: transparent;
    color: #fff;
}

.about-map {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}
.about-map__wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.about-map__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(5,5,7,0.88);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 7px 12px;
    backdrop-filter: blur(8px);
    pointer-events: none;
}
.about-map__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,100,36,0.25);
    flex-shrink: 0;
}
.about-map__badge-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.03em;
}

.about-map iframe {
    width: 100%;
    flex: 1;
    min-height: 200px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    filter: grayscale(20%) brightness(0.9);
    display: block;
}

.about-map__link {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    letter-spacing: 0.02em;
}

.about-tagline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    /* вихід за межі page-shell на всю ширину viewport */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 18px clamp(24px, 4vw, 60px);
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: clamp(20px, 3.2vw, 42px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.18);
    box-sizing: border-box;
}

.about-tagline__dot {
    color: rgba(255,255,255,0.08);
    font-size: 0.55em;
}

.about-tagline__accent {
    color: var(--accent);
}

.contact-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 2px;
}

@media (max-width: 860px) {
    /* На мобільному відмовляємось від «вписування в один екран»:
       дозволяємо сторінці рости за вмістом і нормально гортатись. */
    html,
    body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body {
        background-position: 58% center;
        background-attachment: scroll;
    }

    .topbar {
        grid-template-columns: 1fr auto auto;
        width: calc(100% - 28px);
        height: 58px;
    }

    .brand {
        font-size: 13px;
    }

    .main-nav,
    .login-btn {
        display: none;
    }

    .menu-btn {
        display: block;
        width: 38px;
        height: 38px;
    }

    .page-shell {
        width: calc(100% - 28px);
        height: auto;
        min-height: 100dvh;
        padding-top: 74px;
        padding-bottom: 24px;
        overflow: visible;
    }

    /* ── Hero mobile ── */
    .hero-shell {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: calc(100svh - 64px);
        max-height: 700px;
        gap: 0;
        padding-bottom: 72px;
        position: relative;
        overflow: hidden;
    }

    .hero-shell::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background:
            linear-gradient(to bottom,
                rgba(5,5,7,0.4) 0%,
                rgba(5,5,7,0.0) 20%,
                rgba(5,5,7,0.0) 45%,
                rgba(5,5,7,0.75) 65%,
                rgba(5,5,7,0.97) 82%,
                rgba(5,5,7,1) 100%);
        pointer-events: none;
    }

    .hero-shell::after { display: none; }

    .hero-visual {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
    }

    .hero-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 68% top;
        opacity: 0.6;
        filter: grayscale(10%);
    }

    .hero-copy {
        position: relative;
        z-index: 2;
        padding-bottom: 28px;
    }

    .hero-stats {
        display: flex;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: 14px 24px;
        gap: 0;
        background: rgba(5,5,7,0.85);
    }

    .hero-stat {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 3px;
        padding: 0;
    }

    .hero-stat strong {
        font-size: 18px;
        font-weight: 900;
        color: #fff;
        line-height: 1;
    }

    .hero-stat span {
        font-size: 9px;
        letter-spacing: 0.08em;
        color: rgba(255,255,255,0.4);
        text-transform: uppercase;
    }

    .hero-stat-divider {
        display: block;
        width: 1px;
        height: 28px;
        background: rgba(255,255,255,0.1);
        align-self: center;
        flex-shrink: 0;
    }

    .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        margin-bottom: 14px;
        font-size: 11px;
        letter-spacing: 0.14em;
    }

    .eyebrow::before {
        content: "";
        width: 26px;
        height: 2px;
        background: var(--accent);
    }

    h1 {
        max-width: 100%;
        font-size: clamp(15px, 4.6vw, 20px);
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    h2 { font-size: 17px; }

    .hero-copy p:not(.eyebrow),
    .page-heading p {
        margin-top: 10px;
        font-size: 12px;
        line-height: 1.4;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 24px;
    }

    .primary-btn,
    .outline-btn {
        min-width: 0;
        min-height: 50px;
        padding: 0 16px;
        font-size: 13px;
        letter-spacing: 0.02em;
    }

    .content-shell {
        grid-template-rows: auto auto;
        align-content: start;
        gap: 9px;
    }

    .page-heading {
        align-self: start;
    }

    .page-heading h1 {
        font-size: clamp(21px, 7vw, 30px);
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, auto);
        min-height: 0;
    }

    .plan-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    /* Desktop plans-layout прихований, мобільний карусель видимий */
    #plans-desktop { display: none; }
    .plans-mobile-carousel { display: flex; flex-direction: column; gap: 16px; }

    /* ── Сторінка абонементів: картки заповнюють весь екран ── */
    body.plans-page {
        height: 100dvh;
        overflow: hidden;
    }

    body.plans-page .page-shell {
        display: flex;
        flex-direction: column;
        height: calc(100dvh - 58px);
        min-height: 0;
        overflow: hidden;
        padding-bottom: 0;
    }

    body.plans-page .content-shell {
        display: flex;
        flex-direction: column;
        gap: 10px;
        height: 100%;
        min-height: 0;
        overflow: hidden;
        align-content: unset;
        grid-template-rows: unset;
    }

    body.plans-page .page-heading {
        flex-shrink: 0;
        padding-bottom: 0;
    }

    /* Прибираємо опис щоб картки мали більше місця */
    body.plans-page .page-heading p:not(.eyebrow) {
        display: none;
    }

    body.plans-page .plans-mobile-carousel {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* Сітка займає весь простір, рядки рівні */
    body.plans-page .plans-mobile-carousel .svc-grid {
        flex: 1;
        min-height: 0;
        grid-template-rows: repeat(2, 1fr);
        gap: 10px;
    }

    /* Картки на всю висоту клітинки, контент рівномірно */
    body.plans-page .plan-card {
        height: 100%;
        min-height: 0;
        justify-content: space-between;
    }

    .orange-card,
    .dark-card {
        align-content: start;
        gap: 5px;
        overflow: hidden;
        padding: 8px;
        min-height: 132px;
    }

    .orange-card h2,
    .dark-card h2,
    .schedule-board h2 {
        font-size: 13px;
        line-height: 1.1;
    }

    .orange-card p,
    .dark-card p,
    .schedule-board p {
        font-size: 9px;
        line-height: 1.25;
    }

    .orange-card a {
        font-size: 10px;
    }

    .card-art {
        min-height: 0;
        height: clamp(44px, 9dvh, 62px);
    }

    .svc-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .svc-card {
        height: 100%;
        min-height: 160px;
    }

    .svc-card__body {
        padding: 16px 14px 14px;
        gap: 7px;
    }

    .svc-card__title {
        font-size: 15px;
        letter-spacing: 0.01em;
    }

    /* Обрізаємо опис до 2 рядків — однорідно на всіх картках */
    .svc-card__desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 11px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    /* Розгорнутий стан */
    .svc-card.desc-open .svc-card__desc {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
    }

    .svc-card.desc-clipped .svc-card__desc::after {
        content: ' …більше';
        color: var(--accent);
        font-weight: 700;
    }

    .svc-card.desc-open .svc-card__desc::after {
        content: ' згорнути';
        color: var(--accent);
        font-weight: 700;
    }

    .svc-card__chips {
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .svc-card__chips span {
        font-size: 10px;
        padding: 2px 8px;
        white-space: nowrap;
    }

    .svc-card__cta {
        font-size: 11px;
    }

    .schedule-board {
        align-content: start;
        gap: 8px;
        min-height: 0;
    }

    .schedule-board article {
        grid-template-columns: 52px 1fr auto;
        gap: 8px;
        padding: 8px;
        min-height: 0;
        height: clamp(74px, 15dvh, 92px);
    }

    .schedule-board strong,
    .schedule-board a {
        font-size: 12px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 10px;
        min-height: 0;
    }

    .contact-grid article,
    .contact-cta {
        align-content: center;
        padding: 10px;
        min-height: 104px;
    }

    .contact-grid strong {
        font-size: 11px;
    }

    .contact-cta {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }

    .contact-grid span {
        font-size: 10px;
    }

    /* ── "Про нас" — мобільна версія (один екран) ── */
    body:has(.about-shell) {
        height: 100dvh !important;
        overflow: hidden !important;
    }
    body:has(.about-shell) .page-shell {
        height: 100dvh !important;
        overflow: hidden !important;
        padding-top: calc(58px + clamp(10px, 2dvh, 18px));
        padding-bottom: 0 !important;
        display: flex;
        flex-direction: column;
        gap: clamp(6px, 1.5dvh, 14px);
    }
    .about-shell {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: clamp(6px, 1.5dvh, 14px);
        overflow: hidden;
    }
    .about-shell .page-heading {
        flex-shrink: 0;
        padding-bottom: 0;
    }
    .about-shell .page-heading .eyebrow {
        font-size: clamp(9px, 2.5vw, 13px);
        margin-bottom: 2px;
    }
    .about-shell .page-heading h1 {
        font-size: clamp(28px, 9vw, 48px);
        line-height: 1;
    }

    /* Stats: 4 в ряд, компактно */
    .about-nums {
        grid-template-columns: repeat(4, 1fr);
        flex-shrink: 0;
    }
    .about-nums > div {
        padding: clamp(8px, 1.5dvh, 14px) clamp(8px, 2vw, 14px);
    }
    .about-nums strong {
        font-size: clamp(16px, 5vw, 26px);
    }
    .about-nums span {
        font-size: clamp(7px, 2vw, 10px);
    }

    /* Layout: 1 колонка, без карти */
    .about-layout {
        grid-template-columns: 1fr !important;
        gap: 0;
        flex: 1;
        min-height: 0;
    }
    .about-map {
        display: none !important;
    }

    /* Контакти — заповнює простір */
    .about-contacts {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        padding: clamp(10px, 2dvh, 16px) clamp(12px, 3vw, 18px);
        gap: clamp(6px, 1.5dvh, 12px);
        display: flex;
        flex-direction: column;
    }
    .about-contact-list {
        gap: 0;
        flex-shrink: 0;
    }
    .about-contact-list > div {
        padding: clamp(5px, 1dvh, 9px) 8px;
        margin: 0 -8px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        border-left: none !important;
        background: none !important;
        border-radius: 0;
        transition: none;
    }
    .about-contact-list > div:last-child {
        border-bottom: none;
    }
    .about-contact-list dt {
        font-size: clamp(8px, 2.5vw, 11px);
    }
    .about-contact-list dd {
        font-size: clamp(12px, 3.5vw, 15px);
    }

    /* Соцмережі */
    .about-socials {
        gap: clamp(6px, 2vw, 10px);
        flex-shrink: 0;
    }
    .about-social-btn {
        width: clamp(30px, 8vw, 38px);
        height: clamp(30px, 8vw, 38px);
    }
    .about-social-btn svg {
        width: 14px;
        height: 14px;
    }

    /* Правила — скорочено */
    .about-rules {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        padding-top: clamp(6px, 1.5dvh, 12px);
    }
    .about-rules__title {
        font-size: clamp(8px, 2.5vw, 11px);
        margin-bottom: clamp(4px, 1dvh, 8px);
    }
    .about-rules ul {
        gap: clamp(3px, 0.8dvh, 6px);
    }
    .about-rules li {
        font-size: clamp(10px, 3vw, 13px);
        line-height: 1.3;
    }
    /* Ховаємо зайві правила якщо не влазять */
    .about-rules li:nth-child(n+6) {
        display: none;
    }

    /* CTA */
    .about-contacts .primary-btn {
        flex-shrink: 0;
        padding: clamp(10px, 1.8dvh, 14px) 20px;
        font-size: clamp(12px, 3.5vw, 14px);
    }

}

@media (min-width: 861px) and (max-height: 820px) {
    .topbar {
        height: 62px;
    }

    .page-shell {
        padding-top: 68px;
        padding-bottom: 12px;
    }

    .hero-shell {
        grid-template-columns: minmax(0, 0.58fr) minmax(390px, 0.42fr);
        gap: 8px 18px;
    }

    h1 {
        font-size: clamp(35px, 1.9vw, 46px);
    }

    .hero-copy p:not(.eyebrow) {
        margin-top: 12px;
        font-size: 14px;
    }

    .hero-actions {
        margin-top: 18px;
    }

    .hero-visual img {
        height: calc(100svh - 80px);
        width: auto;
        max-width: none;
    }
}

@media (max-width: 420px) {
    .hero-actions {
        grid-template-columns: 1fr;
        display: grid;
    }

    .primary-btn,
    .outline-btn {
        width: 100%;
        min-width: 0;
    }

    .schedule-board article {
        grid-template-columns: 48px 1fr auto;
    }

    .schedule-board strong {
        grid-column: auto;
    }

}

@media (max-height: 700px) and (max-width: 860px) {
    /* На мобільному hero-visual img — cover-фон, не позиційований елемент,
       тому знімаємо обмеження width/max-height з цього блоку */
    .hero-visual img {
        width: 100%;
        height: 100%;
        max-height: none;
    }

    .hero-copy p:not(.eyebrow) {
        display: block;
    }

    .card-art {
        height: 38px;
    }

    .orange-card,
    .dark-card {
        min-height: 105px;
    }

    .orange-card p {
        display: block;
        font-size: 8px;
    }

    .schedule-board article {
        height: 66px;
        padding: 7px;
    }

    .contact-grid article {
        min-height: 86px;
    }

}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — повна адаптація гостьових сторінок
   Breakpoint: ≤ 860px
═══════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {

    /* ── Виправлення: content-shell мав height:100svh + overflow:hidden
       з базових стилів, що обрізало контент на мобільному.
       Не чіпаємо plans-page — вона має власний overflow:hidden карусель. ── */
    body:not(.plans-page) .content-shell {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    /* ── Сторінка "Розклад": зменшуємо відступи між днями ── */
    #schedule-board {
        gap: 20px;
        padding-bottom: 32px;
    }

    .sch-day__label {
        font-size: 10px;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .sch-list {
        gap: 6px;
    }

    /* ── Карусель послуг/абонементів: тягнемо вниз ── */
    .svc-carousel {
        gap: 12px;
    }

    .svc-nav {
        padding-bottom: 8px;
    }

    /* ── Послуги: картки заповнюють екран по вертикалі ── */
    body:has(.svc-carousel) .page-shell {
        height: 100dvh;
        padding-bottom: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    body:has(.svc-carousel) .page-heading {
        flex-shrink: 0;
    }
    body:has(.svc-carousel) .svc-carousel {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    body:has(.svc-carousel) .svc-grid {
        flex: 1;
        min-height: 0;
        grid-template-rows: repeat(2, 1fr);
    }
    body:has(.svc-carousel) .svc-card {
        height: 100%;
    }

    /* ── Сторінка "Про нас": один екран без скролу, карта прихована ── */
    body:has(.about-shell) {
        height: 100dvh !important;
        overflow: hidden !important;
    }

    body:has(.about-shell) .page-shell {
        height: calc(100dvh - 58px) !important;
        overflow: hidden !important;
        padding-bottom: 0 !important;
        display: flex;
        flex-direction: column;
        gap: clamp(8px, 1.5dvh, 14px);
    }

    .about-shell {
        flex: 1 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        gap: clamp(6px, 1dvh, 10px);
    }

    /* Карта прихована на мобільному */
    .about-map {
        display: none !important;
    }

    .about-contacts {
        flex: 1 !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    /* Правила відвідування — не показуємо на мобільному */
    .about-rules {
        display: none !important;
    }

    /* Числа: 2×2 на дуже маленьких екранах */
    .about-nums {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ── Дуже малі екрани (< 420px) ── */
@media (max-width: 420px) {

    /* Кнопки головної — повна ширина стовпцем */
    .hero-actions {
        grid-template-columns: 1fr;
    }

    .primary-btn,
    .outline-btn {
        width: 100%;
    }

    /* Тайтл менший */
    h1 {
        font-size: clamp(13px, 4.2vw, 18px);
    }

    /* Картки абонементів: компактніше */
    .plan-card {
        padding: 12px 10px 14px;
        gap: 6px;
    }

    .plan-card__title {
        font-size: 13px;
    }

    .plan-card__amount {
        font-size: 22px;
    }

    /* Картки послуг */
    .svc-card {
        min-height: 140px;
    }

    .svc-card__body {
        padding: 12px 10px 10px;
        gap: 5px;
    }

    .svc-card__title {
        font-size: 13px;
    }

    /* Розклад на дуже малому екрані */
    .sch-card {
        grid-template-columns: 40px 1fr auto;
        padding: 8px 10px;
        gap: 5px 8px;
    }

    .sch-card__time {
        font-size: 13px;
    }

    .sch-card__name {
        font-size: 12px;
    }

    .sch-card__btn {
        padding: 5px 8px;
        font-size: 9px;
    }

    /* Про нас: стрічка цифр — 2 колонки */
    .about-nums {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Контакти: ширший опис */
    .about-contact-list dd {
        font-size: 13px;
    }
}
