/* ── Design Tokens from Figma UI-kit ──────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Rubik:wght@400;500&family=Poppins:wght@600;700&display=swap');

:root {
  /* Colors */
  --color-black: #1D1D1D;
  --color-black-alt: #31353A;
  --color-blue: #00588D;
  --color-red: #EF403E;
  --color-gold: #E5AE52;
  --color-white: #FFFFFF;
  --color-grey-bg: #F3F3F3;
  --color-black-5: rgba(29, 29, 29, 0.05);
  --color-black-60: rgba(29, 29, 29, 0.6);
  --color-white-20: rgba(255, 255, 255, 0.2);

  /* Fonts */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Rubik', sans-serif;
  --font-button: 'Poppins', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --side-padding: 40px;
  --border-radius: 12px;
  --border-radius-btn: 100px;
  --section-gap: 20px;
  /* Шапка: высота строки + отступ под sticky-блоки (кабинет) */
  --site-header-height: 54px;
  --site-header-logo-w: 30px;
  --site-header-logo-h: 30px;
}

/* ── Reset & Base ─────────────────────────────────────────────────── */

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--color-black);
  background: var(--color-white);
}

body:not(.is-cabinet-page) {
  background: #494949;
}

body.is-cabinet-page {
  --max-width: 1920px;
  --side-padding: 16px;
}

a { color: var(--color-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-red); }

img, svg { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

/* ── Typography ───────────────────────────────────────────────────── */

h1, .h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 42px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

h2, .h2 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 36px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

h3, .h3 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.text-body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

/* ── Layout ───────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.section {
  padding: var(--section-gap) 0;
}

.section--grey { background: var(--color-grey-bg); }
.section--dark { background: var(--color-black-alt); color: var(--color-white); }
.section--dark a { color: var(--color-gold); }

.section__title {
  margin-bottom: 40px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ── Buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-button);
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--border-radius-btn);
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  white-space: nowrap;
}

.btn--sm {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  padding: 8px 20px;
}

.btn--md {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  padding: 16px 24px;
}

.btn--blue {
  background: var(--color-blue);
  color: var(--color-white);
}
.btn--blue:hover {
  background: transparent;
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.btn--red {
  background: var(--color-red);
  color: var(--color-white);
}
.btn--red:hover {
  background: transparent;
  border-color: var(--color-red);
  color: var(--color-red);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-white);
}
.btn--gold:hover {
  background: transparent;
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn--outline-white {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn--outline-white:hover {
  background: var(--color-white);
  color: var(--color-black);
}

/* ── Cards ────────────────────────────────────────────────────────── */

.card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 2px 2px 4px rgba(0,0,0,.06);
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  box-shadow: 4px 4px 16px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.card__body { padding: 24px; }
.card__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 12px;
  border-radius: var(--border-radius-btn);
  background: var(--color-black-5);
  color: var(--color-black-60);
  margin-bottom: 12px;
}

.card__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.card__text {
  font-size: 14px;
  color: var(--color-black-60);
  margin-bottom: 16px;
}

.card__meta {
  font-size: 12px;
  color: var(--color-black-60);
}

/* ── Public Header (Figma node 123:475) ───────────────────────────── */

.public-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #494949;
}

.public-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0;
  background: #494949;
}

.public-header__logo,
.public-header__nav a,
.public-header__icon,
.public-header__phone,
.public-header__cta,
.public-header__cabinet,
.public-header__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-white);
  background: #2A2929;
  text-decoration: none;
}

.public-header__logo {
  flex: 0 0 auto;
  height: 34px;
  padding: 2px 12px;
}

.public-header__logo img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.public-header__nav {
  display: flex;
  align-items: stretch;
  gap: 5px;
  flex: 0 1 auto;
}

.public-header__nav a {
  padding: 10px 20px;
  font-weight: 400;
  white-space: nowrap;
  transition: background .2s;
}

.public-header__nav .public-header__nav-cabinet {
  display: none;
}

.public-header__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}

.public-header__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.public-header__phone {
  flex: 0 0 auto;
  padding: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.public-header__cta {
  flex: 0 0 123px;
  width: 123px;
  gap: 10px;
  padding: 10px;
  font-weight: 400;
  white-space: nowrap;
}

.public-header__cta span {
  flex: 0 0 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.public-header__cta--apply span {
  background: #EF413E;
}

.public-header__cta--results {
  flex-basis: 155px;
  width: 155px;
}

.public-header__cta--results span {
  background: #E6AE52;
}

.public-header__cabinet {
  flex: 0 0 132px;
  width: 132px;
  padding: 10px 8px;
  font-weight: 700;
  white-space: nowrap;
  background: #E6AE52;
}

.public-header__nav a:hover,
.public-header__icon:hover,
.public-header__phone:hover,
.public-header__cta:hover {
  color: var(--color-white);
  background: #343232;
}

.public-header__cabinet:hover {
  color: var(--color-white);
  background: #E6AE52;
}

.public-header__burger {
  display: none;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 10px;
  border: 0;
  border-radius: 3px;
  background: #2A2929;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.public-header__burger span {
  display: block;
  width: 13px;
  height: 1px;
  border-radius: 1px;
  background: var(--color-white);
  transition: transform .2s, opacity .2s;
}

.public-header__burger.is-open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.public-header__burger.is-open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ── Home Hero (Figma node 2004:44) ───────────────────────────────── */

.home-page {
  background: #494949;
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding-bottom: 10px;
}

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

.home-hero {
  display: grid;
  grid-template-columns: 535fr 529fr;
  gap: 16px;
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 541px;
  margin: 0 auto;
  padding: 0 0 20px;
}

.home-hero__intro,
.home-hero__event {
  position: relative;
  min-height: 541px;
  overflow: hidden;
  border-radius: 5px;
}

.home-hero__intro {
  padding: 40px 24px 40px 30px;
  background:
    linear-gradient(0deg, rgba(42, 41, 41, 0.84), rgba(42, 41, 41, 0.84)),
    url("/local/templates/racing/assets/home/figma/hero-left-bg.png") center / cover no-repeat,
    #2A2929;
}

.home-hero__logo {
  width: 146px;
  height: 146px;
  border-radius: 50%;
  object-fit: cover;
}

.home-hero__title {
  position: absolute;
  top: 217px;
  left: 30px;
  width: min(481px, calc(100% - 54px));
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 43px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.home-hero__text {
  position: absolute;
  top: 386px;
  left: 30px;
  width: min(440px, calc(100% - 60px));
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.1;
  color: var(--color-white);
}

.home-hero__actions {
  position: absolute;
  left: 30px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.home-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 15px 30px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.home-hero__btn--red,
.home-hero__btn--red:hover {
  color: var(--color-white);
  background: #EF413E;
}

.home-hero__btn--gold,
.home-hero__btn--gold:hover {
  color: #32363A;
  background: #E6AE52;
}

.home-hero__event {
  background-color: #2A2929;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-hero__event-date,
.home-hero__event-title {
  position: absolute;
  bottom: 40px;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  color: var(--color-white);
}

.home-hero__event-date {
  left: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 102px;
  min-height: 52px;
  padding: 10px;
  text-align: left;
}

.home-hero__event-title {
  right: 30px;
  width: 312px;
  min-height: 52px;
  padding: 10px;
  text-align: right;
}

.home-hero__event-date::before,
.home-hero__event-date::after,
.home-hero__event-title::before,
.home-hero__event-title::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--color-white);
}

.home-hero__event-date::before,
.home-hero__event-title::before {
  top: 0;
  border-top: 1px solid;
}

.home-hero__event-date::after,
.home-hero__event-title::after {
  bottom: 0;
  border-bottom: 1px solid;
}

.home-hero__event-date::before,
.home-hero__event-date::after {
  left: 0;
  border-left: 1px solid;
}

.home-hero__event-title::before,
.home-hero__event-title::after {
  right: 0;
  border-right: 1px solid;
}

/* ── Home sections (Figma node 123:474) ───────────────────────────── */

.home-page > section {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}
@media (min-width: 1080px) {
  .home-stage {
    margin-top: -85px !important;
  }

}
.home-stage {

  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 5px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-stage__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 520px;
  padding: 70px 24px 40px;
  text-align: center;
}

.home-stage__title {
  margin: 0 0 185px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 43px;
  line-height: 0.9;
  color: var(--color-white);
}

.home-stage__text {
  margin: 0 0 16px;
  max-width: 499px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-white);
}

.home-stage__text--center {
  max-width: 436px;
  text-align: center;
}

.home-stage__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 347px;
  min-height: 52px;
  margin-top: 31px;
  padding: 10px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-white);
  background: #EF413E;
  text-decoration: none;
}

.home-stage__btn:hover {
  color: var(--color-white);
}

.home-calendar {
  padding: 10px 0 0;
}

.home-calendar__head {
  display: grid;
  grid-template-columns: 322px 1fr;
  gap: 345px;
  align-items: end;
  margin-bottom: 29px;
}

.home-calendar__title,
.home-rating__title,
.home-participants__title,
.home-news__title,
.home-committee__title,
.home-scoreboard__title,
.home-cta__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 43px;
  line-height: 0.9;
  color: var(--color-white);
}

.home-calendar__lead,
.home-rating__lead,
.home-participants__lead,
.home-news__lead,
.home-committee__lead,
.home-cta__lead {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
}

.home-calendar__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-event-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 271px;
  padding: 20px;
  border-radius: 5px;
}

.home-event-card--dark {
  background:
    linear-gradient(0deg, #2A2929, #2A2929),
    url("/local/templates/racing/assets/home/figma/hero-left-bg.png") center / cover no-repeat;
}

.home-event-card--blue {
  background:
    linear-gradient(0deg, #00588D, #00588D),
    url("/local/templates/racing/assets/home/figma/hero-left-bg.png") center / cover no-repeat;
}

.home-event-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.home-event-card__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  line-height: 0.9;
  color: var(--color-white);
}

.home-event-card__row--location {
  max-width: 250px;
}

.home-event-card__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-event-card__name {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  color: var(--color-white);
}

.home-event-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.home-event-card__desc {
  margin: 0;
  max-width: 284px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.8);
}

.home-event-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 10px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.home-event-card__btn--red,
.home-event-card__btn--red:hover {
  color: var(--color-white);
  background: #EF413E;
}

.home-event-card__btn--white,
.home-event-card__btn--white:hover {
  color: #00588D;
  background: var(--color-white);
}

.home-calendar__more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.home-calendar__more,
.home-participants__more,
.home-news__more,
.home-committee__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 347px;
  min-height: 52px;
  padding: 10px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: #2A2929;
  background: #E6AE52;
  text-decoration: none;
}

.home-calendar__more:hover,
.home-participants__more:hover,
.home-news__more:hover,
.home-committee__more:hover {
  color: #2A2929;
}

.home-committee__more {
  min-width: 180px;
}

.home-news__more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.home-scoreboard {
  display: grid;
  grid-template-columns: 535fr 535fr;
  gap: 10px;
  min-height: 444px;
}

.home-scoreboard__panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 70px 40px;
  border-radius: 5px;
  background:
    linear-gradient(0deg, #2A2929, #2A2929),
    url("/local/templates/racing/assets/home/figma/hero-left-bg.png") center / cover no-repeat;
}

.home-scoreboard__text {
  margin: 0;
  max-width: 368px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
}

.home-scoreboard__btn {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  align-self: flex-start;
  min-width: 159px;
  min-height: 36px;
  padding: 10px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: #2A2929;
  background: #E6AE52;
  text-decoration: none;
}

.home-scoreboard__btn:hover {
  color: #2A2929;
}

.home-scoreboard__media {
  border-radius: 5px;
  background-color: #2A2929;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-rating__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 58px;
}

.home-rating__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 674px;
}

.home-rating__cta {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 222px;
  min-height: 36px;
  padding: 10px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-white);
  background: #EF413E;
  text-decoration: none;
  white-space: nowrap;
}

.home-rating__cta:hover {
  color: var(--color-white);
}

.home-rating__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-rating-card {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 20px;
  border-radius: 5px;
  background:
    linear-gradient(0deg, #00588D, #00588D),
    url("/local/templates/racing/assets/home/figma/hero-left-bg.png") center / cover no-repeat;
}

.home-rating-card__icon {
  width: 44px;
  height: 44px;
}

.home-rating-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  color: var(--color-white);
}

.home-rating-card__text {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.8);
}

.home-participants {
  position: relative;
  padding-bottom: 70px;
}

.home-participants__title {
  margin-bottom: 20px;
}

.home-participants__lead {
  max-width: 542px;
  margin-bottom: 38px;
}

.home-participants__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-participants-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-radius: 5px;
  background:
    linear-gradient(0deg, #2A2929, #2A2929),
    url("/local/templates/racing/assets/home/figma/hero-left-bg.png") center / cover no-repeat;
}

.home-participants-card__num {
  flex: 0 0 50px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  color: #EF413E;
}

.home-participants-card__text {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  color: var(--color-white);
}

.home-participants__more-wrap {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.home-news__head {
  display: grid;
  grid-template-columns: 203px 1fr;
  gap: 342px;
  align-items: start;
  margin-bottom: 40px;
}

.home-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-news-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 5px;
  overflow: hidden;
  background:
    linear-gradient(0deg, #2A2929, #2A2929),
    url("/local/templates/racing/assets/home/figma/hero-left-bg.png") center / cover no-repeat;
}

.home-news-card__image {
  height: 235px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-news-card__image--announces {
  background-image: url("/local/templates/racing/assets/home/figma/news-announces.png");
}

.home-news-card__image--regulations {
  background-image: url("/local/templates/racing/assets/home/figma/news-regulations-18eed6.png");
}

.home-news-card__image--results {
  background-image: url("/local/templates/racing/assets/home/figma/news-results-68b040.png");
}

.home-news-card__body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 20px 20px;
}

.home-news-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  color: var(--color-white);
}

.home-news-card__text {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.8);
}

.home-news-card__link {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  color: #E6AE52;
  text-decoration: none;
}

.home-news-card__link:hover {
  color: #E6AE52;
}

.news-page {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 60px;
}

.news-page__head {
  margin-bottom: 40px;
}

.news-page__title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 43px;
  line-height: 0.9;
  color: var(--color-white);
}

.news-page__lead,
.news-page__empty {
  margin: 0;
  max-width: 640px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}

.news-filter__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  text-decoration: none;
  transition: color .2s, background .2s, border-color .2s;
}

.news-filter__item:hover {
  color: var(--color-white);
  border-color: #E6AE52;
}

.news-filter__item--active {
  color: #2A2929;
  background: #E6AE52;
  border-color: #E6AE52;
}

.news-filter__item--active:hover {
  color: #2A2929;
}

.news-list__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.news-card__date {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
}

.news-detail__date {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
}

.home-news-card__title a {
  color: inherit;
  text-decoration: none;
}

.home-news-card__title a:hover {
  color: #E6AE52;
}

.news-detail {
  max-width: 840px;
}

.news-detail__back {
  display: inline-block;
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.news-detail__back:hover {
  color: #E6AE52;
}

.news-detail__title {
  margin: 0 0 24px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 43px;
  line-height: 0.95;
  color: var(--color-white);
}

.news-detail__image {
  height: 462px;
  margin-bottom: 24px;
  border-radius: 5px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.news-detail__text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-white);
}

.news-detail--empty .news-detail__title {
  font-size: 34px;
}

.events-page {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 60px;
}

.events-page__head {
  margin-bottom: 40px;
}

.events-page__title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 43px;
  line-height: 0.9;
  color: var(--color-white);
}

.events-page__lead,
.events-page__empty {
  margin: 0;
  max-width: 640px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
}

.events-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}

.events-filter__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  text-decoration: none;
  transition: color .2s, background .2s, border-color .2s;
}

.events-filter__item:hover {
  color: var(--color-white);
  border-color: #E6AE52;
}

.events-filter__item--active {
  color: #2A2929;
  background: #E6AE52;
  border-color: #E6AE52;
}

.events-filter__item--active:hover {
  color: #2A2929;
}

.results-page {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 60px;
}

.results-page__head {
  margin-bottom: 40px;
}

.results-page__title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 43px;
  line-height: 0.9;
  color: var(--color-white);
}

.results-page__lead,
.results-page__empty {
  margin: 0;
  max-width: 640px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
}

.results-page__empty {
  margin-top: 8px;
}

.results-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: flex-end;
  margin: 0 0 32px;
}

.results-filter__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: min(100%, 280px);
}

.results-filter__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
}

.results-filter__select {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.25);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #E6AE52 50%),
    linear-gradient(135deg, #E6AE52 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.results-filter__select:focus {
  outline: none;
  border-color: #E6AE52;
}

.results-filter__select option {
  color: #2A2929;
  background: #fff;
}

.results-filter__submit {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #E6AE52;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: #2A2929;
  background: #E6AE52;
  cursor: pointer;
}

.results-table-wrap {
  margin-top: 8px;
}

.results-table__title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  color: var(--color-white);
}

.results-table__scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.results-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
}

.results-table th,
.results-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  white-space: nowrap;
}

.results-table th {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.2);
}

.results-table tbody tr:hover td {
  background: rgba(230, 174, 82, 0.08);
}

.results-table__place,
.results-table__total {
  font-weight: 700;
  color: #E6AE52;
}

.events-card__status {
  margin: 8px 0 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.2;
  color: #E6AE52;
}

.events-card__athlete-status {
  margin: 8px 0 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
}

.events-card__athlete-status--success {
  color: #7DDA7F;
}

.events-card__athlete-status--danger {
  color: #FF7B79;
}

.events-card__athlete-status--warning {
  color: #E6AE52;
}

.events-card__athlete-status--info {
  color: #7EC8FF;
}

.events-card__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
}

.home-event-card__name a {
  color: inherit;
  text-decoration: none;
}

.home-event-card__name a:hover {
  color: #E6AE52;
}

.event-detail {
  max-width: 840px;
}

.event-detail__back {
  display: inline-block;
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.event-detail__back:hover {
  color: #E6AE52;
}

.event-detail__date,
.event-detail__status,
.event-detail__location {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
}

.event-detail__status {
  color: #E6AE52;
}

.event-detail__title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 43px;
  line-height: 0.95;
  color: var(--color-white);
}

.event-detail__text {
  margin: 0 0 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-white);
}

.event-detail__apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 222px;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-white);
  background: #EF413E;
  text-decoration: none;
}

.event-detail__apply:hover {
  color: var(--color-white);
}

.event-detail--empty .event-detail__title {
  font-size: 34px;
}

.home-committee {
  display: grid;
  grid-template-columns: 535fr 545fr;
  grid-template-areas:
    "media intro"
    "media cards";
  gap: 10px;
  align-items: start;
}

.home-committee__media {
  grid-area: media;
  min-height: 653px;
  border-radius: 5px;
  background-color: #2A2929;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-committee__intro {
  grid-area: intro;
}

.home-committee__cards {
  grid-area: cards;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-committee__title {
  margin-bottom: 10px;
}

.home-committee__lead {
  margin-bottom: 20px;
  max-width: 472px;
}

.home-committee-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border-radius: 5px;
  background:
    linear-gradient(0deg, #2A2929, #2A2929),
    url("/local/templates/racing/assets/home/figma/hero-left-bg.png") center / cover no-repeat;
}

.home-committee-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  color: var(--color-white);
}

.home-committee-card__text {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
}

.home-cta {
  position: relative;
  min-height: 404px;
  overflow: hidden;
  border-radius: 5px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 423px;
  gap: 102px;
  align-items: center;
  min-height: 404px;
  padding: 49px 45px;
}

.home-cta__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.home-cta__title {
  max-width: 430px;
}

.home-cta__lead {
  max-width: 299px;
  color: var(--color-white);
}

.home-cta__form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.home-cta__field input {
  width: 100%;
  min-height: 52px;
  padding: 10px 20px;
  border: 0;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: rgba(50, 54, 58, 0.5);
  background: var(--color-white);
}

.home-cta__field input::placeholder {
  color: rgba(50, 54, 58, 0.5);
}

.home-cta__submit {
  min-height: 52px;
  border: 0;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-white);
  background: #EF413E;
  cursor: pointer;
}

/* ── Event page (Figma node 167:34) ───────────────────────────────── */

.event-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
  background: #494949;
}

.event-page > section {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.event-hero {
  display: grid;
  grid-template-columns: 535fr 529fr;
  gap: 16px;
  min-height: 541px;
}

.event-hero__intro,
.event-hero__aside {
  position: relative;
  min-height: 541px;
  overflow: hidden;
  border-radius: 5px;
}

.event-hero__intro {
  padding: 40px 24px 40px 30px;
  background: #2A2929;
}

.event-hero__logo {
  width: 146px;
  height: 146px;
  border-radius: 50%;
  object-fit: cover;
}

.event-hero__title {
  position: absolute;
  top: 217px;
  left: 30px;
  width: min(505px, calc(100% - 54px));
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 35px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.event-hero__address {
  position: absolute;
  top: 386px;
  left: 30px;
  width: min(440px, calc(100% - 60px));
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.1;
  color: var(--color-white);
}

.event-hero__actions {
  position: absolute;
  left: 30px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.event-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 15px 30px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.event-hero__btn--red,
.event-hero__btn--red:hover {
  color: var(--color-white);
  background: #EF413E;
}

.event-hero__btn--gold,
.event-hero__btn--gold:hover {
  color: #32363A;
  background: #E6AE52;
}

.event-hero__aside {
  background: #2A2929;
}

.event-hero__date,
.event-hero__aside-title {
  position: absolute;
  bottom: 40px;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  color: var(--color-white);
}

.event-hero__date {
  left: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 102px;
  min-height: 52px;
  padding: 10px;
}

.event-hero__aside-title {
  right: 30px;
  width: 312px;
  min-height: 52px;
  padding: 10px;
  text-align: right;
}

.event-hero__date::before,
.event-hero__date::after,
.event-hero__aside-title::before,
.event-hero__aside-title::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--color-white);
}

.event-hero__date::before,
.event-hero__aside-title::before {
  top: 0;
  border-top: 1px solid;
}

.event-hero__date::after,
.event-hero__aside-title::after {
  bottom: 0;
  border-bottom: 1px solid;
}

.event-hero__date::before,
.event-hero__date::after {
  left: 0;
  border-left: 1px solid;
}

.event-hero__aside-title::before,
.event-hero__aside-title::after {
  right: 0;
  border-right: 1px solid;
}

.event-about {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 5px;
  background: #2A2929;
}

.event-about__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 520px;
  padding: 70px 24px 40px;
  text-align: center;
}

.event-about__title,
.event-banner__title,
.event-participation__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 43px;
  line-height: 0.9;
  color: var(--color-white);
}

.event-about__text,
.event-banner__text,
.event-participation__text,
.event-split__text {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-white);
}

.event-about__text {
  max-width: 507px;
}

.event-about__text--center {
  max-width: 436px;
  text-align: center;
}

.event-about__title {
  margin-bottom: 185px;
}

.event-about__text + .event-about__text {
  margin-top: 16px;
}

.event-about__btn,
.event-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 347px;
  min-height: 52px;
  margin-top: 31px;
  padding: 10px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-white);
  background: #EF413E;
  text-decoration: none;
}

.event-about__btn:hover,
.event-banner__btn:hover {
  color: var(--color-white);
}

.event-participation {
  border-radius: 5px;
  background: #00588D;
}

.event-participation__inner {
  display: grid;
  grid-template-columns: 1fr 423px;
  gap: 95px;
  align-items: center;
  min-height: 170px;
  padding: 49px 45px;
}

.event-participation__copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 430px;
}

.event-participation__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-white);
  background: #EF413E;
  text-decoration: none;
}

.event-participation__btn:hover {
  color: var(--color-white);
}

.event-split {
  display: grid;
  grid-template-columns: 535fr 535fr;
  gap: 10px;
  min-height: 444px;
}

.event-split--timing {
  min-height: 247px;
}

.event-split--protocols {
  min-height: 386px;
}

.event-split--materials {
  min-height: 296px;
}

.event-materials-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-materials {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 8px 0 0;
}

.event-materials__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.event-materials__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 5px;
  background: #2A2929;
}

.event-materials__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.event-materials__thumb:hover img {
  transform: scale(1.03);
}

.event-materials__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-materials__subtitle {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  color: var(--color-white);
}

.event-materials__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-materials__links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  color: #E6AE52;
  text-decoration: none;
}

.event-materials__links a:hover {
  text-decoration: underline;
}

.event-split__panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 70px 40px;
  border-radius: 5px;
}

.event-split__panel--dark {
  background:
    linear-gradient(0deg, #2A2929, #2A2929),
    url("/local/templates/racing/assets/events/figma/event-hero-left-bg.png") center / cover no-repeat;
}

.event-split__panel--blue {
  background:
    linear-gradient(0deg, #00588D, #00588D),
    url("/local/templates/racing/assets/events/figma/event-hero-left-bg.png") center / cover no-repeat;
}

.event-split__panel--compact {
  justify-content: center;
}

.event-split__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 43px;
  line-height: 0.9;
  color: var(--color-white);
}

.event-split__text {
  max-width: 368px;
  color: rgba(255, 255, 255, 0.8);
}

.event-split__btn {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  align-self: flex-start;
  min-width: 159px;
  min-height: 36px;
  padding: 10px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: #2A2929;
  background: #E6AE52;
  text-decoration: none;
}

.event-split__btn:hover {
  color: #2A2929;
}

.event-split__media {
  border-radius: 5px;
  background-color: #2A2929;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.event-banner {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border-radius: 5px;
  background: #2A2929;
}

.event-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 410px;
  padding: 70px 24px 40px;
  text-align: center;
}

.event-banner__title {
  margin-bottom: 120px;
}

.event-banner__text {
  max-width: 436px;
  text-align: center;
}

.event-banner__btn {
  margin-top: 31px;
  background: #00588D;
}

.event-banner__btn:hover {
  color: var(--color-white);
}

/* ── Documents page (Figma node 180:38) ──────────────────────────── */

.docs-page {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding-bottom: 50px;
  background: #494949;
}

.docs-page > section {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.docs-hero {
  display: grid;
  grid-template-columns: 535fr 529fr;
  gap: 16px;
  min-height: 467px;
}

.docs-hero__intro,
.docs-hero__media {
  position: relative;
  min-height: 467px;
  overflow: hidden;
  border-radius: 5px;
}

.docs-hero__intro {
  padding: 40px 24px 40px 30px;
  background:
    linear-gradient(0deg, rgba(42, 41, 41, 0.84), rgba(42, 41, 41, 0.84)),
    url("/local/templates/racing/assets/home/figma/hero-left-bg.png") center / cover no-repeat,
    #2A2929;
}

.docs-hero__logo {
  width: 146px;
  height: 146px;
  border-radius: 50%;
  object-fit: cover;
}

.docs-hero__title {
  position: absolute;
  top: 260px;
  left: 30px;
  width: min(505px, calc(100% - 54px));
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.docs-hero__media {
  background-color: #2A2929;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.docs-hero__frame {
  position: absolute;
  left: 30px;
  bottom: 35px;
  width: 102px;
  height: 45px;
}

.docs-hero__frame::before,
.docs-hero__frame::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--color-white);
}

.docs-hero__frame::before {
  top: 0;
  left: 0;
  border-top: 1px solid;
  border-left: 1px solid;
}

.docs-hero__frame::after {
  right: 0;
  bottom: 0;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.docs-cards {
  display: grid;
  grid-template-columns: 347fr 346fr 347fr;
  gap: 20px;
  align-items: stretch;
}

.docs-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 279px;
  padding: 30px 20px;
  border-radius: 5px;
}

.docs-card--dark {
  gap: 100px;
  background:
    linear-gradient(0deg, #2A2929, #2A2929),
    url("/local/templates/racing/assets/documents/figma/docs-hero-left-bg.png") center / cover no-repeat;
}

.docs-card--blue {
  gap: 40px;
  background:
    linear-gradient(0deg, #00588D, #00588D),
    url("/local/templates/racing/assets/documents/figma/docs-hero-left-bg.png") center / cover no-repeat;
}

.docs-card__body {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.docs-card__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 30px;
  line-height: 0.9;
  color: var(--color-white);
}

.docs-card__text {
  margin: 0;
  max-width: 294px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
}

.docs-card--blue .docs-card__text {
  max-width: 285px;
  line-height: 1;
}

.docs-card__btn {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  align-self: flex-start;
  min-width: 159px;
  min-height: 36px;
  padding: 10px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: #2A2929;
  background: #E6AE52;
  text-decoration: none;
}

.docs-card__btn:hover {
  color: #2A2929;
}

.docs-card__empty {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
}

.docs-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.docs-doc-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.docs-doc-item__meta {
  min-width: 0;
}

.docs-doc-item__name {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-white);
}

.docs-doc-item__date {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.7);
}

.docs-doc-item__view {
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
}

.docs-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.docs-viewer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.docs-viewer__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(960px, calc(100% - 32px));
  height: min(90vh, 860px);
  margin: 5vh auto 0;
  border-radius: 5px;
  overflow: hidden;
  background: #2A2929;
}

.docs-viewer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #1D1D1D;
}

.docs-viewer__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  color: var(--color-white);
}

.docs-viewer__close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--color-white);
  cursor: pointer;
}

.docs-viewer__iframe {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: #fff;
}

.docs-viewer__actions {
  padding: 12px 20px 16px;
  background: #1D1D1D;
}

.docs-viewer__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 159px;
  min-height: 36px;
  padding: 10px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: #2A2929;
  background: #E6AE52;
  text-decoration: none;
}

body.is-docs-viewer-open {
  overflow: hidden;
}

.docs-footer {
  width: 100%;
  padding: 0 0 20px;
  background: #494949;
}

.docs-footer__inner {
  position: relative;
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 281px;
  margin: 0 auto;
  border-radius: 5px;
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(42, 41, 41, 0.84), rgba(42, 41, 41, 0.84)),
    url("/local/templates/racing/assets/documents/figma/docs-hero-left-bg.png") center / cover no-repeat,
    #2A2929;
}

.docs-footer__logo,
.docs-footer__col,
.docs-footer__copyright,
.docs-footer__privacy,
.docs-footer__developer {
  position: absolute;
  z-index: 1;
}

.docs-footer__logo {
  top: 40px;
  left: 40px;
  width: 97px;
  height: 97px;
}

.docs-footer__logo img {
  width: 97px;
  height: 97px;
  border-radius: 50%;
  object-fit: cover;
}

.docs-footer__col--nav {
  top: 42px;
  left: 261px;
}

.docs-footer__col--participants {
  top: 44px;
  left: 435px;
}

.docs-footer__col--contacts {
  top: 44px;
  right: 40px;
  width: 217px;
}

.docs-footer__label {
  margin: 0 0 15px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.docs-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.docs-footer__links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  color: var(--color-white);
  text-decoration: none;
}

.docs-footer__links a:hover {
  color: var(--color-white);
}

.docs-footer__org {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  color: var(--color-white);
}

.docs-footer__phone {
  display: block;
  margin: 0 0 15px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  color: var(--color-white);
  text-decoration: none;
}

.docs-footer__phone:hover {
  color: var(--color-white);
}

.docs-footer__socials {
  display: flex;
  gap: 5px;
}

.docs-footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 3px;
  background: #32363A;
}

.docs-footer__copyright,
.docs-footer__privacy,
.docs-footer__developer {
  bottom: 40px;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.docs-footer__copyright {
  left: 40px;
}

.docs-footer__privacy {
  left: 527px;
}

.docs-footer__developer {
  right: 40px;
}

.docs-footer__privacy:hover,
.docs-footer__developer:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero {
  background: var(--color-black-alt);
  color: var(--color-white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero__content { position: relative; z-index: 1; max-width: 640px; }

.hero__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,.75);
  margin-bottom: 32px;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Next Event Widget ────────────────────────────────────────────── */

.next-event {
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: var(--border-radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.next-event__info { flex: 1 1 400px; }
.next-event__label {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .7;
  margin-bottom: 8px;
}

.next-event__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.next-event__meta {
  font-size: 16px;
  opacity: .85;
  margin-bottom: 24px;
}

/* ── Rating Table ─────────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--color-black-5);
  color: var(--color-black-60);
  padding: 12px 16px;
  text-align: left;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-black-5);
}

.data-table tbody tr:hover { background: var(--color-black-5); }

.timing-edit-table .timing-edit__athlete {
  min-width: 140px;
  max-width: 240px;
  font-weight: 600;
  line-height: 1.35;
}

.timing-edit-table .timing-edit__class .form-input {
  width: 100%;
  min-width: 200px;
  max-width: 360px;
}

.timing-edit-table .timing-edit__run {
  display: grid;
  gap: 6px;
  min-width: 84px;
}

.timing-edit-table .timing-edit__stack {
  display: grid;
  gap: 6px;
  min-width: 110px;
}

.timing-edit-table .timing-edit__field-label {
  font-size: 10px;
  line-height: 1;
  color: var(--color-black-60);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.timing-edit-table .timing-edit__num .form-input {
  width: 88px;
}

.timing-edit-table .timing-edit__actions {
  white-space: nowrap;
  vertical-align: middle;
}

.cabinet-queue-table {
  width: 100%;
}

.cabinet-queue-table th,
.cabinet-queue-table td {
  padding: 10px 12px;
  vertical-align: middle;
}

.cabinet-queue-athlete__name {
  font-weight: 700;
  font-size: 16px;
}

.cabinet-queue-form {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  white-space: nowrap;
}

.cabinet-queue-actions {
  width: 1%;
  white-space: nowrap;
}

.cabinet-queue-number {
  width: 88px;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.cabinet-queue-time {
  width: 110px;
  white-space: nowrap;
}

.cabinet-queue-time .form-input {
  width: 96px;
}

.cabinet-queue-meta {
  max-width: 120px;
  font-size: 13px;
  color: var(--color-black-60);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cabinet-queue-meta.is-expanded {
  max-width: 280px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.cabinet-queue-abbrev {
  display: inline;
  max-width: 100%;
}

.cabinet-queue-abbrev--toggle {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  max-width: 100%;
}

.cabinet-queue-abbrev--toggle:hover {
  color: var(--color-black);
}

.cabinet-queue-abbrev--toggle.is-expanded .cabinet-queue-abbrev__text {
  white-space: normal;
}

.cabinet-queue-decision-form {
  display: inline-block;
}

.cabinet-queue-decision {
  appearance: none;
  -webkit-appearance: none;
  min-width: 118px;
  max-width: 140px;
  padding-right: 28px;
  text-align: center;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23333' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
}

.cabinet-queue-decision.btn--blue {
  color: var(--color-white);
}

.cabinet-queue-decision.btn--red {
  color: var(--color-white);
}

.cab-event-title-cell {
  width: 260px;
  max-width: 260px;
  white-space: normal;
}

.cab-event-title-link {
  display: -webkit-box;
  line-height: 1.35;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  -webkit-line-clamp: 3;
}

.cab-event-place-cell {
  width: 220px;
  max-width: 220px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.athlete-event-apply-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* ── Document List ────────────────────────────────────────────────── */

.doc-list__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-black-5);
}

.doc-list__icon {
  width: 40px;
  height: 40px;
  background: var(--color-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
}

.doc-list__info { flex: 1; }
.doc-list__title { font-family: var(--font-heading); font-weight: 900; font-size: 16px; margin-bottom: 2px; }
.doc-list__meta { font-size: 12px; color: var(--color-black-60); }

.committee-page {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 60px;
}

.committee-page__head {
  margin-bottom: 40px;
}

.committee-page__title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 43px;
  line-height: 0.9;
  color: var(--color-white);
}

.committee-page__lead,
.committee-page__text,
.committee-page__empty {
  margin: 0;
  max-width: 720px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.8);
}

.committee-page__text {
  margin-top: 16px;
}

.committee-page__subtitle {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  color: var(--color-white);
}

.committee-contacts {
  margin-bottom: 48px;
}

.committee-contacts__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.committee-contacts__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.committee-contacts__label {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.55);
}

.committee-contacts__value {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  color: #E6AE52;
  text-decoration: none;
}

a.committee-contacts__value:hover {
  text-decoration: underline;
}

.committee-members__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.committee-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px 20px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.22);
}

.committee-member__photo {
  width: 96px;
  height: 96px;
  margin-bottom: 8px;
  border-radius: 50%;
  object-fit: cover;
  background: #00588D;
}

.committee-member__photo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  color: var(--color-white);
}

.committee-member__name {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.15;
  color: var(--color-white);
}

.committee-member__position {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.7);
}

.committee-member__contact {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.25;
  color: #E6AE52;
  text-decoration: none;
}

.committee-member__contact:hover {
  text-decoration: underline;
}

/* ── Member Cards ─────────────────────────────────────────────────── */

.member {
  text-align: center;
  padding: 32px 16px;
}

.member__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-blue);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.member__name { font-family: var(--font-heading); font-weight: 900; font-size: 16px; margin-bottom: 4px; }
.member__position { font-size: 13px; color: var(--color-black-60); }

/* ── Public Footer (Figma node 2004:43) ───────────────────────────── */

.public-footer {
  width: 100%;
  padding: 20px 0;
  background: #494949;
}

.public-footer__inner {
  position: relative;
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 281px;
  margin: 0 auto;
  border-radius: 5px;
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(42, 41, 41, 0.88), rgba(42, 41, 41, 0.88)),
    #2A2929;
}

.public-footer__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 78% 34%, rgba(230, 174, 82, 0.08), transparent 34%);
  pointer-events: none;
}

.public-footer__logo,
.public-footer__nav,
.public-footer__contacts,
.public-footer__privacy,
.public-footer__developer {
  position: absolute;
  z-index: 1;
}

.public-footer__logo {
  top: 40px;
  left: 40px;
  width: 97px;
  height: 97px;
  line-height: 0;
}

.public-footer__logo img {
  width: 97px;
  height: 97px;
  border-radius: 50%;
  object-fit: cover;
}

.public-footer__nav {
  top: 40px;
  left: 313px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.public-footer__nav a,
.public-footer__privacy,
.public-footer__developer {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.2;
  color: var(--color-white);
  text-decoration: none;
}

.public-footer__nav a:hover,
.public-footer__privacy:hover,
.public-footer__developer:hover {
  color: var(--color-white);
}

.public-footer__contacts {
  top: 40px;
  right: 40px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 10px 5px;
}

.public-footer__phone {
  grid-column: 1 / -1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 4px 0;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  color: var(--color-white);
  text-decoration: none;
}

.public-footer__socials {
  grid-column: 2 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.public-footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 3px;
  color: var(--color-white);
  background: #32363A;
  text-decoration: none;
}

.public-footer__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.public-footer__privacy,
.public-footer__developer {
  bottom: 40px;
  color: rgba(255, 255, 255, 0.5);
}

.public-footer__privacy {
  left: 40px;
}

.public-footer__developer {
  right: 40px;
}

/* ── Scoreboard (Live) ────────────────────────────────────────────── */

.scoreboard {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--border-radius);
  padding: 32px;
}

.scoreboard__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-red);
  margin-bottom: 16px;
}

.scoreboard__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

/* ── Media Gallery ────────────────────────────────────────────────── */

.media-card { position: relative; border-radius: var(--border-radius); overflow: hidden; aspect-ratio: 16/9; background: var(--color-black-5); }
.media-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: var(--color-white);
}

.media-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 24px;
}

/* ── Auth Page ─────────────────────────────────────────────────────── */

.auth-page { display: flex; justify-content: center; }

.auth-box {
  width: 100%;
  max-width: 480px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  padding: 48px 40px;
}

.auth-box__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 28px;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.auth-box__subtitle {
  font-size: 14px;
  color: var(--color-black-60);
  margin-bottom: 32px;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--color-black-5);
}

.auth-tabs a {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 14px;
  color: var(--color-black-60);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: .2s;
}

.auth-tabs a:hover { color: var(--color-black); }
.auth-tabs a.is-active { color: var(--color-blue); border-bottom-color: var(--color-blue); }

.auth-status {
  text-align: center;
  padding: 40px 0;
}

.auth-status__name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 22px;
  margin: 12px 0 24px;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field__label {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 13px;
  color: var(--color-black);
  letter-spacing: -0.02em;
}

.auth-field__req {
  color: var(--color-red);
}

.auth-field__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--color-black-5);
  border-radius: 10px;
  background: var(--color-white);
  color: var(--color-black);
  transition: border-color .2s, box-shadow .2s;
}

.auth-field__input:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0, 88, 141, 0.12);
}

.auth-field__textarea {
  min-height: 100px;
  resize: vertical;
}

.auth-field__input--captcha {
  max-width: 220px;
  margin-top: 8px;
}

.register-form__actions {
  margin-top: 8px;
}

.register-form__submit {
  width: 100%;
  border: none;
  cursor: pointer;
}

.register-form .alert {
  margin-bottom: 0;
}

/* ── 404 / «в разработке» ───────────────────────────────────────── */

.page-404 {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.page-404__code {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-blue);
  opacity: 0.35;
  margin-bottom: 8px;
}

.page-404__text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-black-60);
  margin: 0 0 28px;
}

.page-404__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/*
 * bitrix:main.auth.form — актуальная вёрстка: .bx-authform-* без .bx-auth.
 * Перекрываем .btn.btn-primary из ядра/Bootstrap (часто грузится в ShowHead).
 */
.auth-box form[name="form_auth"] input[type="submit"].btn.btn-primary,
.auth-box form[name="form_auth"] input[type="submit"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-button) !important;
  font-weight: 600 !important;
  border: 1px solid transparent !important;
  border-radius: var(--border-radius-btn) !important;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px !important;
  line-height: 1.4 !important;
  letter-spacing: -0.02em;
  padding: 8px 20px !important;
  background: var(--color-blue) !important;
  color: var(--color-white) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  min-height: 0;
  width: auto !important;
  vertical-align: middle;
}

.auth-box form[name="form_auth"] input[type="submit"].btn.btn-primary:hover,
.auth-box form[name="form_auth"] input[type="submit"]:hover {
  background: transparent !important;
  border-color: var(--color-blue) !important;
  color: var(--color-blue) !important;
}

/* Старый шаблон с .bx-auth / таблицей */
.auth-box .bx-auth .authorize-submit-cell input[type="submit"],
.auth-box .bx-auth input[type="submit"].btn-primary,
.auth-box .bx-auth input[type="submit"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-family: var(--font-button) !important;
  font-weight: 600 !important;
  border: 1px solid transparent !important;
  border-radius: var(--border-radius-btn) !important;
  font-size: 14px !important;
  padding: 8px 20px !important;
  background: var(--color-blue) !important;
  color: var(--color-white) !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.auth-box .bx-auth .authorize-submit-cell input[type="submit"]:hover,
.auth-box .bx-auth input[type="submit"]:hover {
  background: transparent !important;
  border-color: var(--color-blue) !important;
  color: var(--color-blue) !important;
}

/* ── Cabinet Layout ───────────────────────────────────────────────── */

.cab-layout {
  display: grid;
  grid-template-columns: min-content minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.cab-sidebar {
  position: sticky;
  top: calc(var(--site-header-height) + 16px);
  width: 240px;
}

.cab-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cab-sidebar__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 13px;
  color: var(--color-black);
  transition: .2s;
}

.cab-sidebar__icon {
  display: inline-flex;
  width: 20px;
  min-width: 20px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.cab-sidebar__label {
  max-width: 180px;
  opacity: 1;
  overflow: hidden;
  white-space: nowrap;
}

.cab-sidebar__link:hover { background: var(--color-black-5); color: var(--color-blue); }
.cab-sidebar__link.is-active { background: var(--color-blue); color: var(--color-white); }

.cab-sidebar__logout {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-black-5);
}

.cab-switcher {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-black-5);
}

.cab-switcher__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-black-60);
  margin-bottom: 6px;
}

.cab-switcher__select {
  width: 100%;
  padding: 8px 10px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
}

.cab-main {
  min-width: 0;
  width: 100%;
}

.cab-page-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.cab-breadcrumb {
  font-size: 13px;
  color: var(--color-black-60);
  margin-bottom: 16px;
}

.cab-breadcrumb a { color: var(--color-blue); }

/* ── Alerts ───────────────────────────────────────────────────────── */

.alert {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert--ok { background: rgba(76,175,80,.1); color: #2e7d32; }
.alert--error { background: rgba(239,64,62,.1); color: var(--color-red); }
.alert--warning { background: rgba(229,174,82,.1); color: #b8860b; }
.alert--info { background: rgba(0,88,141,.08); color: var(--color-blue); }

/* ── Forms ────────────────────────────────────────────────────────── */

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-black-60);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  border: 1px solid rgba(29,29,29,.15);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-black);
  transition: border-color .2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0,88,141,.1);
}

.form-textarea { resize: vertical; min-height: 100px; }
.form-file { font-size: 13px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-fieldset {
  border: 1px solid var(--color-black-5);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 24px;
}

.form-fieldset__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

/* ── Progress Bar ─────────────────────────────────────────────────── */

.progress { background: var(--color-black-5); border-radius: 100px; height: 12px; overflow: hidden; }
.progress__bar { height: 100%; border-radius: 100px; transition: width .4s; }
.progress__bar--blue { background: var(--color-blue); }
.progress__bar--green { background: #4caf50; }

/* ── Status Badge ─────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.badge--green { background: rgba(76,175,80,.12); color: #2e7d32; }
.badge--red { background: rgba(239,64,62,.12); color: var(--color-red); }
.badge--gold { background: rgba(229,174,82,.15); color: #8b6914; }
.badge--blue { background: rgba(0,88,141,.1); color: var(--color-blue); }
.badge--grey { background: var(--color-black-5); color: var(--color-black-60); }

/* ── Widget Cards (Dashboard) ─────────────────────────────────────── */

.widget {
  border: 1px solid var(--color-black-5);
  border-radius: var(--border-radius);
  padding: 24px;
  background: var(--color-white);
}

.widget__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-black-60);
  margin-bottom: 16px;
}

/* ── Bypass Steps ─────────────────────────────────────────────────── */

.bypass-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
}

.bypass-step {
  flex: 1 1 140px;
  min-width: 140px;
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--border-radius);
  border: 2px solid var(--color-black-5);
  transition: .2s;
}

.bypass-step.is-passed {
  border-color: #4caf50;
  background: rgba(76,175,80,.06);
}

.bypass-step__icon { font-size: 28px; margin-bottom: 8px; }
.bypass-step__label { font-family: var(--font-heading); font-weight: 900; font-size: 13px; }
.bypass-step__status { font-size: 12px; color: var(--color-black-60); margin-top: 4px; }

/* ── Tabs (кабинет администратора) ─────────────────────────────────── */

.cab-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-black-5);
  padding-bottom: 0;
}

.cab-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--color-black-60);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: .15s;
}

.cab-tab:hover { color: var(--color-blue); }

.cab-tab.is-active {
  color: var(--color-blue);
  border-bottom-color: var(--color-blue);
}

.cab-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 100px;
  background: var(--color-black-5);
  font-size: 11px;
  font-weight: 900;
  color: var(--color-black-60);
}

.cab-tab.is-active .cab-tab__count {
  background: rgba(0,88,141,.12);
  color: var(--color-blue);
}

.cab-tab-panel { display: none; }
.cab-tab-panel.is-active { display: block; }

@media (max-width: 640px) {
  .cab-tabs { gap: 0; }
  .cab-tab { padding: 8px 12px; font-size: 11px; }
}

/* ── Admin: карточка спортсмена (персональные данные) ─────────────── */

.admin-user-card {
  border-radius: var(--border-radius);
  border: 1px solid var(--color-black-5);
  background: linear-gradient(165deg, rgba(0, 88, 141, 0.04) 0%, var(--color-white) 42%);
  overflow: hidden;
}

.admin-user-card__hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--color-black-5);
  background: var(--color-white);
}

.admin-user-card__avatar {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.admin-user-card__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: var(--color-blue);
  background: rgba(0, 88, 141, 0.1);
  border: 2px dashed rgba(0, 88, 141, 0.25);
  box-shadow: none;
}

.admin-user-card__identity { min-width: 0; }

.admin-user-card__name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  word-break: break-word;
}

.admin-user-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--color-black-60);
}

.admin-user-card__meta code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  background: var(--color-black-5);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--color-black-alt);
}

@media (max-width: 480px) {
  .admin-user-card__hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

.admin-user-card__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-black-5);
  padding: 0;
}

@media (max-width: 720px) {
  .admin-user-card__fields { grid-template-columns: 1fr; }
}

.admin-user-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: var(--color-white);
}

.admin-user-field__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--color-black-60);
}

.admin-user-field__value {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-black);
  word-break: break-word;
}

.admin-user-card__attachment {
  padding: 16px 20px 20px;
  background: var(--color-grey-bg);
  border-top: 1px solid var(--color-black-5);
}

.admin-user-card__attachment-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--color-black-60);
  margin-bottom: 10px;
}

/* ── Кабинет: детальная карточка мероприятия ─────────────────────── */

.event-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-black-5);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .event-detail__grid { grid-template-columns: 1fr; }
}

.event-detail__item {
  background: var(--color-white);
  padding: 16px 20px;
}

.event-detail__item--wide {
  grid-column: 1 / -1;
}

.event-detail__item dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--color-black-60);
  margin-bottom: 8px;
}

.event-detail__item dd {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}

.event-detail__text {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.event-detail__text:last-child { margin-bottom: 0; }

.event-detail__files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 960px) {
  :root { --side-padding: 24px; --section-gap: 56px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .home-hero {
    grid-template-columns: 1fr;
  }
  .home-hero__intro,
  .home-hero__event {
    min-height: 520px;
  }
  .home-hero__event-title {
    left: 160px;
    right: 30px;
    width: auto;
  }
  .home-calendar__head,
  .home-news__head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .home-calendar__grid,
  .home-participants__grid,
  .home-scoreboard,
  .home-committee,
  .home-cta__inner {
    grid-template-columns: 1fr;
  }
  .home-committee {
    grid-template-areas:
      "intro"
      "media"
      "cards";
  }
  .home-rating__head {
    flex-direction: column;
  }
  .home-rating__cards,
  .home-news__grid {
    grid-template-columns: 1fr;
  }
  .home-participants__more-wrap {
    position: static;
    transform: none;
    display: flex;
    justify-content: center;
    margin-top: 24px;
  }
  .home-participants {
    padding-bottom: 0;
  }
  .home-stage__title {
    margin-bottom: 80px;
    font-size: 34px;
  }
  .event-hero {
    grid-template-columns: 1fr;
  }
  .event-hero__intro,
  .event-hero__aside {
    min-height: 520px;
  }
  .event-hero__aside-title {
    left: 160px;
    right: 30px;
    width: auto;
  }
  .event-participation__inner,
  .event-split {
    grid-template-columns: 1fr;
  }
  .event-materials__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .event-materials__subtitle {
    font-size: 22px;
  }
  .committee-members__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .committee-page__title {
    font-size: 34px;
  }
  .committee-page__subtitle {
    font-size: 22px;
  }
  .event-about__title,
  .event-banner__title,
  .event-participation__title,
  .event-split__title {
    font-size: 34px;
  }
  .event-about__title {
    margin-bottom: 80px;
  }
  .event-banner__title {
    margin-bottom: 48px;
  }
  .docs-hero {
    grid-template-columns: 1fr;
  }
  .docs-hero__intro,
  .docs-hero__media {
    min-height: 420px;
  }
  .docs-cards {
    grid-template-columns: 1fr;
  }
  .docs-card--dark {
    gap: 40px;
  }
  .docs-footer__inner {
    min-height: 520px;
  }
  .docs-footer__logo,
  .docs-footer__col,
  .docs-footer__copyright,
  .docs-footer__privacy,
  .docs-footer__developer {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }
  .docs-footer__inner {
    display: grid;
    gap: 24px;
    padding: 32px 24px;
  }
  .docs-footer__col--contacts {
    width: auto;
  }
  .home-calendar__title,
  .home-rating__title,
  .home-participants__title,
  .home-news__title,
  .home-committee__title,
  .home-scoreboard__title,
  .home-cta__title {
    font-size: 34px;
  }
  .hero__title { font-size: 36px; }
  h1, .h1 { font-size: 36px; }
  h2, .h2 { font-size: 28px; }
  .next-event { padding: 32px; }
  .next-event__title { font-size: 28px; }
  .public-header__bar {
    width: min(var(--max-width), calc(100% - 32px));
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .public-header__nav {
    display: none;
    order: 10;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .public-header__nav.is-open {
    display: flex;
  }
  .public-header__nav a {
    justify-content: flex-start;
    min-height: 34px;
  }
  .public-header__burger {
    display: inline-flex;
  }
  .public-footer__inner {
    min-height: 260px;
  }
  .public-footer__nav {
    left: 210px;
  }
  .public-footer__phone {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  :root {
    --side-padding: 16px;
    --section-gap: 40px;
    --site-header-height: 54px;
    --site-header-logo-w: 30px;
    --site-header-logo-h: 30px;
  }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  h1, .h1 { font-size: 24px; letter-spacing: -0.02em; }
  h2, .h2 { font-size: 22px; }
  h3, .h3 { font-size: 14px; }
  .subtitle { font-size: 16px; letter-spacing: -0.01em; }
  .text-body { font-size: 12px; letter-spacing: -0.01em; }

  .hero { padding: 64px 0 48px; }
  .hero__title { font-size: 28px; }
  .hero__subtitle { font-size: 16px; }

  .home-hero {
    width: calc(100% - 20px);
    gap: 5px;
    padding-bottom: 0;
  }
  .home-hero__intro,
  .home-hero__event {
    min-height: 0;
  }
  .home-hero__intro {
    display: flex;
    flex-direction: column;
    min-height: 445px;
    padding: 30px 15px 33px;
  }
  .home-hero__logo {
    width: 72px;
    height: 72px;
  }
  .home-hero__title,
  .home-hero__text,
  .home-hero__actions,
  .home-hero__event-date,
  .home-hero__event-title {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }
  .home-hero__title {
    width: auto;
    margin-top: 26px;
    font-size: 26px;
    line-height: 1;
  }
  .home-hero__text {
    width: auto;
    margin-top: 17px;
    font-size: 14px;
    line-height: 1.1;
  }
  .home-hero__actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: auto;
    gap: 12px;
  }
  .home-hero__btn {
    width: 100%;
    min-height: 0;
    padding: 13px 30px;
    font-size: 14px;
  }
  .home-hero__event {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 237px;
    padding: 67px 15px 24px;
    gap: 20px;
  }
  .home-hero__event-date {
    flex: 0 0 auto;
    width: 102px;
    font-size: 16px;
  }
  .home-hero__event-title {
    flex: 0 0 auto;
    width: auto;
    max-width: 193px;
    font-size: 16px;
    text-align: left;
  }

  .home-page > section {
    width: calc(100% - 20px);
  }
  .home-stage {
    margin-top: -68px !important;
    min-height: 366px;
  }
  .home-stage__inner {
    min-height: 366px;
    padding: 49px 15px 40px;
  }
  .home-stage__title {
    margin-bottom: 69px;
    font-size: 26px;
    line-height: 0.9;
  }
  .home-stage__text {
    font-size: 14px;
    line-height: 1.2;
  }
  .home-stage__btn {
    min-width: 0;
    width: min(269px, 100%);
    min-height: 0;
    margin-top: 31px;
    padding: 13px 10px;
    font-size: 14px;
  }

  .home-calendar {
    padding-top: 0;
  }
  .home-calendar__head {
    gap: 10px;
    margin-bottom: 20px;
  }
  .home-calendar__title,
  .home-rating__title,
  .home-participants__title,
  .home-news__title,
  .home-committee__title,
  .home-scoreboard__title,
  .home-cta__title {
    font-size: 26px;
    line-height: 0.9;
  }
  .home-calendar__lead,
  .home-rating__lead,
  .home-participants__lead,
  .home-news__lead,
  .home-committee__lead,
  .home-cta__lead {
    font-size: 14px;
    line-height: 1.2;
  }
  .home-calendar__grid {
    gap: 5px;
  }
  .home-event-card {
    gap: 40px;
    min-height: 0;
    padding: 20px 15px;
  }
  .home-event-card__meta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .home-event-card__row img {
    width: 20px;
    height: 20px;
  }
  .home-event-card__name {
    font-size: 16px;
  }
  .home-event-card__desc {
    max-width: none;
    font-size: 14px;
    line-height: 1;
  }
  .home-event-card__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .home-event-card__btn {
    width: 100%;
    min-height: 36px;
    padding: 10px;
    font-size: 14px;
  }
  .home-calendar__more-wrap {
    margin-top: 10px;
  }
  .home-calendar__more,
  .home-participants__more,
  .home-news__more,
  .home-committee__more {
    min-width: 0;
    width: min(222px, 100%);
    min-height: 0;
    padding: 13px 10px;
    font-size: 14px;
  }

  .home-news__more-wrap {
    margin-top: 10px;
  }

  .home-scoreboard {
    min-height: 0;
    gap: 0;
  }
  .home-scoreboard__panel {
    gap: 50px;
    padding: 50px 15px;
    border-radius: 5px 5px 0 0;
  }
  .home-scoreboard__text {
    font-size: 14px;
    line-height: 1.2;
  }
  .home-scoreboard__btn {
    min-width: 159px;
    min-height: 36px;
    padding: 10px;
    font-size: 16px;
  }
  .home-scoreboard__media {
    min-height: 333px;
    border-radius: 0 0 5px 5px;
  }

  .home-rating__head {
    gap: 10px;
    margin-bottom: 20px;
  }
  .home-rating__intro {
    gap: 10px;
  }
  .home-rating__cta {
    align-self: flex-start;
    min-width: 0;
    width: min(222px, 100%);
    min-height: 0;
    padding: 13px 10px;
    font-size: 14px;
  }
  .home-rating__cards {
    gap: 5px;
  }
  .home-rating-card {
    gap: 20px;
    padding: 20px 15px;
  }
  .home-rating-card__title {
    font-size: 16px;
  }
  .home-rating-card__text {
    font-size: 14px;
    line-height: 1;
  }

  .home-participants {
    padding-bottom: 0;
  }
  .home-participants__title {
    margin-bottom: 10px;
  }
  .home-participants__lead {
    margin-bottom: 20px;
  }
  .home-participants__grid {
    gap: 10px;
  }
  .home-participants-card {
    flex-direction: column;
    gap: 20px;
    padding: 20px 15px;
  }
  .home-participants-card__num {
    flex: 0 0 auto;
    font-size: 14px;
  }
  .home-participants-card__text {
    font-size: 18px;
    line-height: 1.2;
  }
  .home-participants__more-wrap {
    position: static;
    transform: none;
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  .home-news__head {
    gap: 10px;
    margin-bottom: 20px;
  }
  .news-filter,
  .events-filter,
  .results-filter {
    gap: 8px;
    margin-bottom: 20px;
  }
  .news-filter__item,
  .events-filter__item {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .results-filter__field {
    min-width: 100%;
  }
  .events-page__title,
  .results-page__title,
  .event-detail__title {
    font-size: 26px;
  }
  .results-table__title {
    font-size: 22px;
  }
  .home-news__grid {
    gap: 5px;
  }
  .home-news-card__body {
    gap: 20px;
    padding: 0 15px 20px;
  }
  .home-news-card__title {
    font-size: 18px;
  }
  .home-news-card__text {
    font-size: 14px;
    line-height: 1;
  }
  .home-news-card__link {
    font-size: 14px;
  }

  .home-committee__media {
    min-height: 284px;
  }
  .home-committee__lead {
    margin-bottom: 10px;
    max-width: none;
  }
  .home-committee-card {
    padding: 20px 15px;
    gap: 20px;
  }
  .home-committee-card__title {
    font-size: 16px;
  }
  .home-committee-card__text {
    font-size: 14px;
    line-height: 1.2;
  }

  .home-cta {
    min-height: 404px;
  }
  .home-cta__inner {
    gap: 10px;
    min-height: 404px;
    padding: 65px 15px 40px;
    grid-template-columns: 1fr;
  }
  .home-cta__copy {
    gap: 10px;
  }
  .home-cta__title {
    max-width: none;
  }
  .home-cta__lead {
    max-width: none;
  }
  .home-cta__form {
    gap: 10px;
    margin-top: auto;
  }
  .home-cta__field input,
  .home-cta__submit {
    min-height: 0;
    padding: 13px 20px;
    font-size: 14px;
  }

  .home-calendar__title,
  .home-rating__title,
  .home-participants__title,
  .home-news__title,
  .home-committee__title,
  .home-scoreboard__title,
  .home-cta__title,
  .event-about__title,
  .event-banner__title,
  .event-participation__title,
  .event-split__title {
    font-size: 26px;
  }

  .event-page > section {
    width: calc(100% - 24px);
  }
  .event-materials__gallery {
    grid-template-columns: 1fr;
  }
  .committee-members__grid {
    grid-template-columns: 1fr;
  }
  .committee-page__title {
    font-size: 26px;
  }
  .event-hero {
    gap: 12px;
  }
  .event-hero__intro,
  .event-hero__aside {
    min-height: 460px;
  }
  .event-hero__intro {
    padding: 28px 20px;
  }
  .event-hero__logo {
    width: 96px;
    height: 96px;
  }
  .event-hero__title,
  .event-hero__address,
  .event-hero__actions,
  .event-hero__date,
  .event-hero__aside-title {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }
  .event-hero__title {
    width: auto;
    margin-top: 28px;
    font-size: 28px;
  }
  .event-hero__address {
    width: auto;
    margin-top: 24px;
  }
  .event-hero__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 28px;
    gap: 10px;
  }
  .event-hero__btn {
    width: 100%;
  }
  .event-hero__aside {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    min-height: 360px;
    padding: 24px 20px;
  }
  .event-hero__date {
    flex: 0 0 102px;
  }
  .event-hero__aside-title {
    flex: 1 1 auto;
    width: auto;
    font-size: 14px;
  }
  .event-about__inner,
  .event-banner__inner {
    min-height: 420px;
    padding: 40px 20px;
  }
  .event-about__title {
    margin-bottom: 48px;
  }
  .event-about__btn,
  .event-banner__btn,
  .event-participation__btn {
    min-width: 0;
    width: 100%;
  }
  .event-participation__inner {
    gap: 24px;
    padding: 32px 20px;
  }
  .event-split__panel {
    padding: 40px 20px;
  }
  .event-split__media {
    min-height: 220px;
  }

  .docs-page > section {
    width: calc(100% - 24px);
  }
  .docs-hero {
    gap: 12px;
  }
  .docs-hero__intro {
    padding: 28px 20px;
  }
  .docs-hero__logo {
    width: 96px;
    height: 96px;
  }
  .docs-hero__title {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin-top: 28px;
    font-size: 32px;
  }
  .docs-hero__media {
    min-height: 280px;
  }
  .docs-card {
    min-height: 0;
  }
  .docs-card__btn {
    width: 100%;
    min-width: 0;
  }
  .docs-doc-item {
    flex-direction: column;
    align-items: stretch;
  }
  .docs-viewer__dialog {
    width: calc(100% - 16px);
    height: calc(100vh - 16px);
    margin: 8px auto 0;
  }
  .docs-footer {
    padding-bottom: 12px;
  }
  .docs-footer__inner {
    width: calc(100% - 24px);
    min-height: 0;
    padding: 24px 20px;
  }
  .docs-footer__phone {
    font-size: 18px;
  }

  .public-header__bar {
    flex-wrap: nowrap;
    justify-content: space-between;
    width: calc(100% - 24px);
    max-width: none;
    padding: 10px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .public-header__bar::-webkit-scrollbar {
    display: none;
  }
  .public-header__logo {
    width: 54px;
    height: 34px;
    padding: 2px 12px;
  }
  .public-header__icon,
  .public-header__phone {
    display: none;
  }
  .public-header__phone {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 10px;
  }
  .public-header__cta {
    flex: 0 0 auto;
    width: auto;
    min-height: 34px;
    padding: 10px;
  }
  .public-header__nav,
  .public-header__cabinet {
    display: none;
  }
  .public-header__nav.is-open {
    display: flex;
    position: absolute;
    top: 54px;
    left: 12px;
    right: 12px;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 5px;
    border-radius: 5px;
    background: #494949;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  }
  .public-header__nav.is-open a {
    display: flex;
    min-height: 42px;
    padding: 12px 16px;
    background: #2A2929;
  }
  .public-header__nav.is-open .public-header__nav-cabinet {
    font-weight: 700;
    background: #E6AE52;
  }
  .public-footer {
    padding: 12px 0;
  }
  .public-footer__inner {
    display: grid;
    gap: 24px;
    width: calc(100% - 24px);
    min-height: 0;
    padding: 28px 20px;
  }
  .public-footer__logo,
  .public-footer__nav,
  .public-footer__contacts,
  .public-footer__privacy,
  .public-footer__developer {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }
  .public-footer__logo,
  .public-footer__logo img {
    width: 72px;
    height: 72px;
  }
  .public-footer__nav {
    gap: 12px;
  }
  .public-footer__contacts {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .public-footer__phone {
    min-height: 0;
    padding: 0;
    font-size: 18px;
  }
  .public-footer__privacy,
  .public-footer__developer {
    justify-self: start;
  }

  .cab-layout { grid-template-columns: 1fr; }
  .cab-sidebar { display: none; position: static; width: auto; }
  .cab-sidebar.is-open { display: block; }
  .cab-sidebar__nav { flex-direction: row; flex-wrap: wrap; }
  .cab-sidebar__link { justify-content: flex-start; gap: 10px; padding: 10px 16px; }
  .cab-sidebar__label { max-width: 180px; opacity: 1; }
  .bypass-steps { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .auth-field-row { grid-template-columns: 1fr; }
  .auth-box { padding: 32px 20px; }

  .athlete-events-table-wrap {
    overflow-x: visible;
  }

  .athlete-events-table,
  .athlete-apps-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .athlete-events-table thead,
  .athlete-apps-table thead {
    display: none;
  }

  .athlete-events-table tbody,
  .athlete-events-table tr,
  .athlete-events-table td,
  .athlete-apps-table tbody,
  .athlete-apps-table tr,
  .athlete-apps-table td {
    display: block;
  }

  .athlete-events-table tr,
  .athlete-apps-table tr {
    padding: 14px;
    border: 1px solid var(--color-black-5);
    border-radius: 12px;
    background: var(--color-white);
    box-shadow: 2px 2px 10px rgba(0,0,0,.05);
  }

  .athlete-events-table td,
  .athlete-apps-table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-black-5);
  }

  .athlete-events-table td:last-child,
  .athlete-apps-table td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .athlete-events-table td::before,
  .athlete-apps-table td::before {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    color: var(--color-black-60);
    text-transform: uppercase;
  }

  .athlete-events-table td:nth-child(1)::before { content: "Название"; }
  .athlete-events-table td:nth-child(2)::before { content: "Приём заявок"; }
  .athlete-events-table td:nth-child(3)::before { content: "Место"; }
  .athlete-events-table td:nth-child(4)::before { content: "Заявка"; }

  .athlete-apps-table td:nth-child(1)::before { content: "Мероприятие"; }
  .athlete-apps-table td:nth-child(2)::before { content: "Класс"; }
  .athlete-apps-table td:nth-child(3)::before { content: "Стартовый №"; }
  .athlete-apps-table td:nth-child(4)::before { content: "Марка"; }
  .athlete-apps-table td:nth-child(5)::before { content: "Объем двигателя"; }
  .athlete-apps-table td:nth-child(6)::before { content: "Доп. информация"; }
  .athlete-apps-table td:nth-child(7)::before { content: "Статус"; }
  .athlete-apps-table td:nth-child(8)::before { content: "Оплата"; }
  .athlete-apps-table td:nth-child(9)::before { content: "Допуск"; }
  .athlete-apps-table td:nth-child(10)::before { content: "Создано"; }
  .athlete-apps-table td:nth-child(11)::before { content: "Действия"; }

  .athlete-events-table .cab-event-title-cell,
  .athlete-events-table .cab-event-place-cell,
  .athlete-apps-table .cab-event-title-cell {
    width: auto;
    max-width: none;
  }

  .athlete-events-table .cab-event-title-link,
  .athlete-apps-table .cab-event-title-link {
    display: block;
    line-clamp: unset;
    -webkit-line-clamp: unset;
  }

  .athlete-events-table form,
  .athlete-apps-table form {
    max-width: none !important;
  }

  .athlete-events-table .form-select,
  .athlete-events-table .btn,
  .athlete-apps-table .btn {
    width: 100%;
  }

  .athlete-event-apply-grid {
    grid-template-columns: 1fr;
  }

  .next-event { padding: 24px; flex-direction: column; }
  .next-event__title { font-size: 22px; }
}

/* ── ЛК маршала (mobile-first) ───────────────────────────── */
.marshal-mobile-nav {
  display: none;
}

.marshal-lead {
  color: var(--color-black-60);
  margin: 0 0 20px;
  line-height: 1.45;
}

.marshal-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.marshal-run-hint {
  margin: 0 0 12px;
  color: var(--color-black-60);
}

.marshal-athlete-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.marshal-athlete-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  min-height: 64px;
  border-radius: 12px;
  background: var(--color-black-5);
  color: inherit;
  text-decoration: none;
  border: 1px solid transparent;
}

.marshal-athlete-card:hover,
.marshal-athlete-card:focus-visible {
  border-color: var(--color-blue);
  background: #fff;
}

.marshal-athlete-card__num {
  flex: 0 0 auto;
  min-width: 52px;
  font-weight: 800;
  font-size: 18px;
  color: var(--color-red);
}

.marshal-athlete-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.marshal-athlete-card__name {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
}

.marshal-athlete-card__meta {
  font-size: 13px;
  color: var(--color-black-60);
}

.marshal-athlete-card__action {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-red);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.marshal-form-card {
  background: var(--color-black-5);
  border-radius: 14px;
  padding: 16px;
}

.marshal-back {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 600;
}

.marshal-athlete-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.marshal-athlete-head__num {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-red);
  line-height: 1;
}

.marshal-athlete-head__name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.marshal-athlete-head__meta {
  margin-top: 4px;
  color: var(--color-black-60);
  font-size: 14px;
}

.marshal-penalty-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.marshal-submit {
  width: 100%;
  min-height: 56px;
  font-size: 18px;
  position: sticky;
  bottom: 12px;
}

.marshal-quick-card {
  background: var(--color-black-5);
  border-radius: 14px;
  padding: 16px;
}

.marshal-quick-form .form-group {
  margin-bottom: 14px;
}

.marshal-quick-input {
  min-height: 56px;
  font-size: 22px;
  font-weight: 700;
  width: 100%;
}

.marshal-code-hint {
  min-height: 20px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--color-black-60);
}

.marshal-quick-actions {
  margin-top: 14px;
}

.marshal-flash {
  background: #e8f6ee;
  border: 1px solid #1a7f3c;
  color: #14532d;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.marshal-report-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
  align-items: end;
}

.marshal-report-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.marshal-report-print {
  display: none;
  color: #171717;
  font-family: Arial, Helvetica, sans-serif;
}

.marshal-report-print__head {
  text-align: center;
  margin-bottom: 6mm;
}

.marshal-report-print__title {
  font-size: 13pt;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 2mm;
}

.marshal-report-print__discipline {
  font-size: 11pt;
  font-weight: 700;
  margin-bottom: 3mm;
}

.marshal-report-print__meta {
  display: flex;
  justify-content: space-between;
  gap: 8mm;
  font-size: 11pt;
  font-weight: 700;
  text-align: left;
}

.marshal-report-print__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 5mm;
}

.marshal-report-print__table th,
.marshal-report-print__table td {
  border: 0.6pt solid #171717;
  padding: 1.6mm 2mm;
  font-size: 10pt;
  text-align: left;
  vertical-align: top;
}

.marshal-report-print__col-num,
.marshal-report-print__col-post {
  width: 22mm;
  text-align: center;
}

.marshal-report-print__legend-title {
  font-size: 10pt;
  font-weight: 800;
  margin-bottom: 2mm;
}

.marshal-report-print__codes {
  margin: 0;
  padding: 0;
  columns: 2;
  font-size: 9pt;
  line-height: 1.45;
  list-style: none;
}

.marshal-report-print__codes li {
  break-inside: avoid;
  padding: 0 3mm 0.8mm 0;
}

.marshal-log-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.marshal-log-card {
  background: var(--color-black-5);
  border-radius: 12px;
  padding: 14px 16px;
}

.marshal-log-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.marshal-log-card__meta {
  font-size: 13px;
  color: var(--color-black-60);
  margin-bottom: 6px;
}

.marshal-log-card__comment {
  margin-bottom: 8px;
  line-height: 1.4;
}

.marshal-log-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-black-60);
}

.marshal-log-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marshal-log-edit {
  margin-top: 12px;
}

.marshal-log-edit > summary {
  display: inline-flex;
  align-items: center;
  list-style: none;
  cursor: pointer;
}

.marshal-log-edit > summary::-webkit-details-marker {
  display: none;
}

.marshal-log-edit__form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.marshal-log-edit__form .marshal-submit {
  position: static;
}

@media (min-width: 721px) {
  .marshal-filters {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .marshal-report-toolbar {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 960px) {
  .cab-layout:has(> .marshal-mobile-nav) {
    grid-template-columns: 1fr;
  }

  .cab-layout:has(> .marshal-mobile-nav) > .marshal-sidebar {
    display: none !important;
  }

  .marshal-mobile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
  }

  .marshal-mobile-nav__link {
    flex: 1 1 auto;
    min-width: 96px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--color-black-5);
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
  }

  .marshal-mobile-nav__link.is-active {
    background: var(--color-blue);
    color: #fff;
  }

  .marshal-mobile-nav__icon {
    font-size: 16px;
    line-height: 1;
  }
}

/* ── Протоколы судьи: список карточками ─────────────────── */
.protocols-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.protocols-toolbar__filter {
  flex: 1 1 260px;
  max-width: 420px;
}

.protocols-toolbar__cta {
  flex: 0 0 auto;
}

.protocols-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.protocol-card {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--color-black-5);
  border: 1px solid transparent;
}

.protocol-card:hover {
  border-color: rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.protocol-card__main {
  flex: 1 1 240px;
  min-width: 0;
}

.protocol-card__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.protocol-card__title a {
  color: inherit;
  text-decoration: none;
}

.protocol-card__title a:hover {
  color: var(--color-blue);
}

.protocol-card__event {
  margin: 0 0 10px;
  color: var(--color-black-60);
  font-size: 14px;
  line-height: 1.35;
}

.protocol-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.protocol-card__class {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-black);
}

.protocol-card__class--muted {
  color: var(--color-black-60);
  font-weight: 500;
}

.protocol-card__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.protocol-card__delete {
  margin: 0;
  display: inline-flex;
}

@media (max-width: 640px) {
  .protocols-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .protocols-toolbar__filter {
    max-width: none;
  }

  .protocols-toolbar__cta {
    width: 100%;
    text-align: center;
  }

  .protocol-card {
    align-items: stretch;
  }

  .protocol-card__actions .btn {
    width: 100%;
  }
}

/* ── Протесты спортсмена: предварительные результаты ───── */
.protest-results-meta {
  margin: 0 0 12px;
  color: var(--color-black-60);
  line-height: 1.4;
}

.protest-results-table tr.is-current td {
  background: rgba(200, 40, 40, 0.08);
  font-weight: 700;
}

.protest-results-table tr.is-current td:first-child {
  box-shadow: inset 3px 0 0 var(--color-red);
}

@media (max-width: 720px) {
  .protest-results-filter .form-group {
    max-width: none !important;
  }
}

/* ── Электронный обходной лист ─────────────────────────── */
.bypass-page-section {
  background: #eef1f4;
}

.bypass-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 210mm;
  margin: 0 auto 16px;
  padding: 14px 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
}

.bypass-toolbar__eyebrow {
  margin-bottom: 2px;
  color: var(--color-black-60);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bypass-print-stage {
  max-width: 210mm;
  margin: 0 auto 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bypass-inline-form {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

@media (max-width: 760px) {
  .bypass-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Печатный бланк обходного листа (Excel: подпись 47мм + поле 105мм = 152мм) */
.print-only {
  display: none !important;
}

.bypass-print-sheet {
  display: block;
  box-sizing: border-box;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 10mm 14mm;
  color: #171717;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  font-family: Arial, Helvetica, sans-serif;
}

.bypass-print-sheet *,
.bypass-print-sheet *::before,
.bypass-print-sheet *::after {
  box-sizing: border-box;
}

.bypass-print-copy {
  display: block;
  width: 152mm;
  max-width: 152mm;
  margin: 0 auto;
  padding: 0;
}

.bypass-print-copy__head {
  display: grid;
  grid-template-columns: 18mm minmax(0, 1fr) minmax(32mm, 0.85fr);
  gap: 2mm;
  align-items: center;
  width: 152mm;
  margin: 0 0 1.6mm;
}

.bypass-print-copy__logo {
  display: block;
  width: 16mm;
  height: 16mm;
  object-fit: contain;
}

.bypass-print-copy__titles {
  text-align: center;
}

.bypass-print-copy__title {
  font-size: 13pt;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.bypass-print-copy__date {
  margin-top: 0.8mm;
  font-size: 9pt;
  font-weight: 600;
  line-height: 1.1;
}

.bypass-print-copy__brand {
  text-align: right;
  font-size: 8.5pt;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.bypass-print-classes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6mm 3mm;
  width: 105mm;
  margin: 0 0 1.6mm 47mm;
}

.bypass-print-class {
  display: grid;
  grid-template-columns: 3.4mm minmax(0, 1fr);
  gap: 1.2mm;
  align-items: center;
  min-height: 3.8mm;
}

.bypass-print-class__box {
  display: grid;
  place-items: center;
  width: 3.2mm;
  height: 3.2mm;
  border: 0.7pt solid #171717;
  font-size: 5.5pt;
  font-weight: 800;
  line-height: 1;
}

.bypass-print-class__name {
  overflow: hidden;
  border-bottom: 0.6pt solid #171717;
  font-size: 8pt;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bypass-print-class.is-checked .bypass-print-class__name {
  font-weight: 700;
}

.bypass-print-row,
.bypass-print-person,
.bypass-print-docs {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 152mm;
  max-width: 152mm;
  margin: 0 0 1.3mm;
}

.bypass-print-label,
.bypass-print-person__labels,
.bypass-print-docs__labels {
  flex: 0 0 47mm;
  width: 47mm;
  max-width: 47mm;
  margin: 0;
  padding: 0 3mm 0 0;
}

.bypass-print-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
  font-size: 9pt;
  font-weight: 800;
  line-height: 1.1;
}

.bypass-print-label small,
.bypass-print-label span {
  display: block;
  font-size: 7.5pt;
  font-weight: 600;
}

.bypass-print-field,
.bypass-print-person__fields,
.bypass-print-docs__fields {
  flex: 0 0 105mm;
  width: 105mm;
  max-width: 105mm;
  margin: 0;
}

.bypass-print-field {
  display: flex;
  align-items: center;
  min-height: 6.5mm;
  padding: 0.6mm 1.6mm;
  border: 0.85pt solid #171717;
  font-size: 10pt;
  font-weight: 700;
  line-height: 1.1;
}

.bypass-print-field--start {
  justify-content: center;
  min-height: 8mm;
  font-size: 16pt;
  font-weight: 900;
}

.bypass-print-field--center {
  justify-content: center;
  text-align: center;
}

.bypass-print-field--tall {
  min-height: 10mm;
}

.bypass-print-field--stamp {
  position: relative;
  align-items: center;
  justify-content: flex-start;
  min-height: 10mm;
  padding-right: 18mm;
  overflow: visible;
  flex-wrap: wrap;
  gap: 1mm;
}

.bypass-print-field__note {
  position: relative;
  z-index: 1;
  font-size: 8.5pt;
  font-weight: 700;
}

button.bypass-print-stamp {
  appearance: none;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.bypass-print-stamp {
  position: absolute;
  top: 50%;
  right: 2mm;
  z-index: 3;
  display: flex;
  box-sizing: border-box;
  width: 15mm;
  height: 15mm;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8mm 0.6mm;
  overflow: hidden;
  color: #237749;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1pt double currentColor;
  border-radius: 50%;
  transform: translateY(-50%) rotate(-8deg);
}

.bypass-print-stamp.is-passed {
  color: #237749;
}

.bypass-print-stamp.is-failed {
  color: #b31f29;
}

.bypass-print-stamp span {
  max-width: 100%;
  font-size: 5.2pt;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
}

.bypass-print-stamp strong {
  display: block;
  max-width: 100%;
  margin-top: 0.2mm;
  overflow: hidden;
  font-size: 3.8pt;
  line-height: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bypass-print-stamp small {
  display: block;
  max-width: 100%;
  margin-top: 0.15mm;
  font-size: 3.4pt;
  line-height: 1;
  overflow-wrap: anywhere;
}

.bypass-print-stamp.is-pending {
  color: #8d8d8d;
}

.bypass-print-stamp.is-action:hover {
  background: #fff;
  box-shadow: 0 0 0 0.45mm currentColor;
}

.bypass-print-stamp.is-context {
  box-shadow: 0 0 0 0.55mm rgba(0, 91, 187, 0.45);
}

.bypass-print-input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.bypass-print-toggle {
  appearance: none;
  width: 100%;
  min-height: 8mm;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.bypass-print-toggle.is-yes {
  color: #237749;
}

.bypass-print-toggle.is-no {
  color: #b31f29;
}

.bypass-print-doc-link {
  margin-left: 1.5mm;
  color: var(--color-blue);
  font-size: 7pt;
  font-weight: 700;
  text-decoration: none;
}

.bypass-print-stamp-note {
  display: block;
  width: 100%;
  color: #b31f29;
  font-size: 6.5pt;
  font-weight: 600;
  line-height: 1.15;
}

.bypass-stamp-menu {
  position: fixed;
  z-index: 40;
  display: flex;
  min-width: 168px;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.bypass-stamp-menu[hidden] {
  display: none;
}

.bypass-stamp-menu button {
  appearance: none;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.bypass-stamp-menu__pass {
  color: #237749;
}

.bypass-stamp-menu__fail {
  color: #b31f29;
}

.bypass-stamp-menu__clear {
  color: #555;
  font-weight: 700;
}

.bypass-print-person__labels,
.bypass-print-person__fields {
  display: grid;
  grid-template-rows: repeat(3, minmax(5.8mm, auto));
}

.bypass-print-person__labels > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 9pt;
  font-weight: 800;
  line-height: 1.05;
  text-align: right;
}

.bypass-print-person__fields {
  border: 0.85pt solid #171717;
}

.bypass-print-person__fields > div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4mm 1.4mm;
  font-size: 10pt;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.bypass-print-person__fields > div + div {
  border-top: 0.85pt solid #171717;
}

.bypass-print-docs__labels,
.bypass-print-docs__fields {
  display: grid;
}

.bypass-print-docs__labels > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 5.2mm;
  font-size: 8.5pt;
  font-weight: 800;
  line-height: 1.05;
  text-align: right;
}

.bypass-print-docs__fields {
  border: 0.85pt solid #171717;
}

.bypass-print-docs__fields > div {
  display: flex;
  align-items: center;
  min-height: 5.2mm;
  padding: 0.3mm 1.4mm;
  font-size: 9pt;
  font-weight: 700;
  line-height: 1.05;
}

.bypass-print-docs__fields > div + div {
  border-top: 0.85pt solid #171717;
}

.bypass-print-row--fee,
.bypass-print-row--med {
  overflow: visible;
}

.bypass-print-row--fee .bypass-print-field,
.bypass-print-row--med .bypass-print-field {
  min-height: 11mm;
}

.bypass-print-inspection {
  display: flex;
  flex-wrap: wrap;
  width: 152mm;
  max-width: 152mm;
  margin: 0.8mm 0 1.3mm;
  overflow: visible;
}

.bypass-print-inspection__item {
  display: flex;
  flex: 0 0 117mm;
  flex-direction: row;
  align-items: stretch;
  width: 117mm;
  max-width: 117mm;
  margin: 0 0 1.2mm;
  overflow: visible;
}

.bypass-print-inspection__item--narrow {
  flex-basis: 35mm;
  width: 35mm;
  max-width: 35mm;
}

.bypass-print-inspection__item .bypass-print-label {
  flex: 0 0 47mm;
  width: 47mm;
  max-width: 47mm;
}

.bypass-print-inspection__item .bypass-print-field {
  flex: 0 0 70mm;
  width: 70mm;
  max-width: 70mm;
  min-height: 11mm;
}

.bypass-print-inspection__item--narrow .bypass-print-label {
  flex: 0 0 12mm;
  width: 12mm;
  max-width: 12mm;
  padding-right: 1.5mm;
  font-size: 8pt;
}

.bypass-print-inspection__item--narrow .bypass-print-field {
  flex: 0 0 23mm;
  width: 23mm;
  max-width: 23mm;
}

.bypass-print-notice {
  width: 152mm;
  max-width: 152mm;
  margin: 1.5mm 0 0;
  padding-top: 1.2mm;
  border-bottom: 1.4pt double #171717;
  font-size: 8pt;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.bypass-print-notice strong {
  display: inline;
  font-weight: 900;
  text-transform: uppercase;
}

.prestart-protocol__class {
  margin: 24px 0 12px;
  font-size: 18px;
}

.prestart-protocol .table-wrap {
  overflow-x: visible;
}

.prestart-protocol__table.data-table {
  width: 100%;
}

.prestart-protocol__table th,
.prestart-protocol__table td {
  padding: 8px 8px;
  vertical-align: middle;
}

.prestart-protocol__table input.form-input,
.prestart-protocol__table select.form-select {
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
}

.prestart-protocol__status {
  display: inline-block;
  min-width: 4.5em;
  font-size: 12px;
  color: var(--color-black-60);
}

.prestart-protocol__table tr.is-saving .prestart-protocol__status {
  color: var(--color-blue);
}

.prestart-protocol__table tr.is-saved .prestart-protocol__status {
  color: var(--color-green, #1a7f37);
}

.prestart-protocol__table tr.is-save-error .prestart-protocol__status {
  color: var(--color-red, #b42318);
}

.prestart-protocol-print {
  display: none;
  color: #171717;
  font-family: Arial, Helvetica, sans-serif;
}

.prestart-protocol-print__head {
  text-align: center;
  margin-bottom: 8mm;
}

.prestart-protocol-print__title {
  font-size: 14pt;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 2mm;
}

.prestart-protocol-print__class {
  margin: 5mm 0 2mm;
  font-size: 12pt;
}

.prestart-protocol-print__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 4mm;
}

.prestart-protocol-print__table th,
.prestart-protocol-print__table td {
  border: 0.6pt solid #171717;
  padding: 1.4mm 2mm;
  font-size: 10pt;
  text-align: left;
}

.prestart-protocol-print__foot {
  margin-top: 8mm;
  display: flex;
  justify-content: space-between;
  gap: 8mm;
  font-size: 11pt;
}

.racing-protocol__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.racing-protocol__time {
  width: 92px;
  min-width: 92px;
}

.racing-protocol__place {
  width: 52px;
  min-width: 52px;
}

.racing-protocol__laps {
  width: 64px;
  min-width: 64px;
}

.racing-protocol__status {
  width: 84px;
  min-width: 84px;
}

.racing-protocol__comment {
  width: 200px;
  min-width: 160px;
}

.racing-protocol__notes {
  margin: 16px 0 0;
  padding-left: 18px;
}

.racing-protocol-print {
  display: none;
  color: #171717;
  font-family: Arial, Helvetica, sans-serif;
}

.racing-protocol-print__head {
  text-align: center;
  margin-bottom: 4mm;
}

.racing-protocol-print__org {
  font-size: 11pt;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.racing-protocol-print__title {
  font-size: 12pt;
  font-weight: 700;
  margin: 2mm 0;
}

.racing-protocol-print__meta {
  display: flex;
  justify-content: space-between;
  gap: 8mm;
  font-size: 9pt;
}

.racing-protocol-print__kind {
  margin-top: 3mm;
  font-size: 12pt;
  font-weight: 800;
}

.racing-protocol-print__class {
  margin: 1mm 0 3mm;
  font-size: 10pt;
}

.racing-protocol-print__table {
  width: 100%;
  border-collapse: collapse;
}

.racing-protocol-print__table th,
.racing-protocol-print__table td {
  border: 0.5pt solid #171717;
  padding: 1mm 1.4mm;
  font-size: 8pt;
  text-align: left;
  vertical-align: top;
}

.racing-protocol-print__notes {
  margin: 3mm 0 0;
  padding-left: 5mm;
  font-size: 8pt;
}

.racing-protocol-print__foot {
  margin-top: 8mm;
  display: flex;
  justify-content: space-between;
  gap: 10mm;
  font-size: 10pt;
}

@media print {
  html,
  body {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #171717 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .public-header,
  .public-footer,
  #panel,
  .bx-panel,
  .cab-sidebar,
  .marshal-mobile-nav,
  .cab-breadcrumb,
  .cab-page-title,
  .alert,
  .no-print {
    display: none !important;
  }

  .section,
  .bypass-page-section,
  .container,
  .cab-layout,
  .cab-main,
  .bypass-print-stage {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .bypass-print-sheet {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  .bypass-print-copy {
    margin: 0 !important;
  }

  .print-only,
  .bypass-print-sheet,
  .prestart-protocol-print,
  .marshal-report-print,
  .racing-protocol-print {
    display: block !important;
  }
}
