@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope/Manrope-VariableFont_wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: Evolventa;
  src: url("../fonts/evolventa/Evolventa-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Evolventa;
  src: url("../fonts/evolventa/Evolventa-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Buyan;
  src: url("../fonts/buyan/BuyanBold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  /* Oswald Bold condensed horizontally to fit the display layout. */
  font-family: "Oswald Compact";
  src: url("../fonts/oswald/OswaldCompact-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  size-adjust: 88%;
}

@font-face {
  font-family: Oswald;
  src: url("../fonts/oswald/Oswald-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Manrope, sans-serif;
  color: #353b41;
  background: #fdfdfd;
  --red: #c42e33;
  --cream: #fcf5ec;
  --display-font: Buyan, Impact, sans-serif;
}

:root:lang(uk) {
  --display-font: "Oswald Compact", "Arial Narrow", sans-serif;
}

:root:is(:lang(uk), :lang(en)) :is(
  .overview-heading, .training-cta, .menu h2,
  .barrier__header, .about__bio h3, .about__metrics strong,
  .carousel .card__number, .carousel .card__title, .credential__title,
  .comfort-card h3, .values__list strong, .format-card h3, .format-card__price,
  .promotion h3, .contact__intro h2, .privacy__main h1, .privacy__main h2
) {
  text-transform: uppercase;
  letter-spacing: -.012em;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }
body, h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid #287aca;
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.back-to-top {
  position: fixed;
  z-index: 6;
  right: max(clamp(14px, 2.5vw, 32px), calc(env(safe-area-inset-right, 0px) + 8px));
  bottom: max(clamp(14px, 2.5vw, 32px), calc(env(safe-area-inset-bottom, 0px) + 8px));
  width: clamp(44px, 5vw, 52px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid #c42e3366;
  border-radius: 50%;
  background: #fffaf5;
  box-shadow: 0 4px 18px #30131829;
  cursor: pointer;
}
.back-to-top:not([hidden]) { display: grid; place-items: center; }
.back-to-top img { transform: rotate(90deg); }
@media (hover: hover) {
  .back-to-top:hover { background: #fae2e2; }
}

@media (prefers-reduced-motion: no-preference) {
  .back-to-top:not([hidden]) { animation: back-to-top-enter 240ms ease-out both; }
  .back-to-top img { transition: transform 180ms ease-out; }

  @keyframes back-to-top-enter {
    from { opacity: 0; translate: 0 10px; }
    to { opacity: 1; translate: 0 0; }
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .back-to-top:hover img { transform: translateY(-3px) rotate(90deg); }
}

.page {
  --layout-width: 1920px;
  max-width: var(--layout-width);
  margin-inline: auto;
  container-type: inline-size;
}

.training-overview {
  display: flow-root;
  background-color: #fdf5ec;
}

@media screen and (prefers-reduced-motion: no-preference) {
  [data-section-pending]:not(:focus-within) { opacity: 0; }
}

.overview-heading {
  font: 700 clamp(33px, calc(6.25cqw - 12px), 48px)/1.1 var(--display-font);
}

@media (width < 700px) {
  .overview-heading { font-size: clamp(24px, calc(10cqw - 12px), 36px); line-height: 1.2; }
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background-color: #fdfdfd;
}

.hero__stage { position: relative; height: var(--benefits-y); }

.hero__texture, .hero__portrait, .hero__paper, .hero__title {
  position: absolute;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.hero__texture {
  inset: 0 0 auto;
  height: var(--texture-height);
  background-color: #161616;
  background-image: var(--texture);
  background-size: 50% 100%;
  background-position: right top;
}
.hero__texture::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  background: var(--cream);
}

.hero__title {
  z-index: 1;
  inset: var(--title-y) auto auto var(--title-x);
  width: var(--title-width);
  height: var(--title-height);
  background-image: var(--wordmark);
}
:is(.hero__title--uk, .hero__title--en) { background-image: none; }
.hero__wordmark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__wordmark-base { fill: #000; fill-opacity: .92; }
.hero__wordmark-texture { fill-opacity: .3; }
.hero__wordmark-accent { fill: var(--red); }

.hero__portrait {
  z-index: 2;
  inset: var(--portrait-y) auto auto var(--portrait-x);
  width: var(--portrait-width);
  height: var(--portrait-height);
  background-image: var(--portrait);
}

.hero__paper {
  z-index: 3;
  inset: var(--paper-y) 0 auto;
  height: var(--paper-height);
  background-image: var(--paper);
}

.hero__intro {
  position: absolute;
  z-index: 4;
  inset: var(--intro-y) auto auto var(--content-gutter);
  max-width: var(--intro-width);
  font-size: var(--intro-size, 24px);
  font-weight: 700;
  line-height: 1.4;
}
.hero__intro strong { color: var(--red); white-space: nowrap; }

.hero__tagline, .hero__cta {
  position: absolute;
  z-index: 4;
}

.hero__tagline {
  inset: var(--tagline-y) var(--tagline-right) auto auto;
  width: var(--tagline-width);
  color: #fff;
  font: 18px/1.5 Evolventa, sans-serif;
}

.training-cta {
  display: grid;
  place-items: center;
  /* Center the visible capitals within the button. */
  --cta-label-offset: .065em;
  padding-inline: 12px;
  padding-block: calc(12px + var(--cta-label-offset)) calc(12px - var(--cta-label-offset));
  border-radius: 7px;
  color: #fff;
  background: radial-gradient(ellipse at 48% 65%, #d43e3e, #9a1717 72%);
  box-shadow: inset 0 -4px 7px #790000b3;
  font: 700 var(--cta-size, 24px)/1.15 var(--display-font);
  text-align: center;
}
.training-cta:lang(uk) { --cta-label-offset: -.08em; }
.training-cta:hover { filter: brightness(1.13); }

:is(.hero__cta, .format-card__cta) { touch-action: manipulation; }

@media (prefers-reduced-motion: no-preference) {
  :is(.hero__cta, .format-card__cta) {
    transition: scale 160ms ease-out, background-color 200ms ease, filter 200ms ease;
  }
  :is(.hero__cta, .format-card__cta)[data-touch-pressed] {
    scale: .975;
    transition-duration: 80ms, 200ms, 200ms;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.hero__cta, .format-card__cta):active {
    scale: .975;
    transition-duration: 80ms, 200ms, 200ms;
  }
}

@media (hover: hover) {
  .site-footer__actions a:hover, .credential__document:hover {
    border-color: #dd484d;
    background-color: #c42e334d;
    color: #fff;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .site-footer__actions a, .credential__document {
    transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  }
}

.hero__cta {
  inset: var(--cta-y) auto auto var(--content-gutter);
  width: var(--cta-width);
  min-height: var(--cta-height);
  scroll-margin-block: 20px;
}

@media (width > 1920px) {
  .page {
    --outer-gutter: max(0px, calc((100cqw - var(--layout-width)) / 2));
    max-width: none;
  }

  .page > * { padding-inline: var(--outer-gutter); }
  .hero__texture { inset-inline: calc(-1 * var(--outer-gutter)); }

  .hero__action {
    position: absolute;
    inset: 0 var(--outer-gutter);
    pointer-events: none;
  }
  .hero__action > * { pointer-events: auto; }
}

.header {
  --header-gap: 18px;
  --header-logo-width: 123px;
  position: relative;
  z-index: 5;
  min-height: var(--header-height, 110px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--header-gap);
  padding-inline: var(--header-gutter, 40px);
  font: 18px/1.5 Evolventa, sans-serif;
}

.logo { flex: none; }
.logo img { width: var(--header-logo-width, 123px); height: auto; }

.nav-list, .header__actions, .header__contacts, .social-icons {
  display: flex;
  align-items: center;
}
.nav-list { white-space: nowrap; font-size: var(--nav-size, 18px); }
.nav-list a:focus-visible { color: var(--red); -webkit-text-stroke: .55px currentColor; }
.nav-list li + li { padding-inline-start: var(--nav-gap, 15px); }
.nav-list li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 10px;
  margin-inline-start: var(--nav-gap, 15px);
  background: #8f949b;
}
.nav-list li:last-child { color: var(--contact-nav-color, #fff); }
.header__contacts { gap: var(--contacts-gap, 46px); white-space: nowrap; color: #fff; }
.header__label { font: 16px/1.4 Evolventa, sans-serif; margin-block-end: 7px; }
.header__social { text-align: center; color: var(--social-color, #fff); }
.social-icons { justify-content: center; gap: var(--social-gap, 16px); }
.social-icons img { width: var(--social-size, 40px); height: var(--social-size, 40px); }
.header__phone a { color: #dd3539; font: 700 18px/1.5 Manrope, sans-serif; }
.header__phone a:hover { text-decoration: underline; }
@media (hover: hover) {
  .nav-list a:hover { color: var(--red); -webkit-text-stroke: .55px currentColor; }
  .social-icons a:hover img { filter: brightness(1.25) drop-shadow(0 0 6px #d2394177); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .nav-list a { transition: color 180ms ease, -webkit-text-stroke-width 180ms ease; }
  .social-icons img { transition: filter 200ms ease, transform 200ms ease; }
  .social-icons a:hover img { transform: translateY(-2px); }
}
.header__actions { flex: none; gap: 12px; color: #fff; white-space: nowrap; }
.header__language { position: relative; flex: none; font: 14px/1.5 Evolventa, sans-serif; }
.header__language summary {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 55px;
  min-height: 37px;
  padding-inline: 12px 5px;
  border-radius: 6px;
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: #c42e3333;
}
.header__language summary::-webkit-details-marker { display: none; }
.header__language summary > span { flex: 0 0 18px; }
.header__language-chevron { flex: none; display: block; overflow: visible; }
.header__language[open] .header__language-chevron { transform: rotate(180deg); }
.header__language-list {
  position: absolute;
  inset: calc(100% + 6px) 0 auto auto;
  min-width: 152px;
  padding: 4px;
  border: 1px solid #605455;
  border-radius: 6px;
  background: #1b1919;
  box-shadow: 0 8px 20px #0004;
  font-family: Manrope, sans-serif;
}
.header__language-list :is(button, a) {
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 5px 9px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: transparent;
  text-align: start;
  cursor: pointer;
}
.header__language-list button[aria-current="true"] { background: #c42e3333; }
.header__language-list button:disabled { color: #b8afb0; cursor: default; }
@media (hover: hover) {
  .header__language-list:has(a:hover) button[aria-current="true"] { background: transparent; }
  .header__language-list a:hover { background: #c42e3333; }
}
.header__cta {
  display: none;
  width: 262px;
  min-height: 59px;
  padding: 15px 23px;
  border: 1px solid var(--red);
  border-radius: 6px;
  font: 600 18px/1.5 Inter, Manrope, sans-serif;
  text-align: center;
}
.header__cta:hover { background: #c42e3333; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 4px;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.menu-toggle__icon {
  display: block;
  width: 32px;
  height: 22px;
  background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 6.67px);
}

.benefits {
  position: relative;
  z-index: 4;
  margin-inline: auto;
  width: min(100% - var(--benefits-gutter, 80px), 1346px);
  padding-block-end: var(--benefits-bottom, 100px);
}
.benefits__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--benefits-gap, 50px); }
.benefit { display: flex; align-items: flex-start; gap: 14px; }
.benefit img { flex: none; }
.benefit h2 {
  color: var(--red);
  font: 700 var(--benefit-title-size, 36px)/1.1 var(--display-font);
  margin-block-end: 9px;
}
.benefit p { color: #505861; font-size: 18px; line-height: 1.4; }

.hero:lang(uk) .benefit h2 {
  font-family: Oswald, var(--display-font);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -.05em;
}
.hero:lang(en) .benefit h2 { text-transform: uppercase; }

@media (width >= 700px) {
  .hero:is(:lang(uk), :lang(en)) .benefit > div {
    flex: 1;
    width: 100%;
    min-width: 0;
    container-type: inline-size;
  }
  .hero:lang(uk) .benefit h2 {
    font-size: min(clamp(24px, calc(5.2083vw - 16px), 36px), 11.2cqi);
  }
  .hero:lang(en) .benefit h2 { font-size: min(var(--benefit-title-size), 11.35cqi); }
}

.menu {
  --menu-top: max(16px, env(safe-area-inset-top, 0px));
  --menu-right: max(16px, env(safe-area-inset-right, 0px));
  position: fixed;
  inset: var(--menu-top) var(--menu-right) auto auto;
  width: min(420px, calc(100% - var(--menu-right) - max(16px, env(safe-area-inset-left, 0px))));
  max-height: calc(100dvh - var(--menu-top) - max(16px, env(safe-area-inset-bottom, 0px)));
  margin: 0;
  padding: 22px;
  border: 1px solid #454545;
  border-radius: 10px;
  background: #171717;
  color: #fff;
}
.menu::backdrop { background: #000b; }
body:has(.menu[open], .credential-gallery[open]) { overflow: hidden; }
.menu__header { display: flex; align-items: center; justify-content: space-between; }
.menu h2 { font: 700 32px/1 var(--display-font); }
.menu__close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 29px;
  cursor: pointer;
}
.menu__links { margin-block: 14px 20px; }
.menu__links li { border-block-end: 1px solid #555; }
.menu__links a, .menu__links span { display: block; padding-block: 11px; }
.menu__links [aria-disabled] { color: #b8b8b8; }
.menu__cta {
  display: block;
  padding: 12px;
  color: #fff;
  background: #9a1717;
  border-radius: 5px;
  text-align: center;
}

@media (width >= 1600px) {
  .header__actions { gap: 4px; }
  .header__cta { display: grid; place-items: center; }
  .header__nav { --contact-nav-color: #353b41; }

  .hero:lang(uk) .header__nav { --nav-gap: 16px; padding-inline: 15px; }
  .hero:lang(uk) .header__cta { width: 236px; }
  .hero:lang(en) .header__cta { width: 236px; }
}

@media (width < 1440px) {
  .header { --nav-size: 16px; --nav-gap: 9px; --contacts-gap: 30px; }
}

@media (width >= 1200px) {
  .hero:lang(en) .header__phone {
    display: grid;
    grid-template-rows: auto var(--social-size, 40px);
    align-items: center;
    justify-items: start;
  }
}

@media (1200px <= width < 1680px) {
  .header__nav {
    --nav-size: clamp(14px, calc(1cqw + 2px), 18px);
    --nav-gap: clamp(5px, calc(1.5cqw - 12px), 12px);
    --contact-nav-color: #353b41;
    position: absolute;
    inset-block: 0;
    inset-inline: calc(var(--header-gutter, 40px) + var(--header-logo-width) + var(--header-gap)) calc(50% + 16px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .header__contacts { margin-inline-start: auto; }
}

@media (700px <= width < 1200px) {
  .header {
    --header-height: 97px;
    --social-size: 24px;
    --social-gap: 7px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    padding-inline: clamp(24px, 4cqw, 40px);
  }
  .header__nav { display: none; }
  .header__contacts { display: contents; }
  .header .logo, .header__social { grid-area: 1 / 1; }
  .header__phone, .header__actions { grid-area: 1 / 2; }
  .header .logo, .header__phone { justify-self: start; }
  .header__social, .header__actions { justify-self: end; }
  .header__social { --social-color: #505861; }
  .header__social, .header__phone {
    display: grid;
    grid-template-rows: 22px 27px;
    align-items: center;
    row-gap: 6px;
  }
  .header__label { margin-block-end: 0; line-height: 22px; }
  .header__phone a { justify-self: start; }
  .header__actions { gap: 10px; }
  .hero__intro { --intro-size: 18px; }
  .benefit { align-items: center; flex-direction: column; text-align: center; }
}

@media (width < 1200px) {
  .menu-toggle { display: grid; }
}

@media (width < 700px) {
  .hero { --content-gutter: 20px; }
  .hero__stage { height: auto; background-color: #161616; }
  .hero__texture { height: calc(100% + 12px); background-size: cover; background-position: center; }
  .hero__texture::before { display: none; }

  .header {
    --header-height: clamp(72px, calc(48px + 6.667cqw), 80px);
    --header-gutter: 20px;
  }
  .logo img { width: 126px; }
  .header__nav, .header__contacts { display: none; }
  .header__actions { gap: 16px; }
  .header__language summary { min-height: 44px; }

  .hero__title {
    position: relative;
    inset: auto;
    width: min(calc(100% - 51px), 535px);
    height: auto;
    aspect-ratio: 4.47;
    margin-block-start: -8px;
    margin-inline-start: 21px;
  }
  .hero__wordmark-base { fill: #fff; fill-opacity: 1; }
  .hero__wordmark-texture { display: none; }
  .hero__intro {
    position: relative;
    inset: auto;
    max-width: 460px;
    margin: clamp(14px, calc(7.5cqw - 13px), 23px) var(--content-gutter) 0;
    color: #fff;
    font-size: 18px;
  }
  .hero__intro strong { color: #df383d; }
  .hero__portrait-slot {
    position: relative;
    height: clamp(346px, calc(307px + 15.83cqw), 400px);
    margin-block-start: 6px;
  }
  .hero__portrait {
    inset: 0 auto auto calc(50% + 12px);
    transform: translateX(-50%);
    width: clamp(200px, calc(192px + 6.667cqw), 240px);
    height: auto;
    aspect-ratio: 216 / 456;
  }
  .hero__paper {
    position: relative;
    inset: auto;
    height: 0;
    background: none;
    pointer-events: none;
  }
  .hero__paper::before {
    content: "";
    position: absolute;
    inset: calc(-1 * var(--paper-overlap)) 0 auto;
    height: var(--paper-height);
    background: var(--paper) top / 100% 100% no-repeat;
  }
  .hero__action {
    position: relative;
    z-index: 4;
    display: grid;
    gap: var(--mobile-action-gap, 10px);
    margin-inline: var(--content-gutter);
  }
  .hero__tagline, .hero__cta { position: static; width: auto; }
  .hero__tagline {
    color: #353b41;
    max-width: 32rem;
    text-wrap: initial;
  }
  .hero__cta { min-height: 57px; font-size: 18px; }
  .benefits {
    width: calc(100% - 40px);
    max-width: 500px;
    padding-block: 22px 44px;
  }
  .benefits__list { grid-template-columns: 1fr; gap: 20px; }
  .benefit { align-items: center; flex-direction: column; text-align: center; }
}

@media (410px <= width < 700px) {
  .hero__tagline-break { display: none; }
}
