/* KK Club — публичная главная по макету (заглушки) */
:root {
    --bg: #0a0a0a;
    --bg-card: #141414;
    --ink: #ffffff;
    --muted: #a7a7a7;
    --muted-2: #7d7d7d;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #d1f000;
    --accent-ink: #111111;
    --accent-soft: rgba(209, 240, 0, 0.12);
    --font: "Manrope", "Segoe UI", sans-serif;
    --wrap: 1180px;
    --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.public-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* Селекты на тёмной теме: иначе Windows рисует белый popup с унаследованным светлым текстом */
select {
    font: inherit;
    color: var(--ink);
    color-scheme: dark;
}

select option,
select optgroup {
    background-color: #1c1c1c;
    color: #f4f6f8;
}

.wrap {
    width: min(100% - 40px, var(--wrap));
    margin-inline: auto;
}

.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;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    min-height: var(--header-h);
    display: flex;
    flex-wrap: nowrap;
    gap: 16px 20px;
    align-items: center;
    padding-block: 8px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 0 1 auto;
}

.site-brand__mark { width: 40px; height: 40px; flex: 0 0 auto; }
.site-brand__mark svg { width: 100%; height: 100%; }

.site-brand__text { display: grid; gap: 1px; line-height: 1.15; }
.site-brand__text strong { font-size: 0.86rem; letter-spacing: 0.04em; white-space: nowrap; }
.site-brand__text span {
    color: var(--muted-2);
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.site-nav {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.site-nav__link {
    padding: 6px 8px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link.is-active { color: var(--ink); }
.site-nav__link.is-active { border-bottom-color: var(--accent); }

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    margin-left: auto;
}

.site-header__phone {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.site-header__phone:hover { color: var(--ink); }

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    place-items: center;
    gap: 5px;
    cursor: pointer;
    flex: 0 0 auto;
}

.nav-toggle__bar {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
}

/* Hero — by mockup zip (Figma Make App.tsx) */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #111111;
}

.hero__media {
    position: absolute;
    inset: 0;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 45%, #111111 100%),
        linear-gradient(180deg, transparent 0%, transparent 55%, #111111 100%);
    pointer-events: none;
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 40px;
    align-items: stretch;
    padding: 36px 0 28px;
}

.hero__col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    min-height: 0;
}

.hero__eyebrow {
    margin: 0 0 16px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.hero__title {
    margin: 0 0 24px;
    font-size: clamp(2.6rem, 5.2vw, 3.75rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 900;
}

.hero__title-line {
    display: block;
}

.hero__title-line--ruled {
    display: inline-block;
}

.hero__title-rule {
    display: block;
    width: 100%;
    height: 3px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--accent);
}

.hero__lead {
    margin: 0 0 32px;
    max-width: 24rem;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.6;
}

.hero__points {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.hero__point {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.7rem;
    line-height: 1.25;
    font-weight: 500;
}

.hero__point-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.hero__point-icon svg { width: 100%; height: 100%; display: block; }

.hero__live { display: grid; gap: 16px; }

.hero__live-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.hero__live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: hero-pulse 1.6s ease-in-out infinite;
}

@keyframes hero-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

.hero__live-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.hero__live-stat {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: inherit;
    min-width: 0;
    transition: border-color .15s ease, background .15s ease;
}

.hero__live-stat--accent {
    border: 2px solid var(--accent);
    background: rgba(209, 240, 0, 0.05);
}

.hero__live-stat strong {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff;
}

.hero__live-stat--accent strong { color: var(--accent); }

.hero__live-stat span {
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    line-height: 1.25;
}

.hero-widget {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
}

.hero-widget__card {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(26,26,26,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.hero-widget__head {
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.hero-widget__head h2 {
    margin: 0 0 4px;
    font-size: 1.125rem;
    font-weight: 700;
}

.hero-widget__head p {
    margin: 0;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    line-height: 1.4;
}

.hero-widget__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 16px 24px 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
}

.hero-widget__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 16px;
    border: 0;
    background: #1e1e1e;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.hero-widget__tab.is-active {
    background: #2a2a2a;
    color: #fff;
    border-bottom-color: var(--accent);
}

.hero-widget__tab:hover { color: rgba(255,255,255,0.8); }
.hero-widget__tab.is-active:hover { color: #fff; }

.hero-widget__tab-icon {
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
}

.hero-widget__tab-icon svg { width: 100%; height: 100%; }

.hero-widget__body { padding: 20px 24px 24px; }

.hero-widget__panel[hidden] { display: none !important; }

.hero-widget__panel-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-widget__brackets {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex: 0 0 auto;
    margin-top: 2px;
}

.hero-widget__brackets svg { width: 20px; height: 20px; display: block; }

.hero-widget__panel-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.hero-widget__panel-lead {
    margin: 2px 0 0;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    line-height: 1.4;
}

.hero-widget__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
}

.hero-field { min-width: 0; }

.hero-field__label {
    display: block;
    margin: 0 0 4px;
    padding: 0 4px;
    color: rgba(255,255,255,0.4);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-field__control {
    position: relative;
}

.hero-field__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: rgba(255,255,255,0.4);
    pointer-events: none;
}

.hero-field__icon svg { width: 100%; height: 100%; display: block; }

.hero-field select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background-color: #222222;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a7a7a7' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    color: #fff;
    color-scheme: dark;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 12px 32px 12px 36px;
    cursor: pointer;
    outline: none;
    transition: border-color .15s ease;
}

.hero-field select:hover { border-color: rgba(255,255,255,0.25); }
.hero-field select:focus { border-color: rgba(209, 240, 0, 0.5); }

.hero-field select option,
.hero-field select optgroup {
    background-color: #222222;
    color: #fff;
}

.hero-widget__hint {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 4px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
}

.hero-widget__hint-icon {
    width: 18px;
    height: 18px;
    color: rgba(255,255,255,0.4);
    flex: 0 0 auto;
    margin-top: 2px;
}

.hero-widget__hint-icon svg { width: 100%; height: 100%; display: block; }

.hero-widget__hint p {
    margin: 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    line-height: 1.5;
}

.hero-widget__cta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    margin-top: 8px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: var(--accent-ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s ease, transform .15s ease;
}

.hero-widget__cta:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.hero-widget__cta span:last-child {
    font-size: 1.25rem;
    transition: transform .15s ease;
}

.hero-widget__cta:hover span:last-child { transform: translateX(4px); }

.hero-widget__trust {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.hero-widget__trust svg {
    width: 14px;
    height: 14px;
    color: rgba(255,255,255,0.4);
    flex: 0 0 auto;
}

.hero-widget__trust p {
    margin: 0;
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    line-height: 1.35;
}

.section-head__icon {
    width: 22px;
    height: 22px;
    color: var(--accent);
    flex: 0 0 auto;
}

.section-head__icon svg { width: 100%; height: 100%; display: block; }

.section-link__icon {
    width: 14px;
    height: 14px;
    display: inline-grid;
    place-items: center;
    margin-right: 4px;
    vertical-align: -2px;
    color: var(--accent);
}

.section-link__icon svg { width: 100%; height: 100%; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: filter .15s ease, transform .15s ease, background .15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.05); }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); }

/* Страница события — точное соответствие макету */
.event-show { padding-top: 18px; padding-bottom: 56px; }
.event-show__wrap { width: min(100% - 40px, 1320px); }
.event-show__back {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}
.event-show__back:hover { opacity: 0.85; }
.event-show__archive-note {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(244,246,248,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(244,246,248,0.72);
    font-size: 0.9rem;
    line-height: 1.45;
}

.event-show__layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 292px;
    gap: 24px 28px;
    align-items: start;
}

.event-gallery__main {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #121212;
    aspect-ratio: 4 / 5;
}
.event-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.event-gallery__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #1a1a1a, #0d0d0d);
}
.event-gallery__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--accent);
    color: #111;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
}
.event-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.event-gallery__thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #121212;
    cursor: pointer;
    aspect-ratio: 1;
}
.event-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.event-gallery__thumb.is-active { border-color: var(--accent); }
.event-gallery__thumb--more span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    padding: 6px;
    line-height: 1.25;
}

.event-show__title {
    margin: 0 0 16px;
    font-size: clamp(1.7rem, 2.5vw, 2.2rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.event-show__meta {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}
.event-show__meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c4c4c4;
    font-size: 0.88rem;
    font-weight: 500;
}
.event-show__meta-icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}
.event-show__meta-icon svg { width: 18px; height: 18px; display: block; }

.event-booking-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 28px;
}
.event-booking-bar__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 140px;
}
.event-booking-bar__label {
    color: var(--muted-2);
    font-size: 0.75rem;
    font-weight: 500;
}
.event-booking-bar__price strong {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.event-booking-bar__spots {
    flex: 1;
    color: #d0d0d0;
    font-size: 0.95rem;
    font-weight: 600;
}
.event-booking-bar__action {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    flex-shrink: 0;
}
.event-booking-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 10px;
    border: none;
    background: var(--accent);
    color: #111;
    font: inherit;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
}
.event-booking-bar__btn:hover { filter: brightness(1.05); }
.event-booking-bar__btn--ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.event-show__flash { margin: 0; color: var(--accent); font-size: 0.85rem; }
.event-show__error { margin: 0; color: #f87171; font-size: 0.85rem; max-width: 220px; }
.event-show__empty { margin: 0; color: var(--muted-2); }

.event-show__section { margin: 0 0 30px; }
.event-show__section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.event-show__section-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 750;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 8px;
}
.event-show__section-head .event-show__section-title { margin-bottom: 0; }
.event-show__section-count {
    color: var(--muted-2);
    font-size: 0.92rem;
    font-weight: 600;
}
.event-show__all-link {
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 650;
    white-space: nowrap;
}
.event-show__lead {
    margin: 0 0 14px;
    color: #b8b8b8;
    line-height: 1.65;
    font-size: 0.94rem;
}
.event-show__checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.event-show__checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #c8c8c8;
    font-size: 0.92rem;
    line-height: 1.45;
}
.event-show__check {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
}
.event-show__check svg { width: 18px; height: 18px; display: block; }

.event-amenities {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.event-amenities__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 88px;
    padding: 14px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: #d2d2d2;
    font-size: 0.82rem;
    font-weight: 550;
    line-height: 1.3;
}
.event-amenities__icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
}
.event-amenities__icon svg { width: 26px; height: 26px; display: block; }
.event-amenities__icon--img {
    width: 32px;
    height: 32px;
    background-color: var(--accent);
    -webkit-mask-image: var(--amenity-icon);
    mask-image: var(--amenity-icon);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.event-people {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.event-people__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.event-people__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.event-people__avatar--empty { background: #2a2a2a; display: inline-block; }
.event-people__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.event-people__body strong {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.event-people__body span {
    color: var(--muted-2);
    font-size: 0.78rem;
}
.event-people__body em {
    color: var(--accent);
    font-style: normal;
    font-weight: 700;
}

.event-side-card {
    padding: 18px;
    border-radius: 14px;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 14px;
}
.event-side-card__title {
    margin: 0 0 14px;
    font-size: 0.98rem;
    font-weight: 750;
}
.event-side-organizer {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}
.event-side-organizer img,
.event-side-organizer__empty {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.event-side-organizer__empty { background: #2a2a2a; display: inline-block; }
.event-side-organizer strong { display: block; font-size: 1rem; margin-bottom: 3px; }
.event-side-organizer span { color: var(--muted-2); font-size: 0.84rem; }

.event-side-card__btn {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}
.event-side-card__btn:hover:not(:disabled) { background: var(--accent-soft); }
.event-side-card__btn:disabled { opacity: 0.45; cursor: not-allowed; }
.event-side-card__btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.event-side-card__phone {
    margin: 10px 0 0;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--ink);
}

.event-side-map {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.event-side-map img {
    width: 100%;
    height: auto;
    aspect-ratio: 450 / 220;
    object-fit: cover;
}

.event-side-facts {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.event-side-facts li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #b0b0b0;
    font-size: 0.86rem;
    line-height: 1.4;
}
.event-side-facts__icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
}
.event-side-facts__icon svg { width: 18px; height: 18px; display: block; }
.event-side-facts strong {
    display: block;
    color: var(--ink);
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.event-side-facts li > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.event-auth-dialog {
    border: none;
    padding: 0;
    background: transparent;
    max-width: min(92vw, 400px);
}
.event-auth-dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.event-auth-dialog__card {
    margin: 0;
    padding: 22px 22px 18px;
    border-radius: 16px;
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--ink);
}
.event-auth-dialog__title {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 750;
}
.event-auth-dialog__text {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}
.event-auth-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.event-auth-dialog__actions .event-booking-bar__btn {
    min-width: 0;
    flex: 1;
    text-decoration: none;
}
.event-auth-dialog__actions .btn {
    min-width: 0;
    flex: 1;
    text-align: center;
    text-decoration: none;
}
.event-auth-dialog__close {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.event-auth-dialog__close:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }

@media (max-width: 1100px) {
    .event-show__layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 20px;
    }
    .event-show__side {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .event-side-card { margin-bottom: 0; }
    .event-amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .event-show__layout { grid-template-columns: 1fr; }
    .event-gallery__main { aspect-ratio: 16 / 10; max-height: 280px; }
    .event-booking-bar { flex-wrap: wrap; }
    .event-booking-bar__spots { flex-basis: 100%; }
    .event-booking-bar__btn { width: 100%; }
    .event-people { grid-template-columns: 1fr; }
    .event-show__side { grid-template-columns: 1fr; }
    .event-amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.btn-outline {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
}
.btn-outline:hover { background: var(--accent-soft); }
/* Main two-column content (как на макете) */
.section--main { padding: 24px 0 56px; }

.home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
    grid-template-areas:
        "events offers"
        "coaches coaches";
    gap: 28px 28px;
    align-items: stretch;
}

.block--events { grid-area: events; }
.block--offers { grid-area: offers; }
.block--coaches { grid-area: coaches; }

.block {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.block--events .events-table,
.block--offers .offers-stack {
    flex: 1;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.section-head--stack {
    flex-direction: column;
    align-items: flex-start;
}

.section-head h2 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 800;
}

.section-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.section-link {
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
}

.section-link--plus {
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
}

.section-link--plus:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Events */
.events-table {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #101010;
}

.events-table__head,
.events-row {
    display: grid;
    grid-template-columns: 0.72fr 2.6fr 0.85fr 0.75fr;
    gap: 12px;
    align-items: center;
    padding: 13px 16px;
}

.events-row {
    flex: 1;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
    text-decoration: none;
}

.events-table__head {
    background: #161616;
    color: var(--muted-2);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.events-row:hover { background: rgba(255, 255, 255, 0.03); }

.events-row__when {
    display: grid;
    gap: 2px;
    line-height: 1.25;
    min-width: 0;
}

.events-row__date-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35em;
    min-width: 0;
}

.events-row__weekday {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 800;
}

.events-row__date {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.86rem;
}

.events-row__time {
    color: var(--muted);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.events-row__event {
    display: grid;
    gap: 4px;
    align-content: center;
    color: var(--ink);
    font-weight: 600;
    min-width: 0;
}

.events-row__title {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.events-row__event .tag {
    justify-self: start;
}

.events-empty {
    border-top: 1px solid var(--line);
    padding: 20px 16px;
    color: var(--muted-2);
    font-size: 0.9rem;
}

.events-catalog .v2-event-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.events-catalog__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.events-catalog__filter {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-card);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.events-catalog__filter:hover {
    color: var(--ink);
    border-color: var(--line-strong, var(--line));
}

.events-catalog__filter.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink, #1a1a1a);
}

.events-catalog .v2-event-card {
    position: relative;
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--muted);
}

.events-catalog .v2-event-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.events-catalog .v2-event-card__media {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 12px;
}

.events-catalog .v2-event-card__media img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.events-catalog .v2-event-card__body {
    position: relative;
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.events-catalog .v2-event-card__top,
.events-catalog .v2-event-card__meta,
.events-catalog .v2-event-card__stats,
.events-catalog .v2-event-card__members {
    display: flex;
    align-items: center;
}

.events-catalog .v2-event-card__top {
    justify-content: space-between;
    gap: 12px;
}

.events-catalog .v2-event-card__meta {
    gap: 8px;
    min-width: 0;
}

.events-catalog .v2-event-card__stats {
    gap: 16px;
    flex: 0 0 auto;
}

.events-catalog .v2-event-card__members {
    gap: 8px;
    color: var(--muted-2);
}

.events-catalog .v2-event-card__members img {
    width: 20px;
    height: 20px;
}

.events-catalog .v2-event-card__members b {
    color: var(--ink);
    font-size: 16px;
}

.events-catalog .v2-event-card__members span {
    color: var(--muted);
    font-size: 16px;
}

.events-catalog .v2-event-card__price {
    color: var(--accent);
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.events-catalog .v2-event-card__when {
    color: var(--muted-2);
    font-size: 12px;
    white-space: nowrap;
}

.events-catalog .v2-event-card__title {
    overflow: hidden;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.events-catalog .v2-event-card__place {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 150px;
    color: var(--muted-2);
    font-size: 13px;
}

.events-catalog .v2-event-card__place img {
    width: 16px;
    height: 16px;
}

.events-catalog .v2-event-card__cta {
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 135px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
}

.events-catalog .v2-pill {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 6px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.events-catalog .v2-event-empty {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 8px;
    color: var(--muted);
}

.events-catalog .v2-event-empty strong {
    color: var(--ink);
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
}

.tag-tournament { background: rgba(209, 240, 0, 0.18); color: var(--accent); }
.tag-league { background: rgba(168, 85, 247, 0.22); color: #d8b4fe; }
.tag-training { background: rgba(59, 130, 246, 0.22); color: #93c5fd; }
.tag-sparring { background: rgba(249, 115, 22, 0.22); color: #fdba74; }

/* Offers — stacked in right column */
.offers-stack {
    display: grid;
    gap: 12px;
    grid-template-rows: 1fr 1fr;
}

.offer-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr minmax(140px, 46%);
    min-height: 168px;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.offer-card--senior {
    background: linear-gradient(120deg, #1a2a14 0%, #101810 55%, #0c0c0c 100%);
}

.offer-card--kids {
    background: linear-gradient(120deg, #142033 0%, #101820 55%, #0c0c0c 100%);
}

.offer-card__content {
    position: relative;
    padding: 18px 16px;
    display: grid;
    align-content: center;
    gap: 8px;
    z-index: 1;
}

.offer-card__content h3 {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.offer-card__content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.offer-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.offer-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 4px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.offer-link {
    display: inline-flex;
    width: fit-content;
    margin-top: 4px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Coaches — узкие плитки, по 2 в ряд на главной */
.coaches-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.coach-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-card);
    min-width: 0;
}

.coach-card__photo {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, #333, #151515);
    flex: 0 0 auto;
}

.coach-card__photo img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-card__photo .coach-photo-stub {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--muted);
}

.coach-card__photo .coach-photo-stub svg {
    width: 32px;
    height: 32px;
}

.coach-card__body {
    display: grid;
    gap: 4px;
    align-content: start;
    min-width: 0;
}

.coach-card__body h3 {
    margin: 0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coach-card__body ul {
    margin: 0;
    padding-left: 14px;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.35;
}

.coach-card__bio {
    margin: 0;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.35;
}

.coach-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.coach-card__foot strong { font-size: 0.8rem; }
.coach-card__foot .btn-outline {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.78rem;
}

.coach-card__places {
    margin: 2px 0 0;
}

.coach-card__places summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.coach-card__places summary::-webkit-details-marker { display: none; }

.coach-card__places summary::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 4.5px solid currentColor;
    opacity: 0.7;
    transition: transform .15s ease;
    flex: 0 0 auto;
}

.coach-card__places[open] summary {
    color: var(--accent);
}

.coach-card__places[open] summary::after {
    transform: rotate(180deg);
}

.coach-card__places ul {
    display: grid;
    gap: 3px;
    margin: 6px 0 0;
    padding: 8px 10px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.coach-card__places li {
    display: grid;
    gap: 1px;
    color: var(--text);
    font-size: 0.74rem;
    line-height: 1.3;
}

.coach-card__place-club {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
}

.coach-card__place-address {
    font-weight: 600;
}

/* Каталог тренеров /coaches */
.coaches-page {
    padding-top: 36px;
    padding-bottom: 72px;
}

.coaches-page__head {
    align-items: start;
    margin-bottom: 28px;
    gap: 18px;
}

.coaches-page__eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.coaches-page__title {
    margin: 0;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    letter-spacing: -0.02em;
}

.coaches-page__lead {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 36rem;
    line-height: 1.5;
}

.catalog-coach-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.catalog-coach-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    min-height: 0;
    transition: border-color .15s ease, transform .15s ease;
}

.catalog-coach-card:hover {
    border-color: rgba(209, 240, 0, 0.35);
    transform: translateY(-1px);
}

.catalog-coach-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    min-height: 0;
    background: linear-gradient(180deg, #2a2a2a, #121212);
}

.catalog-coach-card__media img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-coach-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    color: var(--accent);
    background: rgba(209, 240, 0, 0.08);
}

.catalog-coach-card__placeholder svg {
    width: 64px;
    height: 64px;
}

.catalog-coach-card__body {
    display: grid;
    gap: 10px;
    align-content: space-between;
    padding: 16px 16px 14px;
    min-width: 0;
}

.catalog-coach-card__top h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
}

.catalog-coach-card__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.catalog-coach-card__head .coach-rating {
    margin: 0;
}

.catalog-coach-card__popular {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f6e4d8;
    color: #c44735;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.coach-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.coach-card-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.coach-card-chip--weekly {
    color: var(--accent, #3b6d9e);
    background: rgba(59, 109, 158, 0.12);
}

.coach-card-chip--evening,
.coach-card-chip--rare {
    color: #5c4d8a;
    background: rgba(92, 77, 138, 0.12);
}

.v2-label-short { display: none; }
@media (max-width: 760px) {
    .v2-label-full { display: none; }
    .v2-label-short { display: inline; }
}

.catalog-coach-card__top h2 a:hover {
    color: var(--accent);
}

.catalog-coach-card__club {
    margin: 4px 0 0;
    color: var(--muted-2);
    font-size: 0.8rem;
}

.catalog-coach-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.catalog-coach-card__tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.catalog-coach-card__branches {
    margin: 0;
    color: var(--muted-2);
    font-size: 0.78rem;
    line-height: 1.35;
}

.catalog-coach-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.catalog-coach-card__foot strong {
    font-size: 0.95rem;
}

@media (max-width: 760px) {
    .coaches-page {
        padding-top: 20px;
        padding-bottom: 40px;
    }
    .coaches-page__head {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 18px;
    }
    .coaches-page__head .btn {
        width: 100%;
    }
    .coaches-page__lead {
        font-size: 0.95rem;
    }
    .catalog-coach-grid {
        gap: 12px;
    }
    .catalog-coach-card {
        grid-template-columns: 88px 1fr;
        align-items: stretch;
        border-radius: 14px;
    }
    .catalog-coach-card__media {
        aspect-ratio: auto;
        align-self: stretch;
        min-height: 110px;
    }
    .catalog-coach-card:hover {
        transform: none;
    }
    .catalog-coach-card__body {
        padding: 12px 12px 10px;
        gap: 8px;
    }
    .catalog-coach-card__top h2 {
        font-size: 1rem;
    }
    .catalog-coach-card__branches {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .catalog-coach-card__foot {
        flex-wrap: wrap;
        margin-top: 2px;
        gap: 8px;
    }
    .catalog-coach-card__foot .btn {
        min-height: 44px;
        width: 100%;
        justify-content: center;
        padding: 0 14px;
        font-size: 0.88rem;
    }
    .catalog-coach-card__tags span:nth-child(n+3) {
        display: none;
    }
    .catalog-coach-card__popular {
        top: 6px;
        left: 6px;
        max-width: calc(100% - 8px);
        padding: 4px 8px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.62rem;
    }
    .catalog-coach-card__placeholder svg {
        width: 36px;
        height: 36px;
    }
    .coach-place__panel {
        padding: 16px;
    }
    .coach-week__nav {
        width: 100%;
        justify-content: space-between;
        flex: 1 1 auto;
    }
    .coach-week__nav .btn {
        min-width: 44px;
        padding-inline: 12px;
    }
    .booking-page .field,
    .coach-show .field,
    .coach-place .field {
        min-width: 0;
    }
}

@media (max-width: 400px) {
    .wrap { width: min(100% - 24px, var(--wrap)); }
    .catalog-coach-card {
        grid-template-columns: 76px 1fr;
    }
}

/* Coach profile + training request */
.coach-show {
    min-width: 0;
    overflow-x: hidden;
    padding-bottom: 72px;
}

.coach-show__wrap {
    padding-block: 28px 8px;
}

.coach-show__back {
    margin: 0 0 22px;
}

.coach-show__back a {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.coach-show__back a:hover {
    color: var(--accent);
}

.coach-show__grid {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.coach-show__profile {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--bg-card);
    position: sticky;
    top: calc(var(--header-h) + 16px);
}

.coach-show__media {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #2a2a2a, #121212);
}

.coach-show__media img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-show__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 220px;
    color: var(--accent);
    background: rgba(209, 240, 0, 0.08);
}

.coach-show__placeholder svg {
    width: 96px;
    height: 96px;
}

.coach-show__eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.coach-show__title {
    margin: 0;
    font-size: clamp(1.45rem, 2.6vw, 1.85rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.coach-show__title-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.coach-show__title-row .coach-rating {
    margin: 0;
}

.coach-show__price {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.coach-show__price strong {
    color: var(--ink);
    font-size: 1.05rem;
}

.coach-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: inherit;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

a.coach-rating:hover .coach-rating__label {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.coach-rating__value {
    font-weight: 800;
}

.coach-rating__count {
    color: var(--muted);
    font-weight: 600;
}

.coach-rating--empty {
    color: var(--muted);
    font-weight: 500;
    white-space: normal;
}

.coach-rating--compact {
    margin-top: 0;
    font-size: 0.82rem;
    gap: 5px;
}

.coach-rating--compact .coach-stars {
    font-size: 13px;
}

.coach-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    line-height: 1;
    font-size: 1rem;
}

.coach-stars--sm { font-size: 0.95rem; }

.coach-star {
    color: #d9d4cc;
}

.coach-star.is-on {
    color: #f5b400;
}

.coach-show__reviews {
    margin-top: 28px;
    padding: 22px 22px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg-card);
}

.coach-show__reviews-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 16px;
}

.coach-show__reviews-head h2,
.coach-review-form h2 {
    margin: 0;
    font-size: 1.15rem;
}

.coach-show__reviews-empty {
    margin: 0;
    color: var(--muted);
}

.coach-show__reviews-more {
    margin: 14px 0 0;
}

.coach-reviews-status {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(209, 240, 0, 0.12);
}

.coach-review-form {
    margin: 0 0 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.coach-reviews-page .coach-review-form {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg-card);
}

.coach-review-form p {
    margin: 8px 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.coach-review-form__fields {
    display: grid;
    gap: 14px;
}

.coach-star-input {
    margin: 0;
    padding: 0;
    border: 0;
}

.coach-star-input legend {
    margin: 0 0 8px;
    font-weight: 650;
}

.coach-star-input__row {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.coach-star-input__row input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.coach-star-input__row label {
    color: #c4c4c4;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.coach-star-input__row input:checked ~ label,
.coach-star-input__row label:hover,
.coach-star-input__row label:hover ~ label {
    color: #e2b01a;
}

.coach-review-form textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg, #111);
    color: inherit;
    font: inherit;
    resize: vertical;
}

.coach-review-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.coach-review-card {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg-card);
}

.coach-review-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 8px;
}

.coach-review-card__head strong {
    font-size: 0.95rem;
}

.coach-review-card__head .coach-stars {
    font-size: 0.85rem;
}

.coach-review-card__head time {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.8rem;
}

.coach-review-card p {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.5;
    color: var(--ink);
}

.coach-reviews-page__wrap {
    max-width: 760px;
}

.coach-reviews-page__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg-card);
}

.coach-reviews-page__photo {
    position: relative;
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg);
}

.coach-reviews-page__photo img {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-reviews-page__initial {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: rgba(209, 240, 0, 0.1);
    color: var(--accent);
}

.coach-reviews-page__initial svg {
    width: 32px;
    height: 32px;
}

.coach-reviews-page__meta {
    min-width: 0;
}

.coach-reviews-page__meta .coach-show__title {
    margin: 2px 0 8px;
}

.coach-reviews-page__meta .coach-rating {
    margin: 0;
}

.coach-show__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.coach-show__tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.coach-show__bio {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.92rem;
    white-space: pre-line;
}

.coach-show__meta {
    padding-top: 4px;
    border-top: 1px solid var(--line);
}

.coach-show__meta-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted-2);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.coach-show__meta p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.coach-show__panel {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: var(--bg-card);
}

.coach-show__panel-head h2 {
    margin: 0;
    font-size: 1.5rem;
}

.coach-show__panel-head p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 1rem;
    max-width: 42rem;
}

.coach-show__form {
    margin-top: 22px;
}

.coach-show__others {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.coach-show__others legend {
    padding: 0 6px;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
}

.coach-show__others-lead {
    margin: 0 0 12px;
    color: var(--muted-2);
    font-size: 0.8rem;
    line-height: 1.4;
}

.coach-show__others-list {
    display: grid;
    gap: 8px;
}

.coach-show__other {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: #151515;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.coach-show__other:hover {
    border-color: rgba(209, 240, 0, 0.35);
}

.coach-show__other:has(input:checked) {
    border-color: rgba(209, 240, 0, 0.55);
    background: rgba(209, 240, 0, 0.06);
}

.coach-show__other input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.coach-show__other-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.coach-show__other-body strong {
    font-size: 0.9rem;
    font-weight: 650;
}

.coach-show__other-body em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.82rem;
    white-space: nowrap;
}

.coach-show__signed-in {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(209, 240, 0, 0.06);
    color: var(--muted);
    font-size: 0.9rem;
}

.coach-show__signed-in strong {
    color: var(--ink);
}

.coach-show__empty-hint {
    padding: 14px 16px;
    border-radius: 12px;
    background: #f3f6fa;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.coach-show__footnote {
    margin: 12px 0 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--muted);
}

.coach-step {
    margin: 0 0 26px;
    min-width: 0;
}

.coach-step__title {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
}

.coach-slots {
    margin-top: 14px;
}

.coach-slots__label {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
}

.coach-slots__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coach-slots__hint,
.coach-slots__empty,
.coach-slots__loading {
    margin: 10px 0 0;
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.45;
}

.coach-slots__empty {
    color: #f0c674;
}

.coach-week {
    margin-top: 16px;
    min-width: 0;
    max-width: 100%;
}

.coach-week__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 20px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.coach-week__place {
    min-width: 0;
    flex: 1 1 220px;
}

.coach-week__place-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted);
}

.coach-week__place strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
}

.coach-week__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
}

.coach-week__nav strong {
    font-size: 1.05rem;
    min-width: 7.5rem;
    text-align: center;
}

.coach-week__places {
    margin-bottom: 14px;
}

.coach-week__places-label {
    margin: 0 0 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #cfcfcf;
}

.coach-week__places-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coach-week__place-chip {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 8px 14px;
    background: #151515;
    color: #ddd;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.3;
    cursor: pointer;
    text-align: left;
    max-width: 100%;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.coach-week__place-chip:hover {
    border-color: rgba(240, 212, 120, 0.45);
}

.coach-week__place-chip.is-active {
    border-color: rgba(240, 212, 120, 0.75);
    background: rgba(201, 162, 39, 0.14);
    color: #f0d478;
}

.coach-week__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(240, 212, 120, 0.4);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.12), rgba(255, 255, 255, 0.03));
}

.coach-week__summary-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.coach-week__summary-main [data-summary-time] {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}

.coach-week__summary-main [data-summary-meta] {
    font-size: 0.9rem;
    color: #cfcfcf;
}

.coach-week__summary-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f0d478;
    white-space: nowrap;
}

.coach-week__legend {
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.coach-week__legend-title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
}

.coach-week__legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 0.92rem;
    color: #d6d6d6;
    line-height: 1.35;
}

.coach-week__legend-items span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.coach-week__legend-hint {
    margin: 12px 0 0;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--muted);
}

.cw-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: #2a2a2a;
    flex-shrink: 0;
}

.cw-swatch.is-free {
    background: #2f9e5f;
    border-color: #49d889;
}

.cw-swatch.is-short {
    background: repeating-linear-gradient(
        -45deg,
        #2a3a30,
        #2a3a30 3px,
        #3a4f42 3px,
        #3a4f42 6px
    );
    border-color: #5a7a66;
}

.cw-swatch.is-busy {
    background: #6b3b3b;
    border-color: #c07070;
}

.cw-swatch.is-past {
    background: repeating-linear-gradient(
        45deg,
        #1c1c1c,
        #1c1c1c 3px,
        #333 3px,
        #333 6px
    );
    border-color: #666;
}

.cw-swatch.is-closed {
    background: #0d0d0d;
    border-color: #444;
}

.cw-swatch.is-selected {
    background: linear-gradient(180deg, #f0d478, #c9a227);
    border-color: #a8841a;
}

.coach-week__scroll {
    overflow: auto;
    max-width: 100%;
    min-width: 0;
    max-height: min(68vh, 640px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: #101010;
}

.coach-week__grid {
    min-width: 720px;
}

.coach-week-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.coach-week-table__corner,
.coach-week-table__time {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #1a1a1a;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 64px;
    min-width: 64px;
    padding: 6px 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #cfcfcf;
    text-align: right;
}

.coach-week-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding: 12px 6px;
    text-align: center;
}

.coach-week-table__corner {
    z-index: 4;
    top: 0;
}

.coach-week-table__day-head {
    min-width: 84px;
}

.cw-day-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.15;
}

.cw-day-date {
    display: block;
    margin-top: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b0b0b0;
}

.cw-cell {
    height: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #171717;
    transition: background 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.cw-cell.is-closed {
    background: #0c0c0c;
}

.cw-cell.is-past {
    background: repeating-linear-gradient(
        45deg,
        #181818,
        #181818 4px,
        #262626 4px,
        #262626 8px
    );
    cursor: not-allowed;
    opacity: 0.72;
}

.cw-cell.is-busy {
    background: #5a3030;
    box-shadow: inset 0 0 0 1px rgba(192, 112, 112, 0.35);
}

.cw-cell.is-short {
    background: repeating-linear-gradient(
        -45deg,
        #1e2c24,
        #1e2c24 5px,
        #2a4034 5px,
        #2a4034 10px
    );
    cursor: pointer;
}

.cw-cell.is-free {
    background: #248a4f;
    cursor: pointer;
}

.cw-cell.is-clickable:hover,
.cw-cell.is-clickable:focus-visible {
    filter: brightness(1.18);
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(240, 212, 120, 0.65);
}

.cw-cell.is-selected {
    background: linear-gradient(180deg, #f0d478 0%, #d4af37 55%, #c9a227 100%) !important;
    box-shadow: inset 0 0 0 1px #a8841a, inset 0 1px 0 rgba(255, 255, 255, 0.25);
    filter: none;
}

.coach-week__selection {
    margin: 12px 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: #e8c547;
    line-height: 1.4;
}

.coach-peers__list {
    display: grid;
    gap: 10px;
}

.coach-place {
    min-width: 0;
    overflow-x: hidden;
    padding-bottom: 48px;
}

.coach-place__wrap {
    max-width: 760px;
}

.coach-place__back {
    margin: 0 0 16px;
}

.coach-place__back a {
    color: var(--muted);
    text-decoration: none;
}

.coach-place__back a:hover {
    color: var(--ink);
}

.coach-place__title {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 3vw, 2rem);
}

.coach-place__lead {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.45;
}

.coach-place__panel {
    min-width: 0;
    max-width: 100%;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
}

.coach-place__coaches {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.coach-place__coaches-title {
    margin: 0 0 8px;
    font-size: 1rem;
}

.coach-place__coaches-lead {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.4;
}

.coach-place__pick-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.coach-place__pick {
    display: grid;
    grid-template-columns: 18px 56px 1fr;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-card, #fff);
    cursor: pointer;
}

.coach-place__pick input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.coach-place__pick-photo {
    position: relative;
    width: 56px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(59, 109, 158, 0.1);
}

.coach-place__pick-photo img,
.coach-place__pick-photo .catalog-coach-card__placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-place__pick-body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.coach-place__pick-body strong {
    font-size: 0.98rem;
    line-height: 1.25;
}

.coach-place__pick-body em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.85rem;
}

.coach-place__pick-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(76, 175, 80, 0.14);
    color: #2e7d32;
}

.coach-place__pick.is-open .coach-place__pick-badge {
    background: rgba(59, 109, 158, 0.12);
    color: #3b6d9e;
}

.coach-place__pick.is-busy .coach-place__pick-badge,
.coach-place__pick.is-locked .coach-place__pick-badge {
    background: rgba(196, 71, 53, 0.12);
    color: #c44735;
}

.coach-place__pick.is-locked {
    opacity: 0.72;
    cursor: default;
}

.coach-place__pick.is-free {
    border-color: rgba(76, 175, 80, 0.35);
}

.coach-place__pick.is-busy {
    order: 2;
}

@media (max-width: 760px) {
    .coach-place__pick {
        grid-template-columns: 18px 48px 1fr;
        gap: 10px;
        padding: 10px;
    }
}

.rating-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 6px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.7rem;
    font-weight: 800;
}

.rating-badge--sm {
    min-height: 18px;
    font-size: 0.65rem;
    background: #2f6fed;
    color: #fff;
}

/* Partners stories — between hero and events */
.partners-stories {
    padding: 18px 0 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.partners-stories__head {
    margin-bottom: 14px;
}

.partners-stories__head h2 {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 800;
}

.partners-stories__scroller {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.partners-stories__scroller::-webkit-scrollbar {
    height: 4px;
}

.partners-stories__scroller::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.partners-stories__rail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: max-content;
    min-width: 100%;
    box-sizing: border-box;
    padding: 2px max(20px, calc((100vw - var(--wrap)) / 2));
}

.partners-story {
    display: grid;
    justify-items: center;
    gap: 8px;
    width: 84px;
    flex: 0 0 auto;
    color: inherit;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
    scroll-snap-align: start;
}

.partners-story__ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent), #7dd3a0 45%, #5b8def);
}

.partners-story.is-open .partners-story__ring {
    box-shadow: 0 0 0 2px rgba(209, 240, 0, 0.55);
}

.partners-story__cost {
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    z-index: 1;
    max-width: 78px;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.35);
    background: #111;
    color: var(--ink);
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.partners-story__cost.is-free {
    border-color: rgba(209, 240, 0, 0.45);
    color: var(--accent);
}

.partners-story__ring--add {
    background: none;
    border: 2px dashed rgba(255, 255, 255, 0.28);
    padding: 0;
}

.partners-story__avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #3a3a3a, #171717);
    border: 2px solid #0a0a0a;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
}

.partners-story__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.partners-story__avatar--add {
    border: none;
    background: rgba(209, 240, 0, 0.08);
    color: var(--accent);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
}

.partners-story--more {
    width: auto;
    min-width: 72px;
    padding-left: 10px;
    margin-left: 2px;
    border-left: 1px solid var(--line);
    align-self: stretch;
}

.partners-story__more-mark {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 6px;
    width: 100%;
    height: 76px;
    color: var(--muted);
}

.partners-story__more-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
}

.partners-story__more-mark svg {
    width: 22px;
    height: 22px;
}

.partners-story--more:hover .partners-story__more-label,
.partners-story--more:hover .partners-story__more-mark {
    color: var(--accent);
}

.partners-story__caption {
    display: grid;
    gap: 1px;
    justify-items: center;
    text-align: center;
    width: 100%;
    min-width: 0;
}

.partners-story__caption strong {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partners-story__caption em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.66rem;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partners-story__level {
    margin-top: 1px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--accent);
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.partners-story:hover .partners-story__ring--add {
    border-color: var(--accent);
}

.partners-story:hover .partners-story__caption strong,
.partners-story.is-open .partners-story__caption strong {
    color: var(--accent);
}

.partners-story-panel {
    margin-top: 14px;
}

.partners-story-panel[hidden] {
    display: none !important;
}

.partners-story-panel__card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg-card);
}

.partners-story-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.partners-story-panel__who {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.partners-story-panel__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: linear-gradient(145deg, #3a3a3a, #171717);
    color: #fff;
    font-weight: 800;
}

.partners-story-panel__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.partners-story-panel__who strong {
    display: block;
    font-size: 1rem;
    line-height: 1.25;
}

.partners-story-panel__who span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.partners-story-panel__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.partners-story-panel__badge.is-free {
    border-color: rgba(209, 240, 0, 0.4);
    color: var(--accent);
}

.partners-story-panel__meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.partners-story-panel__slots {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.partners-story-panel__slots li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.partners-story-panel__slots strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.3;
}

.partners-story-panel__slots span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 2px;
}

.partners-story-panel__slots em {
    flex-shrink: 0;
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.partners-story-panel__slots em.is-free {
    color: var(--accent);
}

.partners-story-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 640px) {
    .partners-stories {
        padding: 14px 0 18px;
    }

    .partners-stories__rail {
        gap: 12px;
        padding-inline: 16px;
    }

    .partners-story {
        width: 76px;
    }

    .partners-story--more {
        min-width: 64px;
    }

    .partners-story__ring {
        width: 68px;
        height: 68px;
    }

    .partners-story__more-mark {
        height: 68px;
    }

    .partners-story__cost {
        max-width: 70px;
        font-size: 0.54rem;
    }
}

/* Footer */
.site-footer {
    background: #070707;
    border-top: 1px solid var(--line);
}

.site-footer__bar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    padding: 24px 0;
}

.footer-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: var(--accent);
    flex: 0 0 auto;
}

.footer-item__icon svg { width: 16px; height: 16px; }
.footer-item__icon--park { font-weight: 800; font-size: 0.9rem; }
.footer-item strong { display: block; font-size: 0.78rem; margin-bottom: 2px; }
.footer-item span { color: var(--muted-2); font-size: 0.72rem; line-height: 1.35; }

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 0 20px;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 0.8rem;
}

.site-footer__auth {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.site-footer__partner-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 8px;
}

.stub-page {
    max-width: 640px;
    padding-block: 40px 24px;
}

.stub-page__eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stub-page h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.stub-page > p {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.stub-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* Public booking form */
.booking-page {
    max-width: 720px;
    padding-block: 36px 28px;
}

.booking-page__eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.booking-page h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.booking-page__lead {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.booking-page__actions,
.booking-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.booking-form {
    margin-top: 28px;
    display: grid;
    gap: 22px;
    min-width: 0;
}

.booking-form__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.booking-form__span { grid-column: 1 / -1; }

.booking-form__contacts {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    gap: 14px;
}

.booking-form__contacts legend {
    padding: 0 6px;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
}

.booking-page .field label,
.coach-show .field label,
.coach-place .field label {
    display: block;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 8px;
    font-weight: 700;
}

.booking-page .field input,
.booking-page .field select,
.booking-page .phone-national,
.booking-page .phone-country,
.coach-show .field input,
.coach-show .field select,
.coach-show .phone-national,
.coach-show .phone-country,
.coach-place .field input,
.coach-place .field select,
.coach-place .phone-national,
.coach-place .phone-country {
    width: 100%;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    padding: 0 14px;
    background: #111;
    color: var(--ink);
    color-scheme: dark;
    font-size: 1.05rem;
}

.booking-page .field select,
.coach-show .field select,
.coach-place .field select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 0;
    max-width: 100%;
    padding-right: 34px;
    overflow: hidden;
    text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d1f000' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.booking-page .field select option,
.booking-page .field select optgroup,
.booking-page .phone-country option,
.coach-show .field select option,
.coach-show .field select optgroup,
.coach-show .phone-country option {
    background-color: #1c1c1c;
    color: #f4f6f8;
}

.booking-page .field input::placeholder,
.coach-show .field input::placeholder {
    color: var(--muted-2);
}

.booking-page .field input:focus,
.booking-page .field select:focus,
.booking-page .phone-national:focus,
.booking-page .phone-country:focus,
.coach-show .field input:focus,
.coach-show .field select:focus,
.coach-show .phone-national:focus,
.coach-show .phone-country:focus {
    outline: 2px solid rgba(209, 240, 0, 0.35);
    border-color: var(--accent);
}

.booking-page .phone-row,
.coach-show .phone-row,
.coach-place .phone-row {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
}

.booking-page .phone-country,
.coach-show .phone-country,
.coach-place .phone-country {
    width: 100%;
    min-width: 0;
    padding-left: 8px;
    padding-right: 22px;
    font-size: 0.95rem;
}

.booking-page .muted,
.coach-show .muted,
.coach-place .muted {
    color: var(--muted-2);
    font-size: 0.78rem;
    margin-top: 6px;
}

.booking-page .error,
.coach-show .error {
    margin-top: 6px;
    color: #ff8f8f;
    font-size: 0.82rem;
}

.booking-alert {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    line-height: 1.45;
}

.booking-alert--error {
    background: rgba(255, 80, 80, 0.1);
    border-color: rgba(255, 120, 120, 0.35);
}

.booking-alert__hint {
    margin: 0.35rem 0 0.5rem;
    font-size: 0.92em;
    opacity: 0.92;
}

.booking-alert--error ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.booking-alert--warn {
    background: rgba(209, 240, 0, 0.08);
    border-color: rgba(209, 240, 0, 0.28);
    color: var(--muted);
}

.booking-alert a { color: var(--accent); text-decoration: underline; }

.booking-success {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(209, 240, 0, 0.06);
}

.booking-success__heading {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 700;
}

.booking-success__list {
    margin: 0;
    display: grid;
    gap: 14px;
}

.booking-success__list > div {
    display: grid;
    gap: 4px;
}

.booking-success__list dt {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.booking-success__list dd {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.booking-success-page {
    padding-bottom: 28px;
}

.booking-success-page .booking-page__lead {
    max-width: 36rem;
}

.booking-success-visit {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.booking-success-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.booking-success-card__title {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 700;
}

.booking-success-card__text {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.booking-success-card__text--pre {
    white-space: pre-line;
}

.booking-success-cta {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.booking-success-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    text-align: center;
    overflow-wrap: anywhere;
}

.booking-success-secondary {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.booking-success-secondary .btn {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.coach-request-page {
    max-width: 760px;
}

.coach-request-status {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
}

.coach-request-status__timer {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--accent);
}

.coach-request-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.coach-request-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

.coach-request-stat strong {
    color: var(--ink);
    font-weight: 800;
}

.coach-request-timer {
    margin-top: 10px;
}

.coach-request-timer__bar {
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.coach-request-timer__fill {
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width 0.6s linear;
}

.coach-request-coaches {
    margin-top: 16px;
}

.coach-request-coaches__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 8px;
}

.coach-request-coaches__head .booking-success-card__title {
    margin: 0;
}

.coach-request-coaches__wait {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.coach-request-coaches__wait strong {
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.coach-request-coaches__hint {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.coach-request-coaches__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.coach-request-coaches__list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 12px;
}

.coach-request-invite-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.coach-request-invite-status.is-accepted {
    color: var(--ink);
}

.coach-request-invite-status.is-rejected,
.coach-request-invite-status.is-cancelled {
    opacity: 0.75;
}

.coach-request-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: coach-request-pulse 1.2s ease-in-out infinite;
}

@keyframes coach-request-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.85); }
}

.coach-request-coaches__matched {
    margin: 12px 0 0;
    font-size: 0.95rem;
}

@media (min-width: 640px) {
    .booking-success {
        padding: 18px;
    }

    .booking-success-cta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-success-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.booking-summary {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.booking-summary__item {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    gap: 6px;
}

.booking-summary__item span {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.booking-summary__item strong {
    font-size: 1.1rem;
}

.booking-summary__item--duration {
    align-content: start;
}

.booking-summary__item--duration .booking-duration-stepper {
    margin-top: 2px;
    justify-content: flex-start;
}

.booking-summary--duration-only {
    grid-template-columns: minmax(0, 280px);
}

a.search-duration-stepper__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.booking-selection-list {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.booking-selection-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(209, 240, 0, 0.05);
}

.booking-selection-row > div {
    display: grid;
    gap: 2px;
}

.booking-selection-row span,
.booking-selection-row em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.88rem;
}

/* Search results page */
.search-page { padding-top: 28px; }

.search-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #121212;
}

.search-bar__fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.search-bar__field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.search-bar__icon {
    width: 20px;
    height: 20px;
    color: var(--muted);
    flex: 0 0 auto;
}

.search-bar__icon svg { width: 100%; height: 100%; }

.search-bar__label {
    display: block;
    font-size: 0.72rem;
    color: var(--muted-2);
    font-weight: 600;
}

.search-bar__field select {
    display: block;
    width: 100%;
    margin-top: 2px;
    border: 0;
    outline: 0;
    background-color: transparent;
    color: var(--ink);
    color-scheme: dark;
    font-weight: 600;
    padding: 0 18px 0 0;
    height: auto;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d1f000' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
    cursor: pointer;
}

.search-bar__field select option,
.search-bar__field select optgroup {
    background-color: #1c1c1c;
    color: #f4f6f8;
}

.search-bar__field select:disabled {
    opacity: 1;
    color: var(--ink);
    -webkit-appearance: none;
    appearance: none;
    cursor: default;
}

.search-bar__field--duration {
    min-width: 180px;
}

.search-bar__duration {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.search-duration-stepper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.search-duration-stepper__value {
    min-width: 4.5rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
}

.search-duration-stepper__btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #161616;
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.search-duration-stepper__btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.search-duration-stepper__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.search-bar__geo {
    flex: 1 1 100%;
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.search-bar__geo[hidden] {
    display: none !important;
}

.search-bar__geo-btn {
    appearance: none;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.search-bar__geo-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.search-bar__geo-error { color: #c45c5c; }

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 22px;
}

.search-filter {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.85rem;
    cursor: default;
}

.search-filter.is-active {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
    font-weight: 700;
}

.search-filter--icon {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.search-filter--icon svg { width: 16px; height: 16px; }

.search-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.search-results { display: grid; gap: 16px; }

.branch-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: #121212;
}

.branch-card.is-dimmed { opacity: 0.78; }

.branch-card__media {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(209, 240, 0, 0.12), transparent 50%),
        #1a1a1a;
    isolation: isolate;
}

.branch-gallery {
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.branch-gallery__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background: #141414;
}

.branch-gallery__slide.is-broken {
    background:
        linear-gradient(160deg, rgba(209, 240, 0, 0.1), transparent 55%),
        #1a1a1a;
}

.branch-gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.branch-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 28%, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
}

.branch-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    color: #111;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.branch-card__media.has-gallery:hover .branch-gallery__nav,
.branch-card__media.has-gallery:focus-within .branch-gallery__nav {
    opacity: 1;
}

.branch-gallery__nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.branch-gallery__nav:active {
    transform: translateY(-50%) scale(0.96);
}

.branch-gallery__nav svg {
    width: 16px;
    height: 16px;
}

.branch-gallery__nav--prev { left: 10px; }
.branch-gallery__nav--next { right: 10px; }

.branch-gallery__dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 3;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(8px);
}

.branch-gallery__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.branch-gallery__dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.branch-gallery__dot.is-active {
    width: 18px;
    background: var(--accent);
}

.branch-card__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.branch-card__badge {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 999px;
    line-height: 1.2;
}

.branch-card__badge--near {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(209, 240, 0, 0.55);
}

.branch-card.is-map-focus {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    transition: outline-color 0.2s ease;
}

.branch-card__km.is-known {
    color: var(--accent);
    font-weight: 700;
}

.branch-card__body {
    padding: 18px;
    display: grid;
    gap: 14px;
}

.branch-card__top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.branch-card__title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
}

.branch-card__meta {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.branch-card__dot { margin: 0 4px; color: var(--muted-2); }
.branch-card__km { color: var(--muted-2); }

.branch-card__amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.branch-card__amenity-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.branch-card__price {
    text-align: right;
    display: grid;
    gap: 6px;
    align-content: start;
}

.branch-card__price strong { white-space: nowrap; }

.branch-card__free {
    color: var(--muted);
    font-size: 0.85rem;
}

.branch-card__free em {
    color: var(--accent);
    font-style: normal;
    font-weight: 700;
}

.branch-card__closed {
    margin: 0;
    color: var(--muted);
}

.branch-card__slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.slot-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    background: #0a0a0a;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.slot-chip.is-free:hover {
    border-color: var(--accent);
    color: var(--ink);
}

.slot-chip.is-selected {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(209, 240, 0, 0.35);
}

.slot-chip.is-search-hit:not(.is-selected):not(.is-unavailable-requested) {
    border-color: rgba(209, 240, 0, 0.45);
}

.slot-chip.is-unavailable-requested {
    opacity: 0.55;
    text-decoration: line-through;
    border-color: rgba(255, 120, 120, 0.45);
    color: #ffb0b0;
    background: rgba(255, 80, 80, 0.08);
}

.branch-card__hint {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

.slot-chip.is-busy {
    opacity: 0.45;
    cursor: default;
}

.slot-chip:disabled {
    pointer-events: none;
}

.branch-card__cta { display: flex; justify-content: flex-end; gap: 10px; }

.search-aside { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 16px); }

.aside-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #121212;
    padding: 16px;
}

.aside-card h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.aside-card__sub {
    margin: 12px 0 8px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.aside-card__foot {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.aside-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.aside-card__head h3 { margin: 0; }

.aside-map__open {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.aside-map__open:hover { text-decoration: underline; }

.aside-map {
    position: relative;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #121212;
    z-index: 0;
}

.aside-map__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.aside-map--empty {
    display: grid;
    place-items: center;
    padding: 16px;
    height: auto;
    min-height: 120px;
}

.aside-map__hint {
    margin: 0;
    color: var(--muted-2);
    font-size: 0.78rem;
    text-align: center;
    line-height: 1.4;
}

.aside-map__legend {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.aside-map__legend a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-size: 0.85rem;
    line-height: 1.25;
}

.aside-map__legend a:hover strong { color: var(--accent); }

.aside-map__legend-n {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.72rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.aside-map__legend em {
    display: block;
    margin-top: 2px;
    font-style: normal;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.78rem;
}

.aside-alts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aside-days {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.aside-days a {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.aside-days a:hover { border-color: var(--accent); }
.aside-days span { color: var(--muted); font-size: 0.85rem; }

.section { padding: 40px 0; }

@media (max-width: 1100px) {
    .home-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "events"
            "offers"
            "coaches";
    }
    .catalog-coach-grid { grid-template-columns: 1fr; }
    .coaches-page__head {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .hero__points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero__live-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-widget__form { grid-template-columns: 1fr; }
    .hero-widget { max-width: none; margin-left: 0; }
    .site-footer__bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .search-layout { grid-template-columns: 1fr; }
    .search-aside { position: static; }
}

@media (max-width: 1100px) {
    .site-brand__text span { display: none; }
    .site-nav__link { padding: 6px 6px; font-size: 0.8rem; }
    .site-header__phone { font-size: 0.78rem; }
}

@media (max-width: 960px) {
    .site-header__inner {
        flex-wrap: wrap;
        gap: 10px 12px;
    }

    .site-brand { flex: 1 1 auto; }
    .site-brand__text span { max-width: 160px; }

    .nav-toggle { display: grid; order: 3; }

    .site-header__actions {
        order: 2;
        margin-left: 0;
        gap: 8px;
    }

    .site-header__phone {
        font-size: 0.78rem;
    }

    .site-nav {
        order: 4;
        position: fixed;
        inset: calc(var(--header-h) + 8px) 16px auto;
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        padding: 10px;
        background: #151515;
        border: 1px solid var(--line);
        border-radius: 14px;
        z-index: 60;
        width: auto;
    }

    .site-nav.is-open { display: flex; }
    .site-nav__link { border-bottom: 0; padding: 12px; border-radius: 10px; }
    .site-nav__link.is-active {
        background: rgba(209, 240, 0, 0.08);
        color: var(--accent);
    }

    .hero__grid {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 28px 0 20px;
        align-items: start;
        gap: 28px;
    }
    .hero__col {
        min-height: 0;
        gap: 24px;
    }
    .hero__live-stats { grid-template-columns: 1fr 1fr; }

    .events-table__head { display: none; }
    .events-row {
        grid-template-columns: minmax(72px, 0.9fr) 1fr 1fr;
        gap: 6px 10px;
        align-items: start;
    }
    .events-row__when { grid-row: 1 / span 2; }
    .events-row__event { grid-column: 2 / -1; }

    .events-catalog .v2-event-card { align-items: flex-start; }
    .events-catalog .v2-event-card__cta { position: static; margin-top: 8px; }
    .events-catalog .v2-event-card__top { flex-wrap: wrap; }
    .events-catalog .v2-event-card__place { padding-right: 0; }

    .booking-form__grid { grid-template-columns: minmax(0, 1fr); }
    .booking-summary { grid-template-columns: 1fr; }
    .branch-card { grid-template-columns: 1fr; }
    .branch-card__media { min-height: 180px; }
    .branch-gallery__nav { opacity: 1; }
    .branch-card__top { flex-direction: column; }
    .branch-card__price { text-align: left; }
    .coach-show__grid { grid-template-columns: 1fr; }
    .coach-show__profile { position: static; }
    .coach-show__media { aspect-ratio: 16 / 10; max-height: 280px; }
}

@media (max-width: 640px) {
    .wrap { width: min(100% - 28px, var(--wrap)); }
    .partners-grid { grid-template-columns: 1fr 1fr; }
    .site-footer__bar { grid-template-columns: 1fr 1fr; }
    .coaches-grid { grid-template-columns: 1fr; }
    .coach-show__panel { padding: 16px; }
    .coach-show__other-body { flex-direction: column; align-items: flex-start; gap: 4px; }
    .search-filter--icon { margin-left: 0; }
}
/* ===== Partners page (UI demo) ===== */
.partners-page {
    padding-bottom: 72px;
}

.partners-hero {
    position: relative;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(10, 10, 10, 0.92) 18%, rgba(10, 10, 10, 0.55) 55%, rgba(10, 10, 10, 0.35)),
        url("../images/home/hero.jpg") center / cover no-repeat;
}

.partners-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: 28px;
    align-items: end;
    padding: 48px 0 36px;
    min-height: 220px;
}

.partners-hero__copy h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.partners-hero__copy p {
    margin: 0;
    max-width: 38rem;
    color: var(--muted);
    line-height: 1.5;
}

.partners-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.partners-hero__actions .btn {
    gap: 8px;
}

.partners-hero__actions .btn svg { width: 16px; height: 16px; }

.partners-how__body {
    padding-top: 4px;
}

.partners-how__lead {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.partners-how__lead strong {
    color: var(--ink);
}

.partners-how ol strong {
    color: var(--ink);
}

.partners-leagues-legend--inline {
    margin-top: 16px;
}

.partners-league-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    line-height: 1.2;
    border: 1px solid transparent;
    white-space: nowrap;
}

.partners-league-badge--light {
    background: rgba(74, 222, 128, 0.16);
    border-color: rgba(74, 222, 128, 0.35);
    color: #86efac;
}

.partners-league-badge--medium {
    background: rgba(251, 191, 36, 0.16);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.partners-league-badge--hard {
    background: rgba(251, 113, 133, 0.16);
    border-color: rgba(251, 113, 133, 0.4);
    color: #fb7185;
}

.partners-card__tags,
.partners-side-card__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 6px 0 0;
}

.partners-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 750;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.partners-card__rating::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(209, 240, 0, 0.15);
}

.partners-card__identity {
    min-width: 0;
    flex: 1;
}

.partners-card__identity h3 {
    margin: 0;
}

.partners-card__rail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.partners-card__time {
    font-size: 0.92rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.partners-card__place {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.partners-card__place--strong {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
}

.partners-card__address {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.partners-card__level {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--muted);
}

.partners-side-card__meta--when strong {
    font-size: 1rem;
    color: var(--accent);
}

.partners-side-card__meta--muted {
    color: var(--muted-2);
    font-size: 0.8rem;
}

.partners-card__status,
.partners-side-card__status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.partners-card__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.partners-card__reply {
    margin: 0;
    flex: 1;
}

.partners-card__reply .btn {
    width: 100%;
}

.partners-card__state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
}

.partners-day-chip__count {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f5c518;
    color: #1a1400;
    font-size: 0.68rem;
    font-weight: 800;
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.partners-level-pill {
    display: none;
}

.partners-league {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px 22px;
    margin-bottom: 16px;
    padding: 20px 22px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        radial-gradient(ellipse at top right, rgba(209, 240, 0, 0.12), transparent 55%);
    color: #f4f6f8;
}

.partners-league--light {
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(255, 255, 255, 0.03)),
        radial-gradient(ellipse at top right, rgba(74, 222, 128, 0.18), transparent 55%);
    border-color: rgba(74, 222, 128, 0.28);
}

.partners-league--medium {
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(255, 255, 255, 0.03)),
        radial-gradient(ellipse at top right, rgba(251, 191, 36, 0.2), transparent 55%);
    border-color: rgba(251, 191, 36, 0.3);
}

.partners-league--hard {
    background:
        linear-gradient(135deg, rgba(244, 63, 94, 0.16), rgba(255, 255, 255, 0.03)),
        radial-gradient(ellipse at top right, rgba(251, 113, 133, 0.2), transparent 55%);
    border-color: rgba(251, 113, 133, 0.3);
}

.partners-league__eyebrow {
    margin: 0 0 6px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(244, 246, 248, 0.55);
    font-weight: 700;
}

.partners-league__name {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: #f4f6f8;
}

.partners-league__tagline {
    margin: 8px 0 0;
    font-size: 1.05rem;
    color: rgba(244, 246, 248, 0.88);
    line-height: 1.35;
}

.partners-league__meta {
    margin: 10px 0 0;
    font-size: 0.9rem;
    color: rgba(244, 246, 248, 0.58);
}

.partners-league__rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 96px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(209, 240, 0, 0.12);
    border: 1px solid rgba(209, 240, 0, 0.35);
    text-align: right;
}

.partners-league__rating-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #d1f000;
}

.partners-league__rating-label {
    margin-top: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(244, 246, 248, 0.62);
    font-weight: 700;
}

.partners-league__note {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(244, 246, 248, 0.72);
}

.partners-leagues-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 16px;
}

.partners-leagues-legend article {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.partners-leagues-legend strong {
    display: block;
    font-size: 1rem;
    color: #f4f6f8;
}

.partners-leagues-legend span {
    display: block;
    margin-top: 2px;
    color: rgba(244, 246, 248, 0.55);
    font-size: 0.85rem;
}

.partners-leagues-legend p {
    margin: 8px 0 0;
    color: rgba(244, 246, 248, 0.65);
    font-size: 0.88rem;
    line-height: 1.35;
}

.partners-toolbar {
    display: none;
}

.partners-dot--free {
    background: rgba(34, 197, 94, 0.85);
}

.partners-chip__cost,
.partners-card__cost,
.partners-side-card__cost {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    margin: 0;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.06);
    color: var(--ink);
    white-space: nowrap;
}

.partners-chip__cost.is-free,
.partners-card__cost.is-free,
.partners-side-card__cost.is-free {
    background: rgba(209, 240, 0, 0.35);
    color: #1a1f00;
    box-shadow: 0 0 0 1px rgba(209, 240, 0, 0.55);
}

.partners-cell.is-blocked {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid transparent;
    border-top: 0;
    pointer-events: none;
}

.partners-field {
    display: grid;
    gap: 6px;
}

.partners-field > span {
    font-size: 0.8rem;
    color: var(--muted);
}

.partners-field > span em {
    font-style: normal;
    opacity: 0.75;
}

.partners-field select,
.partners-field textarea,
.partners-create__form select,
.partners-create__form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    background: #101010;
    color: var(--ink);
    font: inherit;
    color-scheme: dark;
}

.partners-field select option,
.partners-field select optgroup,
.partners-create__form select option,
.partners-create__form select optgroup {
    background-color: #1c1c1c;
    color: #f4f6f8;
}

.partners-field textarea::placeholder,
.partners-create__form textarea::placeholder {
    color: var(--muted-2);
}

.partners-seg {
    display: grid;
    gap: 8px;
}

.partners-seg__item {
    position: relative;
    display: block;
    cursor: pointer;
}

.partners-seg__item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.partners-seg__item span {
    display: block;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.35;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.partners-seg__item input:checked + span {
    border-color: rgba(209, 240, 0, 0.85);
    background: rgba(209, 240, 0, 0.16);
    box-shadow: inset 0 0 0 1px rgba(209, 240, 0, 0.35);
    color: var(--ink);
    font-weight: 650;
}

.partners-seg__item:hover span {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
}

.partners-pay {
    display: none;
}

.partners-tools { padding-top: 22px; }

.partners-flash {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(209, 240, 0, 0.35);
    background: rgba(209, 240, 0, 0.08);
    color: var(--ink);
}

.partners-flash--error {
    border-color: rgba(255, 107, 107, 0.45);
    background: rgba(255, 107, 107, 0.1);
}

.partners-rule {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 24px;
    align-items: center;
    margin-bottom: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(209, 240, 0, 0.28);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(209, 240, 0, 0.08), rgba(16, 16, 16, 0.9));
}

.partners-rule__copy h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.partners-rule__copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    max-width: 46rem;
}

.partners-rule__copy strong {
    color: var(--ink);
    font-weight: 600;
}

.partners-rule__status {
    margin-top: 10px !important;
    color: var(--ink) !important;
    font-size: 0.92rem;
}

.partners-rule__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.partners-how,
.partners-levels {
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-card);
}

.partners-how summary,
.partners-levels summary {
    cursor: pointer;
    font-weight: 650;
    color: var(--ink);
    list-style: none;
}

.partners-how summary::-webkit-details-marker,
.partners-levels summary::-webkit-details-marker {
    display: none;
}

.partners-how summary::after,
.partners-levels summary::after {
    content: '▾';
    float: right;
    color: var(--accent);
}

.partners-how[open] summary::after,
.partners-levels[open] summary::after {
    content: '▴';
}

.partners-how ol {
    margin: 12px 0 4px;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.55;
}

.partners-how li + li {
    margin-top: 6px;
}

.partners-levels ul {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.partners-levels li strong {
    display: inline;
    color: var(--ink);
    margin-right: 8px;
}

.partners-levels li > span {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.partners-levels li p {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.92rem;
}

.partners-filters {
    display: grid;
    grid-template-columns: max-content repeat(3, minmax(0, 1fr)) auto;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg-card);
    align-items: start;
}

.partners-filters__field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.partners-filters__field--week {
    min-width: max-content;
}

.week-switcher {
    display: inline-grid;
    grid-template-columns: 42px max-content 42px;
    align-items: stretch;
    width: max-content;
    max-width: 100%;
    height: 42px;
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid var(--accent);
    border-radius: 999px;
    overflow: hidden;
    background: #101010;
}

.week-switcher__btn {
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.week-switcher__btn + .week-switcher__label,
.week-switcher__label + .week-switcher__btn {
    border-left: 1px solid var(--accent);
}

.week-switcher__btn:hover {
    background: var(--accent-soft);
}

.week-switcher__btn svg {
    width: 18px;
    height: 18px;
}

.week-switcher__label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
}

.partners-filters__field span {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-2);
    padding-left: 14px; /* как padding текста в select */
}

.partners-filters__field--week > span {
    /* текст даты начинается после стрелки 42px + padding лейбла 16px */
    padding-left: calc(42px + 16px);
}

.partners-filters__field select {
    width: 100%;
    height: 42px;
    min-height: 42px;
    box-sizing: border-box;
    padding: 0 40px 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background-color: #101010;
    color: var(--ink);
    color-scheme: dark;
    font-weight: 600;
    outline: 0;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d1f000' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.partners-filters__field select option {
    background: #1c1c1c;
    color: #f4f6f8;
}

.partners-filters__actions {
    display: grid;
    gap: 6px;
    min-width: 140px;
    align-content: start;
}

/* Пустая строка-ярлык, как у «Время / Уровень / Клуб» — Поиск на одной линии с селектами и неделей */
.partners-filters__actions::before {
    content: '\00a0';
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
    visibility: hidden;
}

.partners-filters__actions .btn {
    width: 100%;
    height: 42px;
    min-height: 42px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 0.85rem;
}

.partners-filters__reset {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    text-align: center;
    padding: 0;
    font-size: 0.85rem;
}

.partners-filters__reset:hover { color: var(--accent); }

.partners-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    border-bottom: 0;
    margin: 0;
    min-width: 0;
    flex: 1;
}

.partners-tabs-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 16px;
    margin-top: 22px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0;
}

.partners-tabs-row__create {
    display: none;
}

.partners-tabs__btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 10px 2px 12px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-weight: 600;
}

.partners-tabs__btn.is-active {
    color: var(--ink);
    border-bottom-color: var(--accent);
}

.partners-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.partners-legend li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.partners-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.partners-dot--active { background: var(--accent); }
.partners-dot--replies { background: rgba(209, 240, 0, 0.55); }
.partners-dot--confirmed { background: #f4f6f8; }
.partners-dot--past { background: var(--muted-2); }

.partners-card__level-desc,
.partners-side-card__level-desc {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.partners-gate {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
}

.partners-gate[hidden] {
    display: none !important;
}

.partners-gate__dialog {
    position: relative;
    width: min(100%, 440px);
    padding: 28px 24px 22px;
    border: 1px solid rgba(209, 240, 0, 0.3);
    border-radius: 18px;
    background: #141414;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.partners-gate__dialog h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.partners-gate__dialog p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.5;
}

.partners-gate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.partners-gate__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.partners-gate__close:hover {
    color: var(--ink);
}

body.partners-gate-open {
    overflow: hidden;
}

.partners-create {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.72);
}

.partners-create[hidden] {
    display: none !important;
}

.partners-create__dialog {
    position: relative;
    width: min(100%, 560px);
    max-height: min(92vh, 860px);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(209, 240, 0, 0.3);
    border-radius: 18px;
    background: #141414;
    overflow: hidden;
}

.partners-create__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.partners-create__close:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.1);
}

.partners-create__scroll {
    overflow-y: auto;
    padding: 28px 24px 22px;
    -webkit-overflow-scrolling: touch;
}

.partners-create__dialog h2 {
    margin: 0 40px 10px 0;
    font-size: 1.35rem;
}

.partners-create__hint {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.partners-create__intents {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.partners-create__intent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
}

.partners-create__intent input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

.partners-create__intent span {
    display: grid;
    gap: 2px;
}

.partners-create__intent strong {
    font-size: 0.95rem;
}

.partners-create__intent em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.8rem;
}

.partners-create__intent-error {
    margin: -8px 0 12px;
    color: #c0392b;
    font-size: 0.85rem;
}

.partners-create__map-block[hidden],
[data-create-request-block][hidden] {
    display: none !important;
}

.partners-create__wdays {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.partners-wday {
    cursor: pointer;
}

.partners-wday input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.partners-wday span {
    display: inline-flex;
    min-width: 40px;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.partners-wday input:checked + span {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.partners-create__window {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.partners-create__map-note {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.partners-create__geo {
    justify-self: start;
    margin-bottom: 10px;
}

.partners-create__picker {
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #1a1a1a;
    margin-bottom: 8px;
}

.partners-seg--wrap {
    display: flex;
    flex-wrap: wrap;
}

.partners-create__step {
    margin: 0 0 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.partners-create__places {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.partners-place-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex: 1 1 calc(50% - 8px);
    min-width: 140px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #161616;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.partners-place-chip strong {
    font-size: 0.95rem;
}

.partners-place-chip span {
    color: var(--muted);
    font-size: 0.78rem;
}

.partners-place-chip.is-active {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(209, 240, 0, 0.25);
}

.partners-create__when-step[hidden] {
    display: none !important;
}

.partners-create__days {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 12px;
    scrollbar-width: thin;
}

.partners-create__slots {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.partners-create__slots.is-active {
    display: flex;
}

.partners-create__slots .partners-free-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 76px;
    padding: 12px 14px;
}

.partners-create__quick {
    display: grid;
    gap: 10px;
}

.partners-create__quick .partners-seg {
    grid-template-columns: 1fr 1fr;
}

.partners-create__more {
    border-top: 1px solid var(--line);
    padding-top: 8px;
}

.partners-create__more summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.partners-create__more[open] summary {
    margin-bottom: 12px;
}

.partners-create__details {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.partners-create__details[hidden] {
    display: none !important;
}

.partners-create__when {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(209, 240, 0, 0.35);
    background: rgba(209, 240, 0, 0.08);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.98rem;
}

.partners-create__form {
    display: grid;
    gap: 14px;
}

.partners-create__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
    position: sticky;
    bottom: 0;
    padding-top: 12px;
    background: linear-gradient(180deg, transparent, #141414 28%);
}

.partners-create__actions .btn {
    min-height: 44px;
}

.partners-free-slots {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.partners-free-slots__head h3,
.partners-mobile-requests__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.partners-free-slots__head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.partners-mobile-requests {
    display: grid;
    gap: 10px;
}

.partners-mobile-requests__title {
    margin-bottom: 2px;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.72rem;
}

.partners-free-slot {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(209, 240, 0, 0.35);
    background: linear-gradient(135deg, rgba(209, 240, 0, 0.1), rgba(20, 20, 20, 0.95));
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.partners-free-slot:hover,
.partners-free-slot.is-active,
.partners-free-slot.is-selected {
    border-color: rgba(209, 240, 0, 0.7);
    background: linear-gradient(135deg, rgba(209, 240, 0, 0.18), rgba(20, 20, 20, 0.98));
}

.partners-create__slots .partners-free-slot {
    grid-template-columns: auto minmax(0, 1fr);
}

.partners-create__slots .partners-free-slot.is-selected {
    box-shadow: inset 0 0 0 1px rgba(209, 240, 0, 0.55);
}

.partners-free-slot strong {
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
}

.partners-free-slot span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.3;
}

.partners-free-slot em {
    font-style: normal;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.partners-empty--free {
    margin: 0;
    padding: 14px;
    border-radius: 14px;
    border: 1px dashed rgba(209, 240, 0, 0.28);
    background: rgba(209, 240, 0, 0.04);
    color: var(--muted);
    font-size: 0.9rem;
}

.partners-reply-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.partners-reply-row span {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
}

.partners-reply-row p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.partners-inline-form {
    margin-top: 12px;
}

.partners-workspace--list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.partners-filters__reset {
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
    text-decoration: none;
}

.partners-filters__reset:hover {
    color: var(--accent);
}

.partners-workspace { margin-top: 18px; }

.partners-day-chips {
    display: none;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.partners-day-chip {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    gap: 2px;
    min-width: 76px;
    padding: 12px 14px 10px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #161616;
    cursor: pointer;
    text-align: left;
}

.partners-day-chip strong { font-size: 0.78rem; }
.partners-day-chip strong.is-weekend { color: #ff6b6b; }
.partners-day-chip span { color: var(--muted); font-size: 0.78rem; }
.partners-day-chip.is-active {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(209, 240, 0, 0.25);
}

.partners-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}

.partners-board:has(.partners-side[hidden]) {
    grid-template-columns: 1fr;
}

.partners-week-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #0f0f0f;
    max-height: min(70vh, 760px);
}

.partners-week {
    --col-hour: 64px;
    display: grid;
    grid-template-columns: var(--col-hour) repeat(var(--days), minmax(120px, 1fr));
    min-width: 980px;
}

.partners-week__corner,
.partners-week__day,
.partners-week__hour,
.partners-cell {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.partners-week__corner { position: sticky; top: 0; left: 0; z-index: 3; background: #121212; }
.partners-week__day {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 10px;
    background: #121212;
    text-align: center;
}
.partners-week__day strong { display: block; font-size: 0.78rem; letter-spacing: 0.04em; }
.partners-week__day span { color: var(--muted); font-size: 0.8rem; }
.partners-week__day.is-weekend strong { color: #ff6b6b; }

.partners-week__hour {
    position: sticky;
    left: 0;
    z-index: 1;
    display: grid;
    place-items: start end;
    padding: 10px 8px;
    background: #101010;
    color: var(--muted);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.partners-cell {
    min-height: 76px;
    padding: 6px;
    background: transparent;
    border-left: 0;
    border-top: 0;
    display: grid;
    gap: 4px;
    align-content: start;
    cursor: pointer;
    text-align: left;
}

.partners-cell:disabled {
    cursor: default;
    opacity: 1;
}

.partners-cell.has-items:hover,
.partners-cell.is-active {
    background: rgba(209, 240, 0, 0.06);
}

.partners-cell.is-active {
    outline: 1px solid rgba(209, 240, 0, 0.45);
    outline-offset: -1px;
}

.partners-cell.is-empty {
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

.partners-cell.is-empty:hover,
.partners-cell.is-empty.is-active {
    background: rgba(209, 240, 0, 0.08);
}

.partners-cell__add {
    color: rgba(15, 23, 42, 0.28);
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 500;
}

.partners-cell.is-empty:hover .partners-cell__add,
.partners-cell.is-empty.is-active .partners-cell__add {
    color: rgba(15, 23, 42, 0.65);
}

.partners-cell__count {
    font-size: 0.68rem;
    color: var(--accent);
    font-weight: 700;
}

.partners-chip {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 6px;
    align-items: start;
    padding: 6px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    position: relative;
}

.partners-chip--active {
    border-color: rgba(209, 240, 0, 0.35);
    background: var(--accent-soft);
}

.partners-chip--replies {
    border-color: rgba(209, 240, 0, 0.55);
    background: rgba(209, 240, 0, 0.16);
}

.partners-chip--confirmed {
    border-color: rgba(244, 246, 248, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.partners-chip--past {
    opacity: 0.55;
}

.partners-chip__avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.7rem;
    font-weight: 700;
}

.partners-chip__text {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.partners-chip__text strong,
.partners-chip__text em,
.partners-chip__text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
}

.partners-chip__text strong { font-size: 0.72rem; }
.partners-chip__text em { font-size: 0.66rem; color: var(--muted); }
.partners-chip__text small { font-size: 0.64rem; color: var(--muted-2); }

.partners-chip__badge {
    position: absolute;
    right: 4px;
    bottom: 4px;
    font-size: 0.58rem;
    padding: 2px 5px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.partners-mobile-list { display: none; }

.partners-mobile-day { display: none; gap: 10px; }
.partners-mobile-day.is-active { display: grid; }

.partners-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-card);
    padding: 16px;
    display: grid;
    gap: 0;
}

.partners-card[data-slot-open] {
    cursor: pointer;
}

.partners-card__top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.partners-card__avatar,
.partners-side-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(209, 240, 0, 0.14);
    color: var(--accent);
    font-weight: 800;
}

.partners-card__top h3,
.partners-side-card__top h3 {
    margin: 0;
    font-size: 0.95rem;
}

.partners-card__top p,
.partners-side-card__top p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.partners-card__badge,
.partners-side-card__badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-ink);
    background: var(--accent);
    border-radius: 999px;
    padding: 3px 8px;
}

.partners-card__meta,
.partners-side-card__meta {
    margin: 0;
    color: var(--muted-2);
    font-size: 0.8rem;
}

.partners-card__note,
.partners-side-card__note {
    margin: 0;
    color: var(--muted);
    line-height: 1.4;
    font-size: 0.88rem;
}

.partners-card--past { opacity: 0.6; }
.partners-card--active { border-color: rgba(209, 240, 0, 0.28); }
.partners-card--replies { border-color: rgba(209, 240, 0, 0.45); }
.partners-card--confirmed { border-color: rgba(244, 246, 248, 0.28); }

.partners-empty {
    margin: 0;
    padding: 24px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
}

.partners-side {
    position: sticky;
    top: calc(var(--header-h) + 12px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg-card);
    padding: 14px;
    max-height: calc(100vh - var(--header-h) - 28px);
    overflow: auto;
}

.partners-side__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
}

.partners-side__head strong { display: block; font-size: 0.95rem; }
.partners-side__head span { color: var(--muted); font-size: 0.8rem; }

.partners-side__close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.partners-side__list { display: grid; gap: 10px; }

.partners-side-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 8px;
    background: #151515;
}

.partners-side-card__top {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.partners-side-card__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.partners-side-card__actions .partners-side-card__note,
.partners-side-card__actions .partners-side-card__stats {
    min-width: 0;
}

.partners-side-card__stats {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.partners-side-card__actions .btn {
    width: 100%;
    justify-content: center;
}

.partners-side-card__chat {
    width: 42px;
    min-height: 42px;
    min-width: 42px;
    padding: 0;
}

.partners-side-card__chat svg { width: 16px; height: 16px; }

.partners-side-card--past { opacity: 0.6; }
.partners-side-card--active { border-color: rgba(209, 240, 0, 0.28); }
.partners-side-card--replies { border-color: rgba(209, 240, 0, 0.45); }
.partners-side-card--confirmed { border-color: rgba(244, 246, 248, 0.28); }

.partners-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 80;
    max-width: min(92vw, 420px);
    padding: 12px 16px;
    border-radius: 12px;
    background: #1b1b1b;
    border: 1px solid rgba(209, 240, 0, 0.35);
    color: var(--ink);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .partners-board {
        grid-template-columns: 1fr;
    }
    .partners-side {
        position: fixed;
        inset: auto 0 0 0;
        top: auto;
        max-height: min(72vh, 560px);
        border-radius: 18px 18px 0 0;
        z-index: 70;
        box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.5);
    }
    body.partners-side-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 60;
    }
}

@media (max-width: 900px) {
    .partners-hero__inner {
        grid-template-columns: 1fr;
        align-items: start;
        padding: 28px 0 22px;
        min-height: 0;
        gap: 18px;
    }
    .partners-hero__copy h1 {
        font-size: clamp(1.55rem, 7vw, 2rem);
    }
    .partners-hero__copy p {
        font-size: 0.92rem;
        max-width: none;
    }
    .partners-hero__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        justify-content: stretch;
        width: 100%;
    }
    .partners-hero__actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 46px;
        font-size: 0.88rem;
        padding-inline: 10px;
    }
    .partners-legend--desktop {
        display: none;
    }
    .partners-levels {
        display: none;
    }
    .partners-league {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 16px;
        margin-bottom: 14px;
    }
    .partners-league__name {
        font-size: 1.45rem;
    }
    .partners-league__tagline {
        font-size: 0.92rem;
    }
    .partners-league__note {
        font-size: 0.84rem;
    }
    .partners-league__rating {
        align-items: center;
        text-align: center;
        min-width: 84px;
        padding: 10px 12px;
    }
    .partners-league__rating-value {
        font-size: 1.6rem;
    }
    .partners-leagues-legend {
        grid-template-columns: 1fr;
    }
    .partners-leagues-legend--inline {
        grid-template-columns: 1fr;
    }
    .partners-rule {
        grid-template-columns: 1fr;
        align-items: start;
        padding: 16px;
    }
    .partners-rule__actions {
        justify-content: flex-start;
    }
    .partners-rule__actions .btn {
        width: 100%;
    }
    .partners-filters {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 14px;
    }
    .partners-filters__field--city {
        grid-column: 1 / -1;
    }
    .partners-filters__field--week {
        grid-column: auto;
    }
    .partners-filters__field span {
        padding-left: 12px;
    }
    .partners-filters__field--week > span {
        padding-left: calc(36px + 10px);
    }
    .week-switcher {
        width: 100%;
        max-width: 100%;
        height: 44px;
        min-height: 44px;
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        border-radius: 12px;
    }
    .week-switcher__label {
        padding: 0 8px;
        font-size: 0.78rem;
        white-space: normal;
        line-height: 1.15;
    }
    .partners-filters__field select {
        height: 44px;
        min-height: 44px;
        border-radius: 12px;
        font-size: 0.86rem;
    }
    .partners-filters__actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        align-items: stretch;
        gap: 10px;
    }
    .partners-filters__actions::before {
        display: none;
    }
    .partners-filters__reset {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        min-height: 44px;
        padding: 0 12px;
        border-radius: 12px;
        border: 1px solid var(--line);
        background: transparent;
        color: var(--muted);
        text-align: center;
        width: auto;
        white-space: nowrap;
        text-decoration: none;
        font-weight: 600;
    }
    .partners-filters__reset:hover {
        color: var(--accent);
        border-color: rgba(209, 240, 0, 0.45);
    }
    .partners-filters__actions .btn {
        width: 100%;
        min-width: 0;
        height: 44px;
    }
    .partners-tabs-row {
        margin-top: 18px;
    }
    .partners-tabs {
        width: 100%;
        justify-content: space-between;
        gap: 0;
    }
    .partners-tabs__btn {
        flex: 1;
        text-align: center;
        padding: 10px 4px 12px;
        font-size: 0.88rem;
    }
    .partners-day-chips { display: flex; }
    .partners-week-wrap { display: none; }
    .partners-mobile-list { display: block; }
    .partners-mobile-day.is-active { gap: 12px; }
    .partners-card {
        padding: 16px;
        border-radius: 16px;
        background: #161616;
    }
    .partners-card__avatar,
    .partners-side-card__avatar {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .partners-card__footer .btn-outline {
        border-color: rgba(209, 240, 0, 0.55);
        color: var(--accent);
    }
}

@media (max-width: 640px) {
    .partners-hero__actions {
        grid-template-columns: 1fr;
    }
    .partners-league {
        grid-template-columns: 1fr;
    }
    .partners-league__rating {
        width: fit-content;
        text-align: left;
        align-items: flex-start;
    }
    .partners-filters__field--week {
        grid-column: 1 / -1;
    }
}

/* —— Player auth + level test —— */
.auth-page,
.level-test {
    padding: 48px 0 72px;
    min-height: 60vh;
}
.auth-card,
.level-test__card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 640px;
    margin: 0 auto;
    background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 32px 28px;
}
.auth-card h1,
.level-test__card h1 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    letter-spacing: -0.02em;
}
.auth-lead,
.level-test__lead {
    color: rgba(244,246,248,0.72);
    margin: 0 0 24px;
    line-height: 1.55;
}
.auth-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.auth-form .btn-public {
    display: flex;
    width: 100%;
}
.auth-form .field,
.level-test .field {
    margin-bottom: 16px;
}
.auth-form label,
.level-test .field label {
    display: block;
    margin-bottom: 8px;
    color: rgba(244,246,248,0.78);
    font-size: 0.9rem;
}
.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form input[type="email"],
.auth-form select {
    width: 100%;
    background: #121212;
    border: 1px solid rgba(255,255,255,0.14);
    color: #f4f6f8;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
}
.auth-form input[type="text"]::placeholder,
.auth-form input[type="password"]::placeholder,
.auth-form input[type="tel"]::placeholder,
.auth-form input[type="email"]::placeholder {
    color: rgba(244,246,248,0.38);
}
.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="tel"]:focus,
.auth-form input[type="email"]:focus,
.auth-form select:focus {
    outline: none;
    border-color: rgba(209,240,0,0.55);
    box-shadow: 0 0 0 3px rgba(209,240,0,0.12);
}
.auth-form .phone-row {
    display: grid;
    grid-template-columns: 5.75rem minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
}
.auth-form .phone-country,
.auth-form .phone-national {
    width: 100%;
    min-width: 0;
}
.auth-form .phone-country {
    padding-left: 8px;
    padding-right: 22px;
}
.auth-form .muted,
.auth-form [data-phone-hint] {
    color: rgba(244,246,248,0.52);
}
.auth-form .field-hint-inline {
    margin-left: 6px;
    font-weight: 500;
    color: rgba(244,246,248,0.48);
    font-size: 0.8rem;
}
.auth-form .error,
.level-test__error {
    color: #ff8f8f;
    margin: 8px 0 16px;
    font-size: 0.9rem;
}
.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 12px 0 20px;
    color: rgba(244,246,248,0.7);
    font-size: 0.9rem;
}
.auth-switch {
    display: block;
    width: 100%;
    margin-top: 20px;
    text-align: left;
    color: rgba(244,246,248,0.65);
}
.auth-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    text-align: left;
}
.auth-status {
    color: #9be39b;
    margin: 0 0 16px;
    line-height: 1.5;
}
.auth-phone {
    margin: 0 0 8px;
    color: rgba(244,246,248,0.78);
    font-size: 0.95rem;
}
.auth-phone strong {
    color: #f4f6f8;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}
.auth-actions--row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.auth-hint {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(244,246,248,0.78);
    line-height: 1.55;
    font-size: 0.95rem;
}
.auth-hint--ok {
    border-color: rgba(155,227,155,0.35);
    background: rgba(155,227,155,0.08);
    color: #9be39b;
}
.auth-hint p {
    margin: 0;
}
.auth-hint p + p {
    margin-top: 8px;
}
.phone-otp {
    margin: 0;
}
.phone-otp__fallback {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.phone-otp__note {
    margin: 0;
    color: rgba(244,246,248,0.55);
    font-size: 0.88rem;
    line-height: 1.5;
}
.phone-otp__secondary {
    margin: 0;
}
.auth-card.otp-card {
    max-width: 420px;
    padding: 28px 24px;
}
.otp-card h1 {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 4.5vw, 1.85rem);
}
.otp-card__phone {
    margin: 0 0 10px;
    color: #f4f6f8;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    word-break: break-word;
}
.otp-card__lead {
    margin: 0 0 20px;
    color: rgba(244,246,248,0.72);
    font-size: 0.98rem;
    line-height: 1.5;
}
.otp-card .error {
    color: #ff8f8f;
    margin: 0 0 14px;
    font-size: 0.9rem;
}
.otp-card__form {
    margin-bottom: 8px;
}
.otp-card__or {
    margin: 18px 0 14px;
    color: rgba(244,246,248,0.55);
    font-size: 0.92rem;
    text-align: center;
    line-height: 1.4;
}
.auth-form input.otp-card__code {
    width: 100%;
    box-sizing: border-box;
    min-height: 56px;
    background: #121212;
    border: 1px solid rgba(255,255,255,0.16);
    color: #f4f6f8;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-align: center;
    font-family: inherit;
}
.auth-form input.otp-card__code::placeholder {
    letter-spacing: 0.28em;
    color: rgba(244,246,248,0.28);
}
.auth-form input.otp-card__code:invalid:not(:focus) {
    box-shadow: none;
    border-color: rgba(255,255,255,0.16);
}
.auth-form input.otp-card__code:focus {
    outline: none;
    border-color: rgba(209,240,0,0.55);
    box-shadow: 0 0 0 3px rgba(209,240,0,0.12);
}
.auth-form input.otp-card__code:user-invalid,
.auth-form input.otp-card__code.is-invalid {
    border-color: #ff8f8f;
}
.otp-card__alt {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.otp-card__notice {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(244,246,248,0.82);
    line-height: 1.45;
    font-size: 0.92rem;
}
.otp-card__notice--ok {
    border-color: rgba(155,227,155,0.35);
    background: rgba(155,227,155,0.08);
    color: #9be39b;
}
.otp-card .btn-public,
.otp-card .phone-otp .btn-public {
    width: 100%;
    min-height: 48px;
}
@media (max-width: 640px) {
    .auth-page {
        padding: 20px 0 40px;
        min-height: 0;
    }
    .auth-card.otp-card {
        padding: 22px 16px;
        border-radius: 16px;
    }
    .auth-form input.otp-card__code {
        font-size: 1.55rem;
        min-height: 52px;
        letter-spacing: 0.28em;
    }
}
.btn-public:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.btn-public--ghost:disabled {
    border-color: rgba(255,255,255,0.12);
    color: rgba(244,246,248,0.45);
}
.auth-switch a,
.auth-links a,
.level-test__why a,
.level-test__current a {
    color: #d1f000;
}
.player-device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    margin: 0 0 8px;
}
.player-device-tile-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.player-device-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.25);
    text-decoration: none;
    color: #f4f6f8;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.player-device-tile:hover {
    border-color: rgba(209,240,0,0.45);
    background: rgba(209,240,0,0.06);
}
.player-device-tile__photo,
.player-device-tile__initials {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}
.player-device-tile__initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(209,240,0,0.18);
    color: #d1f000;
    font-weight: 700;
    font-size: 1.1rem;
}
.player-device-tile__photo--lg,
.player-device-tile__initials--lg {
    width: 80px;
    height: 80px;
    font-size: 1.35rem;
}
.player-device-tile__name {
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.3;
    word-break: break-word;
}
.player-device-tile__forget button {
    background: none;
    border: none;
    color: rgba(244,246,248,0.45);
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
}
.player-device-tile__forget button:hover {
    color: #ff8f8f;
}
.player-pin-kiosk {
    display: grid;
    place-items: center;
    gap: 16px;
    min-height: 50vh;
}
.player-pin-kiosk__back {
    color: rgba(244,246,248,0.65);
    text-decoration: none;
    justify-self: start;
    width: min(400px, 100%);
}
.player-pin-kiosk__back:hover {
    color: #d1f000;
}
.player-pin-card {
    width: min(400px, 100%);
    background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 28px;
    color: #f4f6f8;
}
.player-pin-card h1 {
    margin: 0 0 8px;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}
.player-pin-card > p {
    margin: 0 0 18px;
    color: rgba(244,246,248,0.72);
    line-height: 1.5;
}
.player-pin-card__who {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.player-pin-card__who strong {
    display: block;
    font-size: 1.05rem;
}
.player-pin-card__who span {
    color: rgba(244,246,248,0.55);
    font-size: 0.85rem;
}
.player-pin-card__status {
    color: #7dcc8a !important;
}
.player-pin-card__hint {
    margin: 10px 0 0;
    color: rgba(244,246,248,0.5);
    font-size: 0.88rem;
    line-height: 1.4;
}
.player-pin-card__alt {
    margin: 20px 0 0;
    text-align: center;
}
.player-pin-card__alt a {
    color: #d1f000;
}
.player-pin-card__skip {
    margin-top: 14px;
}
.player-pin-card__skip .btn-public {
    width: 100%;
}
.player-pin-form .field {
    margin-bottom: 14px;
}
.player-pin-form label {
    display: block;
    margin-bottom: 8px;
    color: rgba(244,246,248,0.78);
    font-size: 0.9rem;
}
.player-pin-form input[name="pin"],
.player-pin-form input[name="pin_confirmation"] {
    width: 100%;
    box-sizing: border-box;
    background: #121212;
    border: 1px solid rgba(255,255,255,0.16);
    color: #f4f6f8;
    border-radius: 12px;
    padding: 14px 12px;
    font-size: 1.6rem;
    letter-spacing: 0.4em;
    text-align: center;
    font-weight: 700;
    font-family: inherit;
}
.player-pin-form input[name="pin"]::placeholder,
.player-pin-form input[name="pin_confirmation"]::placeholder {
    letter-spacing: 0.35em;
    color: rgba(244,246,248,0.25);
}
.player-pin-form .error {
    color: #ff8f8f;
    margin-top: 8px;
    font-size: 0.9rem;
}
.player-pin-form__submit {
    width: 100%;
    margin-top: 12px;
}
.player-pin-form__submit-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.player-pin-who {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.player-pin-who strong {
    font-size: 1.15rem;
}
.btn-public {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.btn-public--primary {
    background: #d1f000;
    color: #0a0a0a;
}
.btn-public--primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.btn-public--ghost {
    background: transparent;
    border-color: rgba(255,255,255,0.22);
    color: #f4f6f8;
}
.btn-public--sm {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.88rem;
}
.level-test__eyebrow {
    color: #d1f000;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0 0 10px;
}
.level-test__progress {
    color: rgba(244,246,248,0.65);
    margin-bottom: 16px;
    font-size: 0.92rem;
}
.level-test__question {
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    margin: 0 0 18px;
    line-height: 1.35;
}
.level-test__hint {
    margin: -6px 0 18px;
    color: rgba(244,246,248,0.62);
    font-size: 0.9rem;
}
.level-test__options {
    border: 0;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.level-test__option {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.25);
    cursor: pointer;
}
.level-test__option:has(input:checked) {
    border-color: #d1f000;
    background: rgba(209,240,0,0.08);
}
.level-test__option input {
    margin-top: 3px;
}
.level-test__actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}
.level-test__current {
    margin: 0 0 18px;
    color: rgba(244,246,248,0.8);
}
.level-test__why {
    margin-top: 18px;
}
.level-test__why-body {
    margin-top: 10px;
    color: rgba(244,246,248,0.62);
    line-height: 1.5;
    font-size: 0.92rem;
}
.level-test__skills ul,
.level-test__range {
    margin: 20px 0;
}
.level-test__skills h2,
.level-test__range h2 {
    font-size: 1rem;
    margin: 0 0 10px;
}
.level-test__skills ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 8px;
}
.level-test__skills li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: rgba(244,246,248,0.78);
}
.site-header__auth {
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-header__auth a {
    color: #f4f6f8;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
}
.site-header__auth a.site-auth-cta {
    color: #0a0a0a;
    background: #d1f000;
    border-radius: 999px;
    padding: 7px 12px;
}
.site-header__logout {
    display: inline;
    margin: 0;
}
.site-header__logout button {
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    color: var(--muted);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
.site-header__logout button:hover { color: var(--ink); }

@media (max-width: 720px) {
    .site-header__phone { display: none; }
    .site-brand__text span { display: none; }
    .site-header__auth a.site-auth-cta { padding: 7px 10px; font-size: 0.78rem; }
}

.level-test__hero {
    text-align: center;
    padding: 8px 0 8px;
    margin-bottom: 8px;
}
.level-test__badge {
    display: inline-block;
    margin: 0 0 12px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(209,240,0,0.14);
    border: 1px solid rgba(209,240,0,0.45);
    color: #d1f000;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}
.level-test__score {
    margin: 0;
    font-size: clamp(2.6rem, 8vw, 4rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: #f4f6f8;
}
.level-test__band {
    margin: 12px 0 0;
    color: rgba(244,246,248,0.62);
    font-size: 0.9rem;
}
.level-test__desc {
    margin: 14px auto 0;
    max-width: 36em;
    color: rgba(244,246,248,0.78);
    line-height: 1.55;
}
.level-test__range-labels {
    color: rgba(244,246,248,0.62);
}
.level-test__league {
    margin-top: 8px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    text-align: left;
}
.level-test__league.level-test__hero {
    text-align: center;
}
.level-test__league--light {
    background: linear-gradient(135deg, rgba(34,197,94,0.14), rgba(255,255,255,0.03));
    border-color: rgba(74,222,128,0.28);
}
.level-test__league--medium {
    background: linear-gradient(135deg, rgba(245,158,11,0.16), rgba(255,255,255,0.03));
    border-color: rgba(251,191,36,0.3);
}
.level-test__league--hard {
    background: linear-gradient(135deg, rgba(244,63,94,0.16), rgba(255,255,255,0.03));
    border-color: rgba(251,113,133,0.3);
}
.level-test__league h2 {
    margin: 0;
    font-size: 1.6rem;
    color: #f4f6f8;
}
.level-test__league-eyebrow {
    margin: 0 0 4px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(244,246,248,0.55);
    font-weight: 700;
}
.level-test__league-meta {
    margin: 10px 0 0;
    color: rgba(244,246,248,0.62);
    font-size: 0.9rem;
}

.lt-result__title {
    margin: 0 0 20px;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
}
.lt-result__hero {
    margin: 0 0 22px;
}
.lt-result__label {
    display: inline-block;
    margin: 0 0 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.92rem;
}
.lt-result__score {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 12px;
}
.lt-result__score strong {
    font-size: clamp(2.6rem, 7vw, 3.6rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}
.lt-result__score span {
    color: var(--muted);
    font-size: 1.05rem;
}
.lt-result__desc {
    margin: 0;
    max-width: 38em;
    color: var(--muted);
    line-height: 1.55;
}
.lt-result__scale {
    margin: 0 0 28px;
}
.lt-result__track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: visible;
}
.lt-result__range {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 999px;
    background: var(--accent-soft);
}
.lt-result__marker {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-card);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
    transform: translateY(-50%);
}
.lt-result__ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: var(--muted-2);
    font-size: 0.78rem;
    font-weight: 600;
}
.lt-result__block {
    margin: 0 0 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.lt-result__block h2 {
    margin: 0 0 8px;
    font-size: 1.02rem;
}
.lt-result__block p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}
.lt-result__skills {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.lt-result__skill-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 0.92rem;
}
.lt-result__skill-head strong {
    font-variant-numeric: tabular-nums;
}
.lt-result__bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}
.lt-result__bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}
.lt-result__note {
    margin: 0 0 8px;
    color: var(--muted-2);
    font-size: 0.88rem;
    line-height: 1.5;
}
.lt-result__actions {
    margin-top: 20px;
}
.lt-result__actions .btn-public {
    flex: 1;
}
@media (max-width: 560px) {
    .lt-result__actions {
        flex-direction: column;
    }
    .lt-result__actions .btn-public {
        width: 100%;
    }
}

/* —— Player cabinet —— */
.player-cab {
    padding: 28px 0 64px;
}
.player-cab__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.player-cab__nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(244,246,248,0.14);
    color: rgba(244,246,248,0.72);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}
.player-cab__nav-link:hover {
    color: #f4f6f8;
    border-color: rgba(209,240,0,0.35);
}
.player-cab__nav-link.is-active {
    color: #0b1220;
    background: #d1f000;
    border-color: #d1f000;
}
.player-cab__nav-logout {
    display: inline-flex;
    margin: 0;
}
button.player-cab__nav-link {
    cursor: pointer;
    font: inherit;
}
.player-cab__nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e4453a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}
.player-cab__head {
    margin-bottom: 22px;
}
.player-cab__head h1 {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    letter-spacing: -0.03em;
}
.player-cab__head p {
    margin: 0;
    color: rgba(244,246,248,0.62);
}
.player-cab__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 720px) {
    .player-cab__grid { grid-template-columns: 1fr; }
}
.player-cab__card,
.player-cab__panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(244,246,248,0.1);
    border-radius: 18px;
    padding: 20px 22px;
    min-width: 0;
}
.player-cab__panel + .player-cab__panel,
.player-cab__panel + form.player-cab__panel,
form.player-cab__panel + .player-cab__panel,
form.player-cab__panel + form.player-cab__panel {
    margin-top: 14px;
}
.player-cab__card h2,
.player-cab__panel-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
}
.player-cab__card-main {
    margin: 0 0 14px;
    font-weight: 700;
    font-size: 1.15rem;
}
.player-cab__muted {
    color: rgba(244,246,248,0.58);
    margin: 0 0 12px;
}
.player-cab__status {
    margin: 0 0 16px;
    color: #9be39b;
}
.player-cab__error {
    margin: 0 0 16px;
    color: #ff8f8f;
}
.player-cab__notice {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(209,240,0,0.35);
    background: rgba(209,240,0,0.08);
}
.player-cab__notice p { margin: 0; }
.player-cab__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.player-cab__list-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(244,246,248,0.08);
}
.player-cab__list-row:first-child { border-top: 0; padding-top: 0; }
.player-cab__list-row--stack {
    align-items: flex-start;
    flex-direction: column;
}
.player-cab__row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.player-cab__cancel-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    width: 100%;
}
.player-cab__cancel-form input[type="text"] {
    flex: 1;
    min-width: 180px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(244,246,248,0.14);
    border-radius: 10px;
    color: #f4f6f8;
    padding: 8px 12px;
}
.player-cab .auth-form .field { margin-bottom: 14px; }
.player-cab .error { color: #ff8f8f; font-size: 0.88rem; margin-top: 4px; }
.player-cab__profile {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.75fr);
    gap: 16px;
    align-items: start;
}
.player-cab__profile-main,
.player-cab__profile-side {
    display: grid;
    gap: 14px;
}
.player-cab__profile-main > .player-cab__panel,
.player-cab__profile-side > .player-cab__panel,
.player-cab__profile-main > form.player-cab__panel + form.player-cab__panel,
.player-cab__profile-side > .player-cab__panel + .player-cab__panel {
    margin-top: 0;
}
.player-cab__section + .player-cab__section {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(244,246,248,0.1);
}
.player-cab__fields-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.player-cab__actions {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.player-cab__pin-input {
    letter-spacing: 0.35em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.player-cab__side-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.player-cab__side-head .player-cab__panel-title {
    margin: 0;
}
.player-cab__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.player-cab__badge--ok {
    color: #9be39b;
    background: rgba(155,227,155,0.12);
    border: 1px solid rgba(155,227,155,0.28);
}
.player-cab__badge--warn {
    color: #f0d48a;
    background: rgba(240,212,138,0.1);
    border: 1px solid rgba(240,212,138,0.28);
}
.player-cab__muted--tight {
    margin: 4px 0 0;
    font-size: 0.86rem;
}
.player-cab__muted--last {
    margin-bottom: 0;
}
.player-cab__device-name {
    display: block;
    font-size: 0.92rem;
    line-height: 1.4;
    word-break: break-word;
}
@media (max-width: 900px) {
    .player-cab__profile { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .player-cab__fields-2 { grid-template-columns: 1fr; }
}

.is-hidden { display: none !important; }

.player-cab__match-profile {
    display: grid;
    gap: 18px;
    margin-bottom: 8px;
    min-width: 0;
}
.player-cab__check {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.86rem;
}

.play-tags {
    display: grid;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
}
.play-tags__intro {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.play-tags__group {
    margin: 0;
    padding: 0 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    min-width: 0;
    min-inline-size: 0;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.02);
}
.play-tags__label {
    display: block;
    float: left;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 14px 14px 6px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}
.play-tags__group > legend + * {
    clear: both;
}
.play-tags__body {
    display: grid;
    gap: 8px;
    padding: 8px 14px 0;
    min-width: 0;
}
.play-tags__hint,
.play-tags__sub {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.play-tags__sub {
    font-weight: 600;
}
.play-tags__extras {
    display: grid;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.play-tags__row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 8px;
}
.play-tags__row--single {
    grid-template-columns: 1fr;
}
.play-chip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    text-align: center;
}
.play-chip--sm {
    min-height: 40px;
    padding: 6px 8px;
    font-size: 0.84rem;
}
.play-chip input {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}
.play-chip span {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    margin: 0;
    text-align: center;
    text-wrap: balance;
    line-height: 1.25;
    font-weight: 600;
}
.play-chip:has(input:focus-visible) {
    outline: 2px solid #d1f000;
    outline-offset: 2px;
}
.play-chip:has(input:checked) {
    border-color: #d1f000;
    background: rgba(209, 240, 0, 0.14);
    color: #d1f000;
}
.play-tags__explain {
    margin: 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}
.play-tags__explain[hidden] {
    display: none !important;
}
.play-tags__help {
    margin: 0;
}
.play-tags__help summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
    list-style: none;
    min-height: 36px;
    display: flex;
    align-items: center;
    touch-action: manipulation;
}
.play-tags__help summary::-webkit-details-marker {
    display: none;
}
.play-tags__help summary::before {
    content: 'i';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 50%;
    border: 1px solid currentColor;
    font-size: 0.72rem;
    font-weight: 800;
    font-style: italic;
    flex-shrink: 0;
}
.play-tags__help ul {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.play-tags__help li {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
}
.play-tags__help li strong {
    color: inherit;
    font-weight: 700;
}
.play-rubber:not(:has([data-rubber-type]:checked)) .play-tags__extras {
    display: none;
}
.play-rubber:not(:has([value="inverted"]:checked)) .play-tags__extras--inverted {
    display: none;
}
.play-rubber:not(:has([value="short_pips"]:checked)):not(:has([value="medium_pips"]:checked)):not(:has([value="long_pips"]:checked)) .play-tags__extras--pips {
    display: none;
}

.ttw-link {
    margin: 20px 0 0;
    padding: 0 16px 16px;
    border: 1px solid rgba(39, 49, 47, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    min-width: 0;
    min-inline-size: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}
.ttw-link > legend {
    float: left;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 14px 0 8px;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.3;
}
.ttw-link > legend + * {
    clear: both;
}
.ttw-link__intro {
    margin: 0 0 12px;
    color: inherit;
    opacity: 0.78;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.ttw-link__intro a { color: inherit; font-weight: 700; }
.ttw-link__choice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 650;
}
.ttw-link__search { position: static; }
.ttw-link__how {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
}
.ttw-link__steps {
    margin: 0 0 12px;
    padding-left: 1.25em;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.ttw-link__steps li { margin: 0 0 6px; }
.ttw-link__steps a { font-weight: 700; }
.ttw-link__after {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    opacity: 0.78;
}
.ttw-link__search label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 650;
}
.ttw-link__search input[type="text"] {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    box-sizing: border-box;
}
.ttw-link__hint,
.ttw-link__picked {
    margin: 10px 0 0;
    font-size: 13px;
}
.ttw-link__picked {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f3eee6;
}
.ttw-link__picked a { font-weight: 700; }

.player-cab__match-profile .staff-avatar-upload {
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: 100%;
}

@media (max-width: 720px) {
    .player-cab {
        padding: 12px 0 calc(28px + env(safe-area-inset-bottom, 0px));
    }
    .player-cab__head {
        margin-bottom: 14px;
    }
    .player-cab__head h1 {
        font-size: 1.45rem;
    }
    .player-cab__card,
    .player-cab__panel {
        padding: 16px;
        border-radius: 16px;
    }
    .player-cab__nav {
        margin-bottom: 16px;
        padding-bottom: 4px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .player-cab__nav::-webkit-scrollbar {
        display: none;
    }
    .player-cab__nav-link,
    .player-cab__nav-logout {
        flex: 0 0 auto;
    }
    .player-cab__actions .btn-public,
    .player-cab__profile-side .btn-public {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }
    .player-cab__match-profile .staff-avatar-upload {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 12px;
    }
    .player-cab__match-profile .staff-avatar-upload__frame {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }
    .player-cab__match-profile .staff-avatar-upload__hint {
        display: none;
    }
    .play-tags {
        gap: 10px;
        padding-top: 12px;
    }
    .play-tags__group {
        border-radius: 14px;
        padding-bottom: 10px;
    }
    .play-tags__label {
        padding: 12px 12px 6px;
    }
    .play-tags__body {
        padding: 8px 12px 0;
    }
    .play-tags__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .play-tags__row--single {
        grid-template-columns: 1fr;
    }
    .play-chip {
        min-height: 48px;
        font-size: 0.88rem;
    }
}

/* Dark avatar upload (player profile / partners tip) */
.staff-avatar-upload {
    display: grid;
    gap: 12px;
    justify-items: start;
}
.staff-avatar-upload--compact {
    justify-items: center;
}
.staff-avatar-upload__frame {
    position: relative;
    width: 120px;
    height: 120px;
    padding: 0;
    border: 2px dashed rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    cursor: pointer;
    color: var(--muted);
}
.staff-avatar-upload--compact .staff-avatar-upload__frame {
    width: 72px;
    height: 72px;
    border-radius: 20px;
}
.staff-avatar-upload.is-dragover .staff-avatar-upload__frame,
.staff-avatar-upload__frame:hover {
    border-color: rgba(209, 240, 0, 0.55);
}
.staff-avatar-upload[data-has-photo="1"] .staff-avatar-upload__frame {
    border-style: solid;
    border-color: var(--line);
}
.staff-avatar-upload__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.staff-avatar-upload__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 4px;
    text-align: center;
    padding: 8px;
}
.staff-avatar-upload__initials {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
}
.staff-avatar-upload--compact .staff-avatar-upload__initials {
    font-size: 1.1rem;
}
.staff-avatar-upload__hint {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted-2);
}
.staff-avatar-upload__overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity .15s ease;
}
.staff-avatar-upload__frame:hover .staff-avatar-upload__overlay,
.staff-avatar-upload__frame:focus-visible .staff-avatar-upload__overlay {
    opacity: 1;
}
.staff-avatar-upload__meta strong {
    display: block;
    font-size: 0.95rem;
}
.staff-avatar-upload__meta p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}
.staff-avatar-upload__img--crop {
    position: absolute;
    inset: auto;
    max-width: none;
    width: auto;
    height: auto;
    object-fit: unset;
}

.photo-crop {
    margin-top: 4px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}
.photo-crop[hidden] {
    display: none !important;
}
.photo-crop__head {
    margin-bottom: 12px;
}
.photo-crop__head strong {
    display: block;
    font-size: 0.95rem;
}
.photo-crop__head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
}
.photo-crop__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 16px;
    align-items: start;
}
.photo-crop__stage-wrap {
    min-width: 0;
}
.photo-crop__stage {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    touch-action: none;
    user-select: none;
}
.photo-crop__image {
    display: block;
    max-width: 100%;
    max-height: min(62vh, 420px);
    width: auto;
    height: auto;
}
.photo-crop__selection {
    position: absolute;
    box-sizing: border-box;
    border: 2px solid #d1f000;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.48);
    cursor: move;
    touch-action: none;
}
.photo-crop__selection.is-dragging {
    cursor: grabbing;
}
.photo-crop__handle {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: #fff;
    border: 2px solid #d1f000;
    box-sizing: border-box;
}
.photo-crop__handle[data-crop-handle="nw"] { left: 2px; top: 2px; cursor: nwse-resize; }
.photo-crop__handle[data-crop-handle="ne"] { right: 2px; top: 2px; cursor: nesw-resize; }
.photo-crop__handle[data-crop-handle="sw"] { left: 2px; bottom: 2px; cursor: nesw-resize; }
.photo-crop__handle[data-crop-handle="se"] { right: 2px; bottom: 2px; cursor: nwse-resize; }
.photo-crop__previews {
    display: grid;
    justify-items: center;
    gap: 8px;
}
.photo-crop__preview {
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.photo-crop__preview img {
    position: absolute;
    max-width: none;
    display: block;
    pointer-events: none;
}
.photo-crop__preview--face {
    width: 96px;
    height: 96px;
    border-radius: 50%;
}
.photo-crop__preview-label {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
}

@media (max-width: 720px) {
    .photo-crop {
        padding: 12px;
    }
    .photo-crop__layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .photo-crop__stage {
        width: 100%;
    }
    .photo-crop__image {
        width: 100%;
        max-height: min(52vh, 360px);
        object-fit: contain;
    }
    .photo-crop__previews {
        grid-template-columns: auto;
    }
}

.play-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.play-inline > span,
.play-inline__more summary,
.play-inline__pop span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #f3eee6;
    color: #6b5344;
    font-size: 12px;
    font-weight: 600;
}
.play-inline__more {
    position: relative;
}
.play-inline__more summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
    touch-action: manipulation;
}
.play-inline__more summary::-webkit-details-marker {
    display: none;
}
.play-inline__pop {
    position: absolute;
    z-index: 8;
    left: 0;
    top: calc(100% + 6px);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 180px;
    max-width: min(280px, 70vw);
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(39, 49, 47, 0.12);
    box-shadow: 0 8px 24px rgba(16, 22, 31, 0.12);
}

.partners-profile-tip {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 18px 24px;
    align-items: center;
    margin: 0 0 16px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(209, 240, 0, 0.28);
    background:
        linear-gradient(120deg, rgba(209, 240, 0, 0.1), transparent 55%),
        rgba(255, 255, 255, 0.03);
}
.partners-profile-tip__eyebrow {
    margin: 0 0 4px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.partners-profile-tip__copy h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}
.partners-profile-tip__copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.92rem;
}
.partners-profile-tip__form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}
.partners-profile-tip__field {
    display: grid;
    gap: 6px;
    min-width: 140px;
    flex: 1 1 140px;
}
.partners-profile-tip__field span {
    font-size: 0.72rem;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.partners-profile-tip__field select {
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #101010;
    color: var(--ink);
    padding: 0 12px;
    font: inherit;
    color-scheme: dark;
}

.partners-workspace--mine {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.partners-workspace--mine[hidden],
[data-partners-panel][hidden] {
    display: none !important;
}

.partners-ticket {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-card);
    padding: 14px 16px;
    display: grid;
    gap: 10px;
}
.partners-ticket--replies {
    border-color: rgba(209, 240, 0, 0.4);
}
.partners-ticket--confirmed {
    border-color: rgba(244, 246, 248, 0.28);
}
.partners-ticket--past {
    opacity: 0.65;
}
.partners-ticket__main {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
    gap: 12px 16px;
    align-items: center;
}
.partners-ticket__person {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}
.partners-ticket__when {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.partners-ticket__when strong {
    font-size: 0.98rem;
    line-height: 1.25;
}
.partners-ticket__when span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}
.partners-ticket__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.partners-ticket__chip,
.partners-ticket__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
}
.partners-ticket__badge {
    background: var(--accent);
    color: var(--accent-ink);
}
.partners-ticket__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.84rem;
}
.partners-ticket__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.partners-ticket__actions .btn {
    min-height: 38px;
    padding-inline: 14px;
}
.partners-ticket__note {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.4;
}
.partners-ticket__replies {
    display: grid;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.partners-ticket-reply {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.partners-ticket-reply__who {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
    flex: 1 1 220px;
}
.partners-ticket-reply__who strong {
    display: block;
    font-size: 0.92rem;
}
.partners-ticket-reply__who span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
}
.partners-ticket-reply__who p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}
.partners-ticket__avatar,
.partners-ticket-reply__avatar,
.partners-ticket__photo,
.partners-ticket-reply__photo,
.partners-chip__avatar--photo,
.partners-card__avatar--photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}
.partners-ticket__avatar,
.partners-ticket-reply__avatar {
    display: grid;
    place-items: center;
    background: rgba(209, 240, 0, 0.14);
    color: var(--accent);
    font-weight: 800;
}
.partners-side-card__avatar {
    position: relative;
    overflow: hidden;
}
.partners-side-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.partners-side-card__avatar.has-photo span {
    display: none;
}
.partners-card__age {
    color: var(--muted);
    font-size: 0.78rem;
}
.partners-empty--soft {
    display: grid;
    gap: 14px;
    justify-items: center;
}

@media (max-width: 900px) {
    .partners-profile-tip {
        grid-template-columns: 1fr;
    }
    .partners-ticket__main {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .partners-ticket__actions {
        justify-content: flex-start;
    }
}

.public-stub {
    padding: 48px 0 80px;
}
.public-stub__inner { max-width: 720px; }
.public-stub__kicker {
    margin: 0 0 12px;
    color: var(--accent, #d1f000);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.public-stub h1 { margin: 0 0 16px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
.public-stub__lead {
    margin: 0 0 32px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.5;
}
.public-stub__steps {
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 16px;
}
.public-stub__steps li {
    display: grid;
    gap: 4px;
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--bg-card, #1c1c1c);
}
.public-stub__body { display: grid; gap: 24px; margin-bottom: 32px; }
.public-stub__body h2 { margin: 0 0 8px; font-size: 1.15rem; }
.public-stub__body p { margin: 0; color: var(--muted); line-height: 1.55; }
.public-stub__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--accent, #d1f000);
    color: #111 !important;
    font-weight: 700;
}

.public-legal__inner { max-width: 760px; }
.public-legal__meta { margin: 0 0 16px; color: var(--muted); }
.public-legal__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 28px;
}
.public-legal__nav a { font-weight: 700; color: var(--muted); }
.public-legal__nav a.is-active,
.public-legal__nav a:hover { color: inherit; }
.public-legal__body h2 { margin: 22px 0 8px; font-size: 1.12rem; }
.public-legal__body p,
.public-legal__body li { line-height: 1.55; }
.public-legal__body ul { margin: 0 0 12px; padding-left: 1.2em; }

.legal-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    width: 100%;
    margin: 16px 0 0;
    font-size: 0.85rem;
}
.legal-inline a { color: var(--muted); }
.auth-card .legal-inline {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
}
.site-footer__legal a { color: inherit; opacity: 0.8; }

.partners-choice {
    display: grid;
    gap: 10px;
}
.partners-choice__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
}
.partners-choice__item:has(input:checked) {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}
.partners-choice__item strong { display: block; font-size: 15px; }
.partners-choice__item em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}
.partners-reply-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.player-partner-card {
    display: grid;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid rgba(244, 246, 248, .08);
}
.player-partner-card:first-of-type { border-top: 0; padding-top: 0; }
.player-partner-card__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}
.player-partner-inbox {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.player-partner-inbox li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
}

@media (max-width: 720px) {
    .partners-create {
        padding: 0;
        place-items: stretch;
    }
    .partners-create__dialog {
        width: 100%;
        max-width: none;
        max-height: none;
        height: 100%;
        border-radius: 0;
        border: 0;
    }
    .partners-create__scroll {
        padding: 20px 16px 96px;
    }
    .partners-create__actions {
        position: sticky;
        bottom: 0;
        margin: 16px -16px -22px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, transparent, #141414 24%);
    }
    .partners-create__days {
        scroll-snap-type: x mandatory;
    }
    .partners-create__days .partners-day-chip {
        scroll-snap-align: start;
        min-width: 76px;
    }
    .partners-free-slot {
        min-height: 52px;
    }
    .player-cab__nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .player-cab__nav-link {
        flex: 0 0 auto;
    }
    .player-cab__nav-logout {
        flex: 0 0 auto;
    }
}
