@font-face {
  font-family: Inter;
  src: url("../fonts/inter/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

.formats, .contact, .site-footer {
  --last-gutter: 40px;
  --last-inset: clamp(50px, calc(15.625cqw - 70px), 100px);
}

.formats {
  --formats-stripe: url("../icons/formats-stripe.svg");
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: var(--last-inset);
  background: #fdf5ec;
}

.formats::before {
  position: absolute;
  z-index: -1;
  inset: auto 0 0 auto;
  width: min(892px, 100%);
  height: clamp(519px, calc(53.75cqw + 35px), 723px);
  background: var(--formats-stripe) center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}

.formats__content {
  width: min(calc(100% - 2 * var(--last-gutter)), 1346px);
  margin-inline: auto;
}
.formats__intro { text-align: center; }
.formats__intro p {
  margin-block-start: 16px;
  font-size: 18px;
  line-height: 1.4;
}

.formats__grid {
  --format-card-height: clamp(533px, calc(705px - 13.4375cqw), 576px);
  --format-featured-height: clamp(576px, calc(11.5625cqw + 465px), 613px);
  --format-offset: clamp(0px, calc(12.5cqw - 120px), 40px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
  margin-block-start: clamp(30px, calc(5.2083cqw - 10px), 40px);
}

.format-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: var(--format-card-height);
  margin-block-start: var(--format-offset);
  padding: 6px 11px 11px;
  border: 1px solid #c42e3380;
  border-block-start: 6px solid var(--red);
  border-radius: 0 0 7px 7px;
  background: #fdfdfd;
}
.format-card--featured {
  min-height: var(--format-featured-height);
  margin-block-start: 0;
  border-color: var(--red);
  background: linear-gradient(#202020ba, #202020ba),
    #272727 url("../images/credentials/texture.webp") center / 100% 100% no-repeat;
  color: #f4f7fa;
}
.format-card h3 {
  margin: 0 0 24px;
  color: #1b1d20;
  font: 700 clamp(27px, calc(2cqw + 8px), 34px)/1.15 var(--display-font);
  text-wrap: balance;
}
.format-card--featured h3 { color: inherit; }

.format-card__facts, .format-card__facts dd { margin: 0; }
.format-card__facts > div {
  padding-block: 6px 5px;
  border-block-end: 1px solid var(--format-rule, #e3e8ed);
}
.format-card--featured { --format-rule: #8593a380; }

.format-card__facts dt,
.format-card__includes summary {
  color: var(--red);
  font: 700 14px/1.4 Inter, Manrope, sans-serif;
}
.format-card__facts dd {
  margin-block-start: 4px;
  font-size: 16px;
  line-height: 1.4;
}

.format-card__includes { border-block-end: 1px solid var(--format-rule, #e3e8ed); }
.format-card__includes-content { overflow: hidden; }
.format-card__includes summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 35px;
  padding-inline-end: 9px;
  list-style: none;
  cursor: pointer;
}
.format-card__includes summary::-webkit-details-marker { display: none; }
.format-card__includes summary:focus-visible { outline-offset: -3px; }
.format-card__includes summary::after {
  flex: none;
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  content: "";
}
.format-card__includes[open]:not([data-closing]) summary::after { transform: rotate(225deg); }
@media (prefers-reduced-motion: no-preference) {
  .format-card__includes summary::after { transition: transform 340ms ease-in-out; }
}
.format-card__includes ul {
  padding: 0 0 10px 20px;
  list-style: disc;
  font-size: 16px;
  line-height: 1.4;
}

.format-card__price {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-block-end: 16px;
  font: 700 24px/1.2 var(--display-font);
}
.format-card__price span:last-child { white-space: nowrap; }

.format-card__cta, .promotion__cta, .contact__submit {
  border: 0;
  opacity: 1;
  color: #fff;
}
.format-card__cta { width: 100%; min-height: 73px; }
.format-card__cta--outline {
  border: 1px solid #be2028;
  background: transparent;
  box-shadow: none;
  color: #9a1717;
}
@media (hover: hover) {
  .format-card__cta--outline:hover {
    background-color: #fae2e2;
    filter: none;
  }
}
@media (hover: none) {
  :is(.format-card__cta, .promotion__cta, .contact__submit):hover { filter: none; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.promotion__cta, .contact__submit) {
    transition: background-color 200ms ease, filter 200ms ease;
  }
}

.promotion {
  --promotion-pad: clamp(40px, calc(18.75cqw - 140px), 100px);
  width: min(calc(100% - 2 * var(--last-gutter)), 1620px);
  margin: var(--last-inset) auto 0;
  padding: var(--promotion-pad) clamp(40px, calc(7.7083cqw - 11px), 137px);
  border-radius: 6px;
  background: linear-gradient(90deg, #0a0a0c 35.7%, #8a081533),
    #1b1d20 url("../images/formats/promotion.webp") center / cover no-repeat;
  color: #f4f7fa;
}
.promotion h3,
.contact__intro h2 {
  font: 700 clamp(48px, calc(8.3333cqw - 16px), 64px)/1 var(--display-font);
}
.promotion h3 { margin: 0; }
.promotion p {
  max-width: 565px;
  margin-block-start: 22px;
  font-size: 18px;
  line-height: 1.4;
}
.promotion__cta {
  width: min(100%, 408px);
  min-height: 89px;
  margin-block-start: 22px;
}

.contact {
  padding-block: var(--last-inset);
  background: linear-gradient(#000b, #000b),
    #000 url("../images/contact/training-wide.webp") center / 100% 100% no-repeat;
  color: #f4f7fa;
}
.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, clamp(330px, calc(15.625cqw + 180px), 380px));
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  width: min(calc(100% - 2 * var(--last-gutter)), clamp(880px, calc(34.375cqw + 550px), 1080px));
  margin-inline: auto;
}
.contact__intro { padding-block-start: 18px; }
.contact__intro h2 { color: var(--red); }
:root:lang(uk) .contact__intro { container-type: inline-size; }
:root:lang(uk) .contact__intro h2 { font-size: min(60px, 12.5cqi); }
.contact__intro > p, .contact__methods {
  margin-block-start: 24px;
  font-size: 18px;
  line-height: 1.4;
}
.contact__methods {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.contact__messengers { flex: 1 1 145px; max-width: 257px; }
.contact__methods .social-icons {
  justify-content: flex-start;
  margin-block-start: 12px;
}
.contact__call {
  display: inline-block;
  margin-block-start: 12px;
  color: #dd3539;
  font: 700 1em/1.5 Evolventa, Manrope, sans-serif;
  white-space: nowrap;
}
.contact__call:hover { text-decoration: underline; }
.contact__fields {
  display: grid;
  gap: clamp(20px, calc(1.5625cqw + 5px), 25px);
}
.contact__field { display: grid; gap: 4px; }
.contact__field label { font-size: 16px; line-height: 1.4; }
.contact__field input, .contact__field textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid #d4dce6;
  border-radius: 6px;
  background: #fdf5ec;
  color: #353b41;
  font: 400 16px/24px Inter, Manrope, sans-serif;
}
.contact__field textarea { display: block; resize: none; }
.contact__field :is(input, textarea)::placeholder { color: #8493a2; opacity: 1; }
.contact__phone { position: relative; }
.contact__country {
  position: absolute;
  inset: 1px auto 1px 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 58px;
  border-radius: 5px 0 0 5px;
  color: #353b41;
  font-size: 13px;
  font-weight: 700;
}
.contact__country select {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.contact__country:has(select:not([hidden]))::after {
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-2px) rotate(45deg);
  content: "";
}
.contact__country:has(select:focus-visible) {
  outline: 2px solid #287aca;
  outline-offset: -2px;
}
.contact__country-flag {
  width: 20px;
  height: 15px;
  background-image: image-set(
    url("../icons/phone-flags/flags.webp") 1x,
    url("../icons/phone-flags/flags@2x.webp") 2x
  );
  background-position: calc(var(--phone-flag-offset, 1) * 20px) 0;
  background-repeat: no-repeat;
  background-size: 4880px 15px;
}
/* Public-domain flag from Wikimedia Commons (Flag of Tristan da Cunha.svg). */
.contact__country[data-country="TA"] .contact__country-flag {
  background: url("../icons/phone-flags/tristan-da-cunha.png") center / contain no-repeat;
}
.contact__country[data-country=""] .contact__country-flag {
  height: auto;
  text-align: center;
  background: none;
}
.contact__country[data-country=""] .contact__country-flag::before { content: "+"; }
.contact__phone input { padding-inline-start: 65px; }
.contact__submit {
  width: 100%;
  min-height: 73px;
  margin-block-start: clamp(30px, calc(4.375cqw - 12px), 44px);
}
.contact__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block-start: 12px;
  color: #e2e4e7;
  font-size: 14px;
  line-height: 1.5;
}
.contact__consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--red);
}
.contact__consent input, .contact__consent label { cursor: pointer; }
.contact__consent a, .site-footer__legal a {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.contact__consent a:hover, .site-footer__legal a:hover { color: #fff; }
.contact__status:not(:empty) {
  margin-block-start: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.contact__status[data-error="true"] { color: #ffd2d2; }

.signup-dialog {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #454545;
  border-radius: 10px;
  background: #171717;
  color: #f4f7fa;
  overscroll-behavior: contain;
}
.signup-dialog::backdrop { background: #000b; }
body:has(.signup-dialog[open]) { overflow: hidden; }
.signup-dialog__content { padding: clamp(16px, 4vw, 24px); }
.signup-dialog__header {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-block-end: 20px;
  font-size: 16px;
  line-height: 1.4;
}
.signup-dialog__close {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.signup-dialog__close:hover { background: #ffffff17; }

.site-footer {
  --last-inset: clamp(80px, calc(6.25vw + 20px), 100px);
  padding-block: var(--last-inset);
  background: #050505 url("../icons/footer-athletes.svg") center bottom / 100% min(17.8vw, 304px) no-repeat;
  text-align: center;
}
.site-footer__inner {
  width: min(calc(100% - 2 * var(--last-gutter)), 1346px);
  margin-inline: auto;
}
.site-footer__brand {
  width: 100%;
  height: clamp(127px, calc(32.292vw - 121px), 231px);
  object-fit: fill;
}
.site-footer__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-block-start: 45px;
}
.site-footer__actions a {
  display: grid;
  place-items: center;
  min-height: 73px;
  padding: 12px;
  border: 1px solid #f4f7fa;
  border-radius: 6px;
  background: transparent;
  color: var(--red);
  font: 600 18px/1.4 Manrope, sans-serif;
}
.site-footer__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin-block-start: clamp(24px, 3vw, 45px);
  text-align: start;
}
.site-footer__legal {
  color: #8692a0;
  font-size: 16px;
  line-height: 1.4;
}
.site-footer__legal p + p { margin-block-start: 8px; }

.site-footer__credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  margin-inline-start: auto;
  padding: 8px 16px;
  border: 1px solid var(--red);
  border-radius: 6px;
  color: #fff;
  background: #171717;
  font: 700 16px/1.4 Manrope, sans-serif;
}

.site-footer__credit:is(:hover, :focus-visible) {
  border-color: #ea5a5e;
  background: #471d1f;
}

@media (prefers-reduced-motion: no-preference) {
  .site-footer__credit { transition: background-color 180ms ease, border-color 180ms ease; }
}

@media (width >= 1280px) {
  .formats__grid {
    --format-card-height: 533px;
    --format-featured-height: clamp(613px, calc(28.75cqw + 245px), 659px);
    --format-offset: clamp(40px, calc(14.375cqw - 144px), 63px);
  }
}

@media (width >= 1440px) {
  .formats, .contact { --last-gutter: clamp(40px, calc(22.9167cqw - 290px), 150px); }
  .site-footer {
    --last-gutter: clamp(40px, calc(22.9167vw - 290px), 150px);
    background-size: 100% clamp(256px, calc(10vw + 112px), 304px);
  }
}

@media (width < 1100px) {
  .formats { --formats-stripe: url("../icons/formats-stripe-960.svg"); }
  .contact {
    background-image: linear-gradient(#000b, #000b), url("../images/contact/training-tablet.webp");
  }
  .promotion { padding-inline: 40px; }
}

@media (width < 900px) {
  .formats { --formats-stripe: url("../icons/formats-stripe-768.svg"); }
  .formats__content { max-width: 488px; }
  .formats__grid {
    grid-template-columns: 1fr;
    --format-card-height: 0px;
    --format-featured-height: 0px;
    --format-offset: 0px;
  }
}

@media (width < 700px) {
  .formats, .contact, .site-footer { --last-gutter: 20px; --last-inset: 40px; }
  .formats { --formats-stripe: url("../icons/formats-stripe-480.svg"); }
  .formats::before { height: clamp(519px, calc(1031px - 106.667cqw), 647px); }
  .formats__grid { margin-block-start: 20px; }
  .format-card { gap: 6px; }
  .format-card h3 { margin-block-end: 20px; }
  .promotion { padding: 20px; }
  .promotion h3 {
    font-size: clamp(24px, calc(20cqw - 48px), 48px);
    line-height: 1.1;
  }
  .promotion__cta { width: 100%; min-height: clamp(64px, calc(20.833cqw - 11px), 89px); }
  .contact {
    background: linear-gradient(#000b, #000b),
      #000 url("../images/contact/training.webp") center / cover no-repeat;
  }
  .contact__layout { grid-template-columns: 1fr; gap: 30px; }
  .contact__intro { padding-block-start: 0; }
  .contact__intro h2 { font-size: clamp(36px, 10cqw, 48px); line-height: 1.1; }
  :root:lang(uk) .contact__intro h2 { font-size: min(clamp(36px, 10vw, 48px), 12.5cqi); }
  .contact__intro > p, .contact__methods { margin-block-start: 20px; }
  .contact__methods { font-size: 16px; }
  .site-footer { padding-block-end: max(72px, calc(env(safe-area-inset-bottom, 0px) + 60px)); }
  .site-footer__brand { height: 78px; }
  .site-footer__actions { grid-template-columns: 1fr; }
  .site-footer__credit { width: 100%; margin-inline-start: 0; }
}

@media (width < 400px) {
  .formats { --formats-stripe: url("../icons/formats-stripe-360.svg"); }
  .formats__intro p { text-align: start; }
  .promotion h3, .contact__intro h2 { line-height: 1.2; }
}
