:root {
  --primary-color: #2b4c7e;
  --secondary-color: #567b51;
  --accent-color: #d4e09b;
  --text-color: #333333;
  --text-light: #666666;
  --bg-color: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --border-radius: 12px;
  --transition: all 0.3s ease;
  /* Scroll-reveal: мягкий ease-out без рывка в конце */
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-opacity: 0.9s;
  --reveal-transform: 1s;
  --reveal-stagger-opacity: 0.72s;
  --reveal-stagger-transform: 0.82s;
  --reveal-about-opacity: 0.78s;
  --reveal-about-transform: 0.88s;
  --footer-bg: #1a2a40;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  min-width: 320px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

main {
  flex: 1 1 auto;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
  transition: var(--transition);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 105;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: relative;
  z-index: 2;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: var(--secondary-color);
}

.nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
  gap: 20px;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.nav__link {
  font-weight: 500;
  color: var(--text-color);
}

.nav__link:hover, .nav__link.active {
  color: var(--secondary-color);
}

.header__toolbar {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--primary-color);
  border-radius: 10px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.nav-toggle:hover {
  background: rgba(43, 76, 126, 0.08);
}

.nav-toggle__icon {
  display: block;
}

.nav-toggle__bar {
  transition: transform 0.3s var(--ease-reveal, cubic-bezier(0.16, 1, 0.3, 1)), opacity 0.25s ease;
  transform-origin: center;
}

.header.is-nav-open .nav-toggle__bar--top {
  transform: translateY(4px) rotate(45deg);
}

.header.is-nav-open .nav-toggle__bar--mid {
  opacity: 0;
}

.header.is-nav-open .nav-toggle__bar--bot {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
}

.btn--primary {
  background-color: var(--secondary-color);
  color: var(--bg-white);
}

.btn--primary:hover {
  background-color: #456341;
  transform: translateY(-2px);
}

.btn--outline {
  background-color: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.btn--outline:hover {
  background-color: var(--secondary-color);
  color: var(--bg-white);
}

.scroll-golf-ball {
  position: fixed;
  left: 0;
  top: 0;
  width: 80px;
  height: 80px;
  flex: 0 0 0;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  pointer-events: none;
  will-change: left, top, width, height;
  filter: drop-shadow(0 6px 14px rgba(15, 40, 22, 0.18));
  z-index: 101;
}

.header.is-nav-open ~ .scroll-golf-ball {
  z-index: 40;
}

.scroll-golf-ball__svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-golf-ball {
    display: none;
  }
}

.golf-cup-strip {
  position: relative;
  z-index: 100;
  flex-shrink: 0;
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  background: transparent;
  overflow: visible;
  isolation: isolate;
  margin-bottom: -8px;
}

.golf-cup-strip__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.78) 0,
    rgba(0, 0, 0, 0.78) 4px,
    var(--footer-bg) 4px,
    var(--footer-bg) 100%
  );
}

.golf-cup-strip__cut {
  position: absolute;
  z-index: 1;
  left: calc(50% - 10px);
  top: 0;
  width: 100px;
  max-width: min(160px, 32vw);
  height: auto;
  max-height: 22px;
  transform: translateX(-50%);
  display: block;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: destination-out;
}

.golf-cup-strip__target {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 96%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .golf-cup-strip {
    display: none;
  }
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0f4f8 0%, #e6f0e9 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background-color: var(--accent-color);
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(50px);
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero__content {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  z-index: 103;
  isolation: isolate;
}

.hero__title {
  font-size: 54px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-color);
  max-width: min(11.5em, 100%);
}

.hero__title span {
  color: var(--secondary-color);
}

.hero__subtitle {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 30px;
}

.hero__image {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  z-index: 1;
  max-width: clamp(320px, 45%, 440px);
}

.hero__image-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  transform-origin: 50% 55%;
  animation: hero-img-float 5s ease-in-out infinite;
}

@keyframes hero-img-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -10px, 0) scale(1.01);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__image-img {
    animation: none;
  }
}

/* Sections */
.section {
  padding: 80px 0;
}

.section__title {
  position: relative;
  z-index: 108;
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--primary-color);
  width: fit-content;
  max-width: min(100%, 40rem);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

section.about .about__text .section__title {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about__image-img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(560px, 72vh);
  height: auto;
  border-radius: var(--border-radius);
  object-fit: contain;
}

.about__text p {
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--text-light);
}

/* Advantages */
.advantages {
  background-color: var(--bg-white);
}

.adv__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.adv__card {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.adv__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.adv__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adv__icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.adv__title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.adv__desc {
  color: var(--text-light);
}

/* Sport Cards */
.sports__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-top: 36px;
}

.sport__card {
  position: relative;
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: visible;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
  display: block;
}

.sport__badge {
  position: absolute;
  left: 20px;
  top: 0;
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  box-shadow: none;
  z-index: 2;
  pointer-events: none;
}

.sport__badge svg {
  display: block;
  width: 28px;
  height: 28px;
}

.sport__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.sport__img {
  height: 200px;
  background-color: #db1212;
}

.sport__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sport__content {
  padding: 26px;
}

.sport__title {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.sport__desc {
  color: var(--text-light);
  margin-bottom: 20px;
}

.sport__link {
  color: var(--secondary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Interesting */
.interesting {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.interesting .section__title {
  color: var(--bg-white);
}

.int__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.int__item {
  text-align: center;
}

.int__num {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.int__text {
  font-size: 18px;
}

/* How to play summary */
.htp-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}

.htp-summary__step {
  background-color: var(--bg-white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  position: relative;
  z-index: 2;
}

.htp-summary__num {
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.htp-summary__title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Reviews */
.reviews {
  background-color: var(--bg-white);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.review__card {
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: var(--border-radius);
  position: relative;
}

.review__stars {
  color: #ffc107;
  margin-bottom: 15px;
  font-size: 20px;
}

.review__text {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-light);
}

.review__author {
  font-weight: 700;
  color: var(--primary-color);
}

/* Footer */
.footer {
  flex-shrink: 0;
  position: relative;
  z-index: 99;
  isolation: isolate;
  background-color: var(--footer-bg);
  color: #ffffff;
  padding: 40px 0 40px;
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__about p {
  color: #a0aec0;
  margin-top: 20px;
  font-size: 14px;
}

.footer__about .footer__logos {
  justify-content: flex-start;
  margin-top: 16px;
  margin-bottom: 0;
}

.footer__title {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--bg-white);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  color: #a0aec0;
}

.footer__links a:hover {
  color: var(--accent-color);
}

.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #a0aec0;
  margin-bottom: 10px;
}

.footer__contact a:hover {
  color: var(--accent-color);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #a0aec0;
}

.footer__disclaimer {
  margin-bottom: 15px;
  line-height: 1.5;
}

.footer__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.footer__logos a {
  display: block;
  transition: var(--transition);
}

.footer__logos a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.footer__logos-age {
  display: flex;
  align-items: center;
}

.footer__logos img {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.9;
}

/* Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup {
  background-color: var(--bg-white);
  width: 100%;
  max-width: 400px;
  padding: 40px;
  border-radius: var(--border-radius);
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
}

.popup-overlay.active .popup {
  transform: translateY(0);
}

.popup__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
}

.popup__title {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.btn--full {
  width: 100%;
}

.form-msg {
  display: none;
  text-align: center;
  color: var(--secondary-color);
  font-weight: 600;
  margin-top: 20px;
}

/* Cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
  padding: 20px;
  z-index: 900;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-banner.active {
  transform: translateY(0);
}

body:has(.cookie-banner.active) .ai-chat-fab {
  bottom: 108px;
}

.ai-chat-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 880;
  background-color: var(--accent-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: 0 6px 22px rgba(43, 76, 126, 0.22);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  border: 1px solid rgba(86, 123, 81, 0.1);
}

.ai-chat-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 26px rgba(43, 76, 126, 0.28);
}

.ai-chat-fab:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
}

.ai-chat-fab__svg {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: block;
  pointer-events: none;
}

.ai-chat-fab__svg--robot {
  shape-rendering: geometricPrecision;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .ai-chat-fab:hover {
    transform: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.spin-chat-panel {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: 100px;
  width: min(380px, calc(100% - 32px));
  max-height: min(520px, 72vh);
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: 0 12px 40px rgba(43, 76, 126, 0.18);
  z-index: 888;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.spin-chat-panel.is-open {
  display: flex;
}

.spin-chat-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-color);
  background: rgba(212, 224, 155, 0.45);
}

.spin-chat-panel__close {
  background: transparent;
  border: 0;
  color: var(--primary-color);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.spin-chat-panel__close:hover {
  background: rgba(43, 76, 126, 0.08);
}

.spin-chat-panel__msgs {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  max-height: min(360px, 48vh);
}

.spin-chat-bubble {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: break-word;
}

.spin-chat-bubble--user {
  align-self: flex-end;
  background-color: var(--secondary-color);
  color: var(--bg-white);
  font-weight: 600;
}

.spin-chat-bubble--bot {
  align-self: flex-start;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.spin-chat-typing {
  align-self: flex-start;
  padding: 8px 12px;
  font-size: 1.35rem;
  letter-spacing: 2px;
  color: var(--text-light);
  animation: spin-chat-typing-pulse 1s ease infinite;
}

@keyframes spin-chat-typing-pulse {
  50% {
    opacity: 0.35;
  }
}

.spin-chat-panel__form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-color);
}

.spin-chat-panel__form input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-color);
  font: inherit;
  font-size: 0.95rem;
}

.spin-chat-panel__send {
  padding: 10px 16px;
  font-size: 0.88rem;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  border-radius: 30px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .spin-chat-typing {
    animation: none;
    opacity: 0.55;
  }
}

.cookie-text {
  font-size: 14px;
  color: var(--text-light);
  max-width: 800px;
}

/* Internal Pages */
.page-header {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 60px 0;
  text-align: center;
}

.page-header__title {
  font-size: 40px;
  margin-bottom: 10px;
}

.page-content {
  padding: 60px 0;
}

.page-content h2 {
  font-size: 28px;
  margin: 40px 0 20px;
  color: var(--primary-color);
}

.page-content p {
  margin-bottom: 20px;
  font-size: 16px;
}

.page-content ul, .page-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-content li {
  margin-bottom: 10px;
}

.how-page {
  padding-top: 0;
}

.how-strip {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e3558 100%);
  color: #ffffff;
  padding: 28px 0;
  margin-bottom: 48px;
  box-shadow: 0 4px 24px rgba(43, 76, 126, 0.18);
}

.how-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 48px;
}

.how-strip__item {
  text-align: center;
  min-width: 140px;
}

.how-strip__label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.78;
  margin-bottom: 6px;
}

.how-strip__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
}

.how-page__inner {
  position: relative;
}

.how-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: clamp(14px, 3vw, 22px);
  align-items: start;
  margin-bottom: 28px;
  padding: clamp(22px, 4vw, 34px);
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 28px rgba(43, 76, 126, 0.08);
  border: 1px solid rgba(224, 224, 224, 0.9);
}

.how-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: rgba(212, 224, 155, 0.4);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-card__icon svg {
  display: block;
  fill: currentColor;
}

.how-card__body {
  min-width: 0;
}

.how-page .how-card__title {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin: 0 0 14px;
  color: var(--primary-color);
  overflow-wrap: break-word;
  word-break: break-word;
}

.how-page .how-card__text {
  margin: 0;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.65;
}

.how-card--accent {
  border-color: rgba(86, 123, 81, 0.4);
  background: linear-gradient(135deg, #ffffff 0%, #f4f8f2 100%);
}

.how-card--note {
  border-left: 4px solid #c98c28;
  background: linear-gradient(90deg, rgba(201, 140, 40, 0.08) 0%, #ffffff 50%);
}

.how-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: -4px 0 36px;
}

.how-mini {
  padding: 24px 20px;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.how-mini:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.how-mini__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.how-mini__icon svg {
  display: block;
  fill: currentColor;
}

.how-mini__title {
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: var(--primary-color);
  overflow-wrap: break-word;
  word-break: break-word;
}

.how-mini__text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.55;
}

.how-next {
  margin-top: 12px;
  padding: 32px 28px;
  text-align: center;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8f0eb 100%);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.how-next__lead {
  margin: 0 0 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-color);
  overflow-wrap: break-word;
  word-break: break-word;
}

.how-next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.how-next__actions .btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

@media (max-width: 820px) {
  .how-mini-grid {
    grid-template-columns: 1fr;
  }
}

/* Tables for Scoring */
.scoring-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.scoring-table th,
.scoring-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.scoring-table th {
  background-color: var(--primary-color);
  color: var(--bg-white);
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scoring-table tr:last-child td {
  border-bottom: none;
}

.scoring-table tbody tr {
  transition: var(--transition);
}

.scoring-table tbody tr:hover {
  background-color: #f0f4f8;
}

.scoring-table td:first-child {
  font-weight: 600;
  color: var(--primary-color);
  width: 60%;
}

.scoring-table td:last-child {
  font-weight: 700;
  color: var(--secondary-color);
  text-align: right;
}

/* Reveal on scroll: класс .is-visible ставит IntersectionObserver */
.fade-up {
  opacity: 0;
  transform: translate3d(0, 1.75rem, 0);
  transition: none;
  will-change: opacity, transform;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity var(--reveal-opacity) var(--ease-reveal),
    transform var(--reveal-transform) var(--ease-reveal);
  will-change: auto;
}

/* Каскад карточек / строк (один .fade-up на секцию) */
.fade-up:not(.is-visible) .adv__card,
.fade-up:not(.is-visible) .sport__card,
.fade-up:not(.is-visible) .int__item,
.fade-up:not(.is-visible) .htp-summary__step,
.fade-up:not(.is-visible) .review__card,
.fade-up:not(.is-visible) .scoring-table {
  opacity: 0;
  transform: translate3d(0, 1.25rem, 0);
}

.fade-up.is-visible .adv__card,
.fade-up.is-visible .sport__card,
.fade-up.is-visible .int__item,
.fade-up.is-visible .htp-summary__step,
.fade-up.is-visible .review__card,
.fade-up.is-visible .scoring-table {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity var(--reveal-stagger-opacity) var(--ease-reveal),
    transform var(--reveal-stagger-transform) var(--ease-reveal);
}

.fade-up.is-visible .adv__card:nth-child(1) { transition-delay: 0.08s; }
.fade-up.is-visible .adv__card:nth-child(2) { transition-delay: 0.15s; }
.fade-up.is-visible .adv__card:nth-child(3) { transition-delay: 0.22s; }

.fade-up.is-visible .sport__card:nth-child(1) { transition-delay: 0.1s; }
.fade-up.is-visible .sport__card:nth-child(2) { transition-delay: 0.17s; }
.fade-up.is-visible .sport__card:nth-child(3) { transition-delay: 0.24s; }

.fade-up.is-visible .int__item:nth-child(1) { transition-delay: 0.08s; }
.fade-up.is-visible .int__item:nth-child(2) { transition-delay: 0.14s; }
.fade-up.is-visible .int__item:nth-child(3) { transition-delay: 0.2s; }
.fade-up.is-visible .int__item:nth-child(4) { transition-delay: 0.26s; }

.fade-up.is-visible .htp-summary__step:nth-child(1) { transition-delay: 0.1s; }
.fade-up.is-visible .htp-summary__step:nth-child(2) { transition-delay: 0.18s; }
.fade-up.is-visible .htp-summary__step:nth-child(3) { transition-delay: 0.26s; }

.fade-up.is-visible .review__card:nth-child(1) { transition-delay: 0.09s; }
.fade-up.is-visible .review__card:nth-child(2) { transition-delay: 0.16s; }
.fade-up.is-visible .review__card:nth-child(3) { transition-delay: 0.23s; }

.fade-up.is-visible .scoring-table {
  transition-delay: 0.12s;
}

/* About: колонки */
.fade-up.about__grid:not(.is-visible) > * {
  opacity: 0;
  transform: translate3d(0, 1.25rem, 0);
}

.fade-up.about__grid.is-visible > *:nth-child(1) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity var(--reveal-about-opacity) var(--ease-reveal) 0.06s,
    transform var(--reveal-about-transform) var(--ease-reveal) 0.06s;
}

.fade-up.about__grid.is-visible > *:nth-child(2) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity var(--reveal-about-opacity) var(--ease-reveal) 0.16s,
    transform var(--reveal-about-transform) var(--ease-reveal) 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .fade-up.is-visible,
  .fade-up .adv__card,
  .fade-up .sport__card,
  .fade-up .int__item,
  .fade-up .htp-summary__step,
  .fade-up .review__card,
  .fade-up .scoring-table,
  .fade-up.about__grid > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Cookie Banner Buttons */
.cookie-buttons {
  display: flex;
  gap: 10px;
}

/* Contact Page */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info__item {
  margin-bottom: 30px;
}

.contact-info__title {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.contact-info__link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
}

.contact-info__link:hover {
  color: var(--primary-color);
}

.contact-info__icon {
  flex-shrink: 0;
  opacity: 0.92;
}

/* Responsive */
@media (max-width: 1220px) {
  .container {
    max-width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header__inner {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: none;
    justify-content: flex-start;
    gap: 0;
    position: fixed;
    left: 0;
    right: 0;
    top: 80px;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    background-color: var(--bg-white);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 8px 20px 24px;
    z-index: 1;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.3s,
      transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .header.is-nav-open .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__list {
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: 14px 10px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav__list li:last-child .nav__link {
    border-bottom: none;
  }

  .header__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 18px 10px 8px;
    margin-top: 8px;
    border-top: 1px solid var(--border-color);
    gap: 14px;
  }

  .header__actions .phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .header__actions .register-btn {
    width: 100%;
    justify-content: center;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: rgba(26, 42, 64, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s;
  }

  .header.is-nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 820px) {
  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__title {
    margin-inline: auto;
    font-size: clamp(2rem, 6.5vw, 2.75rem);
  }

  .hero__image {
    flex: 0 1 auto;
    width: min(400px, 90vw);
    max-width: 100%;
    margin-inline: auto;
  }

  .about__grid, .adv__grid, .sports__grid, .int__grid, .htp-summary__grid, .reviews__grid, .footer__grid, .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .about__image {
    order: 1;
  }

  .about__image-img {
    max-height: 280px;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}
