/* Палитра и типографика — по 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: 4px;
  --shadow: 0 10px 30px rgba(10, 0, 50, .12);
  --max: 1200px;
}

*, *::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(--navy);
  background: var(--white);
}
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(--white); border-bottom: 1px solid var(--light); position: sticky; top: 0; z-index: 50; }
header.site .container { display: flex; align-items: center; height: 72px; gap: 32px; }
.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: 26px; margin-left: auto; }
nav.main a { text-transform: uppercase; font-weight: 800; font-size: .82rem; letter-spacing: .06em; padding: 8px 0; 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(--navy); }

/* полоса ближайшей гонки, как на fiawec.com */
.next-strip { background: var(--white); border-bottom: 1px solid var(--light); }
.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(--navy); 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(--white); color: var(--navy); }

/* ---------- 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(--navy); }
.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: var(--navy); 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(--navy); }
.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(--white); 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(--light); background: #fff; }
.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(--light); background: #fff; 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(--navy); border: 1px solid var(--navy); }
.class-head { display: flex; align-items: center; gap: 12px; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 3px solid var(--navy); }
.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(--light); background: #fff; 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(--navy); background: #fff; border-radius: var(--radius); 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(--light); background: #fff; }
.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(--navy); }
.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(--light); background: #fff; padding: 24px; }
.panel h3 { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.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(--light); padding: 20px; background: #fff; 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: #fff; 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: #fff; 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(--light); background: #fff; 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), #fff 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: #fff; border: 1px solid var(--light); 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(--navy); 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: #fff; border: 2px solid var(--navy); 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; } }
