/* Современник — спортивный светлый UI */

:root {
    --bg-deep: #e8f4f1;
    --surface: #ffffff;
    --surface-2: rgba(255, 255, 255, 0.72);
    --text: #0f172a;
    --text-soft: #334155;
    --muted: #64748b;
    --accent: #0d9488;
    --accent-hover: #0f766e;
    --accent-2: #2563eb;
    --accent-3: #7c3aed;
    --danger: #dc2626;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow: 0 8px 32px rgba(13, 148, 136, 0.1), 0 2px 8px rgba(37, 99, 235, 0.06);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(13, 148, 136, 0.12);
    --gradient: linear-gradient(125deg, #0d9488 0%, #0891b2 38%, #2563eb 72%, #6366f1 100%);
    --gradient-soft: linear-gradient(165deg, #ccfbf1 0%, #e0f2fe 35%, #ede9fe 70%, #fae8ff 100%);
    --ring: 0 0 0 3px rgba(13, 148, 136, 0.35);
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

.app-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    background-color: #f0faf8;
    background-image:
        radial-gradient(ellipse 120% 80% at 100% -20%, rgba(45, 212, 191, 0.22), transparent 50%),
        radial-gradient(ellipse 90% 60% at -10% 40%, rgba(99, 102, 241, 0.12), transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(14, 165, 233, 0.08), transparent 55%),
        repeating-linear-gradient(
            -8deg,
            transparent,
            transparent 100px,
            rgba(255, 255, 255, 0.35) 100px,
            rgba(255, 255, 255, 0.35) 101px
        );
}

a {
    color: var(--accent-2);
    text-decoration: none;
    transition: color 0.15s var(--ease);
}

a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.container {
    width: min(1120px, 100% - 2rem);
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

.main-inner {
    flex: 1;
    padding: 1.25rem 0 3rem;
}

/* ——— Header ——— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface-2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(13, 148, 136, 0.12);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
}

.logo:hover {
    text-decoration: none;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: var(--gradient);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    position: relative;
    flex-shrink: 0;
}

.logo-icon::after {
    content: "";
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-title {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-sub {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.nav-pages {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    padding: 0.2rem 0.6rem 0.2rem 0.2rem;
    margin-right: 0.35rem;
    border-right: 1px solid rgba(13, 148, 136, 0.18);
}

.nav-pages a {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-soft);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-pill);
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.nav-pages a:hover {
    text-decoration: none;
    background: rgba(13, 148, 136, 0.1);
    color: var(--accent);
}

.nav-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    padding: 0.2rem 0.2rem 0.2rem 0.6rem;
    margin-left: 0.15rem;
}

.nav-actions a {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-soft);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-pill);
    transition: background 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.nav-actions a:hover {
    text-decoration: none;
    background: rgba(13, 148, 136, 0.1);
    color: var(--accent);
}

.nav-actions-admin {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(13, 148, 136, 0.22);
}

.nav-actions-admin:hover {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.2), rgba(37, 99, 235, 0.14));
    border-color: rgba(13, 148, 136, 0.35);
}

.nav-user-chip {
    display: inline-flex;
    align-items: center;
    max-width: 14rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-soft);
    background: rgba(15, 23, 42, 0.045);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-logout-form {
    display: inline-flex;
    margin: 0;
    align-items: center;
}

.nav-logout-btn {
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-soft);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(13, 148, 136, 0.28);
    background: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.nav-logout-btn:hover {
    background: rgba(13, 148, 136, 0.1);
    color: var(--accent);
    border-color: rgba(13, 148, 136, 0.45);
}

.nav-logout-btn:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.inline-form {
    display: inline;
    margin: 0;
}

.bookings-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    align-items: center;
}

.bookings-action-form {
    display: inline;
    margin: 0;
}

.bookings-action-btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.45rem;
    min-width: 2rem;
    line-height: 1.2;
    text-align: center;
}

.prices-admin-table-wrap {
    margin-top: 0.4rem;
}

.prices-save-actions {
    display: flex;
    justify-content: flex-end;
}

.prices-top-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.prices-edit-form,
.prices-edit-form.form-card:not(.form-card--flush) {
    max-width: none;
    width: 100%;
}

.prices-savebar {
    position: sticky;
    top: 0.35rem;
    z-index: 4;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.7rem;
    padding: 0.45rem 0.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(2px);
}

.prices-savebar--bottom {
    position: static;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.prices-admin-table {
    width: 100%;
    min-width: 780px;
}

.prices-admin-table input {
    width: 100%;
}

.price-sort-input {
    max-width: 5rem;
}

.price-row-remove {
    min-width: 2rem;
    padding: 0.3rem 0.45rem;
}

.wysiwyg-wrap {
    margin-top: 0.35rem;
}

.wysiwyg-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

.wysiwyg-btn {
    font-size: 0.78rem;
    padding: 0.32rem 0.55rem;
}

.wysiwyg-editor {
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: var(--radius-sm);
    background: #fff;
    min-height: 220px;
    padding: 0.7rem 0.8rem;
    line-height: 1.6;
}

.wysiwyg-editor:focus {
    outline: none;
    box-shadow: var(--ring);
}

.link-btn {
    background: none;
    border: none;
    color: var(--accent-2);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
}

.link-btn:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: 4px;
}

@media (max-width: 720px) {
    .nav-pages {
        width: 100%;
        border-right: none;
        padding-right: 0;
        margin-right: 0;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(13, 148, 136, 0.12);
    }

    .nav-actions {
        width: 100%;
        padding-left: 0.2rem;
        margin-left: 0;
        padding-top: 0.35rem;
    }
}

/* ——— Typography blocks ——— */
.page-intro {
    margin-bottom: 1.5rem;
}

.page-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.65rem, 4vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text);
}

.page-subtitle {
    margin: 0;
    font-size: 0.95rem;
    max-width: 36rem;
}

/* ——— Footer ——— */
.site-footer {
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(240, 253, 250, 0.9));
}

.footer-links {
    margin: 0 0 0.65rem;
    font-size: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.65rem;
    align-items: center;
}

.footer-links a {
    color: var(--muted);
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: none;
}

.small {
    font-size: 0.8125rem;
}

/* ——— Static pages ——— */
.page-article {
    max-width: 44rem;
}

.page-article h1 {
    margin-top: 0;
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.page-article h2 {
    margin-top: 1.75rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.page-article .lead {
    font-size: 1.0625rem;
    color: var(--muted);
    line-height: 1.65;
}

.page-article .page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 0.85rem;
    margin: 1.5rem 0 0;
}

.page-article.page-article--reviews,
.page-article.page-article--trainers,
.page-article.page-article--contacts,
.page-article.page-article--about {
    max-width: none;
    width: 100%;
}

.page-article--contacts .contact-feedback-form.form-card:not(.form-card--flush),
.page-article--contacts .contact-feedback-stub-note {
    max-width: none;
}

.page-dynamic-body {
    margin-top: 0.5rem;
}

.page-dynamic-body p {
    margin: 0 0 1rem;
    line-height: 1.65;
    color: var(--text-soft);
    font-size: 1rem;
}

.page-dynamic-body p:last-child {
    margin-bottom: 0;
}

.prices-page {
    max-width: none;
}

.prices-list-wrap {
    margin-top: 1rem;
    overflow-x: auto;
}

.prices-list {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.prices-list th,
.prices-list td {
    padding: 0.68rem 0.72rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    text-align: left;
}

.prices-list th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-soft);
}

.prices-list-price {
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
}

.prices-description {
    margin-top: 1rem;
}

/* ——— Публичная страница тренеров ——— */
.trainers-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.35rem;
    margin-top: 1.25rem;
}

.trainer-public-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    border-radius: var(--radius);
    border: 1px solid rgba(13, 148, 136, 0.12);
    padding: 1.25rem 1.2rem 1.15rem;
    box-shadow: var(--shadow-sm);
}

.trainer-public-photo-wrap {
    margin-bottom: 0.85rem;
}

.trainer-public-photo {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    box-shadow: var(--shadow-sm);
}

.trainer-public-photo--placeholder {
    max-width: 200px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(37, 99, 235, 0.1));
    border: 1px dashed rgba(13, 148, 136, 0.25);
}

.trainer-public-name {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.trainer-public-locations {
    margin: 0 0 0.65rem;
}

.trainer-public-body {
    margin-top: 0.35rem;
}

.trainer-public-body p {
    font-size: 0.9rem;
}

/* ——— Админка: тренеры ——— */
.admin-subheading {
    margin: 2rem 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.admin-subheading:first-of-type {
    margin-top: 1rem;
}

.trainer-location-add {
    margin-bottom: 1rem;
    align-items: flex-end;
}

.trainer-locations-table {
    margin-bottom: 0.5rem;
}

.trainer-location-edit-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
}

.trainer-location-edit-form input[type="text"] {
    min-width: 18rem;
}

.trainer-location-edit-row td {
    background: rgba(13, 148, 136, 0.04);
}

.trainer-location-edit-toggle {
    font-weight: 700;
}

.trainer-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.icon-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.28rem 0.45rem;
    line-height: 1.1;
    text-decoration: none;
}

.blocks-compact-form,
.blocks-compact-form.form-card:not(.form-card--flush) {
    max-width: none;
    width: 100%;
    padding: 0.95rem 1.1rem 1rem;
    margin-bottom: 0.7rem;
}

.blocks-compact-form label {
    margin-bottom: 0.55rem;
    font-size: 0.76rem;
}

.blocks-compact-form input,
.blocks-compact-form select {
    margin-top: 0.28rem;
    padding: 0.48rem 0.62rem;
    font-size: 0.88rem;
}

.blocks-compact-form .btn {
    padding: 0.44rem 0.72rem;
}

#blocks-add-event {
    scroll-margin-top: 5.5rem;
}

.blocks-scenario-picker {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.15rem;
}

.blocks-scenario-card {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.72rem 0.85rem;
    text-align: left;
    font: inherit;
    cursor: pointer;
    color: var(--text);
    background: var(--surface, #fff);
    border: 2px solid rgba(15, 23, 42, 0.1);
    border-radius: 10px;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.blocks-scenario-card:hover {
    border-color: rgba(13, 148, 136, 0.35);
    background: color-mix(in srgb, var(--accent) 5%, var(--surface, #fff));
}

.blocks-scenario-card:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.blocks-scenario-card--active {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 9%, var(--surface, #fff));
    box-shadow: 0 2px 10px rgba(13, 148, 136, 0.12);
}

.blocks-scenario-card__title {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    letter-spacing: 0.01em;
}

.blocks-scenario-card__text {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-soft);
    line-height: 1.4;
}

.blocks-field--date-from .blocks-date-from-caption,
.blocks-field--date-to .blocks-date-to-caption {
    display: block;
    margin-bottom: 0.28rem;
}

.blocks-field--date-to[hidden] {
    display: none !important;
}

.blocks-add-form {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.55rem 0.75rem;
    align-items: start;
}

.blocks-add-form .btn {
    margin-top: 0;
    white-space: nowrap;
}

.blocks-field--location {
    grid-column: span 4;
}

.blocks-field--tables {
    grid-column: span 4;
}

.blocks-tables-hint {
    grid-column: span 4;
    margin: 0.2rem 0 0;
    line-height: 1.4;
}

.blocks-dates-hint {
    grid-column: span 8;
    margin: -0.15rem 0 0.15rem;
    line-height: 1.4;
}

.blocks-add-form .blocks-field {
    grid-column: span 2;
}

.blocks-field--repeat-days {
    grid-column: span 4;
}

.blocks-add-submit {
    grid-column: 11 / span 2;
    justify-self: end;
    align-self: end;
}

.blocks-tables-checks {
    margin-top: 0;
    padding: 0.5rem 0.55rem 0.6rem;
    background: rgba(15, 23, 42, 0.02);
}

.blocks-tables-checks label {
    width: calc(50% - 0.5rem);
    margin-right: 0;
}

.blocks-dd {
    position: relative;
    margin-top: 0.28rem;
}

.blocks-dd__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0.48rem 0.62rem;
    font-size: 0.88rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    color: var(--text);
    background: var(--surface, #fff);
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: var(--radius-sm);
    line-height: 1.35;
}

.blocks-dd__toggle::after {
    content: '';
    flex-shrink: 0;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid rgba(15, 23, 42, 0.35);
    border-bottom: 2px solid rgba(15, 23, 42, 0.35);
    transform: rotate(45deg);
    margin-top: -0.2rem;
}

.blocks-dd__toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg);
    margin-top: 0.15rem;
}

.blocks-dd__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.2rem);
    z-index: 40;
    max-height: 12rem;
    overflow-y: auto;
    padding: 0.35rem 0.45rem 0.5rem;
    background: var(--surface, #fff);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.blocks-dd__panel--tables {
    max-height: 17.5rem;
    padding: 0.35rem 0;
    border-radius: 10px;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 12px 28px -8px rgba(15, 23, 42, 0.14);
}

.blocks-dd--tables .blocks-dd__toggle:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--accent) 45%, rgba(15, 23, 42, 0.2));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.blocks-dd__group {
    margin: 0;
    padding: 0 0.4rem;
}

.blocks-dd__group + .blocks-dd__group {
    margin-top: 0.15rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.blocks-dd__group-head {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--accent);
    padding: 0.35rem 0.55rem 0.4rem;
    margin: 0 -0.15rem 0.1rem;
    border-radius: 6px;
    background: linear-gradient(
        105deg,
        color-mix(in srgb, var(--accent) 12%, transparent) 0%,
        color-mix(in srgb, var(--accent-2) 8%, transparent) 100%
    );
}

.blocks-dd__group--unassigned .blocks-dd__group-head {
    color: var(--text-soft);
    background: rgba(15, 23, 42, 0.05);
}

.blocks-dd__group--orphan .blocks-dd__group-head {
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
}

.blocks-dd__group-body {
    padding: 0.1rem 0 0.25rem;
}

.blocks-dd__group[hidden] {
    display: none !important;
}

.blocks-dd__empty {
    margin: 0;
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
}

.blocks-dd__item {
    display: grid;
    grid-template-columns: 1.1rem 1fr;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.38rem 0.5rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.12s ease;
}

/* display:grid выше перебивает нативное [hidden] */
.blocks-dd__item[hidden] {
    display: none !important;
}

.blocks-dd__item:hover {
    background: rgba(13, 148, 136, 0.07);
}

.blocks-dd__item-text {
    line-height: 1.35;
}

.blocks-dd__item input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--accent);
    border-radius: 4px;
    vertical-align: middle;
}

.blocks-tables-checks {
    margin: 0;
    padding: 0.35rem 0.45rem 0.5rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--radius-sm);
}

.blocks-tables-checks legend {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0 0.25rem;
}

.blocks-tables-checks label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0.15rem 0.45rem 0.15rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-soft);
}

@media (max-width: 900px) {
    .blocks-scenario-picker {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .blocks-add-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blocks-scenario-picker {
        grid-column: span 2;
    }

    .blocks-field--location,
    .blocks-field--tables,
    .blocks-tables-hint,
    .blocks-dates-hint,
    .blocks-field--repeat-days,
    .blocks-add-form .blocks-field,
    .blocks-add-submit {
        grid-column: span 2;
    }

    .blocks-add-submit {
        justify-self: start;
    }

}

@media (max-width: 640px) {
    .blocks-add-form {
        grid-template-columns: 1fr;
    }

    .blocks-scenario-picker {
        grid-column: span 1;
    }

    .blocks-field--location,
    .blocks-field--tables,
    .blocks-tables-hint,
    .blocks-dates-hint,
    .blocks-field--repeat-days,
    .blocks-add-form .blocks-field,
    .blocks-add-submit {
        grid-column: span 1;
    }

    .blocks-tables-checks label {
        width: 100%;
    }
}

.blocks-compact-table table {
    font-size: 0.86rem;
}

.blocks-compact-table th,
.blocks-compact-table td {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.trainer-admin-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    vertical-align: middle;
}

.trainer-admin-thumb-cell {
    width: 56px;
}

.trainer-edit-form .trainer-locations-fieldset {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    margin: 1rem 0;
}

.trainer-locations-legend {
    font-size: 0.8125rem;
    font-weight: 800;
    padding: 0 0.35rem;
}

.trainer-location-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.trainer-location-check:last-child {
    margin-bottom: 0;
}

.trainer-edit-preview {
    border-radius: 12px;
    object-fit: cover;
    margin-top: 0.35rem;
    box-shadow: var(--shadow-sm);
}

.trainer-remove-photo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0.75rem 0 0;
}

.content-page-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.content-page-list li {
    margin: 0;
}

.content-page-list-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s var(--ease);
}

.content-page-list-link:hover {
    text-decoration: none;
    border-color: rgba(13, 148, 136, 0.28);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.content-edit-form textarea {
    min-height: 14rem;
    line-height: 1.55;
    resize: vertical;
}

.account-password-block {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.account-section-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.account-password-form {
    margin-top: 0.85rem;
    max-width: 22rem;
}

.page-panel {
    background: var(--surface);
    padding: 2rem 2rem 2.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.page-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    opacity: 0.85;
}

.club-address {
    font-style: normal;
    line-height: 1.65;
    font-weight: 500;
    color: var(--text-soft);
}

.page-source {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.8125rem;
}

.card-surface {
    background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 0.96));
    border-radius: var(--radius);
    padding: 1.75rem;
    margin: 1.25rem 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(13, 148, 136, 0.1);
}

.reviews-summary {
    text-align: center;
}

.reviews-rating {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.reviews-out {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--muted);
}

.reviews-meta {
    margin: 0.85rem 0 1.15rem;
}

.reviews-quotes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    margin: 1rem 0 1.5rem;
    text-align: left;
}

@media (max-width: 720px) {
    .reviews-quotes {
        grid-template-columns: 1fr;
    }
}

.review-quote {
    margin: 0;
    padding: 1.15rem 1.25rem 1.1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(13, 148, 136, 0.14);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.35));
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.review-quote p {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-soft);
}

.review-quote p:last-of-type {
    margin-bottom: 0.65rem;
}

.review-quote footer {
    font-size: 0.8125rem;
    color: var(--muted);
    font-weight: 600;
    font-style: normal;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding-top: 0.65rem;
    margin-top: auto;
}

.review-quote cite {
    font-style: normal;
    font-weight: 800;
    color: var(--text-soft);
}

.review-quote footer a {
    font-weight: 700;
}

/* ——— Hero (главная) ——— */
.hero {
    position: relative;
    padding: 0.5rem 0 1.5rem;
}

.hero-bg {
    position: absolute;
    inset: -2rem -4vw 40%;
    background: radial-gradient(ellipse 70% 60% at 70% 0%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(13, 148, 136, 0.12), transparent);
    pointer-events: none;
    z-index: 0;
}

.hero-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.88) 100%);
    border-radius: calc(var(--radius) + 6px);
    padding: 2rem 2rem 2.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
}

.hero-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    background: rgba(13, 148, 136, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.85rem;
}

.hero-card h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.85rem, 5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--text);
}

.hero-lead {
    margin: 0;
    color: var(--muted);
    font-size: 1.0625rem;
    max-width: 38rem;
    line-height: 1.65;
}

.hero-features {
    list-style: none;
    margin: 1.35rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.hero-features li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-soft);
    background: rgba(15, 23, 42, 0.04);
    padding: 0.4rem 0.75rem 0.4rem 0.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.hero-feat-icon {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #0d9488, #2563eb);
    opacity: 0.9;
}

.hero-feat-icon--2 {
    background: linear-gradient(135deg, #2563eb, #6366f1);
}

.hero-feat-icon--3 {
    background: linear-gradient(135deg, #0891b2, #0d9488);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 0.85rem;
    align-items: center;
    margin-top: 1.5rem;
}

.hero-admin-link {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.875rem;
}

.hero--school .hero-card h1 {
    font-size: clamp(2rem, 5.5vw, 2.75rem);
}

/* Внутренние страницы — тот же язык, что и главная */
.hero--inner {
    position: relative;
    padding: 0.35rem 0 1.5rem;
    overflow: hidden;
}

.hero--inner .hero-card {
    max-width: none;
}

.hero--inner .hero-badge {
    margin-bottom: 1rem;
}

.hero--inner .page-article h1 {
    margin-top: 0;
}

.hero--auth {
    padding-bottom: 2.5rem;
}

.hero--auth .auth-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
}

.hero--admin .admin-shell-card {
    overflow-x: auto;
}

.hero--admin .admin-nav {
    margin-top: 0;
}

.hero-card--booking-intro .booking-intro {
    margin-bottom: 0;
}

.hero--booking-top + .alert,
.hero--booking-top ~ .alert {
    margin-top: 0;
}

.booking-page > .hero--inner {
    margin-bottom: 0.25rem;
}

/* ——— Главная: отзывы ——— */
.home-reviews {
    padding: 0.5rem 0 2.25rem;
}

.home-reviews-head {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 1.35rem;
}

.home-reviews-title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.home-reviews-lead {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

.home-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .home-reviews-grid {
        grid-template-columns: 1fr;
    }
}

.home-review {
    margin: 0;
    padding: 1.2rem 1.2rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(13, 148, 136, 0.14);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-review p {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    line-height: 1.58;
    color: var(--text-soft);
    flex: 1;
}

.home-review footer {
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 0.8125rem;
    color: var(--muted);
    font-style: normal;
}

.home-review cite {
    font-style: normal;
    font-weight: 800;
    color: var(--text-soft);
}

.home-reviews-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.65rem 0.85rem;
    margin: 1.35rem 0 0;
}

/* ——— Главная: карточки школы ——— */
.school-sections {
    padding: 0.5rem 0 2rem;
}

.school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.school-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem 1.5rem 1.35rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.18s var(--ease), box-shadow 0.18s;
}

.school-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.school-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.school-card p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
}

.school-card-link {
    font-weight: 800;
    font-size: 0.875rem;
    color: var(--accent);
}

.school-card-link:hover {
    text-decoration: none;
    color: var(--accent-hover);
}

.school-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d9488, #2563eb);
    margin-bottom: 1rem;
    opacity: 0.95;
}

.school-card-icon--2 {
    background: linear-gradient(135deg, #2563eb, #6366f1);
}

.school-card-icon--3 {
    background: linear-gradient(135deg, #0891b2, #0d9488);
}

h1,
h2 {
    font-weight: 800;
}

h2 {
    margin-top: 1.75rem;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

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

/* ——— Alerts ——— */
.alert {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    border: 1px solid transparent;
}

.alert-error {
    background: linear-gradient(135deg, #fef2f2, #fff1f2);
    color: #991b1b;
    border-color: #fecaca;
}

.alert-success {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    color: #065f46;
    border-color: #a7f3d0;
}

.alert-booking-confirmed .alert-booking-confirmed-title {
    margin: 0 0 0.65rem;
}

.alert-booking-confirmed .alert-booking-confirmed-actions {
    margin: 0;
}

.alert-guest {
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    color: #1e3a5f;
    border-color: #bfdbfe;
}

.alert-guest a {
    font-weight: 800;
}

.booking-guest-cta {
    padding: 1rem 1.15rem 1.15rem;
}

.booking-guest-btns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.legend-note {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.72rem;
}

a.seat--free.seat--guest {
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
}

a.seat--free.seat--guest::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 5px;
    border: 1px dashed rgba(37, 99, 235, 0.45);
    pointer-events: none;
}

a.seat--free.seat--guest:hover {
    filter: brightness(1.03);
    transform: scale(1.06);
}

/* ——— Buttons ——— */
.btn {
    display: inline-block;
    padding: 0.62rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.12s var(--ease), box-shadow 0.2s var(--ease), filter 0.15s;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

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

.btn:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 8px 26px rgba(37, 99, 235, 0.42);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid rgba(13, 148, 136, 0.28);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(13, 148, 136, 0.04);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
}

.btn-block {
    width: 100%;
}

/* ——— Auth ——— */
.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 1rem 0 2rem;
}

.auth-card.hero-card {
    width: min(26rem, 100%);
    padding: 2rem 2rem 1.65rem;
}

.auth-card:not(.hero-card) {
    width: min(26rem, 100%);
    background: var(--surface);
    padding: 2rem 2rem 1.5rem;
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.auth-card .page-title {
    text-align: center;
}

.auth-card .page-subtitle {
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-foot {
    text-align: center;
    margin: 1rem 0 0;
    font-weight: 600;
}

/* ——— Forms ——— */
.form-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    max-width: 32rem;
    margin-bottom: 1rem;
}

.form-card:not(.form-card--flush) {
    background: var(--surface);
    padding: 1.5rem 1.65rem 1.65rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(15, 23, 42, 0.06);
    max-width: 32rem;
}

.form-card--book {
    margin-top: 1.25rem;
}

.contact-feedback-form {
    margin-top: 1.25rem;
}

.page-article--contacts .contact-feedback-form.form-card:not(.form-card--flush) {
    padding: 1.1rem 1.25rem 1.2rem;
}

.contact-feedback-form .contact-feedback-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem 0.85rem;
    margin-bottom: 0.75rem;
}

.contact-feedback-form .contact-feedback-row .contact-feedback-field {
    margin-bottom: 0;
    min-width: 0;
}

.contact-feedback-form .contact-feedback-row input,
.contact-feedback-form .contact-feedback-row select {
    margin-top: 0.3rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
}

.contact-feedback-form textarea {
    min-height: 4.5rem;
    margin-top: 0.3rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
}

.contact-feedback-form .contact-feedback-message-label {
    margin-bottom: 0.65rem;
}

@media (max-width: 768px) {
    .contact-feedback-form .contact-feedback-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .contact-feedback-form .contact-feedback-row .contact-feedback-field {
        margin-bottom: 0.75rem;
    }

    .contact-feedback-form .contact-feedback-row .contact-feedback-field:last-child {
        margin-bottom: 0;
    }
}

.contact-feedback-stub-note {
    margin-top: 0.75rem;
    max-width: 32rem;
}

.form-card.table-row-form {
    max-width: none;
}

.form-card label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--text-soft);
    letter-spacing: 0.02em;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.95rem;
    background: #fafafa;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.form-card input:hover,
.form-card select:hover,
.form-card textarea:hover {
    border-color: #94a3b8;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.form-card textarea {
    resize: vertical;
    min-height: 5rem;
}

.form-card .btn {
    margin-top: 0.25rem;
}

.panel {
    background: var(--surface);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.panel--filters {
    margin-bottom: 0.5rem;
}

.inline-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-end;
    max-width: none;
}

.inline-row label {
    margin-bottom: 0;
}

.table-row-form {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(6rem, 1fr) auto minmax(9rem, 1.1fr) auto auto auto;
    gap: 0.75rem 1rem;
    align-items: end;
}

.table-row-form label {
    margin-bottom: 0;
}

.table-row-form .btn {
    margin-top: 0;
    align-self: end;
    white-space: nowrap;
}

.table-admin-form {
    max-width: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.75rem 1rem;
    align-items: end;
}

.form-card.table-admin-form,
.form-card.table-admin-form:not(.form-card--flush) {
    max-width: none;
    width: 100%;
}

.table-admin-form .btn {
    align-self: end;
}

.table-enabled-field {
    margin-bottom: 0;
}

.table-enabled-toggle {
    margin-top: 0.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    position: relative;
}

.table-enabled-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.table-enabled-slider {
    width: 2.5rem;
    height: 1.4rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.18);
    position: relative;
    transition: background 0.2s ease;
}

.table-enabled-slider::after {
    content: "";
    position: absolute;
    top: 0.14rem;
    left: 0.14rem;
    width: 1.12rem;
    height: 1.12rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease;
}

.table-enabled-state {
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 2.4rem;
    color: var(--text-soft);
}

.table-enabled-on {
    display: none;
}

.table-enabled-toggle input[type="checkbox"]:checked + .table-enabled-slider {
    background: rgba(13, 148, 136, 0.82);
}

.table-enabled-toggle input[type="checkbox"]:checked + .table-enabled-slider::after {
    transform: translateX(1.08rem);
}

.table-enabled-toggle input[type="checkbox"]:checked ~ .table-enabled-state .table-enabled-on {
    display: inline;
    color: var(--accent);
}

.table-enabled-toggle input[type="checkbox"]:checked ~ .table-enabled-state .table-enabled-off {
    display: none;
}

.table-enabled-toggle input[type="checkbox"]:focus-visible + .table-enabled-slider {
    box-shadow: var(--ring);
}

@media (max-width: 900px) {
    .table-row-form {
        grid-template-columns: 1fr 1fr;
    }
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
    align-items: flex-end;
    margin-bottom: 0;
}

.filters-row label {
    display: flex;
    flex-direction: column;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-soft);
    gap: 0.35rem;
}

.filters-row input,
.filters-row select {
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    font: inherit;
    min-width: 0;
    background: #fafafa;
}

.filters-row input:focus,
.filters-row select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.filters-row input[type="search"] {
    min-width: 12rem;
    flex: 1;
    max-width: 24rem;
}

.table-wrap {
    overflow-x: auto;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(15, 23, 42, 0.05);
    margin-top: 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

th,
td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

tbody tr {
    transition: background 0.12s var(--ease);
}

tbody tr:hover {
    background: rgba(13, 148, 136, 0.04);
}

th {
    background: linear-gradient(180deg, rgba(13, 148, 136, 0.1), rgba(37, 99, 235, 0.06));
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-soft);
}

tr:last-child td {
    border-bottom: none;
}

.booking-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-end;
    margin-bottom: 1.25rem;
}

.booking-filters label {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
    font-weight: 600;
}

.booking-filters input,
.booking-filters select {
    margin-top: 0.25rem;
    padding: 0.45rem 0.55rem;
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    font: inherit;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.slot-btn {
    padding: 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(13, 148, 136, 0.35);
    background: var(--surface);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.875rem;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.slot-btn:hover {
    background: rgba(13, 148, 136, 0.1);
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* ——— Admin ——— */
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.65rem;
    margin: 0 0 1.5rem;
    background: rgba(255, 255, 255, 0.75);
    border-radius: var(--radius);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-sm);
}

.admin-nav a {
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-pill);
    background: transparent;
    border: 1px solid transparent;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-soft);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.admin-nav a:hover {
    text-decoration: none;
    background: rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.2);
    color: var(--accent);
}

/* Admin page titles after nav */
.admin-nav ~ h1 {
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.stat-card {
    background: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(13, 148, 136, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s var(--ease), box-shadow 0.15s;
}

.stat-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0.65;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.stat-card span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.admin-cal-mode {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0.25rem;
    background: rgba(15, 23, 42, 0.04);
    border-radius: var(--radius-sm);
}

.admin-cal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.45rem 0.6rem;
    margin: 0.45rem 0 0.8rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.72);
}

.admin-cal-mode-btn {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-soft);
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.admin-cal-mode-btn:hover {
    color: var(--accent);
    background: rgba(13, 148, 136, 0.08);
}

.admin-cal-mode-btn.is-active {
    color: var(--text);
    background: var(--surface);
    border-color: rgba(13, 148, 136, 0.25);
    box-shadow: var(--shadow-sm);
}

.admin-cal-period {
    margin: 0;
    font-size: 0.86rem;
}

.admin-cal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    margin: 0;
}

.admin-cal-nav-btn {
    font-size: 0.76rem;
    padding: 0.34rem 0.6rem;
}

.admin-cal-form {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.35rem 0.45rem;
}

.admin-cal-form.filters-row {
    gap: 0.35rem 0.45rem;
}

.admin-cal-form label {
    margin: 0;
    font-size: 0.75rem;
}

.admin-cal-form input[type="date"],
.admin-cal-form input[type="month"] {
    min-height: 2rem;
    padding: 0.34rem 0.56rem;
}

.admin-cal-form .btn {
    padding: 0.34rem 0.58rem;
    font-size: 0.76rem;
}

.admin-subtitle {
    margin: 1rem 0 0.4rem;
    font-size: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 0.85rem;
}

.calendar-week-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    margin-top: 0.25rem;
}

/* Неделя: семь дней строго в один горизонтальный ряд (на узком экране — горизонтальный скролл) */
.calendar-grid--week {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
}

.calendar-grid--week > .cal-day--week {
    flex: 1 1 0;
    min-width: 8.25rem;
    max-width: none;
}

.cal-day--week {
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.cal-day-body--week {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.45rem 0.55rem 0.65rem;
    min-height: 0;
}

.cal-table-block {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(13, 148, 136, 0.12);
    background: rgba(255, 255, 255, 0.65);
    overflow: hidden;
}

.cal-table-block-title {
    margin: 0;
    padding: 0.35rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-soft);
    background: linear-gradient(90deg, rgba(13, 148, 136, 0.1), rgba(37, 99, 235, 0.06));
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.cal-week-table-load {
    padding: 0.28rem 0.5rem 0.2rem;
}

.cal-week-table-load-meta {
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.cal-list--by-time {
    margin: 0;
    padding: 0.35rem 0.45rem 0.45rem;
    list-style: none;
    font-size: 0.78rem;
}

.cal-list--by-time li {
    margin-bottom: 0.25rem;
}

.cal-list--by-time li:last-child {
    margin-bottom: 0;
}

.cal-list--by-time a {
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.cal-list--by-time a:hover {
    color: var(--accent-2);
    text-decoration: underline;
}

.cal-day-body--month {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.4rem 0.55rem 0.6rem;
    min-height: 3.5rem;
}

.cal-month-day-load {
    margin-bottom: 0.2rem;
}

.cal-month-day-load-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.18rem;
    font-size: 0.68rem;
}

.cal-month-day-load-label {
    color: var(--text-soft);
    font-weight: 700;
}

.cal-month-day-load-value {
    color: var(--text);
    font-weight: 800;
}

.cal-month-table-details {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.65);
}

.cal-month-table-summary {
    cursor: pointer;
    padding: 0.45rem 0.55rem;
    font-size: 0.74rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-start;
}

.cal-month-table-summary::-webkit-details-marker {
    display: none;
}

.cal-month-table-name {
    font-weight: 800;
    color: var(--text);
}

.cal-month-table-counts {
    font-weight: 600;
    font-size: 0.72rem;
    color: var(--text-soft);
    line-height: 1.35;
}

.cal-month-table-percent {
    font-size: 0.69rem;
    font-weight: 800;
}

.cal-progress {
    height: 0.34rem;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.08);
}

.cal-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.92), rgba(239, 68, 68, 0.92));
}

.cal-progress--day {
    margin-bottom: 0.2rem;
}

.cal-progress--table {
    margin: 0 0.55rem 0.15rem;
}

.cal-progress--week-table {
    margin: 0;
}

.cal-progress--dashboard {
    min-width: 12rem;
}

.dashboard-week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.85rem;
}

.dashboard-week-day {
    background: var(--surface);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.65rem;
}

.dashboard-week-day-title {
    margin: 0 0 0.35rem;
    font-size: 0.86rem;
}

.cal-progress--dashboard-day {
    margin-bottom: 0.45rem;
}

.dashboard-week-day-table {
    margin-top: 0;
}

.dashboard-week-day-table table {
    font-size: 0.78rem;
}

.cal-month-table-panel {
    padding: 0 0.55rem 0.55rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.cal-month-slot-hint {
    margin: 0.4rem 0 0.15rem;
}

.cal-month-booking-list {
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.74rem;
}

.cal-month-booking-list li:last-child .cal-month-booking-link {
    border-bottom: none;
}

.cal-month-booking-link {
    display: block;
    text-decoration: none;
    color: var(--text);
    padding: 0.3rem 0;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.1);
}

.cal-month-booking-link:hover {
    color: var(--accent-2);
}

.cal-month-booking-time {
    font-weight: 800;
    margin-right: 0.35rem;
}

.cal-month-booking-meta {
    font-weight: 600;
    color: var(--text-soft);
}

.cal-day {
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.06);
    min-height: 128px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s;
}

.cal-day:hover {
    box-shadow: var(--shadow);
}

.cal-day-head {
    padding: 0.5rem 0.65rem;
    font-weight: 800;
    font-size: 0.75rem;
    background: linear-gradient(90deg, rgba(13, 148, 136, 0.14), rgba(37, 99, 235, 0.08));
    color: var(--text-soft);
}

.cal-list {
    margin: 0;
    padding: 0.45rem 0.55rem 0.65rem;
    list-style: none;
    font-size: 0.78rem;
}

.cal-list li {
    margin-bottom: 0.3rem;
}

.cal-list a {
    color: var(--text);
    font-weight: 600;
    word-break: break-word;
}

.cal-list a:hover {
    color: var(--accent-2);
}

.danger-zone {
    border: 1px solid #fecaca !important;
    background: linear-gradient(135deg, #fffafa, #fef2f2) !important;
}

.link-btn.danger {
    color: var(--danger);
}

/* ——— Utilities ——— */
.table-wrap + p,
.form-card + p {
    margin-top: 0.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ——— Страница бронирования (салон самолёта) ——— */
.booking-page {
    padding-bottom: 1rem;
}

.app-body.booking-dock-open {
    padding-bottom: 5.5rem;
}

.booking-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.booking-back {
    flex-shrink: 0;
}

.booking-layout {
    display: grid;
    grid-template-columns: min(280px, 100%) 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 960px) {
    .booking-layout {
        grid-template-columns: 1fr;
    }
}

.booking-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-title {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.booking-calendar-panel {
    padding: 1.1rem 1.15rem 1rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.calendar-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    flex: 1;
}

.calendar-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.2);
    transition: background 0.15s, transform 0.1s;
}

.calendar-nav-btn:hover {
    text-decoration: none;
    background: rgba(13, 148, 136, 0.18);
    transform: scale(1.05);
}

.calendar-nav-btn--disabled {
    opacity: 0.35;
    pointer-events: none;
}

.calendar-grid-mini {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    text-align: center;
}

.calendar-grid-mini th {
    padding: 0.25rem 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    border: none;
    background: transparent;
}

.calendar-grid-mini td {
    padding: 2px;
    border: none;
}

.cal-cell {
    border-radius: 8px;
    aspect-ratio: 1;
    max-height: 2.1rem;
}

.cal-cell--muted {
    opacity: 0.35;
}

.cal-cell-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 1.85rem;
    border-radius: 8px;
    font-weight: 700;
    color: var(--text);
    background: rgba(15, 23, 42, 0.04);
    transition: background 0.12s, color 0.12s;
}

.cal-cell-link:hover {
    text-decoration: none;
    background: rgba(13, 148, 136, 0.2);
    color: var(--accent-hover);
}

.cal-cell--selected .cal-cell-link {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.cal-cell--today:not(.cal-cell--selected) .cal-cell-link {
    box-shadow: inset 0 0 0 2px rgba(13, 148, 136, 0.5);
}

.cal-cell-off {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 1.85rem;
    color: var(--muted);
    font-weight: 600;
}

.calendar-hint {
    margin: 0.65rem 0 0;
}

.seat-legend {
    padding: 1rem 1.15rem;
}

.legend-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-soft);
}

.legend-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.seat {
    display: inline-block;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 8px;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: transform 0.1s, box-shadow 0.15s;
}

.seat--legend {
    width: 1.25rem;
    height: 1.25rem;
}

button.seat--free {
    cursor: pointer;
    padding: 0;
    background: linear-gradient(180deg, #ecfdf5, #d1fae5);
    border-color: #6ee7b7;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.2);
}

button.seat--free:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

button.seat--free:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.seat--free::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    margin: 0.45rem auto 0;
    border-radius: 50%;
    background: #059669;
    opacity: 0.85;
}

.seat--picked {
    box-shadow: 0 0 0 3px #2563eb, 0 6px 20px rgba(37, 99, 235, 0.45) !important;
    transform: scale(1.12);
    z-index: 2;
    position: relative;
}

.seat--taken {
    background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
    border-color: #cbd5e1;
    position: relative;
}

.seat--taken::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: linear-gradient(135deg, transparent 45%, #94a3b8 45%, #94a3b8 55%, transparent 55%);
    opacity: 0.7;
    border-radius: 4px;
}

.seat--blocked {
    background: repeating-linear-gradient(
        -45deg,
        #fef3c7,
        #fef3c7 4px,
        #fde68a 4px,
        #fde68a 8px
    );
    border-color: #f59e0b;
}

.seat--na {
    background: #f8fafc;
    border-color: #e2e8f0;
    opacity: 0.45;
}

.booking-main {
    min-width: 0;
}

.seatmap-plane {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.seatmap-plane-nose {
    width: min(72%, 420px);
    height: 28px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.35), rgba(241, 245, 249, 0.9));
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: none;
}

.seatmap-cabin {
    width: 100%;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 8%, #fff 92%, #f1f5f9 100%);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-top: none;
    border-bottom: none;
    padding: 1rem 0.75rem 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.seatmap-plane-tail {
    width: min(85%, 520px);
    height: 18px;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.95), rgba(203, 213, 225, 0.5));
    border-radius: 0 0 40% 40% / 0 0 100% 100%;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-top: none;
}

.seatmap-cabin-label {
    text-align: center;
    margin: 0 0 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.seatmap-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
    margin: 0 -0.25rem;
}

.seatmap {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 6px;
}

.seatmap-corner {
    width: 7rem;
    min-width: 7rem;
    vertical-align: bottom;
    padding: 0 0.35rem 0.5rem 0;
    border: none;
    background: transparent;
}

.seatmap-corner-inner {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.seatmap-time {
    padding: 0 0 0.35rem;
    border: none;
    background: transparent;
    vertical-align: bottom;
}

.seatmap-time-inner {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 2.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-soft);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    max-height: 4.5rem;
    letter-spacing: 0.02em;
}

.seatmap-rowhead {
    text-align: left;
    padding: 0.35rem 0.5rem 0.35rem 0;
    border: none;
    background: transparent;
    vertical-align: middle;
    white-space: nowrap;
}

.seatmap-row-icon {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 8px;
    background: var(--gradient);
    vertical-align: middle;
    margin-right: 0.45rem;
    opacity: 0.9;
}

.seatmap-row-name {
    font-weight: 800;
    font-size: 0.875rem;
    vertical-align: middle;
}

.seatmap-cell {
    text-align: center;
    vertical-align: middle;
    padding: 0;
    border: none;
    background: transparent;
}

.booking-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(13, 148, 136, 0.2);
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.12);
}

.booking-dock-inner {
    width: min(1120px, 100% - 2rem);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.booking-dock-text {
    margin: 0;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.booking-dock-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .btn:hover,
    .stat-card:hover,
    .school-card:hover,
    .content-page-list-link:hover,
    button.seat--free:hover,
    a.seat--free.seat--guest:hover {
        transform: none;
    }
}
