/* Colors and type from trainingboard_app:
   tbdark #061324, tbyellow #e8e84d, tbblue #2d94c3, tblightblue #8bc5ff,
   lightBackground #f2f2f7, PT Sans. */

@font-face {
  font-family: "PT Sans";
  src: url("../fonts/PTSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  src: url("../fonts/PTSans-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  src: url("../fonts/PTSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  src: url("../fonts/PTSans-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --yellow: #e8e84d;
  --blue: #2d94c3;
  --light-blue: #8bc5ff;
  --navy: #061324;
  --slate: #596074;
  --ink: #061324;
  --text: #f2f2f2;
  --muted: rgba(242, 242, 242, 0.72);
  --light: #f2f2f7;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.2);
  --chat: #354f69;
  --radius: 10px;
  --header: 76px;
  --max: 1120px;
  --shadow: 0 24px 60px rgba(6, 19, 36, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PT Sans", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.45;
  color: var(--text);
  background: var(--navy);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p {
  margin: 0;
}

h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h1 .accent {
  display: block;
  color: var(--yellow);
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

::selection {
  background: var(--blue);
  color: #fff;
}

html[lang="ru"] .en,
html[lang="en"] .ru {
  display: none !important;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  background: var(--yellow);
  color: var(--navy);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  background: rgba(6, 19, 36, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo img {
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 16px;
}

.nav a:not(.btn) {
  color: var(--muted);
}

.nav a:not(.btn):hover,
.nav a:not(.btn):focus-visible {
  color: var(--yellow);
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav .nav__cta {
  display: none;
}

.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--yellow);
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
}

.btn-primary:hover {
  filter: brightness(0.96);
}

.btn-lg {
  min-height: 56px;
  padding: 0 26px;
  font-size: 20px;
}

.header__cta {
  min-height: 40px;
  font-size: 15px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
}

.btn:focus-visible,
.nav a:focus-visible,
.lang button:focus-visible,
.nav-toggle:focus-visible,
.store-badge:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--light-blue);
  outline-offset: 3px;
}

.hero {
  position: relative;
  padding: 56px 0 28px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 360px at 88% 18%, rgba(45, 148, 195, 0.35), transparent 70%),
    radial-gradient(520px 280px at 8% 90%, rgba(232, 232, 77, 0.1), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero__grid > *,
.web > *,
.steps__grid > *,
.cards > *,
.roles > * {
  min-width: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--light-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.kicker--dark {
  color: var(--blue);
}

.lead {
  max-width: 38rem;
  margin-top: 18px;
  color: var(--muted);
  font-size: 20px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 28px;
}

.hero__url {
  color: var(--light-blue);
  font-size: 16px;
}

.stores {
  margin-top: 36px;
}

.stores__label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.stores__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stores__row--center {
  justify-content: center;
}

.stores__note {
  max-width: 36rem;
  margin-top: 12px;
  color: rgba(242, 242, 242, 0.72);
  font-size: 14px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 16px 7px 12px;
  border-radius: var(--radius);
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.store-badge:hover {
  border-color: var(--yellow);
}

.store-badge__icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.store-badge__kicker {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.78;
}

.store-badge__name {
  font-size: 17px;
  font-weight: 700;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(320px, 100%);
  padding: 10px 10px 8px;
  border-radius: 40px;
  background: #000;
  box-shadow: var(--shadow), 0 0 0 1px rgba(139, 197, 255, 0.18);
}

.phone__screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 576 / 1024;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  padding: 18px 14px;
}

.shots {
  position: relative;
  width: 100%;
  aspect-ratio: 576 / 1024;
  touch-action: pan-y;
}

.shots img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.shots img.is-active {
  opacity: 1;
}

.shots__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 8px 4px;
}

.shots__dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shots__dots button,
.shots__pause {
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.shots__dots button {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
}

.shots__dots button[aria-selected="true"] {
  width: 16px;
  background: var(--yellow);
}

.shots__pause {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
}

.shots__pause::before,
.shots__pause::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 2px;
  height: 8px;
  border-radius: 1px;
  background: #fff;
}

.shots__pause::before {
  left: 6px;
}

.shots__pause::after {
  right: 6px;
}

.shots__pause[aria-pressed="true"]::before {
  left: 6px;
  top: 4px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
  background: transparent;
  border-radius: 0;
}

.shots__pause[aria-pressed="true"]::after {
  display: none;
}

.shots__dots button:focus-visible,
.shots__pause:focus-visible {
  outline: 2px solid var(--light-blue);
  outline-offset: 2px;
}

.steps {
  padding: 12px 0 64px;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.steps article {
  padding: 22px 22px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.steps__num {
  display: block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.steps h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.steps p {
  color: var(--muted);
  font-size: 16px;
}

section[id] {
  scroll-margin-top: calc(var(--header) + 16px);
}

.band {
  padding: 80px 0;
}

.band--light {
  background: var(--light);
  color: var(--ink);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 32px;
}

.section-head p,
.web__lead {
  margin-top: 12px;
  color: var(--slate);
  font-size: 18px;
}

.section-head--light p {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  padding: 22px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(6, 19, 36, 0.04);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--navy);
}

.card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--slate);
  font-size: 16px;
}

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

.role {
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
}

.role--athlete {
  border-top-color: var(--light-blue);
}

.role__label {
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role--athlete .role__label {
  color: var(--light-blue);
}

.role h3 {
  margin-bottom: 18px;
  font-size: 28px;
}

@media (min-width: 961px) {
  .role h3 {
    min-height: 2.4em;
  }
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 17px;
}

.ticks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23061324' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.ticks--blue li::before {
  background-color: var(--light-blue);
}

.ticks--ink {
  margin: 22px 0 28px;
}

.ticks--ink li {
  color: var(--ink);
}

.web {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.browser {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(6, 19, 36, 0.08);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: var(--navy);
}

.browser__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.browser__bar span:first-child {
  background: var(--yellow);
}

.browser__url {
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
}

.browser__body {
  display: grid;
  grid-template-columns: 64px 1fr;
  min-height: 280px;
}

.browser aside {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px 14px;
  background: #0c1c33;
}

.browser aside i {
  display: block;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.browser aside i.is-on {
  background: var(--yellow);
}

.browser__main {
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 10px;
  background: #f7f7fb;
}

.browser__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.browser__stats div {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
}

.browser__stats small {
  display: block;
  color: var(--slate);
  font-size: 12px;
}

.browser__stats i {
  display: block;
  height: 8px;
  width: 70%;
  margin-top: 10px;
  border-radius: 99px;
  background: var(--blue);
}

.browser__stats div:nth-child(2) i {
  width: 48%;
  background: var(--yellow);
}

.browser__stats div:nth-child(3) i {
  width: 36%;
  background: var(--slate);
}

.browser__row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(89, 96, 116, 0.16);
}

.browser__row b,
.browser__row em {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(6, 19, 36, 0.28);
}

.browser__row b {
  width: 42%;
}

.browser__row em {
  width: 22%;
  margin-left: auto;
  background: var(--blue);
  opacity: 0.7;
}

.download {
  padding: 88px 0;
  text-align: center;
  background:
    radial-gradient(520px 220px at 50% 0%, rgba(45, 148, 195, 0.28), transparent 70%),
    var(--navy);
}

.download__inner {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.download p {
  max-width: 36rem;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 15px;
}

.footer__inner p {
  margin-left: auto;
}

.footer a:hover {
  color: var(--yellow);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 30;
  max-width: min(420px, calc(100% - 32px));
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow);
}

.toast[hidden] {
  display: none;
}

@media (max-width: 960px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px 20px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #061324;
    border-bottom: 1px solid var(--line);
    z-index: 20;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 12px 4px;
    font-size: 18px;
    color: var(--text);
  }

  .nav .nav__cta {
    display: inline-flex;
    margin-top: 8px;
  }

  .header__cta {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .hero__grid,
  .web,
  .roles,
  .cards,
  .steps__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 32px;
  }

  .hero__visual {
    margin-top: 8px;
  }

  .phone {
    width: min(260px, 78%);
  }

  .cards {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 32px));
  }

  h1 {
    font-size: 36px;
  }

  .lead,
  .btn-lg {
    font-size: 18px;
  }

  .cards,
  .steps__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__inner {
    flex-wrap: wrap;
  }

  .footer__inner p {
    margin-left: 0;
  }

  .hero__url {
    flex-basis: 100%;
  }

  .store-badge {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
