:root {
    --red: #E4152B;
    --red-dark: #A80D14;
    --ink: #17130F;
    --ink-soft: #4A4340;
    --paper: #FBF9F7;
    --line: #EBE4DE;
    --card: #F3EDE8;
    --white: #FFFFFF;
    --ease: cubic-bezier(.16, .84, .44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .display {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: 1.02;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
}

section {
    scroll-margin-top: 90px;
    padding: 110px 0;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(251, 249, 247, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: background .3s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: .03em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 72px;
    flex: 0 0 auto;
}

.logo img {
    height: 44px;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.logo span {
    color: var(--red);
}

.header-inner .logo {
    margin-left: -72px;
}

nav {
    flex: 1;
    margin: 0 32px;
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    list-style: none;
    width: 100%;
}

nav a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    position: relative;
    padding: 6px 0;
    color: var(--ink);
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width .3s var(--ease);
}

nav a:hover::after,
nav a:focus-visible::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: 13px;
    padding: 14px 28px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
    box-shadow: 0 8px 20px -8px rgba(228, 21, 43, .6);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    background: var(--red-dark);
    box-shadow: 0 12px 24px -8px rgba(168, 13, 20, .55);
}

.btn.ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: none;
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
    background: var(--ink);
    color: var(--white);
}

.burger {
    display: none;
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.burger span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ink);
    transition: .3s;
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 9px;
}

.burger span:nth-child(3) {
    top: 18px;
}

.burger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0; 
    left: 20%;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(233, 227, 227, 0.767); 
    backdrop-filter: blur(4px); 
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
    padding: 70px 24px 40px;
    box-sizing: border-box;
}
.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.mobile-nav a {
    display: block;
    padding: 16px 4px;
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
}

/* Оверлей для мобильного меню */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
}
.mobile-overlay.active {
    display: block;
}
body.menu-open {
    overflow: hidden;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 78px;
    overflow: hidden;
    background: linear-gradient(180deg, #1A1512 0%, #100D0B 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 30%, rgba(228, 21, 43, .35), transparent 55%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 34px);
    pointer-events: none;
}

.hero-stripe {
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100%;
    background: linear-gradient(115deg, transparent 42%, var(--red) 42.3%, var(--red-dark) 60%, transparent 60.3%);
    opacity: .9;
    animation: stripeIn 1.4s var(--ease) both;
}

@keyframes stripeIn {
    from {
        transform: translateX(15%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: .9;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 640px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 22px;
    animation: fadeUp .8s var(--ease) .1s both;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--red);
}

.hero h1 {
    font-size: clamp(42px, 6vw, 74px);
    font-weight: 700;
    margin-bottom: 22px;
    animation: fadeUp .8s var(--ease) .25s both;
    text-stroke: 1px var(--red);
    -webkit-text-stroke: 1px var(--red);
}

.hero h1 em {
    font-style: normal;
    color: var(--red);
    text-stroke: 1px rgb(255, 255, 255);
    -webkit-text-stroke: 1px rgb(255, 255, 255);
}

.hero p {
    font-size: 18px;
    color: #D8D2CC;
    max-width: 480px;
    margin-bottom: 38px;
    line-height: 1.55;
    animation: fadeUp .8s var(--ease) .4s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp .8s var(--ease) .55s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, .12);
    background: rgba(0, 0, 0, .25);
    backdrop-filter: blur(6px);
    z-index: 2;
}

.hero-stats .wrap {
    display: flex;
    width: 100%;
    padding: 0 32px;
}

.stat {
    flex: 1;
    padding: 22px 0;
    color: var(--white);
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.stat:last-child {
    border-right: none;
}

.stat b {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    color: var(--white);
    display: block;
}

.stat span {
    font-size: 13px;
    color: #B9B2AC;
}

/* Section headings */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
    gap: 24px;
    flex-wrap: wrap;
}

.kicker {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kicker::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--red);
}

.section-head h2 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    max-width: 560px;
}

.section-head p {
    color: var(--ink-soft);
    max-width: 380px;
    font-size: 15.5px;
    line-height: 1.6;
}

/* Services */
.services {
    background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 10px;
    background: linear-gradient(90deg, var(--red) 0%, var(--red-dark) 100%);
    opacity: .95;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch;
}

.service-card {
    background: var(--white);
    padding: 28px 28px 26px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: background .4s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(23, 19, 15, .04);
}

.service-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: var(--red);
    transform: scaleX(.1);
    transform-origin: left;
    transition: transform .35s var(--ease);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    pointer-events: none;
    border: 1px solid transparent;
    transition: border-color .35s var(--ease);
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(228, 21, 43, .12);
    background: linear-gradient(180deg, var(--white) 0%, #fff7f6 100%);
    border-color: var(--red);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    border-color: rgba(228, 21, 43, .55);
}

.service-card .service-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .12;
    pointer-events: none;
    background: linear-gradient(135deg, var(--red) 0%, transparent 100%);
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
}

.service-card .num {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    color: var(--red);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 19px;
    margin: 18px 0 10px;
    position: relative;
    z-index: 1;
    line-height: 1.12;
    min-height: 40px;
}

.service-card p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

.service-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.service-card .service-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--red);
    background: rgba(228, 21, 43, .08);
    border-radius: 999px;
    padding: 7px 12px;
    align-self: flex-start;
}

.service-card .arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .35s var(--ease);
    position: relative;
    z-index: 1;
}

.service-card:hover .arrow {
    background: var(--red);
    border-color: var(--red);
    transform: rotate(45deg);
}

.service-card:hover .arrow svg {
    stroke: var(--white);
}

.service-card .arrow svg {
    width: 16px;
    height: 16px;
    stroke: var(--red);
    transition: .3s;
}

.service-card:hover .service-tag {
    background: var(--red);
    color: var(--white);
}

/* Service modal */
.service-modal {
    max-width: 580px;
}

.service-modal h3 {
    font-size: 28px;
    margin-top: 12px;
    margin-bottom: 10px;
}

.service-modal p {
    font-size: 14px;
    line-height: 1.72;
    color: var(--ink-soft);
    margin-bottom: 20px;
}

.service-modal-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 210px;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    background: var(--card);
}

.service-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Zones */
.zones {
    background: var(--ink);
    color: var(--white);
    position: relative;
}

.zones .kicker {
    color: var(--red);
}

.zones .section-head h2 {
    color: var(--white);
}

.zones .section-head p {
    color: #B9B2AC;
}

.zone-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.zone-tab {
    padding: 12px 22px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, .18);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s var(--ease);
    background: transparent;
    color: #D8D2CC;
}

.zone-tab.active,
.zone-tab:hover,
.zone-tab:focus-visible {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.zone-panels {
    position: relative;
    min-height: 260px;
}

.zone-panel {
    display: none;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    animation: fadeUp .5s var(--ease) both;
}

.zone-panel.active {
    display: grid;
}

.zone-panel h3 {
    font-size: 30px;
    margin-bottom: 16px;
}

.zone-panel p {
    color: #C7C0BA;
    line-height: 1.7;
    font-size: 15.5px;
    margin-bottom: 26px;
}

.zone-visual {
    aspect-ratio: 4/3;
    border-radius: 18px;
    background: linear-gradient(135deg, #2A231F, #171310);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
}

.zone-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.zone-meta {
    display: flex;
    gap: 28px;
    margin-top: 6px;
}

.zone-meta div b {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    color: var(--red);
}

.zone-meta div span {
    font-size: 13px;
    color: #A29B95;
}

/* Schedule */
.schedule {
    background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}

.schedule-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.schedule-tab {
    padding: 11px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s var(--ease);
    background: var(--white);
    color: var(--ink-soft);
}

.schedule-tab.active,
.schedule-tab:hover,
.schedule-tab:focus-visible {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.schedule-panel {
    display: none;
}

.schedule-panel.active {
    display: block;
}

.schedule-table-wrap {
    background: var(--white);
    border-radius: 20px;
    overflow: auto;
    border: 1px solid var(--line);
    box-shadow: 0 16px 34px rgba(54, 40, 30, .06);
}

.schedule-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.schedule-table thead tr {
    background: linear-gradient(180deg, #221b17, #151210);
}

.schedule-table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #d6d3ce;
    text-align: center;
    padding: 16px 12px;
    border-right: 1px solid rgba(255, 255, 255, .08);
    font-family: 'Oswald', sans-serif;
}

.schedule-table thead th:first-child {
    width: 90px;
    text-align: left;
}

.schedule-table tbody td {
    padding: 14px 12px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--ink-soft);
    vertical-align: top;
    text-align: center;
}

.schedule-table tbody td:first-child {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    line-height: 1;
    color: var(--red);
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    background: var(--paper);
    border-left: 1px solid var(--line);
}

.schedule-table tbody td:nth-child(2) {
    background: rgba(255, 248, 246, .55);
}

.schedule-table tbody td:nth-child(odd) {
    background: #fbf9f6;
}

.schedule-table tbody tr:nth-child(even) td {
    background: var(--white);
}

.schedule-table tbody tr:hover td {
    background: #fff2f1;
}

.schedule-table tbody .time {
    text-transform: uppercase;
    letter-spacing: .10em;
}

.lesson-title {
    display: block;
    font-weight: 800;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.25;
}

.lesson-trainer {
    display: block;
    margin-top: 4px;
    color: var(--red);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .10em;
}

.schedule-table .lesson-title:only-child {
    color: var(--ink);
}

.schedule-week-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0 10px;
}
.week-nav-btn {
    background: var(--red);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
}
.week-nav-btn:hover:not(:disabled) {
    transform: scale(1.05);
}
.week-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.week-range {
    font-weight: 600;
    font-size: 16px;
    min-width: 140px;
    text-align: center;
}
@media (max-width: 600px) {
    .week-range { font-size: 14px; min-width: 100px; }
    .week-nav-btn { width: 32px; height: 32px; font-size: 18px; }
}

/* Lesson modal */
.lesson-modal {
    max-width: 760px;
    width: min(760px, calc(100vw - 56px));
    padding: 38px 42px 34px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .16);
}

.lesson-modal .modal-close {
    top: 14px;
    right: 14px;
}

.lesson-modal h3 {
    font-size: clamp(30px, 4vw, 38px);
    line-height: 1.03;
    margin: 0 0 12px;
    color: var(--ink);
    font-family: 'Oswald', sans-serif;
    letter-spacing: -.02em;
}

.lesson-modal-title-rule {
    height: 4px;
    width: 180px;
    background: var(--red);
    border-radius: 99px;
    margin: 8px 0 20px;
}

.lesson-modal-head {
    margin-bottom: 20px;
}

.lesson-modal-date-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--ink-soft);
}

.lesson-modal-date-row span {
    font-weight: 800;
    color: var(--ink);
}

.lesson-modal-date-row #lessonModalDayTime {
    font-weight: 700;
    color: var(--ink-soft);
}

.lesson-modal-date-row #lessonModalDuration {
    font-weight: 700;
    color: var(--red);
}

.lesson-modal-date-row #lessonModalDuration::before {
    content: '◔ ';
}

.lesson-modal-date-separator {
    color: #A29B95 !important;
}

.lesson-modal-trainer-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
    margin-top: 16px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.lesson-modal-photo-wrap {
    min-height: 150px;
    min-width: 150px;
    max-width: 150px;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid var(--line);
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px #fff;
}

.lesson-modal-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center;
    display: none;
    border-radius: 50%;
}

.lesson-modal-trainer-copy {
    min-width: 0;
}

.lesson-modal-trainer-name {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    line-height: 1.08;
    color: var(--ink);
    margin-bottom: 6px;
}

.lesson-modal-trainer-room {
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 4px;
}

.lesson-modal-text {
    margin-top: 20px;
}

.lesson-modal-text p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--ink-soft);
    margin: 0 0 20px;
}

.schedule-lesson-cell {
    cursor: pointer;
}

.lesson-item {
    display: block;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background .2s, color .2s;
    position: relative;
}

.lesson-item+.lesson-item {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.lesson-item:hover {
    background: rgba(228, 21, 43, .08);
}

.lesson-item:hover .lesson-title {
    color: var(--red);
}

.lesson-item:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.schedule-lesson-cell span:nth-child(1) {
    cursor: pointer;
}

.schedule-lesson-cell:hover {
    text-decoration: none;
}

.schedule-lesson-cell:hover .lesson-title {
    color: var(--red);
}

@media (max-width: 620px) {
    .lesson-modal {
        padding: 34px 24px;
    }
    .lesson-modal-trainer-row {
        align-items: flex-start;
    }
    .lesson-modal-photo-wrap {
        min-width: 150px;
    }
    .lesson-modal-photo {
        height: 150px;
    }
}

.schedule-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    color: var(--ink-soft);
    font-size: 12px;
}

.schedule-info-bar .legend {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.schedule-info-bar .legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.schedule-info-bar .legend span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
}

@media (max-width: 980px) {
    .schedule-table-wrap {
        overflow-x: auto;
    }
    .schedule-table {
        min-width: 640px;
    }
}

@media (max-width: 600px) {
    .schedule-table {
        min-width: 500px;
    }
    .schedule-table tbody td,
    .schedule-table thead th {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Gallery */
.gallery {
    background: var(--paper);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 14px;
}

.gallery-grid .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-grid a {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: block;
}

.gallery-grid .ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--card), #E7DED6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .5s var(--ease);
}

.gallery-grid a:hover .ph {
    transform: scale(1.06);
}

.gallery-grid .ph span {
    font-size: 12px;
    color: var(--ink-soft);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.gallery-grid a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .55));
    opacity: 0;
    transition: opacity .35s;
    z-index: 1;
}

.gallery-grid a:hover::before {
    opacity: 1;
}

.gallery-grid a .label {
    position: absolute;
    left: 18px;
    bottom: 18px;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
    opacity: 0;
    transform: translateY(8px);
    transition: .35s var(--ease);
}

.gallery-grid a:hover .label {
    opacity: 1;
    transform: translateY(0);
}

/* Team */
.team {
    background: var(--white);
}

.team-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.team-filter {
    padding: 11px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s var(--ease);
    background: var(--white);
    color: var(--ink-soft);
}

.team-filter.active,
.team-filter:hover,
.team-filter:focus-visible {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.team-count {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 28px;
}

.team-count b {
    color: var(--ink);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.team-card {
    text-align: left;
    opacity: 0;
    transform: translateY(10px) scale(.98);
    animation: cardIn .5s var(--ease) both;
    cursor: pointer;
}

.team-card:hover h3 {
    color: var(--red);
}

.team-card.hidden {
    display: none;
}

@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.team-photo {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 12px;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card:hover .team-photo {
    transform: translateY(-4px);
}

.team-photo::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
}

.team-card:hover .team-photo::after {
    transform: scaleX(1);
}

.team-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(23, 19, 15, .75);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 5px 10px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.team-card h3 {
    font-size: 16px;
    text-transform: none;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    margin-bottom: 2px;
}

.team-card span {
    font-size: 13px;
    color: var(--red);
    font-weight: 600;
}

.team-photo img,
.staff-panel-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

body.modal-open {
    overflow: hidden;
}

body.modal-open main,
body.modal-open header {
    filter: blur(8px);
    transform: scale(.985);
    transition: .45s cubic-bezier(.2, .8, .2, 1);
}

/* Staff panel overlay */
.panel-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
    z-index: 300;
}

.panel-overlay.open {
    opacity: 1;
    visibility: visible;
}

.staff-panel {
    position: relative;
    width: min(900px, 90vw);
    max-height: 90vh;
    background: white;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
    transform: scale(.75);
    opacity: 0;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .35s;
    display: flex;
    flex-direction: column;
}

.panel-overlay.open .staff-panel {
    transform: scale(1);
    opacity: 1;
}

.staff-panel-photo {
    width: 100%;
    height: 420px;
    flex-shrink: 0;
    overflow: hidden;
}

.staff-panel-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-panel-close {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    cursor: pointer;
    transition: .3s;
    z-index: 5;
}

.staff-panel-close:hover,
.staff-panel-close:focus-visible {
    background: #E4152B;
}

.staff-panel-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.staff-panel-tag {
    display: inline-block;
    background: #f2f2f2;
    padding: 7px 14px;
    border-radius: 999px;
    color: #E4152B;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(12px);
    transition: .3s;
    transition-delay: .15s;
}

.staff-panel-body h3 {
    font-size: 34px;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(12px);
    transition: .3s;
    transition-delay: .22s;
}

.staff-panel-role {
    display: block;
    color: #E4152B;
    font-weight: 700;
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(12px);
    transition: .3s;
    transition-delay: .30s;
}

.staff-panel-desc {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
    opacity: 0;
    transform: translateY(12px);
    transition: .3s;
    transition-delay: .38s;
}

.panel-overlay.open .staff-panel-tag,
.panel-overlay.open .staff-panel-body h3,
.panel-overlay.open .staff-panel-role,
.panel-overlay.open .staff-panel-desc {
    opacity: 1;
    transform: none;
}

.staff-panel-desc.empty {
    color: #999;
    font-style: italic;
}

/* CTA */
.cta {
    background: linear-gradient(120deg, var(--red-dark), var(--red));
    color: var(--white);
    border-radius: 28px;
    margin: 0 32px;
    padding: 64px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.cta h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    max-width: 460px;
    position: relative;
    z-index: 1;
}

.cta .btn {
    background: var(--white);
    color: var(--red-dark);
    position: relative;
    z-index: 1;
    box-shadow: none;
}

.cta .btn:hover {
    background: var(--ink);
    color: var(--white);
}

/* Massage */
.massage {
    background: var(--ink);
    color: var(--white);
}

.massage .kicker {
    color: var(--red);
}

.massage .section-head h2 {
    color: var(--white);
}

.massage .section-head p {
    color: #B9B2AC;
}

.massage-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #1F1A16;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
}

.massage-info {
    padding: 44px;
}

.massage-info h3 {
    font-size: 24px;
    margin-bottom: 14px;
}

.massage-info p {
    color: #C7C0BA;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.massage-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14.5px;
    color: #D8D2CC;
}

.massage-info ul li {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.massage-info ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex: 0 0 auto;
    margin-top: 6px;
}

.massage-form {
    padding: 44px;
    background: #171310;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.massage-form label {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #A29B95;
    margin-bottom: -6px;
}

.massage-form input,
.massage-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: var(--white);
    font-family: 'Manrope';
    font-size: 14.5px;
    transition: border-color .25s;
}

.massage-form input::placeholder {
    color: #7A736E;
}

.massage-form input:focus,
.massage-form select:focus {
    outline: none;
    border-color: var(--red);
}

.massage-form .btn {
    margin-top: 8px;
}

.massage-success {
    display: none;
    color: #8AD98A;
    font-size: 13.5px;
    margin-top: 4px;
}

.massage-form select option {
    background: #ffffff;
    color: #000000;
}

/* Footer */
footer {
    background: var(--ink);
    color: #B9B2AC;
    padding: 64px 0 28px;
    margin-top: 110px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.footer-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-logo span {
    color: var(--red);
}

.footer-col h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--white);
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-col a {
    font-size: 14.5px;
    transition: color .25s;
}

.footer-col a:hover {
    color: var(--red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 10px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 12, 10, .6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--white);
    border-radius: 20px;
    padding: 44px;
    max-width: 400px;
    width: 90%;
    transform: translateY(20px) scale(.97);
    transition: transform .35s var(--ease);
    position: relative;
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.modal p {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 22px;
}

.modal input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    margin-bottom: 14px;
    font-family: 'Manrope';
    font-size: 14.5px;
    transition: border-color .25s;
}

.modal input:focus {
    outline: none;
    border-color: var(--red);
}

.modal .btn {
    width: 100%;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--card);
    transition: .25s;
}

.modal-close:hover,
.modal-close:focus-visible {
    background: var(--red);
    color: var(--white);
}

/* Map */
.map-section {
    background: var(--white);
    padding-top: 90px;
    padding-bottom: 40px;
}

.map-container {
    margin-top: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
}

.map-container iframe {
    display: block;
    filter: grayscale(20%);
}

@media (max-width: 600px) {
    .map-container iframe {
        height: 300px;
    }
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .88);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.gallery-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.gallery-modal-content {
    position: relative;
    width: min(1100px, 80vw);
    height: min(750px, 85vh);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.gallery-modal-close,
.gallery-modal-prev,
.gallery-modal-next {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, .12);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s ease;
    z-index: 2;
}

.gallery-modal-close:hover,
.gallery-modal-prev:hover,
.gallery-modal-next:hover,
.gallery-modal-close:focus-visible,
.gallery-modal-prev:focus-visible,
.gallery-modal-next:focus-visible {
    background: var(--red);
}

.gallery-modal-close {
    top: 24px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
}

.gallery-modal-prev,
.gallery-modal-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 42px;
}

.gallery-modal-prev {
    left: 28px;
}

.gallery-modal-next {
    right: 28px;
}

.gallery-modal-counter {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .65);
    color: white;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 600px) {
    .gallery-modal-content {
        width: 92vw;
        height: 80vh;
    }
    .gallery-modal-prev,
    .gallery-modal-next {
        width: 42px;
        height: 42px;
        font-size: 32px;
    }
    .gallery-modal-prev {
        left: 10px;
    }
    .gallery-modal-next {
        right: 10px;
    }
    .gallery-modal-close {
        top: 15px;
        right: 15px;
    }
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ (дополнительная) ===== */

/* Планшеты и небольшие экраны (до 1024px) */
@media (max-width: 1024px) {
    .wrap {
        padding: 0 20px;
    }
    section {
        padding: 70px 0;
    }
    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .section-head h2 {
        max-width: 100%;
    }
    .section-head p {
        max-width: 100%;
    }
}

/* Телефоны (до 768px) */
@media (max-width: 768px) {
    .wrap {
        padding: 0 16px;
    }
    section {
        padding: 50px 0;
    }
    h1 {
        font-size: 32px !important;
    }
    h2 {
        font-size: 26px !important;
    }
    .hero h1 {
        font-size: 36px !important;
        -webkit-text-stroke: 0 !important;
    }
    .hero p {
        font-size: 15px;
    }
    .hero-stats .stat b {
        font-size: 22px;
    }
    .hero-stats .stat span {
        font-size: 12px;
    }
    .hero-stats .wrap {
        padding: 0 16px;
        flex-wrap: wrap;
    }
    .stat {
        flex: 1 1 50%;
        padding: 16px 0;
        border-bottom: 1px solid rgba(255,255,255,.1);
    }
    .stat:last-child {
        border-bottom: none;
    }

    /* Сетка услуг – 1 колонка */
    .grid-services {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .service-card {
        min-height: 200px;
        padding: 20px;
    }
    .service-card h3 {
        font-size: 17px;
        min-height: auto;
    }

    /* Сетка галереи – 2 колонки, адаптивная */
    .gallery-grid {
        grid-template-columns: 1fr 1fr !important;
        grid-auto-rows: 160px !important;
        gap: 10px !important;
    }
    .gallery-grid .gallery-item:first-child {
        grid-column: span 2 !important;
        grid-row: span 1 !important;
    }
    .gallery-grid .ph {
        border-radius: 10px;
    }
    .gallery-grid a .label {
        font-size: 12px;
        left: 12px;
        bottom: 12px;
    }

    /* Сетка команды – 2 колонки */
    .team-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 14px;
    }
    .team-photo {
        height: 200px !important;
    }
    .team-card h3 {
        font-size: 14px;
    }
    .team-card span {
        font-size: 12px;
    }

    /* Фильтры команды – перенос, мелкий шрифт */
    .team-filters {
        gap: 6px;
        margin-bottom: 20px;
    }
    .team-filter {
        font-size: 11px;
        padding: 8px 14px;
    }

    /* Расписание – таблица с горизонтальным скроллом */
    .schedule-table-wrap {
        border-radius: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .schedule-table {
        min-width: 600px !important;
        font-size: 12px;
    }
    .schedule-table thead th {
        font-size: 10px;
        padding: 10px 8px;
    }
    .schedule-table tbody td {
        padding: 10px 8px;
        font-size: 12px;
    }
    .schedule-table tbody td:first-child {
        font-size: 16px;
        min-width: 60px;
    }
    .lesson-title {
        font-size: 11px;
    }
    .lesson-trainer {
        font-size: 9px;
    }

    /* Вкладки расписания */
    .schedule-tabs {
        gap: 6px;
    }
    .schedule-tab {
        font-size: 11px;
        padding: 8px 14px;
    }

    /* Секция Зоны */
    .zone-panel {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    .zone-tabs {
        gap: 6px;
    }
    .zone-tab {
        font-size: 12px;
        padding: 8px 14px;
    }
    .zone-panel h3 {
        font-size: 22px;
    }
    .zone-visual {
        aspect-ratio: 16/9;
    }

    /* Блок массажа */
    .massage-box {
        grid-template-columns: 1fr !important;
        border-radius: 16px;
    }
    .massage-info {
        padding: 24px;
    }
    .massage-info h3 {
        font-size: 20px;
    }
    .massage-form {
        padding: 24px;
    }

    /* CTA */
    .cta {
        margin: 0 16px;
        padding: 32px 24px;
        border-radius: 20px;
    }
    .cta h2 {
        font-size: 22px;
        max-width: 100%;
    }

    /* Футер */
    .footer-top {
        flex-direction: column;
        gap: 24px;
    }
    .footer-col {
        width: 100%;
    }

    /* Модальные окна */
    .modal {
        padding: 28px 20px;
        max-width: 95%;
        width: 95%;
    }
    .modal h3 {
        font-size: 20px;
    }
    .modal input,
    .modal .btn {
        font-size: 14px;
    }
    .modal-close {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    /* Модалка сотрудника */
    .staff-panel {
        width: 100vw !important;
        border-radius: 0 !important;
        max-height: 100vh;
    }
    .staff-panel-photo {
        height: 280px !important;
    }
    .staff-panel-body {
        padding: 24px !important;
        max-height: calc(100vh - 280px) !important;
    }
    .staff-panel-body h3 {
        font-size: 24px;
    }
    .staff-panel-role {
        font-size: 14px;
    }
    .staff-panel-desc {
        font-size: 14px;
    }

    /* Модалка услуги */
    .service-modal {
        max-width: 95%;
    }
    .service-modal-image-wrap {
        height: 160px;
    }
    .service-modal h3 {
        font-size: 22px;
    }

    /* Модалка занятия */
    .lesson-modal {
        padding: 24px !important;
        width: 95% !important;
    }
    .lesson-modal h3 {
        font-size: 26px !important;
    }
    .lesson-modal-trainer-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .lesson-modal-photo-wrap {
        min-width: 120px !important;
        max-width: 120px !important;
        min-height: 120px !important;
    }
    .lesson-modal-photo {
        width: 120px;
        height: 120px;
    }
    .lesson-modal-trainer-name {
        font-size: 22px;
        text-align: center;
    }
    .lesson-modal-trainer-room {
        text-align: center;
    }
    .lesson-modal-date-row {
        font-size: 12px;
        gap: 4px;
    }
    .lesson-modal-date-row span {
        font-size: 12px;
    }

    /* Галерея модалка */
    .gallery-modal-content {
        width: 95vw !important;
        height: 80vh !important;
    }
    .gallery-modal-prev,
    .gallery-modal-next {
        width: 36px !important;
        height: 36px !important;
        font-size: 24px !important;
    }
    .gallery-modal-prev {
        left: 6px !important;
    }
    .gallery-modal-next {
        right: 6px !important;
    }
    .gallery-modal-close {
        width: 36px !important;
        height: 36px !important;
        font-size: 24px !important;
        top: 12px !important;
        right: 12px !important;
    }

    /* Карта */
    .map-container iframe {
        height: 250px !important;
    }

    /* Хедер – уменьшаем размеры */
    .header-inner {
        height: 60px !important;
    }
    .logo img {
        height: 32px !important;
    }
    .btn {
        font-size: 11px !important;
        padding: 10px 18px !important;
    }
    .phone {
        font-size: 13px !important;
    }
    .header-actions {
        gap: 12px;
    }
    .burger {
        width: 22px;
        height: 16px;
    }
    .burger span {
        height: 2px;
    }
    .burger span:nth-child(2) {
        top: 7px;
    }
    .burger span:nth-child(3) {
        top: 14px;
    }
    .burger.active span:nth-child(1) {
        top: 7px;
    }
    .burger.active span:nth-child(3) {
        top: 7px;
    }

    .mobile-nav {
        top: 0 !important; 
        padding: 70px 20px 40px !important; 
        height: 100vh !important;
        overflow-y: auto;
        box-sizing: border-box; 
    }
    .mobile-nav a {
        font-size: 16px;
        padding: 14px 0;
    }
    .mobile-overlay {
        top: 60px !important;
    }

    /* Отступы для секций */
    section {
        scroll-margin-top: 60px !important;
    }
}


@media (max-width: 480px) {
    .wrap {
        padding: 0 12px;
    }
    .gallery-grid {
        grid-auto-rows: 130px !important;
        gap: 8px !important;
    }
    .team-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }
    .team-photo {
        height: 160px !important;
    }
    .team-card h3 {
        font-size: 13px;
    }
    .team-card span {
        font-size: 11px;
    }
    .service-card h3 {
        font-size: 16px;
    }
    .hero h1 {
        font-size: 30px !important;
    }
    .hero p {
        font-size: 14px;
    }
    .hero-cta .btn {
        font-size: 12px;
        padding: 12px 20px;
    }
    .btn {
        font-size: 11px !important;
        padding: 10px 16px !important;
    }
    .phone {
        font-size: 12px !important;
    }
    .header-actions {
        gap: 8px;
    }
    .burger {
        width: 20px;
        height: 14px;
    }
    .burger span:nth-child(2) {
        top: 6px;
    }
    .burger span:nth-child(3) {
        top: 12px;
    }
    .burger.active span:nth-child(1),
    .burger.active span:nth-child(3) {
        top: 6px;
    }
}


@media (max-width: 768px) {
    .header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 56px !important;
        padding: 0 12px;
        gap: 6px;
    }

    .header-inner .logo {
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex: 0 0 auto;
    }
    .logo img {
        height: 30px !important;
        width: auto;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 0 0 auto;
    }

    .phone {
        font-size: 12px !important;
        white-space: nowrap;
    }

    .btn {
        font-size: 10px !important;
        padding: 8px 12px !important;
        border-radius: 999px;
        min-width: auto;
        white-space: nowrap;
    }

    .burger {
        width: 22px;
        height: 16px;
        flex: 0 0 auto;
    }
    .burger span {
        height: 2px;
    }
    .burger span:nth-child(2) {
        top: 7px;
    }
    .burger span:nth-child(3) {
        top: 14px;
    }
    .burger.active span:nth-child(1),
    .burger.active span:nth-child(3) {
        top: 7px;
    }


    .phone {
        display: none; 
    }
   
}


@media (max-width: 400px) {
    .header-inner {
        padding: 0 8px;
        height: 50px !important;
    }
    .logo img {
        height: 26px !important;
    }
    .btn {
        font-size: 9px !important;
        padding: 6px 10px !important;
    }
    .phone {
        display: none !important; 
    }
}

@media (max-width: 768px) {
    .header-actions .phone {
        display: none !important;
    }
    nav {
        display: none !important;
    }
    .burger {
        display: block !important;
    }
    .header-actions .btn {
        display: inline-flex !important;
        font-size: 11px !important;
        padding: 8px 14px !important;
        white-space: nowrap;
        margin-right: 4px;
    }
    .header-inner {
        padding: 0 12px;
        height: 56px !important;
    }
    .logo img {
        height: 30px !important;
    }
    .header-inner .logo {
        margin: 0 !important;
        flex: 0 0 auto;
    }
    .header-actions {
        gap: 6px;
        flex: 0 0 auto;
    }
    .burger {
        width: 22px;
        height: 16px;
        flex: 0 0 auto;
    }

    
}

/* ===== МОБИЛЬНОЕ РАСПИСАНИЕ (новая структура) ===== */
@media (max-width: 768px) {
    .schedule-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }
    .schedule-table {
        min-width: 100%;
        font-size: 11px;
        border-collapse: collapse;
    }
    .schedule-table thead {
        display: none; /* скрываем заголовки времени */
    }
    .schedule-table tbody tr {
        display: flex !important;
        flex-direction: column;
        background: var(--white);
        border-radius: 12px;
        border: 1px solid var(--line);
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        padding: 10px 12px !important;
        margin-bottom: 12px !important;
    }
    .schedule-table tbody td {
        display: flex !important;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 2px 6px;
        padding: 4px 0 !important;
        border-bottom: 1px solid var(--line);
        font-size: 12px !important;
        line-height: 1.4;
        background: transparent !important;
        border: none !important;
    }
    .schedule-table tbody td:last-child {
        border-bottom: none;
    }
    .schedule-table tbody td.day-name {
        font-size: 16px !important;
        font-weight: 700;
        color: var(--red);
        padding-bottom: 6px !important;
        border-bottom: 2px solid var(--red);
        margin-bottom: 4px;
    }
    .schedule-table tbody td:not(.day-name)::before {
        content: attr(data-time);
        font-weight: 600;
        color: var(--ink);
        min-width: 40px;
        font-size: 11px;
        flex-shrink: 0;
    }
    .lesson-item {
        display: inline-block !important;
        padding: 2px 6px !important;
        margin: 1px 0 !important;
        background: rgba(228, 21, 43, 0.06);
        border-radius: 4px;
        border: none !important;
        white-space: normal;
        word-break: break-word;
        font-size: 10px !important;
        line-height: 1.2;
        width: fit-content;
        max-width: 100%;
    }
    .lesson-title {
        font-size: 10px !important;
        font-weight: 700;
        display: inline;
    }
    .lesson-trainer {
        font-size: 8px !important;
        display: inline;
        margin-left: 2px;
        color: var(--red);
    }
    .schedule-table tbody td:not(.day-name):empty::after {
        content: '—';
        color: #ccc;
        font-size: 11px;
        margin-left: 4px;
    }
}

@media (max-width: 480px) {
    .schedule-table tbody td {
        font-size: 10px !important;
        padding: 3px 0 !important;
        gap: 1px 4px;
    }
    .schedule-table tbody td.day-name {
        font-size: 14px !important;
    }
    .lesson-item {
        font-size: 9px !important;
        padding: 1px 4px !important;
    }
    .lesson-title {
        font-size: 9px !important;
    }
    .lesson-trainer {
        font-size: 7px !important;
    }
}
@supports not (backdrop-filter: blur(1px)) {
    header {
        background: rgba(251, 249, 247, .98);
    }
    .hero-stats {
        background: rgba(0, 0, 0, .5);
    }
    .panel-overlay {
        background: rgba(0, 0, 0, .7);
    }
    .modal-overlay {
        background: rgba(15, 12, 10, .7);
    }
    .gallery-modal {
        background: rgba(0, 0, 0, .92);
    }
}

.mobile-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--ink);
    cursor: pointer;
    padding: 8px 12px;
    line-height: 1;
    z-index: 10;
    transition: transform .2s ease;
}
.mobile-close:hover,
.mobile-close:focus-visible {
    transform: scale(1.2);
    color: var(--red);
}

.gallery-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slider img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    will-change: transform, opacity;
    pointer-events: none;
}

.gallery-slider img:first-child {
    z-index: 2;
}
.gallery-slider img:last-child {
    z-index: 1;
}