/* Волантёрка, тёмная тема (она же — по умолчанию): чёрный, оранжевый и хром.
   Подключается после site.css на каждой странице; когда посетитель выбирает светлую тему,
   js/theme.js отключает этот файл целиком. Меняет цвета по ролям и добавляет металл. */

:root {
  color-scheme: dark;

  --chrome: linear-gradient(180deg, #ffffff 0%, #e4e7eb 28%, #9aa1ab 52%, #dfe3e8 74%, #aeb4bd 100%);
  --chrome-edge: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06) 38%, rgba(255, 255, 255, .28) 62%, rgba(255, 255, 255, .05));
  --steel: linear-gradient(160deg, #2b2e34 0%, #17181c 55%, #101114 100%);
  --field-bg: #0e0f12;
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 48px -28px rgba(0, 0, 0, .9);

  /* текст */
  --ink-ink: #eceef1;
  --ink-soft-ink: #a2a8b1;
  --cream-100-ink: #f3f4f6;
  --green-200-ink: #a9afb8;
  --green-300-ink: #868d97;
  --green-600-ink: #a9afb8;
  --green-700-ink: #dfe3e8;
  --green-800-ink: #f3f4f6;
  --green-950-ink: #0a0a0b;
  --orange-400-ink: #ff9147;
  --orange-500-ink: #ff6b1a;
  --orange-600-ink: #ff7d33;
  --red-ink: #ff7a6e;

  /* фоны */
  --cream-100-bg: #0b0b0d;
  --cream-200-bg: #101114;
  --cream-300-bg: #2a2d33;
  --cream-50-bg: #15161a;
  --green-600-bg: #c3c9d1;
  --green-700-bg: #1d1f24;
  --green-800-bg: #0e0f12;
  --green-900-bg: #060607;
  --green-950-bg: #000;
  --ok-bg-bg: rgba(110, 220, 160, .14);
  --orange-100-bg: rgba(255, 107, 26, .16);
  --orange-400-bg: #ff8a3d;
  --orange-500-bg: #ff6b1a;
  --blush-bg: rgba(255, 96, 84, .14);
  --red-bg: #d93a2f;

  /* границы и обводки */
  --cream-100-line: #e4e7eb;
  --cream-300-line: #2a2d33;
  --cream-400-line: #40444c;
  --green-600-line: #8d949e;
  --green-700-line: #c9ced6;
  --green-800-line: #c9ced6;
  --orange-400-line: #ff8a3d;
  --orange-500-line: #ff6b1a;
  --red-line: #ff7a6e;

  /* рисунки */
  --cream-100-fill: #eceff2;
  --cream-300-fill: #9aa1ab;
  --orange-500-fill: #ff6b1a;
}

body { background: #0b0b0d; }
::selection { background: #ff6b1a; color: #0a0a0b; }

/* ---------- хромовый текст ---------- */
.hero h1, .page-hero h1, .app-head h1, .auth-aside h1, .logo-word, .stat-num, .error-code-word,
.price, .price-table dd, .club-card-name {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #e4e7eb;
}
.hero h1 em, .page-hero h1 em, .app-head h1 em, .auth-aside h1 em, .logo-yo {
  -webkit-text-fill-color: #ff6b1a;
  color: #ff6b1a;
}
.stat-accent .stat-num { background: none; -webkit-text-fill-color: #0a0a0b; color: #0a0a0b; }
.logo-feathers { color: #eceff2; }

/* ---------- шапка, первый экран, разделы ---------- */
.site-header { background: rgba(8, 8, 10, .92); backdrop-filter: none; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { background: #eceff2; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-sub { border: 1px solid rgba(255, 255, 255, .12); }

.hero {
  background:
    radial-gradient(46% 60% at 6% 100%, rgba(255, 107, 26, .2), transparent 70%),
    radial-gradient(70% 80% at 88% 0%, #2d3036 0%, #121317 46%, #060607 100%);
}
.page-hero {
  background:
    radial-gradient(40% 70% at 0% 100%, rgba(255, 107, 26, .16), transparent 70%),
    linear-gradient(160deg, #24262b 0%, #0e0f12 50%, #060607 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.hero-facts, .hero-facts > div + div { border-color: rgba(255, 255, 255, .12); }
.hero-shuttle, .story-shuttle { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .7)) drop-shadow(0 0 24px rgba(255, 107, 26, .12)); }
.shuttle-feathers path { stroke: #0a0a0b; stroke-opacity: .5; }
.shuttle-feathers path:nth-child(even) { fill: #b4bac3; }
.shuttle-shafts path { stroke: #2a2d33; stroke-opacity: .8; }
.shuttle-stripe { stroke: #0a0a0b; }
.court { opacity: .07; }

.section { border-top: 1px solid rgba(255, 255, 255, .05); }
.section-dark { background: #050506; }
.section-accent { background: linear-gradient(135deg, #ff7a26, #ff5a0a); border-top: 0; }
.app-head { background: linear-gradient(180deg, #17181c, #0b0b0d); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.story-art, .auth-aside {
  background:
    radial-gradient(60% 50% at 100% 100%, rgba(255, 107, 26, .18), transparent 70%),
    radial-gradient(90% 70% at 25% 15%, #30333a, #15161a 60%, #08080a);
  border: 1px solid rgba(255, 255, 255, .1);
}
.welcome-mark { text-shadow: 0 0 60px rgba(255, 107, 26, .35); }

/* ---------- карточки ---------- */
.card, .session, .rules li, .levels li, .stat, .notice, .booking-hint, .table-wrap, .empty {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 42%);
}
.card-featured, .club-card {
  background: var(--steel);
  border-color: transparent;
  box-shadow: var(--shadow);
}
/* хромовая кромка у выделенных карточек */
.card-featured::before, .club-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--chrome-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.card-dashed, .partner-slots span, .empty { background: transparent; background-image: none; }
.link-card:hover { border-color: #ff6b1a; box-shadow: 0 0 0 1px rgba(255, 107, 26, .35), 0 24px 48px -28px #000; }
.cards-on-dark .card { background-color: rgba(255, 255, 255, .03); }
.session-date, .level-num {
  background: linear-gradient(150deg, #3b3f46, #17181c 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.session-date strong { color: #f3f4f6; }
.session-date span { color: #a9afb8; }
.tool-card > .icon { color: #ff8a3d; }
.request.is-done, .train-card.is-done { background-image: none; opacity: .8; }
.request-comment { background: #101114; }

/* ---------- кнопки ---------- */
.btn-accent { background: linear-gradient(180deg, #ff8433, #ff5f0f); box-shadow: 0 10px 28px -12px rgba(255, 107, 26, .75); }
.btn-accent:hover { background: linear-gradient(180deg, #ff9a52, #ff6b1a); }
.btn-outline { border-color: #aeb4bd; color: #f3f4f6; }
.btn-outline:hover { background: var(--chrome); border-color: transparent; color: #0a0a0b; }
.btn-ghost { border-color: rgba(255, 255, 255, .32); }
.btn-ghost:hover { border-color: #e4e7eb; background: rgba(255, 255, 255, .07); }
.btn-dark { background: #0a0a0b; color: #f3f4f6; }
.btn-dark:hover { background: #1d1f24; }
.btn-link { color: #dfe3e8; }
.text-link { border-bottom-color: #ff6b1a; }
.segmented { background: #101114; border-color: #2a2d33; }
.segmented a[aria-current], .faq-item[open] summary::after, .days input:checked + span {
  background: var(--chrome); border-color: transparent; color: #0a0a0b;
}
.tabs a[aria-current] { background: #0b0b0d; color: #ff8a3d; box-shadow: inset 0 2px 0 #ff6b1a; }
.tab-count-quiet, .tabs a[aria-current] .tab-count-quiet { background: rgba(255, 255, 255, .12); }
.tabbar { background: rgba(8, 8, 10, .96); border-top-color: rgba(255, 255, 255, .12); }
.tabbar a[aria-current] { color: #ff8a3d; background: rgba(255, 107, 26, .12); }

/* ---------- формы ---------- */
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23c9ced6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 4.5 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E"); }
input::placeholder, textarea::placeholder { color: #6f7680; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: #ff6b1a; box-shadow: 0 0 0 4px rgba(255, 107, 26, .25); }
.consent input { accent-color: #ff6b1a; }
.fill-bar::-webkit-progress-value { background: linear-gradient(90deg, #8d949e, #e4e7eb); }
.fill-bar::-moz-progress-bar { background: linear-gradient(90deg, #8d949e, #e4e7eb); }
.fill-bar.is-full::-webkit-progress-value { background: #ff6b1a; }
.fill-bar.is-full::-moz-progress-bar { background: #ff6b1a; }

/* ---------- сообщения и метки ---------- */
.flash-success { border-color: rgba(110, 220, 160, .35); color: #b9f0d0; }
.flash-error, .form-error { border-color: rgba(255, 96, 84, .4); color: #ffc2bb; }
.badge-ok, .success-mark { color: #9fe8c0; }
.badge-wait { color: #ffb37d; }
.badge-quiet { background: #1d1f24; color: #a9afb8; }
.notice-warn { border-color: rgba(255, 107, 26, .5); }
.reset-box { border-color: #ff6b1a; }
.session-live:target { box-shadow: 0 0 0 3px rgba(255, 107, 26, .3); }

/* ---------- подвал ---------- */
.site-footer { background: #000; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom { border-top-color: rgba(255, 255, 255, .1); }

@media (max-width: 960px) {
  .site-nav { background: #0b0b0d; }
  .nav-list > li > a, .nav-sub a { border-bottom-color: rgba(255, 255, 255, .1); }
}
@media print {
  .hero h1, .page-hero h1, .price { -webkit-text-fill-color: #000; background: none; }
}

/* круглая кнопка игры в нижнем меню: ободок под цвет тёмной панели */
.tab-game-ball { box-shadow: 0 0 0 4px #08080a, 0 8px 18px -6px rgba(0, 0, 0, .8), 0 0 18px -4px rgba(255, 107, 26, .7); }
