/* Палитра и типографика — по fiawec.com: navy #0A0032, cyan #00B9FF, Archivo (расширенный) */
:root {
  --navy: #0A0032;
  --navy-2: #150A4A;
  --cyan: #00B9FF;
  --cyan-dark: #0090CC;
  --grey: #A7A7A7;
  --grey-2: #6B6B78;
  --light: #E9ECEF;
  --light-2: #F5F6F8;
  --white: #fff;
  --red: #E4002B;
  --green: #1DB954;
  --hypercar: #E4002B;
  --lmp2: #2F6BFF;
  --lmgt3: #1DB954;
  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --wide: 125%;
  --semi: 112.5%;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(10, 0, 50, .12);
  --max: 1200px;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: var(--navy);
  --border: var(--light);
  --line-strong: var(--navy);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-stretch: var(--semi);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; text-transform: uppercase; font-stretch: var(--wide); font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 40px); margin: 0 auto; }
.muted { color: var(--grey-2); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, Consolas, monospace; font-stretch: normal; }
.upper { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .78rem; }
.mt { margin-top: 24px; }
.mb { margin-bottom: 24px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- шапка ---------- */
.topbar { background: var(--navy); color: var(--white); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.topbar a { color: var(--cyan); }
.topbar a:hover { color: var(--white); }
header.site { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
header.site .container { display: flex; align-items: center; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { font-stretch: var(--wide); font-weight: 900; font-size: 1.7rem; letter-spacing: -.04em; line-height: 1; }
.logo-mark span { color: var(--cyan); }
.logo-sub { font-size: .6rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--grey-2); line-height: 1.1; max-width: 150px; }
nav.main { display: flex; gap: 20px; margin-left: auto; }
nav.main a { text-transform: uppercase; font-weight: 800; font-size: .82rem; letter-spacing: .06em; padding: 8px 0; white-space: nowrap; border-bottom: 3px solid transparent; }
nav.main a:hover, nav.main a.active { border-color: var(--cyan); }
.nav-user { display: flex; align-items: center; gap: 14px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--light); object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; }
.bell { position: relative; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; }
.bell:hover { background: var(--light-2); }
.bell .dot { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.burger { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--text); }

/* полоса ближайшей гонки, как на fiawec.com */
.next-strip { background: var(--bg); border-bottom: 1px solid var(--border); }
.next-strip .container { display: flex; align-items: center; gap: 18px; height: 56px; }
.next-strip .flag { font-size: 1.4rem; }
.next-strip .label { text-transform: uppercase; font-weight: 800; font-size: .8rem; letter-spacing: .08em; }
.next-strip .label small { display: block; font-weight: 600; color: var(--grey-2); letter-spacing: .04em; font-size: .68rem; }
.countdown { display: flex; gap: 6px; margin-left: auto; }
.countdown span { display: inline-flex; align-items: baseline; gap: 3px; padding: 4px 8px; border: 1px solid var(--text); font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; }
.countdown span i { font-style: normal; font-size: .6rem; text-transform: uppercase; color: var(--grey-2); }
.countdown.big span { padding: 10px 14px; font-size: 1.8rem; background: var(--surface); color: var(--text); }

/* ---------- flash ---------- */
.flashes { position: fixed; top: 80px; right: 20px; z-index: 100; display: grid; gap: 8px; max-width: 380px; }
.flash { background: var(--navy); color: #fff; padding: 12px 16px; border-left: 4px solid var(--cyan); box-shadow: var(--shadow); font-size: .9rem; animation: slide .25s ease-out; }
.flash.err { border-color: var(--red); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(100deg, transparent 55%, rgba(0,185,255,.16) 55.2%, rgba(0,185,255,.16) 62%, transparent 62.2%),
  linear-gradient(100deg, transparent 68%, rgba(255,255,255,.05) 68.2%); }
.hero::after { content: ""; position: absolute; right: -10%; bottom: -30%; width: 55%; height: 140%; background: radial-gradient(closest-side, rgba(0,185,255,.28), transparent); pointer-events: none; }
.hero .container { position: relative; padding: 72px 0 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero .kicker { color: var(--cyan); text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: .8rem; margin-bottom: 16px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .lead { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 520px; margin: 20px 0 28px; }
.hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); padding: 24px; backdrop-filter: blur(4px); }
.hero-card .upper { color: var(--cyan); }
.hero-card h3 { font-size: 1.5rem; color: #fff; margin: 6px 0 2px; }
.hero-card .track { color: rgba(255,255,255,.7); margin-bottom: 18px; }
.hero-card .meta { display: flex; gap: 18px; font-size: .85rem; color: rgba(255,255,255,.75); margin-top: 14px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border: 2px solid var(--navy); background: var(--navy); color: #fff; text-transform: uppercase; font-weight: 800; font-size: .8rem; letter-spacing: .08em; cursor: pointer; font-family: inherit; font-stretch: var(--semi); transition: .15s; line-height: 1; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-primary { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.btn-primary:hover { background: var(--cyan-dark); border-color: var(--cyan-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--text); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-outline:hover { background: #fff; color: #0A0032; border-color: #fff; }
.btn-danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-ok { background: var(--green); border-color: var(--green); }
.btn-sm { padding: 8px 14px; font-size: .72rem; }
.btn-discord { background: #5865F2; border-color: #5865F2; }
.btn-discord:hover { background: #4752c4; border-color: #4752c4; }
.btn-tg { background: #229ED9; border-color: #229ED9; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
form.inline { display: inline; }

/* ---------- секции ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--light-2); }
.section.dark { background: var(--navy); color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2::before { content: ""; display: block; width: 48px; height: 5px; background: var(--cyan); margin-bottom: 12px; }
.section-head .more { text-transform: uppercase; font-weight: 800; font-size: .78rem; letter-spacing: .08em; color: var(--cyan-dark); white-space: nowrap; }
.section-head .more:hover { color: var(--text); }
.page-head { background: var(--navy); color: #fff; padding: 44px 0; }
.page-head h1 { color: #fff; }
.page-head .kicker { color: var(--cyan); text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: .78rem; margin-bottom: 8px; }

/* ---------- карточки ---------- */
.card { background: var(--surface); border: 1px solid var(--light); padding: 22px; transition: .15s; position: relative; }
.card:hover { border-color: var(--cyan); box-shadow: var(--shadow); }
.card h3 a:hover { color: var(--cyan-dark); }
.card .date { color: var(--grey-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 10px; }
.card.link::after { content: "→"; position: absolute; right: 18px; bottom: 14px; color: var(--cyan); font-weight: 900; }
.stat { text-align: center; padding: 26px 16px; border: 1px solid rgba(255,255,255,.12); }
.stat b { display: block; font-size: 2.4rem; font-stretch: var(--wide); font-weight: 900; line-height: 1; color: var(--cyan); }
.stat span { display: block; margin-top: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7); font-weight: 700; }

/* этапы */
.event { display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: center; padding: 22px; border: 1px solid var(--border); background: var(--surface); }
.event:hover { border-color: var(--cyan); }
.event.finished { opacity: .6; }
.event.cancelled { opacity: .5; text-decoration: line-through; }
.event .round { font-stretch: var(--wide); font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--cyan); }
.event .round small { display: block; font-size: .65rem; letter-spacing: .12em; color: var(--grey-2); font-stretch: var(--semi); }
.event h3 { font-size: 1.25rem; }
.event .track { color: var(--grey-2); }
.event .when { text-align: right; font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.event .when small { display: block; font-weight: 600; color: var(--grey-2); font-size: .78rem; }
.event-mini { padding: 18px; border: 1px solid var(--border); background: var(--surface); display: flex; gap: 14px; align-items: center; }
.event-mini .flag { font-size: 1.8rem; }
.event-mini b { display: block; text-transform: uppercase; font-stretch: var(--wide); }

/* классы */
.badge { display: inline-block; padding: 3px 9px; border-radius: 2px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--grey-2); vertical-align: middle; }
.badge.Hypercar { background: var(--hypercar); }
.badge.LMP2 { background: var(--lmp2); }
.badge.LMGT3 { background: var(--lmgt3); }
.badge.pending { background: #E0A800; }
.badge.active, .badge.approved { background: var(--green); }
.badge.rejected, .badge.suspended { background: var(--red); }
.badge.none, .badge.upcoming { background: var(--navy); }
.badge.finished { background: var(--grey); }
.badge.cancelled { background: var(--red); }
.badge.outline { background: transparent; color: var(--text); border: 1px solid var(--text); }
.class-head { display: flex; align-items: center; gap: 12px; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 3px solid var(--line-strong); }
.class-head.Hypercar { border-color: var(--hypercar); }
.class-head.LMP2 { border-color: var(--lmp2); }
.class-head.LMGT3 { border-color: var(--lmgt3); }
.class-head h2 { font-size: 1.5rem; }
.class-head .count { margin-left: auto; color: var(--grey-2); font-weight: 700; font-size: .85rem; }

/* команды */
.team-card { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--border); background: var(--surface); border-left: 6px solid var(--team, var(--cyan)); }
.team-card:hover { border-color: var(--cyan); border-left-color: var(--team, var(--cyan)); box-shadow: var(--shadow); }
.team-card .num { font-stretch: var(--wide); font-weight: 900; font-size: 2.2rem; line-height: 1; text-align: center; }
.team-card h3 { font-size: 1.05rem; }
.team-card .car { color: var(--grey-2); font-size: .88rem; }
.team-card .drivers { font-size: .78rem; color: var(--grey-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-top: 6px; }
.team-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.team-hero .num { font-stretch: var(--wide); font-weight: 900; font-size: 6rem; line-height: 1; color: var(--team, var(--cyan)); }
.member { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--light); }
.member:last-child { border: 0; }
.member .name { font-weight: 800; }
.member .name small { display: block; font-weight: 600; color: var(--grey-2); }
.member .actions { margin-left: auto; }
.code-box { display: inline-block; padding: 10px 18px; background: var(--navy); color: var(--cyan); font-family: ui-monospace, Consolas, monospace; font-size: 1.4rem; letter-spacing: .2em; font-stretch: normal; }

/* ---------- формы ---------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.form.wide { max-width: none; }
.field label { display: block; text-transform: uppercase; font-weight: 800; font-size: .74rem; letter-spacing: .08em; margin-bottom: 6px; }
.field label small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--grey-2); }
.field input[type=text], .field input[type=number], .field input[type=datetime-local], .field input[type=url], .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 2px solid var(--light); font: inherit; color: var(--text); background: var(--surface); border-radius: var(--radius-sm); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); }
.field textarea { min-height: 140px; resize: vertical; }
.field.check { display: flex; align-items: flex-start; gap: 10px; }
.field.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--cyan); }
.field.check label { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .92rem; }
.field input[type=color] { width: 64px; height: 42px; padding: 2px; border: 2px solid var(--border); background: var(--surface); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.help { font-size: .85rem; color: var(--grey-2); }

/* ---------- таблицы ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; text-transform: uppercase; font-size: .7rem; letter-spacing: .1em; color: var(--grey-2); padding: 10px 12px; border-bottom: 2px solid var(--line-strong); }
.table td { padding: 12px; border-bottom: 1px solid var(--light); vertical-align: middle; }
.table tr:hover td { background: var(--light-2); }
.table-wrap { overflow-x: auto; }

/* ---------- кабинет / уведомления ---------- */
.panel { border: 1px solid var(--border); background: var(--surface); padding: 24px; }
.panel h3 { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line-strong); }
.license-card { background: var(--navy); color: #fff; padding: 24px; position: relative; overflow: hidden; }
.license-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(0,185,255,.18); }
.license-card .no { font-family: ui-monospace, Consolas, monospace; font-stretch: normal; font-size: 1.7rem; letter-spacing: .12em; color: var(--cyan); }
.license-card .row { margin-top: 14px; font-size: .85rem; color: rgba(255,255,255,.75); }
.notif { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--light); align-items: flex-start; }
.notif:last-child { border: 0; }
.notif.unread { background: linear-gradient(90deg, rgba(0,185,255,.08), transparent); margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.notif .dotm { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); margin-top: 7px; flex-shrink: 0; }
.notif.read .dotm { background: var(--light); }
.notif b { display: block; }
.notif .time { color: var(--grey-2); font-size: .78rem; }
.notif button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--cyan-dark); cursor: pointer; font-weight: 700; }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--light); }
.admin-nav a { padding: 12px 16px; text-transform: uppercase; font-weight: 800; font-size: .78rem; letter-spacing: .08em; border-bottom: 3px solid transparent; }
.admin-nav a.active, .admin-nav a:hover { border-color: var(--cyan); }
.app-card { border: 1px solid var(--border); padding: 20px; background: var(--surface); display: grid; gap: 12px; }
.app-card .head { display: flex; align-items: center; gap: 12px; }
.app-card pre { white-space: pre-wrap; font: inherit; margin: 0; background: var(--light-2); padding: 12px; }
.tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.tabs a { padding: 8px 14px; border: 1px solid var(--light); text-transform: uppercase; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- прочее ---------- */
.prose { max-width: 760px; font-size: 1.02rem; }
.prose h2 { margin: 36px 0 12px; font-size: 1.4rem; }
.prose h3 { margin: 24px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.rules-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.rules-index a { padding: 6px 12px; border: 1px solid var(--light); font-size: .8rem; font-weight: 700; }
.rules-index a:hover { border-color: var(--cyan); }
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-stretch: var(--wide); font-weight: 900; font-size: 2rem; color: var(--cyan); line-height: 1; }
.step b { display: block; text-transform: uppercase; }
.error-page { padding: 100px 0; text-align: center; }
.error-page h1 { font-size: 6rem; color: var(--cyan); }
.empty { padding: 40px; text-align: center; color: var(--grey-2); border: 1px dashed var(--light); }
footer.site { background: var(--navy); color: rgba(255,255,255,.7); padding: 40px 0; font-size: .85rem; }
footer.site .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.site a { color: var(--cyan); }
footer.site .logo-mark { color: #fff; }
footer.site nav { display: flex; gap: 18px; text-transform: uppercase; font-weight: 700; font-size: .75rem; letter-spacing: .08em; }
footer.site nav a { color: rgba(255,255,255,.7); }
footer.site nav a:hover { color: #fff; }

@media (max-width: 900px) {
  header.site .container { gap: 16px; }
  nav.main { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--light); box-shadow: var(--shadow); }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 0; border-bottom: 1px solid var(--light); }
  .burger { display: block; }
  .nav-user { margin-left: auto; }
  .nav-user .name { display: none; }
  .hero .container { grid-template-columns: 1fr; padding: 48px 0; }
  .next-strip .label small { display: none; }
  .countdown span { padding: 3px 6px; font-size: .85rem; }
  .event { grid-template-columns: 64px 1fr; }
  .event .when { grid-column: 2; text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .team-hero { grid-template-columns: 1fr; }
  .team-hero .num { font-size: 4rem; }
  .flashes { left: 20px; right: 20px; max-width: none; }
}
.flag-img { display: inline-block; vertical-align: -3px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.hero-card h3 .flag-img, .event h3 .flag-img { width: 34px; height: 25px; margin-right: 6px; }
.event-mini .flag .flag-img { width: 40px; height: 30px; }

/* мобильные правки */
@media (max-width: 900px) {
  .topbar .container { height: auto; padding: 5px 0; font-size: .62rem; gap: 10px; }
  .topbar .container > span:last-child { text-align: right; }
  .logo-sub { display: none; }
  .burger { order: 3; margin-left: 0; }
  .nav-user { margin-left: auto; gap: 8px; }
  .hero .container > * { min-width: 0; }
  .hero h1 { font-size: 2rem; }
  .countdown { flex-wrap: wrap; }
  .countdown.big span { padding: 8px 9px; font-size: 1.3rem; }
  .hero-card { padding: 18px; }
  .hero-card .meta { flex-direction: column; gap: 6px; }
  .page-head h1 { font-size: 1.8rem; }
  .team-hero .num { font-size: 3.5rem; }
  .section { padding: 36px 0; }
}
@media (max-width: 480px) {
  .next-strip .container { height: auto; padding: 8px 0; flex-wrap: wrap; gap: 8px; }
  .next-strip .countdown { margin-left: 0; width: 100%; }
  .stat b { font-size: 1.8rem; }
}

/* ---------- официальный грид: логотипы ---------- */
.team-logo { height: 28px; width: auto; max-width: 96px; object-fit: contain; flex-shrink: 0; }
.team-card { grid-template-columns: 64px 1fr; }
.team-card .body { min-width: 0; }
.team-card .head { display: flex; align-items: center; gap: 10px; }
.team-card .head h3 { min-width: 0; }
.team-card.free { border-style: dashed; background: var(--light-2); }
.team-card.free .num { color: var(--grey); }
.team-card .drivers.free { color: var(--cyan-dark); }
.team-card.taken .num { color: var(--team, var(--navy)); }
.team-hero { grid-template-columns: auto 1fr auto; }
.team-logo-box { background: var(--surface); padding: 14px 20px; border-radius: var(--radius); display: flex; align-items: center; }
.team-logo-box img { height: 64px; width: auto; max-width: 220px; object-fit: contain; }
.stat b .of { font-size: 1.1rem; color: rgba(255,255,255,.5); margin-left: 6px; font-stretch: var(--semi); }
.manu-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.manu-strip a { display: flex; align-items: center; justify-content: center; height: 64px; padding: 10px 14px; border: 1px solid var(--border); background: var(--surface); transition: .15s; }
.manu-strip a:hover { border-color: var(--cyan); box-shadow: var(--shadow); }
.manu-strip img { max-height: 40px; max-width: 100%; width: auto; object-fit: contain; }
@media (max-width: 900px) {
  .team-hero { grid-template-columns: 1fr; }
  .team-logo-box { justify-self: start; }
}

/* ливреи */
.team-card.with-livery { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; }
.team-card .livery { grid-column: 1 / -1; width: 100%; height: auto; margin: -6px 0 4px; filter: drop-shadow(0 6px 10px rgba(10,0,50,.18)); }
.team-card.free .livery { opacity: .9; }
.livery-hero { display: block; width: min(900px, 100%); height: auto; margin: 24px auto -70px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); position: relative; z-index: 1; }
.page-head:has(.livery-hero) { padding-bottom: 0; overflow: visible; }
.page-head:has(.livery-hero) + .section { padding-top: 90px; }
@media (max-width: 900px) { .livery-hero { margin-bottom: -40px; } .page-head:has(.livery-hero) + .section { padding-top: 60px; } }

/* карточка с ливреей: рендер сверху, номер и логотип поверх него */
.grid-teams { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.team-card.with-livery { display: block; position: relative; padding: 0; overflow: hidden; }
.team-card.with-livery .livery { display: block; margin: 0; padding: 26px 12px 0; background: linear-gradient(180deg, var(--light-2), var(--surface) 80%); }
.team-card.with-livery .num { position: absolute; top: 6px; left: 12px; font-size: 1.9rem; text-align: left; }
.team-card.with-livery .team-logo { position: absolute; top: 10px; right: 12px; height: 22px; max-width: 80px; }
.team-card.with-livery .body { padding: 6px 16px 14px; }
.team-card.with-livery .head h3 { font-size: 1rem; }
.team-card.free.with-livery .livery { background: var(--light-2); }

/* ---------- регламент ---------- */
.key-rules { counter-reset: kr; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.key-rules li { counter-increment: kr; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--border); padding: 14px 16px; font-weight: 600; font-size: .95rem; }
.key-rules li::before { content: counter(kr, decimal-leading-zero); font-stretch: var(--wide); font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--cyan); }
.rules .clauses { list-style: none; padding: 0; margin: 0; }
.rules .clauses > li { padding: 10px 0 10px 16px; border-left: 3px solid var(--light); margin-bottom: 6px; }
.rules .clauses > li:hover { border-color: var(--cyan); }
.rules .clauses > li > b { color: var(--text); font-stretch: var(--wide); margin-right: 4px; }
.rules .clauses ul { margin: 8px 0 0; }
.radio { margin: 10px 0; padding: 12px 16px; background: var(--navy); color: #fff; font-weight: 800; font-size: .9rem; border-left: 4px solid var(--cyan); }
.radio span { display: block; font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 4px; font-weight: 700; }
.table.compact { margin: 10px 0; max-width: 640px; }
.table.compact th, .table.compact td { padding: 8px 12px; }
.table.points td, .table.points th { text-align: center; }
.table.points td:first-child, .table.points th:first-child { text-align: left; }
.rules h2 { scroll-margin-top: 90px; }
.rules .clauses > li.red { border-left-color: var(--red); background: rgba(228,0,43,.06); color: var(--red); font-weight: 800; }
.rules .clauses > li.red > b { color: var(--red); }
.red-bar { background: var(--red); color: #fff; padding: 12px 18px; margin-bottom: 20px; text-transform: uppercase; font-weight: 900; font-stretch: var(--wide); letter-spacing: .04em; font-size: .95rem; }

/* кнопка FMCA в углу */
.fmca-corner { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 64px; height: 64px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: .15s; }
.fmca-corner:hover { transform: translateY(-2px); border-color: var(--cyan); }
.fmca-corner img { width: 48px; height: 48px; object-fit: contain; }
@media (max-width: 900px) { .fmca-corner { right: 12px; bottom: 12px; width: 52px; height: 52px; } .fmca-corner img { width: 38px; height: 38px; } }

/* ═══════════════════════════════════════════════════════════════════
   ДИЗАЙН 2.0 — чёрная тема · живые анимации · круглый стиль
   Только transform/opacity (GPU) — скорость остаётся приоритетом.
   ═══════════════════════════════════════════════════════════════════ */

:root { --ease: cubic-bezier(.22, .61, .2, 1); --ease-out: cubic-bezier(.16, .84, .44, 1); }

/* ── ЧЁРНАЯ тема (не синяя: фон #07070b, поверхности #0f0f15) ── */
[data-theme="dark"] {
  --bg: #07070b;
  --surface: #0f0f15;
  --text: #ececf1;
  --border: rgba(255, 255, 255, .12);
  --light: rgba(255, 255, 255, .12);
  --light-2: #14141b;
  --grey-2: #a2a2b3;
  --navy: #0c0c13;      /* фирменные блоки (topbar/hero/футер/кнопки) в тёмной теме — чёрные */
  --navy-2: #17171f;
  --line-strong: rgba(255, 255, 255, .26);
  --shadow: 0 14px 40px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
html { color-scheme: light; scrollbar-width: thin; scrollbar-color: #c9c9d4 transparent; }
html[data-theme="dark"] { scrollbar-color: #2e2e3a #0a0a0f; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c9c9d4; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2e2e3a; background-clip: content-box; }
::selection { background: var(--cyan); color: #041018; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

body { transition: background-color .3s ease, color .3s ease; }
/* едва заметные циановые сияния на чёрном фоне — глубина без веса */
[data-theme="dark"] body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 42% at 85% -6%, rgba(0, 185, 255, .08), transparent 70%),
              radial-gradient(45% 35% at -8% 45%, rgba(0, 185, 255, .05), transparent 70%); }
[data-theme="dark"] .topbar { border-bottom: 1px solid rgba(0, 185, 255, .14); }
[data-theme="dark"] .section.dark { border-block: 1px solid var(--border); }
[data-theme="dark"] .hero, [data-theme="dark"] .page-head { background: #0b0b12; }
[data-theme="dark"] .page-head { border-bottom: 1px solid var(--border); }
[data-theme="dark"] .hero::before { opacity: .8; }

/* ── круглый дизайн ── */
.card, .panel, .app-card, .event, .event-mini, .team-card, .hero-card,
.license-card, .code-box, .flash, .key-rules li, .manu-strip a, .tabs a,
.rules-index a, .empty, .radio, .stat { border-radius: var(--radius); }
.btn { border-radius: 999px; }
.badge { border-radius: 999px; }
.countdown span { border-radius: 10px; }
.app-card pre { border-radius: var(--radius-sm); }
.field input[type=color] { border-radius: var(--radius-sm); }

/* ── шапка: прилипание с blur-эффектом ── */
header.site { transition: box-shadow .25s var(--ease), background-color .3s ease; }
header.site.scrolled { box-shadow: 0 8px 30px rgba(10, 0, 50, .10); backdrop-filter: blur(10px); background-color: color-mix(in srgb, var(--bg) 86%, transparent); }
[data-theme="dark"] header.site.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }

/* ── полоса прогресса чтения ── */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-dark)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ── появление при скролле (классы вешает app.js) ── */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--d, 0ms); }

/* ── переходы между страницами ── */
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pageOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px); } }
main { animation: pageIn .45s var(--ease) both; }
main.page-exit { animation: pageOut .18s ease-in both; }


/* ошибка 404: градиентный циан */
.error-page h1 { background: linear-gradient(100deg, var(--cyan) 30%, var(--text)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── карточки: подъём при наведении ── */
.card, .event, .event-mini, .panel, .app-card, .team-card, .key-rules li, .manu-strip a, .tabs a, .rules-index a {
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease); }
.card:hover, .event:hover, .event-mini:hover { transform: translateY(-4px); }
.team-card:hover, .panel:hover { transform: translateY(-5px); }
.key-rules li:hover, .manu-strip a:hover { transform: translateY(-3px); }
.team-card.with-livery .livery { transition: transform .3s var(--ease), filter .3s var(--ease); }
.team-card.with-livery:hover .livery { transform: translateY(-5px) scale(1.015); }
.rules .clauses > li { transition: border-color .2s var(--ease), padding-left .2s var(--ease); }
.rules .clauses > li:hover { padding-left: 22px; }
.radio { transition: transform .2s var(--ease); }
.radio:hover { transform: translateX(5px); }
.table tr td { transition: background-color .15s ease; }

/* ── кнопки: блик + нажатие ── */
.btn { position: relative; overflow: hidden; transition: background-color .15s, border-color .15s, color .15s, transform .18s var(--ease), box-shadow .2s var(--ease); }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-22deg); transition: left .55s var(--ease); pointer-events: none; }
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 185, 255, .18); }
.btn:active { transform: translateY(1px) scale(.97); }

/* ── навигация: растущая подчёркивание ── */
nav.main a { position: relative; transition: color .15s ease; }
nav.main a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--cyan); transform: scaleX(0); transform-origin: 0 50%; transition: transform .28s var(--ease); }
nav.main a:hover::after, nav.main a.active::after { transform: scaleX(1); }

/* ── колокольчик и обратный отсчёт ── */
@keyframes dotPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.bell .dot { animation: dotPulse 2.2s ease-in-out infinite; }
.countdown span { transition: border-color .3s ease, color .3s ease; }
.countdown.live span { border-color: var(--red); color: var(--red); animation: dotPulse 1s ease-in-out infinite; }
.stat b { font-variant-numeric: tabular-nums; }

/* ── мобильное меню: плавное раскрытие + поворот бургера ── */
@media (max-width: 900px) {
  nav.main { display: flex; opacity: 0; visibility: hidden; transform: translateY(-12px); pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s; }
  nav.main.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
}
.burger { transition: transform .28s var(--ease); }
.burger.open { transform: rotate(90deg); }

/* ── футер: циановая линия сверху ── */
footer.site { position: relative; }
footer.site::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .55; }

/* ── кнопка темы ── */
.theme-toggle { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; flex-shrink: 0;
  transition: border-color .2s, color .2s, transform .25s var(--ease), background-color .3s ease; }
.theme-toggle:hover { border-color: var(--cyan); color: var(--cyan); transform: rotate(20deg) scale(1.06); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { display: block; }
.theme-toggle .ico-sun { display: none; }
[data-theme="dark"] .theme-toggle .ico-sun { display: block; animation: iconIn .4s var(--ease); }
[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
@keyframes iconIn { from { transform: rotate(-90deg) scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── круговая анимация смены темы (View Transitions API) ── */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: theme-circle .55s var(--ease); }
@keyframes theme-circle {
  from { clip-path: circle(0 at var(--vt-x, 92%) var(--vt-y, 5%)); }
  to { clip-path: circle(150vmax at var(--vt-x, 92%) var(--vt-y, 5%)); }
}
html.theme-fade, html.theme-fade body, html.theme-fade * { transition: background-color .35s ease, color .35s ease, border-color .35s ease !important; }

/* ── тосты ── */
.flash { transition: opacity .4s ease, transform .4s var(--ease); }
.flash:hover { transform: translateX(-4px); }

/* ── выключатель движения: доступность ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  ::view-transition-new(root) { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   ДИЗАЙН 3.0 — LIQUID GLASS: матовое стекло на всех поверхностях,
   меш-фон с зерном, полностью новый регламент. GPU-friendly.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --blur: 16px;
  --glass: rgba(255, 255, 255, .74);
  --glass-2: rgba(255, 255, 255, .55);
  --glass-border: rgba(10, 0, 50, .09);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, .55);
}
[data-theme="dark"] {
  --glass: rgba(19, 19, 28, .52);
  --glass-2: rgba(15, 15, 23, .42);
  --glass-border: rgba(255, 255, 255, .09);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, .06);
}


/* ── стекло: базовые поверхности ── */
.card, .panel, .app-card, .event, .event-mini, .team-card, .stat, .hero-card,
.code-box, .flash, .empty, .tabs a, .manu-strip a, .rules-toc, .key-rules li, .rules-index a {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inset), 0 10px 34px rgba(10, 0, 50, .08);
}
[data-theme="dark"] .card, [data-theme="dark"] .panel, [data-theme="dark"] .app-card,
[data-theme="dark"] .event, [data-theme="dark"] .event-mini, [data-theme="dark"] .team-card,
[data-theme="dark"] .stat, [data-theme="dark"] .hero-card, [data-theme="dark"] .code-box,
[data-theme="dark"] .flash, [data-theme="dark"] .empty, [data-theme="dark"] .tabs a,
[data-theme="dark"] .manu-strip a, [data-theme="dark"] .rules-toc, [data-theme="dark"] .key-rules li {
  box-shadow: var(--glass-inset), 0 14px 40px rgba(0, 0, 0, .45);
}
.card:hover, .event:hover, .event-mini:hover, .team-card:hover, .panel:hover, .manu-strip a:hover {
  border-color: rgba(0, 185, 255, .45);
  box-shadow: var(--glass-inset), 0 18px 48px rgba(0, 185, 255, .14);
}

/* секции под стеклом — полупрозрачные, чтобы было что размывать */
.section.alt { background: #edf0f5; }
[data-theme="dark"] .section.alt { background: rgba(18, 18, 28, .45); }
[data-theme="dark"] .section.dark { background: rgba(6, 6, 10, .5); }

/* шапка и полосы — стекло всегда, при скролле плотнее */
header.site { background: color-mix(in srgb, var(--bg) 68%, transparent); -webkit-backdrop-filter: blur(var(--blur)) saturate(160%); backdrop-filter: blur(var(--blur)) saturate(160%); }
header.site.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); box-shadow: 0 10px 34px rgba(10, 0, 50, .12); }
[data-theme="dark"] header.site.scrolled { box-shadow: 0 10px 34px rgba(0, 0, 0, .55); }
.next-strip { background: color-mix(in srgb, var(--bg) 62%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (max-width: 900px) {
  nav.main { background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
}

/* тосты — толстое матовое стекло */
.flash { background: rgba(9, 11, 18, .72); color: #ececf1; border: 1px solid rgba(0, 185, 255, .28); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border-radius: 14px; }
.flash.err { border-color: rgba(228, 0, 43, .45); }

/* кнопки: главная — градиент со свечением */
.btn-primary { background: linear-gradient(135deg, #00d2ff 0%, var(--cyan) 55%, #0092d6 100%); border: none; box-shadow: 0 8px 26px rgba(0, 185, 255, .35); }
.btn-primary:hover { background: linear-gradient(135deg, #2ddaff 0%, #17c3ff 55%, #00a0ea 100%); box-shadow: 0 12px 36px rgba(0, 185, 255, .5); }
.btn { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
[data-theme="dark"] .btn { background: rgba(16, 18, 26, .6); border-color: rgba(255, 255, 255, .16); }
[data-theme="dark"] .btn:hover { background: rgba(28, 30, 42, .8); border-color: rgba(255, 255, 255, .28); }
[data-theme="dark"] .btn-primary { background: linear-gradient(135deg, #00d2ff 0%, var(--cyan) 55%, #0092d6 100%); color: #041018; }

/* формы: стеклянные поля с циановым фокусом */
.field input[type=text], .field input[type=number], .field input[type=datetime-local],
.field input[type=url], .field select, .field textarea {
  background: color-mix(in srgb, var(--surface) 42%, transparent);
  border-color: var(--glass-border); border-radius: 12px; color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan); background: color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: 0 0 0 4px rgba(0, 185, 255, .15);
}
.field select option { color: #0A0032; background: #fff; }
[data-theme="dark"] .field select option { color: #ececf1; background: #12121a; }

/* таблицы — стеклянные строки */
.table th { border-bottom: 1px solid var(--border); background: rgba(0, 185, 255, .07); }
.table td { border-bottom: 1px solid var(--border); }
.table tr:hover td { background: rgba(0, 185, 255, .06); }

/* лицензия и код-бокс */
.license-card { background: linear-gradient(135deg, rgba(0, 185, 255, .16), transparent 46%), rgba(8, 9, 14, .62); border: 1px solid rgba(0, 185, 255, .22); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); border-radius: 20px; }
.code-box { background: rgba(9, 11, 18, .66); border: 1px solid rgba(0, 185, 255, .25); border-radius: 14px; box-shadow: 0 0 28px rgba(0, 185, 255, .1); }
.fmca-corner, .theme-toggle { background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-color: var(--glass-border); box-shadow: var(--glass-inset), var(--shadow); }
.countdown span { background: color-mix(in srgb, var(--surface) 40%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ливреи на стекле */
.team-card.with-livery .livery { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 45%, transparent), transparent); }
.team-card.free.with-livery .livery { background: linear-gradient(180deg, color-mix(in srgb, var(--light-2) 55%, transparent), transparent); }


/* ═══════════ РЕГЛАМЕНТ 3.0 — читаемый, стеклянный, с навигацией ═══════════ */
.rules-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start; }

/* липкое оглавление */
.rules-toc { position: sticky; top: 96px; display: grid; gap: 2px; padding: 16px 12px; border-radius: 20px; }
.rules-toc b { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grey-2); padding: 2px 12px 10px; }
.rules-toc a { padding: 7px 12px; border-radius: 10px; font-size: .83rem; font-weight: 700; color: var(--grey-2); border-left: 2px solid transparent; transition: color .18s, background .18s, border-color .18s; }
.rules-toc a:hover { color: var(--text); background: rgba(0, 185, 255, .07); }
.rules-toc a.active { color: var(--cyan); background: rgba(0, 185, 255, .1); border-left-color: var(--cyan); }

/* главы — стеклянные заголовки с циановым сердечником */
.rules h2 {
  display: flex; align-items: center; gap: 14px; margin: 46px 0 18px; padding: 17px 22px;
  border-radius: 18px; font-size: 1.22rem;
  background: linear-gradient(120deg, rgba(0, 185, 255, .13), transparent 55%), var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border); box-shadow: var(--glass-inset), 0 10px 30px rgba(10, 0, 50, .07);
  scroll-margin-top: 96px;
}
.rules h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); flex-shrink: 0; }

/* пункты — стеклянные строки, номер светится цианым */
.rules .clauses { list-style: none; }
.rules .clauses > li {
  margin-bottom: 10px; padding: 14px 18px; border-radius: 14px; padding-left: 18px;
  background: var(--glass-2); border: 1px solid var(--glass-border); border-left: 3px solid transparent;
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.rules .clauses > li:hover { border-left-color: var(--cyan); transform: translateX(5px); box-shadow: 0 8px 26px rgba(0, 185, 255, .08); }
.rules .clauses > li > b { color: var(--cyan); font-variant-numeric: tabular-nums; }
.rules .clauses > li.red { border-left-color: var(--red); background: linear-gradient(90deg, rgba(228, 0, 43, .12), transparent 42%), var(--glass-2); }
.rules .clauses > li.red > b { color: var(--red); }
.rules .clauses ul { margin: 8px 0 0; padding-left: 18px; }

/* радио Дирекции — стеклянная рация со сканлайнами */
.radio { position: relative; overflow: hidden; margin: 12px 0 4px; padding: 15px 18px 15px 46px; border-radius: 14px;
  background: rgba(5, 10, 18, .78); border: 1px solid rgba(0, 185, 255, .28); color: #c9f4ff;
  font-family: ui-monospace, Consolas, monospace; font-stretch: normal; letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 26px rgba(0, 185, 255, .09); }
.radio::before { content: "📡"; position: absolute; left: 15px; top: 13px; opacity: .85; }
.radio::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 185, 255, .04) 3px 4px); }
.radio span { color: var(--cyan); letter-spacing: .22em; }
.radio:hover { transform: none; }

/* «главное на одной странице» — карточки со светящимися номерами */
.key-rules { gap: 12px; }
.key-rules li { padding: 16px 18px; border-radius: 16px; }
.key-rules li::before { text-shadow: 0 0 20px rgba(0, 185, 255, .45); }

/* красная плашка — стеклянная тревога с пульсом */
.red-bar { display: flex; align-items: center; gap: 12px; border-radius: 16px; padding: 15px 20px; color: var(--red);
  background: linear-gradient(90deg, rgba(228, 0, 43, .16), rgba(228, 0, 43, .04)), var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(228, 0, 43, .38); box-shadow: 0 0 30px rgba(228, 0, 43, .1); }
.red-bar::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px var(--red); animation: dotPulse 2s ease-in-out infinite; flex-shrink: 0; }

/* таблицы регламента */
.rules .table { border-radius: 14px; overflow: hidden; border: 1px solid var(--glass-border); }
.rules .table th { background: rgba(0, 185, 255, .1); }
.rules .table td { background: color-mix(in srgb, var(--surface) 30%, transparent); }

/* оглавление на мобильных — чипсы горизонтальной лентой */
@media (max-width: 900px) {
  .rules-layout { grid-template-columns: 1fr; gap: 20px; }
  .rules-toc { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 10px; scrollbar-width: none; }
  .rules-toc::-webkit-scrollbar { display: none; }
  .rules-toc b { display: none; }
  .rules-toc a { white-space: nowrap; border-left: 0; border: 1px solid var(--glass-border); border-radius: 999px; padding: 6px 13px; }
  .rules-toc a.active { border-color: var(--cyan); }
}

/* фолбэк: браузер без backdrop-filter — чуть плотнее фон, эффект тот же */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card, .panel, .app-card, .event, .event-mini, .team-card, .stat, .hero-card,
  .code-box, .flash, .empty, .tabs a, .manu-strip a, .rules-toc, .key-rules li,
  .rules .clauses > li, .rules h2, .red-bar, .radio { background: var(--surface); }
  header.site, .next-strip { background: var(--bg); }
}
/* ═══════════ ВХОД В САЙТ: стеклянная плашка «VEC · by Rollchik» ═══════════ */
  cursor: pointer; color: #fff;
  background: radial-gradient(70% 90% at 50% 0%, #0a1424 0%, #050508 60%), #050508; }

  border-radius: 28px; overflow: hidden;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 70px rgba(0, 185, 255, .13), 0 34px 90px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  animation: cardIn .55s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.94); filter: blur(8px); } }
@keyframes cardOut { to { opacity: 0; transform: scale(1.05); filter: blur(5px); } }
/* блик, проходящий по стеклу */
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .12) 50%, transparent 58%);
  transform: translateX(-60%); animation: sheen 1s .5s var(--ease) forwards; }
@keyframes sheen { to { transform: translateX(60%); } }

  font-size: clamp(3.4rem, 12vw, 6rem); letter-spacing: .02em; text-shadow: 0 0 46px rgba(0, 185, 255, .35); }
@keyframes letterIn { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } }
  transform: scaleX(0); animation: ruleIn .45s .5s var(--ease) forwards; }
@keyframes ruleIn { to { transform: scaleX(1); } }
  letter-spacing: .4em; opacity: 0; animation: byIn .5s .55s var(--ease) forwards; }
@keyframes byIn { to { opacity: 1; letter-spacing: .24em; } }


/* ========== дополнения поверх Дизайна 2.0: лицензии, зачёт, профиль, аватар ========== */
/* уровни лицензии */
.license-card.gold { background: linear-gradient(135deg, #7a5a00 0%, #d4a017 35%, #f7d774 55%, #c9971a 80%, #6b4f00 100%); background-size: 300% 100%; animation: shimmer 8s linear infinite; color: #2a1f00; }
.license-card.gold .upper, .license-card.gold .no { color: #2a1f00; }
.license-card.gold .row { color: rgba(42,31,0,.75); }
.license-card.gold::after { background: rgba(255,255,255,.28); }
.license-card.silver { background: linear-gradient(135deg, #5a5a5a 0%, #b8b8b8 35%, #eaeaea 55%, #a8a8a8 80%, #4a4a4a 100%); color: #1a1a1a; }
.license-card.silver .upper, .license-card.silver .no { color: #1a1a1a; }
.license-card.silver .row { color: rgba(26,26,26,.75); }
.license-card.silver::after { background: rgba(255,255,255,.3); }
.license-card.bronze { background: linear-gradient(135deg, #4a2a10 0%, #a4652d 35%, #d9a06a 55%, #9a5a24 80%, #3d2109 100%); color: #2a1500; }
.license-card.bronze .upper, .license-card.bronze .no { color: #2a1500; }
.license-card.bronze .row { color: rgba(42,21,0,.75); }
.license-card.bronze::after { background: rgba(255,255,255,.22); }
@keyframes shimmer { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
/* места в зачёте */
.pos { display: inline-block; min-width: 26px; padding: 2px 6px; text-align: center; border-radius: 999px; font-stretch: var(--wide); }
.pos.p1 { background: #f7d774; color: #2a1f00; } .pos.p2 { background: #dcdcdc; color: #1a1a1a; } .pos.p3 { background: #d9a06a; color: #2a1500; }
.table.standings td:nth-child(n+3), .table.standings th:nth-child(n+3) { text-align: center; }
/* смена аватара в кабинете */
.avatar-edit { position: relative; }
.avatar-edit label { cursor: pointer; display: block; position: relative; }
.avatar-edit .avatar-hint { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--cyan); color: #041018; font-size: .8rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: transform .2s; }
.avatar-edit label:hover .avatar-hint { transform: scale(1.15); }
.avatar { transition: transform .2s; }
.avatar-edit label:hover .avatar { transform: scale(1.04); }
/* логотипы команд и FMCA на чёрном: белая подложка / белый глобус */
[data-theme="dark"] .team-logo { background: #fff; padding: 2px 5px; border-radius: 6px; }
.team-logo-box, .manu-strip a { background: #fff !important; }
[data-theme="dark"] .fmca-corner img { filter: invert(1) brightness(1.2); }
/* флаги в заголовках */
.flag-img { display: inline-block; vertical-align: -3px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
/* логотип в шапке: на чёрном — белый */
[data-theme="dark"] .logo img { filter: brightness(0) invert(1); }

/* список команд: блок на команду, машины команды подряд */
.team-list { display: grid; gap: 24px; }
.team-group-head { display: flex; align-items: center; gap: 14px; padding: 6px 0 12px; }
.team-group-head .team-logo { height: 32px; max-width: 120px; object-fit: contain; flex: none; }
.team-group-head .tg-title { min-width: 0; }
.team-group-head h3 { font-size: 1.15rem; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
.team-group-head .tg-status { margin-left: auto; white-space: nowrap; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--grey-2); }
.team-group-head .tg-status.all { color: var(--lmgt3); border-color: color-mix(in srgb, var(--lmgt3) 45%, transparent); }
.team-group-head .tg-status.some { color: var(--cyan-dark); border-color: color-mix(in srgb, var(--cyan) 45%, transparent); }
.tg-cars { display: flex; flex-wrap: wrap; gap: 16px; }
.tg-cars .team-card { flex: 1 1 280px; max-width: 400px; }
.tg-cars .team-card .car { font-weight: 700; color: var(--text); }
.tg-cars .team-card .wec { font-size: .74rem; color: var(--grey-2); margin-top: 2px; }
@media (max-width: 600px) { .tg-cars .team-card { max-width: none; } .team-group-head .tg-status { display: none; } }

/* тест по регламенту в заявке на лицензию */
.quiz { display: grid; gap: 18px; }
.quiz fieldset { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 6px; margin: 0; }
.quiz legend { font-weight: 800; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; padding: 0 8px; color: var(--cyan-dark); }
.quiz .q { padding: 8px 0 12px; border-bottom: 1px dashed var(--border); }
.quiz .q:last-child { border-bottom: 0; }
.quiz .q > b { display: block; margin-bottom: 8px; }
.quiz .q .ref { color: var(--grey-2); font-weight: 400; font-size: .8rem; }
.quiz .opt { display: flex; gap: 10px; align-items: flex-start; padding: 5px 8px; border-radius: 8px; cursor: pointer; font-size: .92rem; }
.quiz .opt:hover { background: var(--light-2); }
.quiz .opt input { margin-top: 3px; flex: none; }
.form-errors { border: 1px solid var(--red); border-left-width: 6px; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.form-errors li { margin-left: 18px; }

/* админка: Discord */
.discord-preview { white-space: pre-wrap; word-break: break-word; font: inherit; font-size: .85rem; line-height: 1.45; background: var(--light-2); border: 1px solid var(--border); padding: 12px 14px; border-radius: 10px; max-height: 280px; overflow: auto; margin: 8px 0 12px; }

/* админка: список пилотов */
.pilots-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pilots-search { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; min-width: 280px; }
.pilots-search:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 185, 255, .18); }
.pilot-list { display: grid; gap: 10px; }
.pilot-row { display: grid; grid-template-columns: 52px minmax(200px, 1.2fr) minmax(280px, 1.5fr) auto; gap: 18px; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); box-shadow: var(--glass-inset); transition: border-color .2s, box-shadow .2s, transform .2s; }
.pilot-row:hover { border-color: rgba(0, 185, 255, .45); box-shadow: var(--glass-inset), 0 12px 32px rgba(0, 185, 255, .1); transform: translateY(-2px); }
.pilot-row[hidden] { display: none !important; }
.pilot-avatar { display: block; width: 52px; height: 52px; border-radius: 50%; padding: 2px; border: 2px solid var(--border); background: var(--surface); }
.pilot-avatar img, .pilot-avatar span { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--light-2); }
.pilot-avatar.gold { border-color: #f7d774; box-shadow: 0 0 14px rgba(247, 215, 116, .4); }
.pilot-avatar.silver { border-color: #dcdcdc; box-shadow: 0 0 12px rgba(220, 220, 220, .3); }
.pilot-avatar.bronze { border-color: #d9a06a; box-shadow: 0 0 12px rgba(217, 160, 106, .3); }
.pilot-id { min-width: 0; }
.pilot-id b { font-size: 1.02rem; }
.pilot-id .badge { margin-left: 6px; }
.pilot-id .mono { font-size: .78rem; margin-top: 2px; word-break: break-all; }
.pilot-lic { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.lic-edit { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lic-edit input, .lic-edit select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .82rem; }
.lic-edit input { width: 120px; letter-spacing: .06em; text-transform: uppercase; }
.lic-edit input:focus, .lic-edit select:focus { outline: none; border-color: var(--cyan); }
.pilot-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; justify-self: end; }
.pilot-actions form { display: contents; }
.pilot-actions .btn { white-space: nowrap; text-align: center; }
@media (max-width: 900px) {
  .pilot-row { grid-template-columns: 52px 1fr; }
  .pilot-lic, .pilot-actions { grid-column: 2; }
  .pilot-actions { flex-direction: row; flex-wrap: wrap; justify-self: start; }
  .pilots-search { min-width: 0; width: 100%; }
}

/* подвал: кто сделал дизайн */
footer.site .credit { flex-basis: 100%; display: flex; align-items: center; gap: 12px; padding-top: 18px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .1); }
footer.site .credit img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cyan); box-shadow: 0 0 14px rgba(0, 185, 255, .35); flex: none; }
footer.site .credit b { color: #fff; }

/* ===== лицензии: платина, водяной знак уровня, официальные лица ===== */
.license-card .holder { font-size: 1.3rem; font-weight: 800; text-transform: uppercase; margin-top: 6px; position: relative; z-index: 1; }
.license-card .rank { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; color: var(--cyan); position: relative; z-index: 1; }
.license-card .upper, .license-card .no, .license-card .row { position: relative; z-index: 1; }
.license-card .tier-mark { position: absolute; right: 18px; bottom: 6px; font-size: 3.2rem; font-weight: 900; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: .04em; line-height: 1; color: transparent; -webkit-text-stroke: 1px currentColor; opacity: .18; pointer-events: none; z-index: 0; }
.license-card.gold .tier-mark, .license-card.silver .tier-mark, .license-card.bronze .tier-mark, .license-card.platinum .tier-mark { -webkit-text-stroke-color: rgba(0,0,0,.6); }
.license-card.platinum { background: linear-gradient(120deg, #c9d3df 0%, #f7fbff 18%, #b6c5d6 36%, #eef6ff 52%, #a4b4c8 68%, #ffffff 84%, #c3cfdc 100%); background-size: 300% 100%; animation: shimmer 6s linear infinite; color: #0e1a2b; border-color: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 18px 48px rgba(0,185,255,.22); }
.license-card.platinum .upper, .license-card.platinum .no, .license-card.platinum .rank { color: #0e1a2b; }
.license-card.platinum .row { color: rgba(14,26,43,.72); }
.license-card.platinum::after { background: radial-gradient(circle, rgba(0,185,255,.45), rgba(255,255,255,0) 70%); }
.license-card .holo { position: absolute; inset: -60%; background: conic-gradient(from 0deg, transparent 0 20%, rgba(0,185,255,.28) 26%, rgba(255,255,255,.65) 32%, rgba(190,120,255,.28) 38%, transparent 44% 100%); animation: holo 7s linear infinite; mix-blend-mode: overlay; pointer-events: none; z-index: 0; }
@keyframes holo { to { transform: rotate(360deg); } }
.license-card.gold .rank { color: #5a3f00; } .license-card.silver .rank { color: #333; } .license-card.bronze .rank { color: #4a2a10; }
/* официальное лицо: красная лента в углу и рамка */
.license-card.official { border: 1px solid rgba(228,0,43,.6); box-shadow: 0 0 0 1px rgba(228,0,43,.25), 0 18px 48px rgba(228,0,43,.18); }
.license-card.official::before { content: attr(data-ribbon); position: absolute; top: 24px; right: -52px; transform: rotate(45deg); background: var(--red); color: #fff; font-size: .6rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; padding: 6px 60px; box-shadow: 0 4px 14px rgba(0,0,0,.35); z-index: 3; white-space: nowrap; }
.license-card.official.platinum { box-shadow: 0 0 0 1px rgba(228,0,43,.35), 0 18px 48px rgba(0,185,255,.22); }
/* профиль: кольцо вокруг аватара, бейджи */
.avatar-wrap { position: relative; display: inline-block; border-radius: 50%; flex: none; }
.avatar-wrap .avatar { display: block; }
.avatar-wrap.ring-gold .avatar { box-shadow: 0 0 0 3px #f7d774, 0 0 0 5px rgba(247,215,116,.35), 0 0 22px rgba(247,215,116,.55); }
.avatar-wrap.ring-silver .avatar { box-shadow: 0 0 0 3px #dcdcdc, 0 0 18px rgba(220,220,220,.45); }
.avatar-wrap.ring-bronze .avatar { box-shadow: 0 0 0 3px #d9a06a, 0 0 18px rgba(217,160,106,.45); }
.avatar-wrap.ring-platinum .avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #9fb3c8, 0 0 26px rgba(0,185,255,.7); }
.avatar-wrap.ring-official .avatar { box-shadow: 0 0 0 3px var(--red), 0 0 0 6px rgba(228,0,43,.3), 0 0 24px rgba(228,0,43,.55); }
.avatar-badge { position: absolute; right: -6px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-size: .8rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
h1 .badge { vertical-align: middle; margin-left: 8px; font-size: .62rem; }
.badge.official { background: var(--red); color: #fff; }
.badge.tier.gold { background: linear-gradient(135deg, #d4a017, #f7d774, #c9971a); color: #2a1f00; }
.badge.tier.silver { background: linear-gradient(135deg, #b8b8b8, #eaeaea, #a8a8a8); color: #1a1a1a; }
.badge.tier.bronze { background: linear-gradient(135deg, #a4652d, #d9a06a, #9a5a24); color: #2a1500; }
.badge.tier.platinum { background: linear-gradient(120deg, #c9d3df, #f7fbff, #a4b4c8, #ffffff); color: #0e1a2b; box-shadow: 0 0 12px rgba(0,185,255,.5); }
.pilot-avatar.platinum { border-color: #fff; box-shadow: 0 0 0 1px #9fb3c8, 0 0 16px rgba(0,185,255,.6); }
.license-card.official .upper { padding-right: 96px; }

/* ===== профиль пилота: герой-шапка ===== */
.profile-hero { position: relative; overflow: hidden; background: #07070b; color: #fff; padding: 56px 0 44px; isolation: isolate; }
.profile-hero .hero-aurora { position: absolute; inset: -20%; z-index: 0; pointer-events: none; filter: blur(46px);
  background: radial-gradient(40% 50% at 18% 30%, color-mix(in srgb, var(--team) 60%, transparent), transparent 70%),
              radial-gradient(35% 45% at 78% 22%, rgba(0, 185, 255, .45), transparent 70%),
              radial-gradient(30% 40% at 60% 88%, rgba(120, 60, 255, .35), transparent 70%);
  animation: aurora 14s ease-in-out infinite alternate; }
.profile-hero.platinum .hero-aurora { background: radial-gradient(40% 50% at 18% 30%, rgba(255, 255, 255, .5), transparent 70%),
              radial-gradient(35% 45% at 78% 22%, rgba(0, 185, 255, .55), transparent 70%),
              radial-gradient(30% 40% at 60% 88%, rgba(180, 140, 255, .4), transparent 70%); }
.profile-hero.gold .hero-aurora { background: radial-gradient(40% 50% at 18% 30%, rgba(247, 215, 116, .5), transparent 70%),
              radial-gradient(35% 45% at 78% 22%, rgba(212, 160, 23, .4), transparent 70%),
              radial-gradient(30% 40% at 60% 88%, rgba(0, 185, 255, .3), transparent 70%); }
.profile-hero.official .hero-aurora { background: radial-gradient(40% 50% at 18% 30%, rgba(228, 0, 43, .55), transparent 70%),
              radial-gradient(35% 45% at 78% 22%, rgba(0, 185, 255, .5), transparent 70%),
              radial-gradient(30% 40% at 60% 88%, color-mix(in srgb, var(--team) 45%, transparent), transparent 70%); }
@keyframes aurora { 0% { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); } 100% { transform: translate3d(3%, 4%, 0) rotate(6deg) scale(1.08); } }
.profile-hero .hero-lines { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, .045) 46px 48px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  animation: lines 20s linear infinite; }
@keyframes lines { to { background-position: 420px 0; } }
.profile-hero .hero-livery { position: absolute; right: -4%; bottom: -14%; width: min(58%, 860px); z-index: 0; opacity: .6; pointer-events: none;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .65));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%);
  animation: livery-in 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes livery-in { from { transform: translateX(90px); opacity: 0; } to { transform: none; opacity: .6; } }
.profile-hero .hero-num { position: absolute; right: 2%; top: -14px; z-index: 0; font-size: clamp(8rem, 22vw, 20rem); font-weight: 900; font-stretch: var(--wide); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .13); pointer-events: none; user-select: none; }
.profile-hero .hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.hero-avatar { position: relative; width: 136px; height: 136px; border-radius: 50%; flex: none; padding: 5px; --ring1: #2a2a35; --ring2: #00B9FF; }
.hero-avatar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--ring1), var(--ring2), var(--ring1), var(--ring2), var(--ring1)); animation: ringspin 5s linear infinite; }
.hero-avatar::after { content: ""; position: absolute; inset: -16px; border-radius: 50%; background: radial-gradient(circle, var(--ring2), transparent 70%); opacity: .4; filter: blur(16px); z-index: -1; }
@keyframes ringspin { to { transform: rotate(360deg); } }
.hero-avatar img, .hero-avatar > span:not(.avatar-badge) { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #1a1a22; border: 4px solid #07070b; box-sizing: border-box; }
.hero-avatar.ring-bronze { --ring1: #7a4a1e; --ring2: #e0a870; }
.hero-avatar.ring-silver { --ring1: #8a8a8a; --ring2: #f4f4f4; }
.hero-avatar.ring-gold { --ring1: #b8860b; --ring2: #ffe08a; }
.hero-avatar.ring-platinum { --ring1: #9fb3c8; --ring2: #ffffff; }
.hero-avatar.ring-official { --ring1: #E4002B; --ring2: #00B9FF; }
.hero-avatar .avatar-badge { right: 2px; bottom: 2px; width: 34px; height: 34px; font-size: 1.05rem; z-index: 2; border: 3px solid #07070b; }
.hero-text { min-width: 0; flex: 1 1 380px; }
.hero-kicker { color: var(--cyan); text-transform: uppercase; letter-spacing: .2em; font-weight: 800; font-size: .8rem; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hero-kicker .mono { letter-spacing: .12em; color: rgba(255, 255, 255, .75); }
.hero-name { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: .95; letter-spacing: -.02em; color: #fff; text-shadow: 0 10px 40px rgba(0, 0, 0, .6); overflow-wrap: anywhere; }
.profile-hero.platinum .hero-name { background: linear-gradient(120deg, #fff 0%, #cfe6ff 30%, #fff 50%, #b9c7d6 70%, #fff 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; text-shadow: none; filter: drop-shadow(0 10px 30px rgba(0, 185, 255, .4)); }
.profile-hero.gold .hero-name { background: linear-gradient(120deg, #f7d774, #fff2c2, #d4a017, #f7d774); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; text-shadow: none; filter: drop-shadow(0 10px 30px rgba(247, 215, 116, .35)); }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.hb { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-decoration: none; }
a.hb:hover { background: rgba(255, 255, 255, .16); }
.hb.official { background: var(--red); border-color: var(--red); box-shadow: 0 0 18px rgba(228, 0, 43, .45); }
.hb.tier.bronze { background: linear-gradient(135deg, #a4652d, #d9a06a, #9a5a24); color: #2a1500; border-color: transparent; }
.hb.tier.silver { background: linear-gradient(135deg, #b8b8b8, #eaeaea, #a8a8a8); color: #1a1a1a; border-color: transparent; }
.hb.tier.gold { background: linear-gradient(135deg, #d4a017, #f7d774, #c9971a); color: #2a1f00; border-color: transparent; box-shadow: 0 0 18px rgba(247, 215, 116, .45); }
.hb.tier.platinum { background: linear-gradient(120deg, #c9d3df, #f7fbff, #a4b4c8, #fff); color: #0e1a2b; border-color: transparent; box-shadow: 0 0 18px rgba(0, 185, 255, .55); }
.hb.team { border-color: color-mix(in srgb, var(--team) 70%, transparent); }
.hb.team .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--team); box-shadow: 0 0 10px var(--team); }
.hb.cls.Hypercar { background: var(--hypercar); border-color: transparent; }
.hb.cls.LMGT3 { background: var(--lmgt3); border-color: transparent; }
.hb.win { border-color: rgba(247, 215, 116, .6); }
.hb.pole { border-color: rgba(0, 185, 255, .6); }
.hero-meta { margin-top: 12px; font-size: .85rem; color: rgba(255, 255, 255, .62); }
.hero-btn { color: #fff; border-color: rgba(255, 255, 255, .5); align-self: flex-start; }
.profile-stats .stat b { color: #fff; }
.profile-hero.platinum + .profile-stats .stat b { color: #cfe6ff; text-shadow: 0 0 24px rgba(0, 185, 255, .5); }
.profile-hero.gold + .profile-stats .stat b { color: #f7d774; }
/* появление шапки */
.hero-avatar, .hero-text > * { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: .07s; } .hero-text > :nth-child(3) { animation-delay: .14s; } .hero-text > :nth-child(4) { animation-delay: .21s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* 3D-наклон карточки лицензии за курсором (см. app.js) */
.tilt { position: relative; perspective: 900px; }
.tilt .license-card { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .12s ease-out; transform-style: preserve-3d; will-change: transform; }
.tilt .glare { position: absolute; inset: 0; border-radius: 20px; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .25s; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .5), transparent 45%);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.tilt:hover .glare { opacity: 1; }
/* карточка команды в профиле */
.team-hero-card { display: block; position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--glass-border); border-left: 6px solid var(--team); background: var(--glass); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); color: var(--text); transition: transform .25s var(--ease), border-color .25s; }
.team-hero-card .livery { display: block; width: 100%; height: auto; padding: 18px 12px 0; transition: transform .35s var(--ease); }
.team-hero-card:hover { border-color: var(--team); transform: translateY(-4px); }
.team-hero-card:hover .livery { transform: translateX(6px) scale(1.02); }
.team-hero-card .thc-body { display: flex; gap: 16px; align-items: center; padding: 12px 18px 16px; }
.team-hero-card .thc-num { font-size: 2.6rem; font-weight: 900; font-stretch: var(--wide); color: var(--team); line-height: 1; }
.team-hero-card .thc-head { display: flex; gap: 10px; align-items: center; font-size: 1.05rem; text-transform: uppercase; font-stretch: var(--wide); font-weight: 900; margin-bottom: 4px; }
.team-hero-card .thc-head .team-logo { height: 22px; max-width: 90px; object-fit: contain; }
@media (max-width: 720px) {
  .profile-hero { padding: 40px 0 32px; }
  .profile-hero .hero-livery { opacity: .3; width: 95%; right: -20%; }
  .profile-hero .hero-num { display: none; }
  .hero-avatar { width: 104px; height: 104px; }
}
@media (prefers-reduced-motion: reduce) { .hero-aurora, .hero-lines, .hero-avatar::before, .hero-livery, .hero-name, .hero-avatar, .hero-text > * { animation: none !important; } }
.hero-meta, .hero-kicker { text-shadow: 0 2px 10px rgba(0,0,0,.85); }
.profile-hero .hero-livery { bottom: -24%; }
/* профиль: машина целиком, крупно */
.profile-hero { padding: 64px 0 64px; min-height: 360px; display: flex; align-items: center; }
.profile-hero > .container { width: min(var(--max), 100% - 40px); }
.profile-hero .hero-livery { right: 1%; bottom: 5%; width: min(52%, 820px); opacity: .92; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); mask-image: linear-gradient(90deg, transparent, #000 18%); filter: drop-shadow(0 34px 44px rgba(0,0,0,.75)); }
@keyframes livery-in { from { transform: translateX(90px); opacity: 0; } to { transform: none; opacity: .92; } }
.profile-hero .hero-num { right: 12%; top: -6%; -webkit-text-stroke-color: rgba(255,255,255,.1); }
@media (max-width: 1100px) { .profile-hero .hero-livery { width: 60%; right: -6%; opacity: .75; } }
@media (max-width: 720px) { .profile-hero { min-height: 0; padding: 40px 0 150px; } .profile-hero .hero-livery { width: 110%; right: -12%; bottom: -2%; opacity: .8; -webkit-mask-image: none; mask-image: none; } }
/* профиль: воздух вокруг аватара — кольцо не упирается ни в край, ни в текст */
.profile-hero .hero-inner { gap: 44px; }
.hero-avatar { margin: 10px 0 10px 12px; }
.hero-text { padding-left: 6px; }
@media (max-width: 720px) { .profile-hero .hero-inner { gap: 24px; } .hero-avatar { margin-left: 4px; } }
/* профиль: текст держится слева, машина справа не перекрывается */
@media (min-width: 1100px) { .profile-hero .hero-text { flex: 0 1 50%; max-width: 50%; } }
.hero-meta b { color: #fff; font-weight: 800; }
/* профиль: машина — отдельная колонка справа, текст её никогда не перекрывает */
.profile-hero .hero-inner { position: relative; flex-wrap: nowrap; align-items: center; }
.profile-hero .hero-text { flex: 1 1 0; min-width: 0; max-width: none; }
.hero-car { flex: 0 0 46%; max-width: 46%; margin-right: -4%; align-self: center; position: relative; z-index: 1; }
.hero-car img { display: block; width: 100%; height: auto; filter: drop-shadow(0 34px 44px rgba(0,0,0,.75)); animation: car-in 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes car-in { from { transform: translateX(90px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-btn { position: absolute; top: -28px; right: 0; }
@media (max-width: 900px) {
  .profile-hero { padding: 40px 0 28px; min-height: 0; }
  .profile-hero .hero-inner { flex-wrap: wrap; }
  .hero-car { flex: 1 1 100%; max-width: none; margin: 8px 0 0; }
  .hero-btn { position: static; }
}

/* ===== профиль основателя: единственный такой на сайте ===== */
.profile-hero.founder { background: #05050a; min-height: 420px; padding-bottom: 92px; }
.profile-hero.founder .hero-aurora { filter: blur(52px);
  background: radial-gradient(42% 55% at 15% 25%, rgba(228, 0, 43, .6), transparent 70%),
              radial-gradient(38% 50% at 80% 20%, rgba(0, 185, 255, .55), transparent 70%),
              radial-gradient(34% 44% at 55% 90%, rgba(247, 215, 116, .35), transparent 70%),
              radial-gradient(30% 40% at 35% 70%, rgba(150, 80, 255, .35), transparent 70%); }
/* карбон под всем */
.profile-hero.founder::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 6px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 6px); }
/* огромный логотип W как водяной знак */
.profile-hero.founder::after { content: ""; position: absolute; right: -6%; top: -18%; width: 60%; aspect-ratio: 64 / 40; z-index: 0; opacity: .07; pointer-events: none;
  background: url("/static/img/logo.svg") no-repeat center / contain; filter: invert(1) brightness(2); animation: founder-w 22s ease-in-out infinite alternate; }
@keyframes founder-w { from { transform: translateX(0) rotate(-2deg); } to { transform: translateX(-40px) rotate(2deg); } }
/* прожектор за курсором */
.profile-hero.founder .hero-spot { position: absolute; inset: 0; z-index: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(260px circle at var(--mx, 30%) var(--my, 40%), rgba(255, 255, 255, .16), rgba(0, 185, 255, .08) 40%, transparent 70%); transition: background-position .1s; }
/* искры, летящие вверх */
.profile-hero.founder .hero-sparks { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .9;
  background-image: radial-gradient(2px 2px at 12% 80%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 28% 60%, #ffe08a 50%, transparent 51%),
    radial-gradient(2px 2px at 45% 90%, #00B9FF 50%, transparent 51%), radial-gradient(1.5px 1.5px at 62% 70%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 85%, #ffe08a 50%, transparent 51%), radial-gradient(1.5px 1.5px at 90% 55%, #00B9FF 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 20% 30%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 70% 35%, #fff 50%, transparent 51%);
  background-size: 100% 200%; animation: sparks 16s linear infinite; }
@keyframes sparks { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
/* бегущая строка снизу */
.profile-hero.founder .hero-marquee { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 0; display: flex; white-space: nowrap; overflow: hidden; pointer-events: none;
  font-size: 2.2rem; font-weight: 900; font-stretch: var(--wide); text-transform: uppercase; letter-spacing: .08em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .16); }
.profile-hero.founder .hero-marquee span { flex: none; padding-right: 1em; animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
/* аватар: тройное кольцо, пульс, корона */
.profile-hero.founder .hero-avatar { width: 156px; height: 156px; --ring1: #E4002B; --ring2: #ffe08a; --ring3: #00B9FF; }
.profile-hero.founder .hero-avatar::before { background: conic-gradient(from 0deg, var(--ring1), var(--ring2), var(--ring3), var(--ring1)); animation: ringspin 4s linear infinite; box-shadow: 0 0 0 4px #05050a, 0 0 0 6px rgba(255, 224, 138, .35); }
.profile-hero.founder .hero-avatar::after { inset: -26px; opacity: .55; background: radial-gradient(circle, rgba(255, 224, 138, .8), rgba(228, 0, 43, .35) 45%, transparent 70%); animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.12); opacity: .7; } }
.profile-hero.founder .hero-avatar .avatar-badge.crown { background: linear-gradient(135deg, #b8860b, #ffe08a, #d4a017); color: #2a1f00; width: 40px; height: 40px; font-size: 1.25rem; right: -4px; bottom: -2px; box-shadow: 0 0 22px rgba(255, 224, 138, .7); border-color: #05050a; }
/* имя: золотая фольга с бликом */
.profile-hero.founder .hero-name { background: linear-gradient(110deg, #fff 0%, #ffe08a 22%, #fff 38%, #d4a017 52%, #fff 66%, #cfe6ff 82%, #fff 100%); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s linear infinite; text-shadow: none; filter: drop-shadow(0 12px 34px rgba(255, 224, 138, .35)); letter-spacing: -.01em; }
.profile-hero.founder .hero-kicker { color: #ffe08a; }
/* табличка основателя */
.founder-plaque { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 18px; border-radius: 4px; font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #2a1f00;
  background: linear-gradient(120deg, #7a5a00, #d4a017 30%, #ffe9a8 50%, #d4a017 70%, #7a5a00); background-size: 200% 100%; animation: shimmer 6s linear infinite;
  box-shadow: 0 8px 26px rgba(212, 160, 23, .35), inset 0 1px 0 rgba(255, 255, 255, .6); position: relative; }
.founder-plaque::before, .founder-plaque::after { content: ""; position: absolute; top: 0; bottom: 0; width: 8px; background: inherit; }
.founder-plaque::before { left: -8px; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.founder-plaque::after { right: -8px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.founder-plaque .laurel { font-size: 1rem; line-height: 1; }
.founder-plaque .laurel.flip { transform: scaleX(-1); }
/* бейджи и статистика в золоте */
.profile-hero.founder .hb.official { background: linear-gradient(135deg, #E4002B, #ff5c5c); }
.profile-hero.founder + .profile-stats { background: #05050a; }
.profile-hero.founder + .profile-stats .stat { border-color: rgba(255, 224, 138, .25); background: linear-gradient(180deg, rgba(255, 224, 138, .06), transparent); }
.profile-hero.founder + .profile-stats .stat b { background: linear-gradient(120deg, #ffe08a, #fff, #d4a017); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 18px rgba(255, 224, 138, .45)); }
/* лицензия Founder edition: чёрная с золотой фольгой и голограммой */
.license-card.founder { background: linear-gradient(135deg, #0b0b10 0%, #1a1408 40%, #0b0b10 60%, #14110a 100%); color: #ffe9a8; border: 1px solid rgba(255, 224, 138, .6); box-shadow: 0 0 0 1px rgba(255, 224, 138, .25), 0 0 0 5px #0b0b10, 0 0 0 6px rgba(255, 224, 138, .35), 0 22px 56px rgba(212, 160, 23, .25); }
.license-card.founder .upper { color: #ffe08a; }
.license-card.founder .no { color: #fff; text-shadow: 0 0 18px rgba(255, 224, 138, .6); }
.license-card.founder .holder { color: #fff; }
.license-card.founder .rank { color: #ffe08a; }
.license-card.founder .row { color: rgba(255, 233, 168, .7); }
.license-card.founder .tier-mark { -webkit-text-stroke-color: rgba(255, 224, 138, .5); opacity: .35; }
.license-card.founder::after { background: radial-gradient(circle, rgba(255, 224, 138, .45), transparent 70%); }
.license-card.founder .holo { background: conic-gradient(from 0deg, transparent 0 20%, rgba(255, 224, 138, .5) 26%, rgba(255, 255, 255, .7) 32%, rgba(0, 185, 255, .35) 38%, transparent 44% 100%); mix-blend-mode: screen; opacity: .6; }
.license-card.founder::before { background: linear-gradient(135deg, #b8860b, #ffe08a, #d4a017); color: #2a1f00; }
.license-card.founder.official { box-shadow: 0 0 0 1px rgba(255, 224, 138, .25), 0 0 0 5px #0b0b10, 0 0 0 6px rgba(255, 224, 138, .35), 0 22px 56px rgba(212, 160, 23, .25); }
@media (max-width: 720px) { .profile-hero.founder .hero-avatar { width: 120px; height: 120px; } .profile-hero.founder .hero-marquee { font-size: 1.4rem; } .profile-hero.founder::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .profile-hero.founder .hero-sparks, .profile-hero.founder .hero-marquee span, .profile-hero.founder::after, .profile-hero.founder .hero-avatar::after { animation: none !important; } }
.founder-plaque { white-space: nowrap; letter-spacing: .14em; font-size: .7rem; }
@media (max-width: 720px) { .founder-plaque { white-space: normal; } }
.founder-plaque { white-space: normal; max-width: 100%; flex-wrap: wrap; justify-content: center; text-align: center; line-height: 1.5; }
@media (max-width: 1100px) { .hero-car { flex-basis: 40%; max-width: 40%; } }

/* знак у ника (логотип FMCA) */
.flair { display: inline-block; width: 22px; height: 22px; object-fit: contain; vertical-align: -4px; margin-left: 6px; border-radius: 50%; background: #fff; padding: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
h1 .flair { width: .55em; height: .55em; vertical-align: .05em; margin-left: .18em; padding: .06em; box-shadow: 0 0 0 2px rgba(255,255,255,.25), 0 6px 18px rgba(0,0,0,.4); }
.hero-name .flair { width: .5em; height: .5em; }

/* ===== профиль основателя FMCA: фиолетовое серебро, ступенью ниже основателя лиги ===== */
.profile-hero.fmca { background: #07060c; min-height: 400px; }
.profile-hero.fmca .hero-aurora { filter: blur(50px);
  background: radial-gradient(42% 55% at 15% 25%, rgba(124, 92, 255, .6), transparent 70%),
              radial-gradient(38% 50% at 80% 20%, rgba(0, 185, 255, .45), transparent 70%),
              radial-gradient(34% 44% at 55% 90%, rgba(255, 255, 255, .22), transparent 70%); }
.profile-hero.fmca::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .45; pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 6px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 6px); }
.profile-hero.fmca .hero-spot { position: absolute; inset: 0; z-index: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(240px circle at var(--mx, 30%) var(--my, 40%), rgba(255, 255, 255, .12), rgba(124, 92, 255, .08) 40%, transparent 70%); }
.profile-hero.fmca .hero-fmca-mark { position: absolute; right: 4%; top: 50%; width: 34%; max-width: 420px; aspect-ratio: 1; z-index: 0; opacity: .08; pointer-events: none; animation: fmca-float 18s ease-in-out infinite alternate; }
.profile-hero.fmca .hero-fmca-mark img { width: 100%; height: 100%; object-fit: contain; filter: invert(1) brightness(2); }
@keyframes fmca-float { from { transform: translateY(-52%) rotate(-3deg); } to { transform: translateY(-46%) rotate(3deg); } }
.profile-hero.fmca .hero-avatar { width: 148px; height: 148px; --ring1: #7c5cff; --ring2: #ffffff; }
.profile-hero.fmca .hero-avatar::before { background: conic-gradient(from 0deg, #7c5cff, #fff, #00B9FF, #7c5cff); animation: ringspin 5s linear infinite; box-shadow: 0 0 0 4px #07060c, 0 0 0 6px rgba(124, 92, 255, .4); }
.profile-hero.fmca .hero-avatar::after { inset: -22px; opacity: .5; background: radial-gradient(circle, rgba(124, 92, 255, .8), transparent 70%); }
.profile-hero.fmca .hero-avatar .avatar-badge.fmca { background: #fff; width: 40px; height: 40px; right: -4px; bottom: -2px; border-color: #07060c; box-shadow: 0 0 22px rgba(124, 92, 255, .7); }
.profile-hero.fmca .hero-avatar .avatar-badge.fmca img { width: 26px; height: 26px; object-fit: contain; }
.profile-hero.fmca .hero-name { background: linear-gradient(110deg, #fff 0%, #d9ccff 25%, #fff 45%, #b8a6ff 60%, #fff 80%, #cfe6ff 100%); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; text-shadow: none; filter: drop-shadow(0 12px 30px rgba(124, 92, 255, .4)); }
.profile-hero.fmca .hero-kicker { color: #c9bcff; }
.founder-plaque.fmca { color: #fff; background: linear-gradient(120deg, #3b2a8f, #7c5cff 35%, #b8a6ff 50%, #7c5cff 65%, #3b2a8f); box-shadow: 0 8px 26px rgba(124, 92, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .45); }
.founder-plaque.fmca img { width: 18px; height: 18px; object-fit: contain; filter: invert(1) brightness(2); }
.profile-hero.fmca + .profile-stats { background: #07060c; }
.profile-hero.fmca + .profile-stats .stat { border-color: rgba(124, 92, 255, .3); background: linear-gradient(180deg, rgba(124, 92, 255, .08), transparent); }
.profile-hero.fmca + .profile-stats .stat b { color: #d9ccff; text-shadow: 0 0 20px rgba(124, 92, 255, .6); }
/* лицензия FMCA edition: платина с фиолетовой лентой и водяным знаком */
.license-card.fmca::before { background: linear-gradient(135deg, #3b2a8f, #7c5cff, #b8a6ff); color: #fff; }
.license-card.fmca.platinum { box-shadow: 0 0 0 1px rgba(124, 92, 255, .45), 0 18px 48px rgba(124, 92, 255, .28); }
.license-card.fmca .tier-mark { -webkit-text-stroke-color: rgba(59, 42, 143, .6); }
.license-card.fmca .rank { color: #3b2a8f; }
@media (max-width: 720px) { .profile-hero.fmca .hero-avatar { width: 116px; height: 116px; } .profile-hero.fmca .hero-fmca-mark { display: none; } }
/* основатель: Safety Car FIA WEC в шапке, с мигалкой на крыше */
.hero-car.sc { flex-basis: 50%; max-width: 50%; margin-right: -3%; }
.hero-car.sc img { filter: drop-shadow(0 34px 44px rgba(0,0,0,.8)) drop-shadow(0 0 30px rgba(228,0,43,.25)); }
.hero-car.sc::before { content: ""; position: absolute; left: 29%; top: 2%; width: 14%; height: 9%; border-radius: 50%; pointer-events: none; z-index: 2;
  background: radial-gradient(closest-side, rgba(255,140,0,.95), rgba(255,60,0,.5) 45%, transparent 70%); filter: blur(4px); animation: beacon 1.1s steps(1) infinite; }
@keyframes beacon { 0%, 45% { opacity: .95; } 50%, 95% { opacity: .15; } }
.hb.sc { background: linear-gradient(135deg, #E4002B, #ff7a00); border-color: transparent; box-shadow: 0 0 18px rgba(255, 122, 0, .45); }
/* имя в шапке не рвётся посреди слова — лучше меньше кегль */
.hero-name { overflow-wrap: normal; word-break: normal; hyphens: none; font-size: clamp(1.7rem, 5vw, 4.6rem); }
@media (max-width: 900px) { .hero-name { font-size: clamp(1.6rem, 7.5vw, 3rem); } }
.hero-text { min-width: 0; }
/* табличка: переносится только между словами, лавры по краям */
.founder-plaque { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; white-space: normal; line-height: 1.4; }
.founder-plaque > span { white-space: nowrap; }
.founder-plaque .sep { opacity: .7; }
.founder-plaque .laurel { flex: none; }
@media (max-width: 900px) { .hero-car, .hero-car.sc { flex: 1 1 100%; max-width: none; margin: 8px 0 0; } .profile-hero .hero-text { flex: 1 1 200px; } }
/* имя всегда одной строкой; ширину подгоняет fitName() в app.js */
.hero-name { white-space: nowrap; display: block; }
.hero-name .flair { flex: none; }

/* партнёрские знаки: инверсия только для тёмных логотипов (FMCA) */
.profile-hero .hero-fmca-mark img { filter: none; }
.profile-hero .hero-fmca-mark.invert img { filter: invert(1) brightness(2); }
.founder-plaque.fmca img { filter: none; width: auto; height: 18px; max-width: 90px; }
.founder-plaque.fmca img.invert { filter: invert(1) brightness(2); }
.profile-hero .hero-avatar .avatar-badge.fmca img { border-radius: 50%; }

/* ===== владелец F1 25 CIS: красно-белый F1 ===== */
.profile-hero.f125 { background: #0b0608; }
.profile-hero.f125 .hero-aurora { background: radial-gradient(42% 55% at 15% 25%, rgba(225, 6, 0, .65), transparent 70%),
              radial-gradient(38% 50% at 80% 20%, rgba(255, 255, 255, .28), transparent 70%),
              radial-gradient(34% 44% at 55% 90%, rgba(225, 6, 0, .35), transparent 70%); }
.profile-hero.f125 .hero-spot { background: radial-gradient(240px circle at var(--mx, 30%) var(--my, 40%), rgba(255, 255, 255, .14), rgba(225, 6, 0, .1) 40%, transparent 70%); }
.profile-hero.f125 .hero-fmca-mark { width: 40%; max-width: 520px; aspect-ratio: 409 / 107; opacity: .1; }
.profile-hero.f125 .hero-avatar { --ring1: #E10600; --ring2: #ffffff; }
.profile-hero.f125 .hero-avatar::before { background: conic-gradient(from 0deg, #E10600, #fff, #E10600, #fff, #E10600); box-shadow: 0 0 0 4px #0b0608, 0 0 0 6px rgba(225, 6, 0, .45); }
.profile-hero.f125 .hero-avatar::after { background: radial-gradient(circle, rgba(225, 6, 0, .85), transparent 70%); }
.profile-hero.f125 .hero-avatar .avatar-badge.fmca { background: #0c0c10; box-shadow: 0 0 22px rgba(225, 6, 0, .8); }
.profile-hero.f125 .hero-name { background: linear-gradient(110deg, #fff 0%, #ffd6d4 25%, #fff 45%, #ff8a85 60%, #fff 80%, #ffe0de 100%); background-size: 240% 100%; filter: drop-shadow(0 12px 30px rgba(225, 6, 0, .45)); }
.profile-hero.f125 .hero-kicker { color: #ff8a85; }
.profile-hero.f125 .founder-plaque.fmca { background: linear-gradient(120deg, #7a0300, #E10600 35%, #ff5b56 50%, #E10600 65%, #7a0300); box-shadow: 0 8px 26px rgba(225, 6, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .4); }
.profile-hero.f125 + .profile-stats { background: #0b0608; }
.profile-hero.f125 + .profile-stats .stat { border-color: rgba(225, 6, 0, .35); background: linear-gradient(180deg, rgba(225, 6, 0, .1), transparent); }
.profile-hero.f125 + .profile-stats .stat b { color: #ffd6d4; text-shadow: 0 0 20px rgba(225, 6, 0, .7); }
.license-card.f125::before { background: linear-gradient(135deg, #7a0300, #E10600, #ff5b56); color: #fff; }
.license-card.f125.platinum { box-shadow: 0 0 0 1px rgba(225, 6, 0, .5), 0 18px 48px rgba(225, 6, 0, .3); }
.license-card.f125 .tier-mark { -webkit-text-stroke-color: rgba(122, 3, 0, .6); }
.license-card.f125 .rank { color: #7a0300; }
.profile-hero.f125 .hero-name { -webkit-background-clip: text; background-clip: text; color: transparent; }
.profile-hero.f125 .hero-fmca-mark { opacity: .16; right: 3%; }

/* ===== Дирекция гонки: оформление основателя, свои цвета ===== */
.profile-hero.official-director .hero-aurora { background: radial-gradient(42% 55% at 15% 25%, rgba(228, 0, 43, .7), transparent 70%),
              radial-gradient(38% 50% at 80% 20%, rgba(255, 255, 255, .3), transparent 70%),
              radial-gradient(34% 44% at 55% 90%, rgba(0, 185, 255, .3), transparent 70%); }
.profile-hero.official-steward .hero-aurora { background: radial-gradient(42% 55% at 15% 25%, rgba(0, 185, 255, .6), transparent 70%),
              radial-gradient(38% 50% at 80% 20%, rgba(255, 255, 255, .3), transparent 70%),
              radial-gradient(34% 44% at 55% 90%, rgba(228, 0, 43, .3), transparent 70%); }
.profile-hero.official-director .hero-avatar { --ring1: #E4002B; --ring2: #ffffff; --ring3: #ff8a85; }
.profile-hero.official-steward .hero-avatar { --ring1: #00B9FF; --ring2: #ffffff; --ring3: #7fdcff; }
.profile-hero.official-director .hero-avatar::before { box-shadow: 0 0 0 4px #05050a, 0 0 0 6px rgba(228, 0, 43, .45); }
.profile-hero.official-steward .hero-avatar::before { box-shadow: 0 0 0 4px #05050a, 0 0 0 6px rgba(0, 185, 255, .45); }
.profile-hero.official-director .hero-avatar::after { background: radial-gradient(circle, rgba(255, 138, 133, .85), rgba(228, 0, 43, .35) 45%, transparent 70%); }
.profile-hero.official-steward .hero-avatar::after { background: radial-gradient(circle, rgba(127, 220, 255, .85), rgba(0, 185, 255, .35) 45%, transparent 70%); }
.profile-hero.official-director .hero-avatar .avatar-badge.crown { background: linear-gradient(135deg, #7a0014, #E4002B, #ff8a85); color: #fff; box-shadow: 0 0 22px rgba(228, 0, 43, .8); }
.profile-hero.official-steward .hero-avatar .avatar-badge.crown { background: linear-gradient(135deg, #005f85, #00B9FF, #7fdcff); color: #041018; box-shadow: 0 0 22px rgba(0, 185, 255, .8); }
.profile-hero.official-director .hero-name { background: linear-gradient(110deg, #fff 0%, #ffd6d4 22%, #fff 38%, #E4002B 52%, #fff 66%, #dcdcdc 82%, #fff 100%); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 12px 34px rgba(228, 0, 43, .4)); }
.profile-hero.official-steward .hero-name { background: linear-gradient(110deg, #fff 0%, #cfe6ff 22%, #fff 38%, #00B9FF 52%, #fff 66%, #dcdcdc 82%, #fff 100%); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 12px 34px rgba(0, 185, 255, .4)); }
.profile-hero.official-director .hero-kicker { color: #ff8a85; }
.profile-hero.official-steward .hero-kicker { color: #7fdcff; }
.profile-hero.official-director .founder-plaque { color: #fff; background: linear-gradient(120deg, #7a0014, #E4002B 30%, #ff8a85 50%, #E4002B 70%, #7a0014); box-shadow: 0 8px 26px rgba(228, 0, 43, .4), inset 0 1px 0 rgba(255, 255, 255, .5); }
.profile-hero.official-steward .founder-plaque { color: #041018; background: linear-gradient(120deg, #005f85, #00B9FF 30%, #bfeeff 50%, #00B9FF 70%, #005f85); box-shadow: 0 8px 26px rgba(0, 185, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .6); }
.profile-hero.official-director .hero-sparks { background-image: radial-gradient(2px 2px at 12% 80%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 28% 60%, #ff8a85 50%, transparent 51%), radial-gradient(2px 2px at 45% 90%, #E4002B 50%, transparent 51%), radial-gradient(1.5px 1.5px at 62% 70%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 78% 85%, #ff8a85 50%, transparent 51%), radial-gradient(1.5px 1.5px at 90% 55%, #fff 50%, transparent 51%); }
.profile-hero.official-steward .hero-sparks { background-image: radial-gradient(2px 2px at 12% 80%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 28% 60%, #7fdcff 50%, transparent 51%), radial-gradient(2px 2px at 45% 90%, #00B9FF 50%, transparent 51%), radial-gradient(1.5px 1.5px at 62% 70%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 78% 85%, #7fdcff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 90% 55%, #fff 50%, transparent 51%); }
.profile-hero.official-director + .profile-stats .stat { border-color: rgba(228, 0, 43, .3); background: linear-gradient(180deg, rgba(228, 0, 43, .08), transparent); }
.profile-hero.official-director + .profile-stats .stat b { background: linear-gradient(120deg, #ff8a85, #fff, #E4002B); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(228, 0, 43, .5)); }
.profile-hero.official-steward + .profile-stats .stat { border-color: rgba(0, 185, 255, .3); background: linear-gradient(180deg, rgba(0, 185, 255, .08), transparent); }
.profile-hero.official-steward + .profile-stats .stat b { background: linear-gradient(120deg, #7fdcff, #fff, #00B9FF); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(0, 185, 255, .5)); }
/* лицензии Дирекции: чёрная карта с красной / голубой фольгой */
.license-card.official-director { background: linear-gradient(135deg, #0b0b10 0%, #1a0810 40%, #0b0b10 60%, #140a0d 100%); color: #ffd6d4; border-color: rgba(255, 138, 133, .6); box-shadow: 0 0 0 1px rgba(228, 0, 43, .3), 0 0 0 5px #0b0b10, 0 0 0 6px rgba(228, 0, 43, .4), 0 22px 56px rgba(228, 0, 43, .25); }
.license-card.official-director .upper, .license-card.official-director .rank { color: #ff8a85; }
.license-card.official-director .no { text-shadow: 0 0 18px rgba(228, 0, 43, .6); }
.license-card.official-director .row { color: rgba(255, 214, 212, .7); }
.license-card.official-director .tier-mark { -webkit-text-stroke-color: rgba(255, 138, 133, .5); }
.license-card.official-director::after { background: radial-gradient(circle, rgba(228, 0, 43, .45), transparent 70%); }
.license-card.official-director .holo { background: conic-gradient(from 0deg, transparent 0 20%, rgba(255, 138, 133, .5) 26%, rgba(255, 255, 255, .7) 32%, rgba(228, 0, 43, .35) 38%, transparent 44% 100%); }
.license-card.official-director::before { background: linear-gradient(135deg, #7a0014, #E4002B, #ff8a85); color: #fff; }
.license-card.official-steward { background: linear-gradient(135deg, #0b0b10 0%, #08141a 40%, #0b0b10 60%, #0a1216 100%); color: #cfe6ff; border-color: rgba(127, 220, 255, .6); box-shadow: 0 0 0 1px rgba(0, 185, 255, .3), 0 0 0 5px #0b0b10, 0 0 0 6px rgba(0, 185, 255, .4), 0 22px 56px rgba(0, 185, 255, .25); }
.license-card.official-steward .upper, .license-card.official-steward .rank { color: #7fdcff; }
.license-card.official-steward .no { text-shadow: 0 0 18px rgba(0, 185, 255, .6); }
.license-card.official-steward .row { color: rgba(207, 230, 255, .7); }
.license-card.official-steward .tier-mark { -webkit-text-stroke-color: rgba(127, 220, 255, .5); }
.license-card.official-steward::after { background: radial-gradient(circle, rgba(0, 185, 255, .45), transparent 70%); }
.license-card.official-steward .holo { background: conic-gradient(from 0deg, transparent 0 20%, rgba(127, 220, 255, .5) 26%, rgba(255, 255, 255, .7) 32%, rgba(0, 185, 255, .35) 38%, transparent 44% 100%); }
.license-card.official-steward::before { background: linear-gradient(135deg, #005f85, #00B9FF, #7fdcff); color: #041018; }

/* ===== переключатель языка ===== */
/* Переключатель языка — сегмент RU | EN с флагами, как роли 🇷🇺/🇬🇧 в Discord; активный подсвечен */
.lang-switch { display: inline-flex; align-items: center; height: 36px; padding: 3px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass); }
.lang-switch a { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--text); opacity: .55; text-decoration: none; transition: opacity .2s, background .2s, color .2s; }
.lang-switch a img { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.lang-switch a:hover { opacity: 1; }
.lang-switch a.on { opacity: 1; background: var(--cyan); color: #001018; box-shadow: 0 0 14px rgba(0,185,255,.45); }
.lang-switch a.on img { box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
@media (max-width: 560px) { .lang-switch a { padding: 0 7px; } .lang-switch a img { display: none; } }

/* ===== новости: обложка, галерея, файлы ===== */
.card.with-cover { padding-top: 0; overflow: hidden; }
.card.with-cover .cover { display: block; width: calc(100% + 48px); margin: 0 -24px 14px; aspect-ratio: 16 / 7; object-fit: cover; }
.news-cover { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 16px; margin-bottom: 24px; box-shadow: var(--shadow); }
.page-head.with-cover { background-image: linear-gradient(180deg, rgba(7,7,11,.75), rgba(7,7,11,.92)), var(--cover); background-size: cover; background-position: center; }
.news-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.news-gallery a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.news-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s var(--ease); }
.news-gallery a:hover img { transform: scale(1.04); }
ul.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.files li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
ul.files li::before { content: "📎"; }
ul.files a { font-weight: 700; }

/* Языковые метки RU/EN в админке (новости, пилоты) — как роли 🇷🇺/🇬🇧 в Discord */
.lang-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: .66rem; font-weight: 800; letter-spacing: .08em; border: 1px solid var(--glass-border); background: var(--glass); color: var(--text); vertical-align: middle; font-family: inherit; cursor: default; }
.lang-tag img { width: 16px; height: 12px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.lang-tag.on { border-color: rgba(0,185,255,.45); color: var(--cyan); }
.lang-tag.todo { cursor: pointer; border-style: dashed; color: var(--grey-2); transition: color .2s, border-color .2s; }
.lang-tag.todo:hover { color: var(--cyan); border-color: var(--cyan); }
.table td.langs { white-space: nowrap; }
.table td.langs .lang-tag + form, .table td.langs .lang-tag + .lang-tag { margin-left: 4px; }

/* Шапка на промежуточных ширинах (900–1400px): полное меню ещё видно, но логотип с подписью, семь пунктов,
   переключатель языка, тема, колокольчик и имя вместе не влезают — ничего не должно наезжать друг на друга,
   поэтому меню и правый блок не сжимаются, а лишнее прячем ступенями */
header.site .container { width: min(1520px, 100% - 40px); }  /* шапке можно быть шире контента: восемь пунктов + правый блок */
nav.main, .nav-user, .lang-switch { flex-shrink: 0; }
.logo { flex-shrink: 0; }
.nav-user .name { white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }  /* длинный ник не раздвигает шапку */
@media (min-width: 901px) and (max-width: 1640px) {
  header.site .container { gap: 16px; }
  .logo-sub { display: none; }
  nav.main { gap: 14px; }
  nav.main a { font-size: .78rem; letter-spacing: .05em; }
  .nav-user { gap: 10px; }
}
@media (min-width: 901px) and (max-width: 1300px) {
  .nav-user .name { display: none; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  nav.main { gap: 11px; }
  nav.main a { font-size: .72rem; letter-spacing: .03em; }
  .nav-user { gap: 6px; }
  .lang-switch a { padding: 0 7px; gap: 4px; }
}
@media (min-width: 901px) and (max-width: 1000px) {
  nav.main a { font-size: .68rem; letter-spacing: .02em; }
  .lang-switch a img { display: none; }
}

/* Бланк документов Дирекции (.sheet) — в sheet.css: тот же файл идёт в PDF */
/* редактор в админке: два листа рядом, поле тела подсвечивается */
.sheet-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; padding-top: 12px; }
.sheet-pair .sheet { width: 100%; min-height: 0; padding: 12mm 12mm 14mm; }
.sheet-label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.sheet-label img { border-radius: 2px; }
.sheet-edit .doc-body { min-height: 120px; border-radius: 3px; outline: none; transition: box-shadow .12s ease; }
.sheet-edit .doc-body:hover { box-shadow: 0 0 0 1px rgba(11,143,242,.25); }
.sheet-edit .doc-body:focus { box-shadow: 0 0 0 2px rgba(11,143,242,.45); }
.doc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
@media (max-width: 1100px) { .sheet-pair { grid-template-columns: 1fr; } }
/* список документов */
.doc-tabs a.incident { color: var(--red); }
.doc-list { display: grid; gap: 8px; margin-top: 16px; }
.doc-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border: 1px solid var(--glass-border); border-radius: var(--radius-sm); background: var(--glass); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.doc-row:hover { border-color: var(--cyan); transform: translateX(3px); }
.doc-row.incident { border-left: 4px solid var(--red); }
.doc-row .doc-no, .doc-card .doc-no { font-family: var(--font); font-weight: 900; font-size: 1.3rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--cyan); }
.doc-row.incident .doc-no, .doc-card.incident .doc-no { color: var(--red); }
.doc-row .doc-kind { margin-bottom: 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
@media (max-width: 600px) { .doc-row { grid-template-columns: 48px 1fr; } .doc-row .doc-when { grid-column: 2; } }
/* полоса на главной: последние документы, решения стюардов — красным */
.doc-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.doc-card { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--glass-border); border-radius: var(--radius-sm); background: var(--glass); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.doc-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.doc-card.incident { border-color: rgba(228,0,43,.45); box-shadow: 0 0 24px rgba(228,0,43,.12); }
.doc-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-card .doc-no { font-size: 1.1rem; }
}
/* форма документа шире обычной: два бланка рядом */
form.doc-form { max-width: none; }
form.doc-form .form-row { grid-template-columns: 1fr 1fr auto; }
.doc-pdf { color: var(--cyan); font-weight: 800; cursor: pointer; }
.doc-pdf:hover { text-decoration: underline; }
.notif .notif-del { color: var(--grey-2); }
.notif .notif-del:hover { color: var(--red); }

/* --- голосования --- */
.poll-body { max-width: 720px; white-space: pre-line; }
.poll-q { margin: 26px 0; max-width: 720px; }
.poll-q h3 { margin: 0 0 10px; font-size: 1.05rem; }
.poll-q h3 small { font-weight: 500; font-size: .8rem; }
.poll-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 6px 0; border: 1px solid var(--glass-border); border-radius: var(--radius-sm); background: var(--glass); cursor: pointer; overflow: hidden; transition: border-color .2s; }
.poll-opt:hover, .poll-opt.mine { border-color: var(--cyan); }
.poll-opt .poll-bar { position: absolute; inset: 0; width: var(--w, 0%); background: var(--cyan); opacity: .16; pointer-events: none; transition: width .4s var(--ease-out); }
.poll-opt input { position: relative; flex: none; width: 18px; height: 18px; accent-color: var(--cyan); margin: 0; }
.poll-opt .poll-text { position: relative; flex: 1; font-weight: 600; }
.poll-opt .poll-n { position: relative; font-variant-numeric: tabular-nums; color: var(--grey-2); font-size: .85rem; white-space: nowrap; }
.poll-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.poll-card { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--glass-border); border-left: 4px solid var(--cyan); border-radius: var(--radius-sm); background: var(--glass); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.poll-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.poll-card.closed { border-left-color: var(--grey); opacity: .8; }
.poll-q-edit { border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 12px 16px 16px; display: grid; gap: 14px; }
.poll-q-edit legend { font-weight: 800; text-transform: uppercase; font-size: .74rem; letter-spacing: .08em; padding: 0 6px; }

/* вход: два провайдера */
.login-providers { display: grid; gap: 10px; margin-top: 8px; }
.login-providers .btn { justify-content: center; gap: 10px; }
.btn-steam { background: #171a21; color: #fff; border: 1px solid #2a475e; }
.btn-steam:hover { background: #1b2838; color: #66c0f4; }

/* Аккредитованное СМИ (Minidream Broadcasts): чёрно-белый эфирный стиль, янтарный «ON AIR» */
.profile-hero.minidream { background: #050505; }
.profile-hero.minidream .hero-aurora { background: radial-gradient(42% 55% at 15% 25%, rgba(255, 180, 0, .45), transparent 70%),
  radial-gradient(40% 50% at 85% 70%, rgba(255, 255, 255, .14), transparent 70%); }
.profile-hero.minidream .hero-spot { background: radial-gradient(240px circle at var(--mx, 30%) var(--my, 40%), rgba(255, 255, 255, .16), rgba(255, 180, 0, .1) 40%, transparent 70%); }
.profile-hero.minidream .hero-fmca-mark { opacity: .5; right: 3%; }
.profile-hero.minidream .hero-avatar { --ring1: #ffb400; --ring2: #ffffff; }
.profile-hero.minidream .hero-avatar::before { background: conic-gradient(from 0deg, #ffb400, #fff, #ffb400, #fff, #ffb400); box-shadow: 0 0 0 4px #050505, 0 0 0 6px rgba(255, 180, 0, .45); }
.profile-hero.minidream .hero-avatar::after { background: radial-gradient(circle, rgba(255, 180, 0, .8), transparent 70%); }
.profile-hero.minidream .hero-avatar .avatar-badge.fmca { background: #000; box-shadow: 0 0 22px rgba(255, 180, 0, .8); }
.profile-hero.minidream .hero-name { background: linear-gradient(110deg, #fff 0%, #ffe9b8 25%, #fff 45%, #ffcf5c 60%, #fff 80%, #fff3d6 100%); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 12px 30px rgba(255, 180, 0, .4)); }
.profile-hero.minidream .hero-kicker { color: #ffcf5c; }
.profile-hero.minidream .founder-plaque.fmca { background: linear-gradient(120deg, #1a1a1a, #3a3a3a 35%, #ffb400 50%, #3a3a3a 65%, #1a1a1a); box-shadow: 0 8px 26px rgba(255, 180, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
.profile-hero.minidream .founder-plaque.fmca img { background: #000; border-radius: 50%; }
.profile-hero.minidream + .profile-stats { background: #050505; }
.profile-hero.minidream + .profile-stats .stat { border-color: rgba(255, 180, 0, .35); background: linear-gradient(180deg, rgba(255, 180, 0, .1), transparent); }
.profile-hero.minidream + .profile-stats .stat b { color: #ffe9b8; text-shadow: 0 0 20px rgba(255, 180, 0, .6); }
.license-card.minidream::before { background: linear-gradient(135deg, #000, #3a3a3a, #ffb400); color: #fff; }
.license-card.minidream .tier-mark { -webkit-text-stroke-color: rgba(255, 180, 0, .5); }
.license-card.minidream .rank { color: #8a6100; }
.flair.minidream { background: #000; padding: 1px; }
footer.site .partners a { display: inline-flex; align-items: center; gap: 6px; }
footer.site .partners img { width: 20px; height: 20px; border-radius: 50%; background: #000; }
.partner-row { display: flex; gap: 12px; align-items: center; }
.partner-row img { width: 44px; height: 44px; border-radius: 10px; flex: none; background: #000; padding: 2px; }
.prose .flag-img, h1 .flag-img, h3 .flag-img, .news-card .flag-img { height: .95em; width: auto; vertical-align: -.1em; margin: 0 .1em; border-radius: 2px; }


/* Резервная команда марки (вторая у McLaren и Mercedes-AMG) */
.tg-squad { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--border); color: var(--grey-2); }
.tg-squad.reserve { border-color: var(--cyan); color: var(--cyan); }

/* Зачёт: переключатель «Личный зачёт / Кубок команд» и таблица кубка */
.standings-switch { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.standings-switch a { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.standings-switch a:hover { border-color: var(--cyan); }
.standings-title { font-size: 1.3rem; margin: 28px 0 8px; scroll-margin-top: 120px; }
.standings-title:first-of-type { margin-top: 0; }
.table.cup .cup-team { display: inline-flex; gap: 10px; align-items: center; }
.table.cup .cup-team .tg-squad { margin-left: 0; }
