:root {
    --bg: #f7fbf9;
    --card: #ffffff;
    --accent: #2e8b7b;
    /* verde calmado */
    --muted: #6b7280;
    --glass: rgba(255, 255, 255, 0.6);
    --radius: 14px;
    --maxwidth: 1100px;
    --shadow: 0 6px 22px rgba(10, 15, 20, 0.06);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f7fbf9 0%, #eef8f7 100%);
    color: #0f1724;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(20, 30, 30, 0.04);
}

.container {
    max-width: var(--maxwidth);
    margin: 0 auto;
    padding: 0 20px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--accent);
    font-size: 1.05rem;
}

.brand img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 18px;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a {
    color: #0f1724;
    text-decoration: none;
    font-weight: 600;
    opacity: .9
}

nav a:hover {
    color: var(--accent)
}

.hero {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 36px;
    align-items: center;
    padding: 48px 0;
}

.hero .copy h1 {
    font-size: 2.1rem;
    margin: 0 0 12px;
    color: #0b3a36;
}

.hero .copy p {
    margin: 0 0 20px;
    color: var(--muted)
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.btn {
    background: var(--accent);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(46, 139, 123, 0.18)
}

.photo {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

section {
    padding: 48px 0;
    border-bottom: 1px solid rgba(20, 30, 30, 0.03);
}

h2 {
    margin: 0 0 12px;
    color: #11383a
}

.lead {
    color: var(--muted);
    margin-bottom: 18px
}

/* Cards grid */
.grid {
    display: grid;
    gap: 18px
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr)
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr)
}

.card {
    background: var(--card);
    padding: 18px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Trainers */
.trainer {
    display: flex;
    gap: 12px;
    align-items: center
}

.trainer img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    flex: 0 0 90px
}

/* Schedule table */
table {
    width: 100%;
    border-collapse: collapse;
    background: transparent
}

th,
td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(10, 20, 20, 0.04)
}

th {
    color: var(--muted);
    font-weight: 600
}

/* Testimonials */
.quote {
    font-style: italic;
    color: #0f3a36
}

/* Gallery grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px
}

.gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px
}

/* Prices */
.pricing {
    display: flex;
    gap: 18px;
    flex-wrap: wrap
}

.plan {
    flex: 1;
    min-width: 220px;
    padding: 22px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #f6fffb);
    box-shadow: var(--shadow);
    border: 1px solid rgba(46, 139, 123, 0.06)
}

.plan h3 {
    margin-top: 0
}

.badge {
    display: inline-block;
    background: rgba(46, 139, 123, 0.1);
    color: var(--accent);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 10px
}

/* FAQ / accordion */
.accordion {
    max-width: 900px
}

.acc-item {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(15, 20, 20, 0.04);
    margin-bottom: 10px
}

.acc-head {
    background: linear-gradient(90deg, rgba(46, 139, 123, 0.04), rgba(20, 40, 40, 0.02));
    padding: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.acc-body {
    padding: 14px;
    display: none;
    background: var(--card)
}

/* Contact form */
form {
    display: grid;
    gap: 10px;
    max-width: 620px
}

input,
textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(15, 20, 20, 0.08);
    font-size: 0.95rem
}

textarea {
    min-height: 110px;
    resize: vertical
}

.footer {
    background: transparent;
    padding: 28px 0;
    color: var(--muted)
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.legal a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 6px
}

.table-container {
      width: 100%; /* Контейнер занимает всю ширину родителя */
      max-width: 100%; /* Ограничиваем максимальную ширину */
      overflow-x: auto; /* Горизонтальная прокрутка */
      overflow-y: auto; /* Вертикальная прокрутка, если нужна */
      max-height: 400px; /* Ограничение высоты для вертикального скролла */
      box-sizing: border-box;
    }

    /* Стили для таблицы */
    table {
      width: 100%; /* Таблица занимает весь контейнер */
      min-width: 600px; /* Минимальная ширина таблицы */
      border-collapse: collapse; /* Убираем двойные границы */
      font-size: 16px; /* Базовый размер шрифта */
    }

.cookie-popup,
.modal {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 22px;
    z-index: 120;
    background: var(--card);
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: clamp(320px, 92%, 720px);
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between
}


.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 10, 0.35);
    z-index: 110;
    display: none
}

.popup-msg {
    padding: 18px;
    background: var(--card);
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 140;
    display: none
}

/* Responsive */
@media (max-width:980px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr)
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr)
    }

    .footer-grid {
        grid-template-columns: 1fr
    }
}

@media (max-width:520px) {
    nav ul {
        display: none
    }

    .grid-3 {
        grid-template-columns: repeat(1, 1fr)
    }

    .grid-2 {
    grid-template-columns: repeat(1, 1fr);
    }

    .brand {
        gap: 8px
    }

    .gallery img {
        height: 120px
    }

    .plan {
        min-width: 100%
    }
}

@media (max-width:520px) {
    nav ul {
        display: none
    }

    .grid-3 {
        grid-template-columns: repeat(1, 1fr)
    }

    .grid-2 {
    grid-template-columns: repeat(1, 1fr);
    }

    .brand {
        gap: 8px
    }

    .gallery img {
        height: 120px
    }

    .plan {
        min-width: 100%
    }
}

/* small UI niceties */
.small {
    font-size: .95rem;
    color: var(--muted)
}

.muted {
    color: var(--muted)
}

.pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 20, 20, 0.02);
    font-weight: 700;
    color: var(--muted)
}

.legal small {
    display: block;
    color: var(--muted);
    margin-top: 8px;
}