/* ============================================
   SHAOLIN SOCCER LANDING - CUSTOM CSS
   Bootstrap 5.3 + Custom Styles
   Font: Roboto Condensed
   ============================================ */

/* ============================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */
:root {
  /* Colors */
  --color-primary: #7ED321;
  --color-primary-dark: #6BBF1A;
  --color-bg: #FFFFFF;
  --color-bg-secondary: #F2F2F2;
  --color-bg-card: #FFFFFF;
  --color-text-primary: #000000;
  --color-text-secondary: #333333;
  --color-text-muted: #666666;
  --color-text-light: #999999;
  --color-border: #000000;
  --color-border-light: #E0E0E0;
  --color-btn-bg: #FFFFFF;
  --color-btn-hover: #000000;
  --color-btn-text-hover: #FFFFFF;
  --color-wallet-bg: #000000;
  --color-wallet-text: #FFFFFF;
  --color-modal-overlay: rgba(0, 0, 0, 0.5);
  --color-marquee-bg: #000000;
  --color-marquee-text: #FFFFFF;
  --color-section-bg: #F5F5F5;
  --color-figure-selected: #7ED321;

  /* Typography */
  --font-family: 'Roboto Condensed', sans-serif;
  --h1-size: 70px;
  --h1-weight: 700;
  --h1-line-height: 1.1;
  --h1-letter-spacing: -0.02em;
  --subtitle-size: 24px;
  --subtitle-weight: 400;
  --subtitle-line-height: 1.3;
  --h2-size: 52px;
  --h2-weight: 700;
  --h2-line-height: 1.15;
  --h2-letter-spacing: -0.01em;
  --body-size: 18px;
  --body-weight: 400;
  --body-line-height: 1.6;
  --button-size: 16px;
  --button-weight: 700;
  --button-letter-spacing: 0.05em;
  --caption-size: 14px;
  --marquee-size: 16px;
  --footer-size: 14px;
  --label-size: 14px;
  --label-weight: 700;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;
  --container-max: 1200px;
  --container-padding: 24px;
  --section-padding-y: 80px;
  --section-padding-y-mobile: 48px;

  /* Layout */
  --header-height: 80px;
  --hero-min-height: 100vh;
  --card-radius: 24px;
  --btn-radius: 12px;
  --modal-radius: 24px;
  --input-height: 56px;
  --input-radius: 8px;
  --section-radius: 32px;

  /* Buttons */
  --btn-padding-x: 32px;
  --btn-padding-y: 18px;
  --btn-border: 2px solid #000000;
  --btn-font-size: 16px;
  --btn-text-transform: uppercase;

  /* Wallet button */
  --wallet-btn-radius: 100px;
  --wallet-btn-padding-x: 24px;
  --wallet-btn-padding-y: 12px;

  /* Cards */
  --card-img-height: 280px;
  --card-title-size: 18px;
  --card-text-size: 16px;

  /* Modal */
  --modal-max-width: 900px;
  --modal-padding: 48px;
  --modal-title-size: 48px;
  --modal-figure-size: 200px;
  --modal-figure-radius: 16px;

  /* Marquee */
  --marquee-height: 48px;
  --marquee-speed: 30s;

  /* NFT Steps */
  --nft-icon-size: 120px;
  --nft-icon-radius: 24px;
  --nft-step-label-size: 14px;

  /* Footer */
  --footer-padding-y: 48px;
  --footer-social-size: 24px;
  --footer-grass-height: 120px;

  /* Breakpoints */
  --bp-mobile: 768px;
  --bp-tablet: 1024px;
  --bp-desktop: 1200px;
}

/* ============================================
   2. GLOBAL RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: var(--body-line-height);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: var(--h1-weight);
  line-height: var(--h1-line-height);
  color: var(--color-text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   3. BOOTSTRAP OVERRIDES
   ============================================ */
.container {
  max-width: var(--container-max);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.btn {
  font-family: var(--font-family);
  font-size: var(--button-size);
  font-weight: var(--button-weight);
  letter-spacing: var(--button-letter-spacing);
  text-transform: var(--btn-text-transform);
  border-radius: var(--btn-radius);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  transition: all 0.3s ease;
}

.form-control {
  font-family: var(--font-family);
  font-size: var(--body-size);
  height: var(--input-height);
  border-radius: var(--input-radius);
  border: 1px solid var(--color-border-light);
  padding: 0 var(--space-md);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(126, 211, 33, 0.25);
}

.form-control::placeholder {
  color: var(--color-text-light);
}

/* ============================================
4. HEADER / NAVIGATION — DESKTOP
============================================ */
.site-header {
  position: fixed !important;  /* ← ДОБАВЛЕНО !important */
  top: 16px !important;        /* ← ДОБАВЛЕНО !important */
  left: 50% !important;        /* ← ДОБАВЛЕНО !important */
  transform: translateX(-50%) !important;  /* ← ДОБАВЛЕНО !important */
  width: calc(100% - 32px) !important;  /* ← ДОБАВЛЕНО !important */
  max-width: 850px !important;  /* ← ДОБАВЛЕНО !important */
  z-index: 1000 !important;     /* ← ДОБАВЛЕНО !important */
  background: var(--color-bg);
  border-radius: 100px;
  border: 1px solid var(--color-border-light);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 8px 16px;
}

.site-header .navbar {
  padding: 0;
  min-height: auto;
}

.site-header .navbar-brand {
  padding: 0;
  margin-right: var(--space-md);
  display: flex;
  align-items: center;
}

.site-header .navbar-brand img {
  height: 32px;
  width: auto;
}

.site-header .navbar-nav {
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.site-header .nav-link {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-primary);
  padding: 6px 10px !important;
  transition: color 0.3s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--color-primary);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  margin-right: 16px;
}

.lang-switcher .lang-active {
  color: var(--color-text-primary);
  font-weight: 700;
  cursor: pointer;
}

.lang-switcher .lang-inactive {
  color: var(--color-text-light);
  cursor: pointer;
  transition: color 0.3s ease;
}

.lang-switcher .lang-inactive:hover {
  color: var(--color-text-primary);
}

.btn-wallet {
  background: var(--color-wallet-bg);
  color: var(--color-wallet-text);
  border: none;
  border-radius: var(--wallet-btn-radius);
  padding: 8px 16px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-wallet:hover {
  background: #333333;
  color: var(--color-wallet-text);
  transform: translateY(-1px);
}

.btn-wallet i {
  font-size: 16px;
}

/* Desktop nav elements — скрыты на мобильном */
.desktop-nav {
  display: flex;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ============================================
   4.1 MOBILE MENU — КАК НА РЕФЕРЕНСЕ
   ============================================ */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  background: var(--color-bg);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  padding: 20px 24px 28px;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-logo img {
  height: 28px;
  width: auto;
}

.mobile-menu-lang {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-right: 12px;
}

.mobile-menu-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-text-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.mobile-menu-close:hover {
  background: #333333;
  transform: rotate(90deg);
}

.mobile-menu-close svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-bg);
  stroke-width: 2;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.mobile-menu-nav .nav-link {
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-primary);
  padding: 8px 16px;
  text-decoration: none;
  transition: color 0.3s ease;
  text-align: center;
}

.mobile-menu-nav .nav-link:hover,
.mobile-menu-nav .nav-link.active {
  color: var(--color-primary);
  font-weight: 700;
}

.mobile-menu-wallet {
  display: flex;
  justify-content: center;
}

.mobile-menu-wallet .btn-wallet {
  padding: 12px 24px;
  font-size: 14px;
  border-radius: 100px;
}

/* ============================================
   5. HERO SECTION — ФИНАЛЬНАЯ ВЕРСИЯ
   ============================================ */
.hero-section {
  position: relative;
  min-height: 130vh;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 250px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 320px;
  left: 0;
  width: 100%;
  height: calc(100% - 320px);
  z-index: 0;
  overflow: hidden;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 70px;
  width: 100%;
  max-width: var(--container-max);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.hero-title {
  font-size: var(--h1-size);
  font-weight: var(--h1-weight);
  line-height: var(--h1-line-height);
  letter-spacing: var(--h1-letter-spacing);
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--color-text-primary);
  text-align: center;
}

.hero-subtitle {
  font-size: var(--subtitle-size);
  font-weight: var(--subtitle-weight);
  line-height: var(--subtitle-line-height);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  text-align: center;
}

/* Базовые стили для всех кнопок CTA */
.btn-primary-cta {
  background: var(--color-btn-bg);
  color: var(--color-text-primary);
  border: var(--btn-border);
  border-radius: var(--btn-radius);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-family: var(--font-family);
  font-size: var(--button-size);
  font-weight: var(--button-weight);
  letter-spacing: var(--button-letter-spacing);
  text-transform: var(--btn-text-transform);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  /* УБРАТЬ: margin-top: 270px; */
  /* УБРАТЬ: align-self: center; */
}

/* Кнопка в Hero секции */
.hero-section .btn-primary-cta {
  margin-top: 390px;  /* Сразу под бородой центрального персонажа */
  align-self: center;
}

/* Кнопка в Toy секции */
.toy-section .btn-primary-cta {
  margin-top: 40px;  /* Другое значение для toy */
  align-self: center;
}

/* Hover эффекты (общие) */
.btn-primary-cta:hover {
  background: var(--color-btn-hover);
  color: var(--color-btn-text-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-primary-cta:active {
  transform: translateY(0);
}

/* Marquee внутри hero — внизу */
.marquee-section {
  position: absolute;
  bottom: 90px;
  left: 0;
  width: 100%;
  z-index: 2;
  background: var(--color-marquee-bg);
  height: var(--marquee-height);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll var(--marquee-speed) linear infinite;
}

.marquee-content {
  display: flex;
  gap: 0;
  padding-right: 0;
}

.marquee-content span {
  font-family: var(--font-family);
  font-size: var(--marquee-size);
  font-weight: 400;
  color: var(--color-marquee-text);
  white-space: nowrap;
  padding: 0 var(--space-lg);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   7. TOY SECTION
   ============================================ */
.toy-section {
  padding: 1px 0;
  background: var(--color-bg);
}

.section-label {
  display: inline-block;
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  line-height: var(--h2-line-height);
  letter-spacing: var(--h2-letter-spacing);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.section-text {
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: var(--body-line-height);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto 16px;
}

.toy-hero-image {
  max-width: 880px;
  width: 100%;
  margin: 0 auto 0;  /* ← УБРАТЬ нижний margin */
  border-radius: var(--card-radius);
  display: block;
  will-change: transform;
}

.feature-card {
  background: #f2f2f2;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);  /* ← Добавить тень для эффекта "наползания" */
}

/* Контейнер для карточек с отрицательным margin */
.feature-cards-row {
  margin-top: -120px;  /* ← ПОДНЯТЬ карточки на 120px вверх */
  position: relative;
  z-index: 2;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card-image {
  height: var(--card-img-height);
  overflow: hidden;
  background: var(--color-bg-secondary);
}

.feature-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-card-image img {
  transform: scale(1.05);
}

.feature-card-content {
  padding: var(--space-md);
}

.feature-card-title {
  font-size: var(--card-title-size);
  font-weight: var(--h1-weight);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
}

.feature-card-text {
  font-size: var(--card-text-size);
  font-weight: var(--body-weight);
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ============================================
   8. CONSTRUCTOR SECTION
   ============================================ */
.constructor-section {
  padding: var(--section-padding-y) 0;
  background: #ffffff;
}

.constructor-section .container {
  background: #f2f2f2;
  border-radius: var(--section-radius);
  padding: var(--space-2xl) var(--space-xl);
}

.constructor-image {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

/* ============================================
   9. NFT SECTION
   ============================================ */
.nft-section {
  padding: var(--section-padding-y) 0;
  background: var(--color-bg-secondary);
}

.nft-steps-container {
  position: relative;
  width: 960px;
  max-width: 100%;
  height: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, 160px);
}

/* Изогнутые соединители — SVG overlay, тянется на весь контейнер */
.nft-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.nft-connectors path {
  fill: none;
  stroke: var(--color-border-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* pathLength="1" на элементе → рисуем через dashoffset 1→0 */
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* Рисование линий запускается, когда контейнер попадает во вьюпорт */
.nft-steps-container.animate-in .nft-connectors path {
  animation: nft-draw 0.9s ease forwards;
}
.nft-steps-container.animate-in .nft-connectors path:nth-of-type(1) { animation-delay: 0.15s; }
.nft-steps-container.animate-in .nft-connectors path:nth-of-type(2) { animation-delay: 0.45s; }
.nft-steps-container.animate-in .nft-connectors path:nth-of-type(3) { animation-delay: 0.75s; }
.nft-steps-container.animate-in .nft-connectors path:nth-of-type(4) { animation-delay: 1.05s; }

@keyframes nft-draw {
  to { stroke-dashoffset: 0; }
}

/* Каждый шаг — своя строка, колонка чередуется (зигзаг) */
.nft-step {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}
/* nth-of-type, а не nth-child: SVG-overlay — тоже потомок контейнера,
   nth-child сместил бы нумерацию шагов на 1 */
.nft-step:nth-of-type(1) { grid-area: 1 / 1; }
.nft-step:nth-of-type(2) { grid-area: 2 / 2; }
.nft-step:nth-of-type(3) { grid-area: 3 / 1; }
.nft-step:nth-of-type(4) { grid-area: 4 / 2; }
.nft-step:nth-of-type(5) { grid-area: 5 / 1; }

/* Нечётные — иконка у центра справа, текст снаружи (слева, правое выравнивание) */
.nft-step:nth-of-type(odd) {
  justify-content: flex-end;
  padding-right: 40px;
}
.nft-step:nth-of-type(odd) .nft-step-content { order: 1; text-align: right; }
.nft-step:nth-of-type(odd) .nft-step-icon { order: 2; }

/* Чётные — иконка у центра слева, текст снаружи (справа) */
.nft-step:nth-of-type(even) {
  justify-content: flex-start;
  padding-left: 40px;
}
.nft-step:nth-of-type(even) .nft-step-icon { order: 1; }
.nft-step:nth-of-type(even) .nft-step-content { order: 2; text-align: left; }

.nft-step-icon {
  width: var(--nft-icon-size);
  height: var(--nft-icon-size);
  background: var(--color-bg);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nft-step-icon:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.nft-step-icon img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.nft-step-content {
  max-width: 260px;
}

.nft-step-label {
  font-size: var(--nft-step-label-size);
  font-weight: var(--h1-weight);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.nft-step-sublabel {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
  margin: 0;
}

/* ============================================
   10. APP PREVIEW SECTION
   ============================================ */
.app-preview-section {
  padding: 0;
  background: var(--color-bg);
  overflow: hidden;
}

.app-preview-image {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
}

/* ============================================
   11. CTA FINAL SECTION
   ============================================ */
.cta-final-section {
  padding: var(--section-padding-y) 0;
  background: var(--color-bg);
  text-align: center;
}

.cta-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-md);
  background: var(--color-bg-secondary);
  border-radius: var(--card-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cta-icon img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* ============================================
12. FOOTER
============================================ */
.site-footer {
    background: var(--color-bg);
    padding: 110px 0 0;
    position: relative;
    min-height: var(--footer-grass-height); /* Минимальная высота */
    overflow: hidden; /* Обрезаем всё, что выходит за границы */
}

.footer-content {
    text-align: center;
    padding-bottom: var(--space-lg);
    position: relative;
    z-index: 10; /* Контент поверх травы */
}

.footer-copyright {
    font-size: var(--footer-size);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-links a {
    font-size: var(--footer-size);
    color: var(--color-text-primary);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.social-link {
    width: var(--footer-social-size);
    height: var(--footer-social-size);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* ✅ Фон травы на весь футер */
.footer-grass {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; /* На всю высоту футера */
    z-index: 1; /* Под контентом */
    overflow: hidden;
    pointer-events: none; /* Чтобы не мешал кликам */
}

.footer-grass img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Растягиваем с сохранением пропорций */
    object-position: center bottom; /* Позиционируем снизу */
    display: block;
}

/* ============================================
12.1 FOOTER MARQUEE (БЕГУЩАЯ СТРОКА — САМЫЙ НИЗ САЙТА)
============================================ */
.footer-marquee {
  width: 100%;
  height: var(--marquee-height);
  background: var(--color-marquee-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

.footer-marquee .marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll var(--marquee-speed) linear infinite;
}

.footer-marquee .marquee-content {
  display: flex;
  gap: 0;
  padding-right: 0;
}

.footer-marquee .marquee-content span {
  font-family: var(--font-family);
  font-size: var(--marquee-size);
  font-weight: 400;
  color: var(--color-marquee-text);
  white-space: nowrap;
  padding: 0 var(--space-lg);
  display: inline-block;
}

/* Пауза при наведении */
.footer-marquee:hover .marquee-track {
  animation-play-state: paused;
}
/* ============================================
12.1 FOOTER MARQUEE (БЕГУЩАЯ СТРОКА — САМЫЙ НИЗ САЙТА)
============================================ */
.footer-marquee {
    width: 100%;
    height: var(--marquee-height);
    background: var(--color-marquee-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.footer-marquee .marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll var(--marquee-speed) linear infinite;
}

.footer-marquee .marquee-content {
    display: flex;
    gap: 0;
    padding-right: 0;
}

.footer-marquee .marquee-content span {
    font-family: var(--font-family);
    font-size: var(--marquee-size);
    font-weight: 400;
    color: var(--color-marquee-text);
    white-space: nowrap;
    padding: 0 var(--space-lg);
    display: inline-block;
}

/* Пауза при наведении */
.footer-marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* ============================================
   13. MODAL ORDER FORM
   ============================================ */
.modal-content {
  border-radius: var(--modal-radius);
  border: none;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: var(--space-md) var(--modal-padding) 0;
  border: none;
}

.modal-body {
  padding: var(--space-md) var(--modal-padding) var(--modal-padding);
}

.modal-title {
  font-size: var(--modal-title-size);
  font-weight: var(--h1-weight);
  text-transform: uppercase;
  letter-spacing: var(--h1-letter-spacing);
  color: var(--color-text-primary);
}

.btn-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-text-primary);
  opacity: 1;
  filter: invert(1);
  transition: all 0.3s ease;
}

.btn-close:hover {
  transform: rotate(90deg);
  opacity: 0.8;
}

.figure-options {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.figure-option {
  width: var(--modal-figure-size);
  height: var(--modal-figure-size);
  border-radius: var(--modal-figure-radius);
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  background: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.figure-option img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.figure-option:hover {
  border-color: var(--color-primary);
  transform: scale(1.05);
}

.figure-option.selected {
  border-color: var(--color-figure-selected);
  background: rgba(126, 211, 33, 0.1);
}

.figure-option.selected img {
  transform: scale(1.1);
}

.order-form .form-control {
  margin-bottom: var(--space-sm);
}

.modal-disclaimer {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: var(--space-md);
}

/* ============================================
   14. LANGUAGE SWITCHING
   ============================================ */
[data-lang="en"] [data-ru] {
  display: none;
}

[data-lang="ru"] [data-en] {
  display: none;
}

body.lang-en [data-ru] {
  display: none;
}

body.lang-en [data-en] {
  display: block;
}

body.lang-ru [data-en] {
  display: none;
}

body.lang-ru [data-ru] {
  display: block;
}

/* For inline elements */
body.lang-en span[data-ru],
body.lang-en p[data-ru],
body.lang-en h1[data-ru],
body.lang-en h2[data-ru],
body.lang-en h3[data-ru] {
  display: none;
}

body.lang-en span[data-en],
body.lang-en p[data-en],
body.lang-en h1[data-en],
body.lang-en h2[data-en],
body.lang-en h3[data-en] {
  display: inline;
}

body.lang-ru span[data-en],
body.lang-ru p[data-en],
body.lang-ru h1[data-en],
body.lang-ru h2[data-en],
body.lang-ru h3[data-en] {
  display: none;
}

body.lang-ru span[data-ru],
body.lang-ru p[data-ru],
body.lang-ru h1[data-ru],
body.lang-ru h2[data-ru],
body.lang-ru h3[data-ru] {
  display: inline;
}

/* For block elements that should remain block */
body.lang-en p[data-en],
body.lang-en h1[data-en],
body.lang-en h2[data-en],
body.lang-en h3[data-en] {
  display: block;
}

body.lang-ru p[data-ru],
body.lang-ru h1[data-ru],
body.lang-ru h2[data-ru],
body.lang-ru h3[data-ru] {
  display: block;
}


/* ============================================
   15. RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  :root {
    --h1-size: 56px;
    --h2-size: 42px;
    --subtitle-size: 20px;
    --section-padding-y: 64px;
    --space-2xl: 80px;
  }

  .site-header {
    width: calc(100% - 24px);
    padding: 8px 16px;
  }

  .hero-title {
    font-size: var(--h1-size);
  }

  .section-title {
    font-size: var(--h2-size);
  }

  .constructor-section .container {
    padding: var(--space-xl) var(--space-lg);
  }

  .modal-body {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
  }

  .modal-title {
    font-size: 36px;
  }

  .figure-option {
    width: 160px;
    height: 160px;
  }

  .toy-hero-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
/* ============================================
   MOBILE VERSION (< 768px)
============================================ */
@media (max-width: 768px) {
  :root {
    --h1-size: 36px;
    --h2-size: 28px;
    --subtitle-size: 16px;
    --body-size: 16px;
    --section-padding-y: 48px;
    --space-xl: 48px;
    --space-2xl: 48px;
    --container-padding: 16px;
    --btn-padding-x: 24px;
    --btn-padding-y: 14px;
    --modal-padding: 24px;
    --modal-title-size: 32px;
    --modal-figure-size: 120px;
    --nft-icon-size: 80px;
    --footer-padding-y: 32px;
  }

  /* --- Navigation & Header --- */
  .desktop-nav {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 8px 12px;
    border-radius: 100px;
  }

  .site-header .navbar-brand img {
    height: 28px;
  }

  .site-header .nav-link {
    font-size: 13px;
    padding: 2px 6px !important;
  }

  .btn-wallet {
    padding: 6px 14px;
    font-size: 11px;
  }

  .lang-switcher {
    font-size: 12px;
    margin-right: 6px;
  }

  /* --- Mobile Menu --- */
  .mobile-menu {
    top: 12px;
    left: 12px;
    right: 12px;
    padding: 16px 20px 24px;
  }

  .mobile-menu-logo img {
    height: 24px;
  }

  .mobile-menu-nav .nav-link {
    font-size: 18px;
  }

  .mobile-menu-close {
    width: 32px;
    height: 32px;
  }

  .mobile-menu-close svg {
    width: 14px;
    height: 14px;
  }

  /* --- Hero Section --- */
  .hero-section {
    padding-top: 100px;
    min-height: auto;
  }

  .hero-title {
    font-size: var(--h1-size);
    margin-bottom: var(--space-sm);
  }

  .hero-subtitle {
    font-size: var(--subtitle-size);
    margin-bottom: var(--space-md);
  }

  /* --- CTA Buttons (Unified) --- */
  .hero-section .btn-primary-cta,
  .toy-section .btn-primary-cta {
    width: 100%;
    max-width: 280px;
    padding: var(--btn-padding-y) var(--btn-padding-x);
  }
  
  .hero-section .btn-primary-cta {
    margin-top: 42px;
  }
  
  .toy-section .btn-primary-cta {
    margin-top: 32px;
  }

  /* --- Toy Section --- */
  .section-title {
    font-size: var(--h2-size);
  }

  .section-text {
    font-size: var(--body-size);
  }

  .toy-hero-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin-bottom: var(--space-lg);
    object-fit: contain;
    aspect-ratio: 880 / 732;
  }

  .feature-card-image {
    height: 200px;
  }

  /* --- Constructor Section --- */
  .constructor-section .container {
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--card-radius);
  }

  .constructor-image {
    max-width: 100%;
  }

  /* --- NFT Section --- */
  .nft-steps-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }

  .nft-connectors {
    display: none;
  }

  .nft-step {
    grid-area: auto !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 !important;
  }

  .nft-step .nft-step-icon,
  .nft-step .nft-step-content {
    order: 0 !important;
    text-align: center !important;
  }

  .nft-step-content {
    max-width: 100%;
  }

  .nft-step-icon {
    width: var(--nft-icon-size);
    height: var(--nft-icon-size);
  }

  /* --- CTA & Footer --- */
  .cta-icon {
    width: 80px;
    height: 80px;
  }

  .site-footer {
    padding-bottom: 80px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
  
  .footer-links .text-muted {
    display: none;
  }

  /* --- Modal --- */
  .figure-options {
    flex-direction: column;
    align-items: center;
  }

  .figure-option {
    width: var(--modal-figure-size);
    height: var(--modal-figure-size);
  }

  .modal-body {
    padding: var(--space-md);
  }

  .modal-title {
    font-size: var(--modal-title-size);
  }

  .order-form .row {
    flex-direction: column;
  }

  .order-form .col-md-6 {
    width: 100%;
  }

  /* --- Header Marquee (Mobile) --- */
  .header-marquee {
    height: 32px;
  }
  
  .header-marquee .marquee-content span {
    font-size: 12px;
    padding: 0 var(--space-sm);
  }
  
  .header-marquee .marquee-track {
    animation-duration: 20s;
  }
  
  /* --- Footer Marquee (Mobile) --- */
  .footer-marquee {
    height: 36px;
  }
  
  .footer-marquee .marquee-content span {
    font-size: 13px;
    padding: 0 var(--space-sm);
  }
  
  .footer-marquee .marquee-track {
    animation-duration: 25s;
  }
}
/* ============================================
   SMALL MOBILE (< 480px)
============================================ */
@media (max-width: 480px) {
  :root {
    --h1-size: 28px;
    --h2-size: 24px;
    --subtitle-size: 14px;
    --btn-padding-x: 20px;
    --btn-padding-y: 12px;
    --btn-font-size: 14px;
  }

  .site-header .navbar-nav {
    gap: 8px;
  }

  .site-header .nav-link {
    font-size: 12px;
    padding: 4px 6px !important;
  }

  .hero-title {
    font-size: var(--h1-size);
  }

  /* --- CTA Buttons (Unified & Fixed) --- */
  .hero-section .btn-primary-cta,
  .toy-section .btn-primary-cta {
    margin-top: 14px;
    padding: var(--btn-padding-y) var(--btn-padding-x);
    font-size: var(--btn-font-size);
    width: 100%;
    max-width: 280px; /* Исправлено: было 80px (явная опечатка) */
  }

  .mobile-menu-nav .nav-link {
    font-size: 16px;
  }

  .mobile-menu-wallet .btn-wallet {
    padding: 10px 20px;
    font-size: 13px;
  }
  .site-footer {
    padding-bottom: 60px;
  }
}
/* ============================================
   16. ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-title,
.hero-subtitle,
.btn-primary-cta {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
  animation-delay: 0.2s;
}

.btn-primary-cta {
  animation-delay: 0.4s;
}

/* Карточки — приятное появление слева направо (класс card-in от IntersectionObserver) */
.feature-card {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.feature-card.card-in {
  opacity: 1;
  transform: translateX(0);
}

/* Волна-задержка: левая → средняя → правая */
.col-md-4:nth-child(1) .feature-card { transition-delay: 0.05s; }
.col-md-4:nth-child(2) .feature-card { transition-delay: 0.20s; }
.col-md-4:nth-child(3) .feature-card { transition-delay: 0.35s; }

.nft-step {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.nft-step:nth-of-type(1) { animation-delay: 0.1s; }
.nft-step:nth-of-type(2) { animation-delay: 0.2s; }
.nft-step:nth-of-type(3) { animation-delay: 0.3s; }
.nft-step:nth-of-type(4) { animation-delay: 0.4s; }
.nft-step:nth-of-type(5) { animation-delay: 0.5s; }

/* NFT-иконки — живое покачивание волной (каждая со своей фазой) */
@media (prefers-reduced-motion: no-preference) {
  .nft-step-icon img {
    animation: nft-float 3.2s ease-in-out infinite;
  }
  .nft-step:nth-of-type(1) .nft-step-icon img { animation-delay: 0s; }
  .nft-step:nth-of-type(2) .nft-step-icon img { animation-delay: 0.45s; }
  .nft-step:nth-of-type(3) .nft-step-icon img { animation-delay: 0.9s; }
  .nft-step:nth-of-type(4) .nft-step-icon img { animation-delay: 1.35s; }
  .nft-step:nth-of-type(5) .nft-step-icon img { animation-delay: 1.8s; }
}

@keyframes nft-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(-4deg); }
}

/* Задорный hover: подпрыгнуть, увеличиться, качнуться */
.nft-step-icon:hover {
  transform: translateY(-6px) scale(1.09) rotate(4deg);
}

/* ============================================
   17. UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
}

.mt-4 {
  margin-top: var(--space-md) !important;
}

.mt-5 {
  margin-top: var(--space-lg) !important;
}

.mb-4 {
  margin-bottom: var(--space-md) !important;
}

.mb-5 {
  margin-bottom: var(--space-lg) !important;
}

.g-4 {
  --bs-gutter-x: var(--space-md);
  --bs-gutter-y: var(--space-md);
}

/* Scroll behavior for sections */
section {
  scroll-margin-top: 100px;
}

/* Focus states for accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: var(--color-primary);
  color: var(--color-bg);
}

::-moz-selection {
  background: var(--color-primary);
  color: var(--color-bg);
}

/* ============================================
   18. PRINT STYLES
   ============================================ */
@media print {
  .site-header,
  .marquee-section,
  .btn-primary-cta,
  .footer-grass {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  .hero-section {
    min-height: auto;
    padding: 40px 0;
  }
}