body { 
	font-family: 'Merriweather', serif;   
	background: #0f1410; /* темно-зеленый */
  	color: #e7e5e4; /* бежево-серый */ 
    }

    /* reveal */
    .reveal { opacity: 0; transform: translateY(60px); transition: all 1s cubic-bezier(0.16,1,0.3,1); }
    .reveal.active { opacity: 1; transform: translateY(0); }

    /* glass */
    .glass { 
	backdrop-filter: blur(20px); 
  	background: rgba(120, 140, 120, 0.08);
  	border:1px solid rgba(200, 200, 180, 0.15);
    }

    /* parallax */
    .parallax { will-change: transform; }

    /* gradient text */
    .gradient-text {
      background: linear-gradient(90deg,#d6d3d1,#4ade80);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

@keyframes heroLightWave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#heroTitle {
  background-image: linear-gradient(
    110deg,
    rgba(214, 211, 209, 0.92) 0%,
    rgba(255, 255, 255, 0.98) 28%,
    rgba(74, 222, 128, 0.95) 50%,
    rgba(255, 255, 255, 0.96) 72%,
    rgba(214, 211, 209, 0.9) 100%
  );
  background-size: 220% 220%;
  animation: heroLightWave 7.5s ease-in-out infinite;
}

    /* magnetic button */
    .magnetic {
      transition: transform 0.2s ease;
    }

    .material-symbols-outlined {
       font-family: 'Material Symbols Outlined' !important;
    }
    
    .big-icon {
       font-size: 200px;
       font-variation-settings: 
         'FILL' 1   
         'wght' 100, 
         'GRAD' 0,
         'opsz' 200; 
    }

/* Анимация бургер -> крестик */
#burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 10px);
}
#burger.open span:nth-child(2) {
  opacity: 0;
}
#burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -10px);
}

/* extra animations */
@keyframes floatSoft {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(74, 222, 128, 0); }
  50% { box-shadow: 0 0 28px rgba(74, 222, 128, 0.35); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.float-soft {
  animation: floatSoft 5s ease-in-out infinite;
}

.pulse-glow {
  animation: pulseGlow 2.6s ease-in-out infinite;
}

.hero-badge {
  opacity: 0;
  animation: fadeUp 0.9s ease-out forwards;
}

.hero-badge.delay-1 { animation-delay: 0.2s; }
.hero-badge.delay-2 { animation-delay: 0.45s; }

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.tilt-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.flip-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  width: 100%;
  min-width: 0;
}

.player-card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 0;
  min-height: 100%;
}

.player-card-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  width: 100%;
  min-width: 0;
}

.player-card-front {
  position: relative;
  z-index: 2;
}

.player-card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  min-height: 100%;
  overflow: auto;
}

.flip-card.flipped .player-card-inner {
  transform: rotateY(180deg);
}

/* hero perspective court */
.hero-court-wrap {
  margin: 38px auto 0;
  width: min(680px, 92vw);
  perspective: 1300px;
}

.hero-phone-wrap {
  position: relative;
  margin: 18px auto 0;
  width: min(260px, 54vw);
  opacity: 0;
  pointer-events: none;
}

.hero-phone {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(165deg, rgba(17, 24, 39, 0.98), rgba(9, 9, 11, 0.98));
  border: 1px solid rgba(10, 10, 10, 0.9);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  transform: translateY(42px) scale(0.78);
  filter: blur(8px);
  transform-style: preserve-3d;
  transition: transform 140ms linear, opacity 140ms linear, filter 140ms linear;
  will-change: transform, opacity, filter;
}

.hero-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 12px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.6);
  z-index: 3;
}

.hero-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 23, 31, 0.98), rgba(9, 13, 18, 0.98));
}

.ios-statusbar {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  height: 22px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(241, 245, 249, 0.95);
  font-size: 9px;
}

.ios-time {
  min-width: 36px;
  font-weight: 600;
}

.ios-dynamic-island {
  width: 74px;
  height: 16px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.95);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.ios-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ios-signal {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.ios-signal {
  clip-path: polygon(0% 100%, 0% 75%, 25% 75%, 25% 55%, 50% 55%, 50% 35%, 75% 35%, 75% 15%, 100% 15%, 100% 100%);
  background: rgba(226, 232, 240, 0.9);
}

.ios-network {
  display: inline-flex;
  align-items: center;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(241, 245, 249, 0.92);
}

.ios-battery {
  width: 19px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 1px;
  position: relative;
}

.ios-battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 4px;
  border-radius: 1px;
  background: rgba(226, 232, 240, 0.9);
}

.ios-battery-level {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: 2px;
  background: rgba(34, 197, 94, 0.95);
}

.hero-app-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  padding-top: 24px;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 16px 8px;
  color: rgba(231, 229, 228, 0.95);
}

.app-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(231, 229, 228, 0.95);
}

.app-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: rgba(231, 229, 228, 0.95);
  background: rgba(100, 116, 139, 0.38);
  border: 1px solid rgba(203, 213, 225, 0.28);
}

.app-profile {
  padding: 2px 14px 8px;
  text-align: left;
}

.app-name {
  font-size: 12px;
  color: rgba(241, 245, 249, 0.95);
}

.app-subname {
  margin-top: 2px;
  font-size: 10px;
  color: rgba(148, 163, 184, 0.95);
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0 14px 8px;
}

.app-stat {
  border-radius: 8px;
  padding: 6px 6px;
  text-align: center;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.app-stat span {
  display: block;
  font-size: 8px;
  color: rgba(148, 163, 184, 0.92);
}

.app-stat strong {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(226, 232, 240, 0.96);
}

.app-last-match {
  margin: 0 14px 8px;
  border-radius: 10px;
  padding: 8px 9px;
  background: rgba(30, 41, 59, 0.48);
  border: 1px solid rgba(100, 116, 139, 0.35);
  text-align: left;
}

.app-last-match-title {
  font-size: 9px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.98);
  margin-bottom: 4px;
}

.app-last-match-row {
  font-size: 8px;
  line-height: 1.35;
  color: rgba(148, 163, 184, 0.98);
}

.app-progress-btn {
  margin: 0 14px 10px;
  border-radius: 9px;
  border: 1px solid rgba(74, 222, 128, 0.38);
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.36), rgba(16, 185, 129, 0.28));
  color: rgba(236, 253, 245, 0.95);
  font-size: 9px;
  font-weight: 600;
  padding: 7px 8px;
  text-align: center;
}

.app-cards {
  display: grid;
  gap: 8px;
  padding: 0 14px;
}

.app-card {
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.26), rgba(203, 213, 225, 0.12));
}

.app-card--wide {
  height: 20px;
}

.app-card--action {
  height: 24px;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.34), rgba(74, 222, 128, 0.2));
  border: 1px solid rgba(74, 222, 128, 0.36);
}

.hero-phone-court {
  position: absolute;
  inset: 164px 34px 30px;
  border-radius: 16px;
  opacity: 0;
  background: linear-gradient(145deg, rgba(16, 88, 52, 0.9), rgba(8, 34, 22, 0.95));
  transition: opacity 140ms linear;
  z-index: 1;
  transform: rotate(90deg) scale(0.58);
  transform-origin: center center;
}

.phone-line {
  position: absolute;
  background: rgba(240, 253, 250, 0.8);
}

.phone-line.outer {
  inset: 11%;
  border: 2px solid rgba(240, 253, 250, 0.9);
  background: transparent;
}

.phone-line.center-v {
  top: 26%;
  bottom: 26%;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}

.phone-line.center-h {
  left: 24%;
  right: 24%;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
}

.phone-line.upside-v {
  left: 24%;
  right: 24%;
  top: 25%;
  height: 2px;
  transform: translateY(-50%);
}

.phone-line.downside-v {
  left: 24%;
  right: 24%;
  bottom: 25%;
  height: 2px;
  transform: translateY(-50%);
}

.phone-line.service-l,
.phone-line.service-r {
  width: 2px;
  height: 76%;
  top: 12%;
}

.phone-line.service-l { left: 24%; }
.phone-line.service-r { right: 24%; }

.phone-net {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 5px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    90deg,
    rgba(231, 229, 228, 0.4) 0 4px,
    rgba(231, 229, 228, 0.15) 4px 8px
  );
}

.scroll-letters {
  will-change: opacity, transform, filter;
}

/* premium reveal for advantages cards */
.adv-card {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.adv-card.out-up {
  transform: translateY(-34px) scale(0.985);
}

.adv-card.out-down {
  transform: translateY(34px) scale(0.985);
}

.adv-card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

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

.adv-card > div:first-child {
  min-width: 0;
}

.adv-card > div:first-child > p {
  min-width: 0;
}

.adv-card > p:last-child {
  display: flex;
  align-items: center;
  align-self: stretch;
  margin: 0;
  text-align: left;
}

.adv-card.hide-icon > div:first-child {
  align-items: flex-start;
}

.adv-card.hide-icon .material-symbols-outlined {
  display: none;
}

.hero-court {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(18, 70, 42, 0.75), rgba(8, 34, 22, 0.88));
  border: 2px solid rgba(214, 211, 209, 0.45);
  box-shadow: 0 28px 45px rgba(0, 0, 0, 0.4);
  transform-origin: center center;
  transform: rotateX(0deg) rotateY(60deg) rotateZ(-10deg) scale(0.95);
  transition: transform 120ms linear, opacity 160ms linear, filter 160ms linear;
  will-change: transform, opacity, filter;
  overflow: hidden;
}

.court-line {
  position: absolute;
  background: rgba(240, 253, 250, 0.75);
}

.court-line.outer {
  inset: 15%;
  border: 2px solid rgba(240, 253, 250, 0.9);
  background: transparent;
}

.court-line.center-v {
  top: 26%;
  bottom: 26%;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}

.court-line.upside-v {
  left: 15%;
  right: 15%;
  top: 25%;
  height: 2px;
  transform: translateY(-50%);
}

.court-line.downside-v {
  left: 15%;
  right: 15%;
  bottom: 25%;
  height: 2px;
  transform: translateY(-50%);
}

.court-line.center-h {
  left: 28%;
  right: 28%;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
}

.court-line.service-l,
.court-line.service-r {
  width: 2px;
  height: 49%;
  top: 25%;
}

.court-line.service-l { left: 28%; }
.court-line.service-r { right: 28%; }

.court-net {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  transform: translateX(0%);
  background: repeating-linear-gradient(
    90deg,
    rgba(231, 229, 228, 0.45) 0 5px,
    rgba(231, 229, 228, 0.15) 5px 10px
  );
  box-shadow: 0 0 12px rgba(231, 229, 228, 0.3);
}

/* active section marker in menus */
.menu-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.menu-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(20, 20, 20, 0.25);
  transition: background-color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.menu-link.is-active::before {
  background: #22c55e;
  border-color: #22c55e;
  transform: scale(1.12);
}

#header {
  left: 0;
  right: 0;
  margin-inline: auto;
  transform: none !important;
  width: min(90%, 56rem);
  max-width: calc(100vw - 1rem);
}

#header > div:first-child {
  width: 100%;
  max-width: 100%;
}

#mobileMenu {
  width: min(18rem, calc(100vw - 1rem));
  max-width: calc(100vw - 1rem);
  overflow-y: auto;
}

#mobileMenu nav {
  color: #111827;
}

#mobileMenu .menu-link {
  color: #111827;
}

#mobileMenu .menu-link:hover {
  color: #16a34a;
}

#mobileMenu .menu-link::before {
  border-color: rgba(17, 24, 39, 0.32);
}

.glass,
.glass > *,
.player-card-front,
.player-card-back,
.app-last-match,
.app-stat,
.hero-app-ui,
.hero-phone,
.hero-phone-screen {
  min-width: 0;
}

.glass p,
.glass h1,
.glass h2,
.glass h3,
.glass h4,
.glass a,
.hero-app-ui p,
.hero-app-ui span,
#heroTitle,
#heroSubtitle,
#about h1,
#advTitle,
#player h3,
#fields h3,
#coach h3,
#progress h3 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.flip-trigger,
.app-progress-btn {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 1023px) {
  .adv-card {
    max-width: min(100%, 48rem);
  }
}

@media (max-width: 767px) {
  #header {
    top: 0.75rem;
    width: calc(100vw - 1rem);
  }

  #header > div:first-child {
    padding: 0.7rem 0.9rem;
    border-radius: 1.5rem;
    gap: 0.75rem;
  }

  #heroTitle {
    font-size: clamp(2.5rem, 10vw, 4.25rem);
    line-height: 1.05;
  }

  #heroSubtitle {
    font-size: clamp(1rem, 4vw, 1.125rem);
  }

  #advTitle,
  #about h1,
  #player h3,
  #fields h3,
  #coach h3,
  #progress h3 {
    font-size: clamp(1.9rem, 8vw, 3rem);
    line-height: 1.12;
  }

  .glass.adv-card {
    padding: 1.25rem;
    gap: 1rem;
  }

  .adv-card > div:first-child {
    width: 100%;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .adv-card > p:last-child {
    align-items: flex-start;
  }

  .adv-card .material-symbols-outlined {
    font-size: clamp(3.5rem, 18vw, 4.5rem) !important;
  }

  .adv-card p,
  .player-card-front p,
  .player-card-back p,
  .player-card-back h4 {
    min-width: 0;
  }

  .glass.flip-card {
    padding: 1.25rem;
  }

  .player-card-back {
    padding: 1.25rem;
  }

  .player-card-back h4 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.15;
  }

  .flip-trigger {
    width: 100%;
    padding-inline: 1rem;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .app-title,
  .app-name {
    font-size: 11px;
  }

  .app-subname {
    font-size: 9px;
  }

  .app-last-match-title,
  .app-last-match-row,
  .app-progress-btn,
  .app-stat span,
  .app-stat strong {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
html {
  box-sizing: border-box;
  overflow-x: clip;
}

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

/* "Наши преимущества" - mobile first */
#adv .adv-card {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.25rem;
}

#adv .adv-card > div:first-child {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
}

#adv .adv-card > div:first-child > p {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

#adv .adv-card > p:last-child {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  line-height: 1.65;
  text-align: left;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: pretty;
}

#adv .adv-card .material-symbols-outlined {
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  #adv .adv-card {
    max-width: min(100%, 48rem);
    gap: 1.25rem;
    padding: 1.75rem;
  }

  #adv .adv-card > div:first-child > p {
    line-height: 1.18;
  }

  #adv .adv-card > p:last-child {
    line-height: 1.7;
  }
}

@media (min-width: 1024px) {
  #adv .adv-card {
    max-width: min(100%, 64rem);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 2.5rem;
  }

  #adv .adv-card > div:first-child {
    flex: 1 1 0;
    max-width: 24rem;
  }

  #adv .adv-card > p:last-child {
    flex: 1 1 0;
    align-self: center;
  }
}

@media (max-width: 422px) {
  #heroPhoneCourt {
    display: none;
  }
}
