@font-face {
  font-family: "Futura PT";
  src: url("./assets/futura-pt-book.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Futura PT";
  src: url("./assets/futura-pt-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --red: #d20a11;
  --text: #121212;
  --muted: #686868;
  --background: #f9f9f9;
  --border: #e5e5e5;
  font-family: "Futura PT", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
p, h1, h2 { margin: 0; }
img { display: block; max-width: 100%; object-fit: contain; }
svg { display: block; }
::selection { color: #fff; background: var(--red); }
:focus-visible { outline: 3px solid #3164af; outline-offset: 6px; }
.page-width { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.icon { width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: fixed; z-index: 10; top: 12px; left: 16px; padding: 12px 20px; background: #fff; border: 1px solid var(--red); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--border); }
.organizers { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
.brand-divider { width: 1px; height: 32px; background: #dedede; }
.home-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; font-size: 18px; font-weight: 500; transition: color 160ms ease; }
.home-link .icon { width: 20px; height: 20px; flex-basis: 20px; }
.main { flex: 1; padding-block: 28px 32px; }
.intro { display: flex; flex-direction: column; align-items: center; text-align: center; }
.marathon-logo { width: 72px; height: 65px; margin-bottom: 14px; }
.eyebrow { color: var(--red); font-size: 17px; font-weight: 500; margin-bottom: 8px; }
h1 { font-size: 48px; font-weight: 500; line-height: 1.1; text-wrap: balance; }
.heading-accent { color: var(--red); }
.event-name { font-size: 23px; line-height: 1.35; margin-top: 10px; text-wrap: balance; }
.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 30px; scroll-margin-top: 20px; }
.contact-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: 24px; background: #fff; transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.social-icon { width: 56px; height: 56px; flex: 0 0 56px; }
.card-category { font-size: 15px; color: var(--muted); }
.card-copy { padding-block: 24px; flex: 1; }
.card-copy h2 { font-size: 30px; line-height: 1.2; font-weight: 500; }
.card-copy p { color: var(--muted); font-size: 19px; line-height: 1.35; margin-top: 8px; }
.email-icon { display: grid; place-items: center; border-radius: 16px; background: #fceced; color: var(--red); }
.email-icon .icon { width: 30px; height: 30px; }
.card-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 47px; padding-top: 19px; border-top: 1px solid var(--border); font-size: 17px; font-weight: 500; }
.pending-label { color: #666; background: #f0f0f0; border-radius: 6px; padding: 3px 9px; font-size: 14px; line-height: 1.4; font-weight: 400; flex-shrink: 0; }
.is-pending .card-action { color: var(--muted); font-weight: 400; }
.is-pending .action-arrow { display: none; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--border); min-height: 80px; padding-block: 20px; font-size: 16px; color: var(--muted); }
.footer p:first-child { color: #454545; }
.footer span { margin-inline: 9px; color: #898989; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a.contact-card:hover { transform: translateY(-4px); background: #f4f4f4; box-shadow: 0 12px 24px #1212120a; }
}
@media (hover: hover) { .home-link:hover { color: var(--red); } }

@media (min-width: 1600px) {
  .main { display: flex; flex-direction: column; justify-content: center; padding-block: 64px; }
}

@media (max-width: 1023px) {
  .page-width { width: min(720px, calc(100% - 64px)); }
  .header { min-height: 104px; }
  .main { padding-top: 36px; }
  h1 { font-size: 48px; }
  .contacts { grid-template-columns: 1fr; gap: 14px; max-width: 620px; margin-inline: auto; margin-top: 32px; }
  .contact-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 24px; border-radius: 20px; }
  .card-top { display: contents; }
  .card-category { display: none; }
  .card-copy { padding: 0; }
  .card-copy h2 { font-size: 26px; }
  .card-copy p { margin-top: 5px; font-size: 18px; }
  .card-action { border: 0; padding: 0; min-height: 0; }
  .card-action [data-action] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .footer { font-size: 15px; }
}

@media (max-width: 599px) {
  .page-width { width: calc(100% - 40px); }
  .header { min-height: 88px; gap: 16px; }
  .organizers { gap: 12px; }
  .mirea-logo { width: 68px; height: 55px; }
  .one-c-logo { width: 46px; height: 37px; }
  .brand-divider { height: 26px; }
  .home-link { font-size: 16px; gap: 6px; }
  .home-link .icon { width: 18px; height: 18px; flex-basis: 18px; }
  .main { padding-block: 22px 30px; }
  .marathon-logo { width: 58px; height: 53px; margin-bottom: 12px; }
  .eyebrow { font-size: 16px; margin-bottom: 8px; }
  h1 { font-size: 32px; max-width: 360px; }
  .event-name { font-size: 21px; margin-top: 10px; max-width: 330px; }
  .contacts { margin-top: 26px; gap: 12px; }
  .contact-card { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; padding: 20px; border-radius: 16px; }
  .social-icon { width: 44px; height: 44px; }
  .email-icon { border-radius: 13px; }
  .email-icon .icon { width: 26px; height: 26px; }
  .card-copy h2 { font-size: 24px; }
  .card-copy p { font-size: 16px; line-height: 1.3; }
  .pending-label { padding: 3px 7px; }
  .footer { flex-direction: column; justify-content: center; gap: 5px; padding-block: 20px; text-align: center; }
}

@media (max-width: 374px) {
  .page-width { width: calc(100% - 32px); }
  .organizers { gap: 8px; }
  .home-link { max-width: 126px; text-align: right; line-height: 1.15; }
  h1 { font-size: 32px; }
  .contact-card { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px; }
  .social-icon { width: 40px; height: 40px; }
  .card-action { grid-column: 2; justify-content: flex-start; }
  .card-action [data-action] { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; font-size: 16px; }
  .pending-label { display: none; }
  .action-arrow { width: 18px; height: 18px; flex-basis: 18px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
