:root[data-theme="light"] {
  --logo-url: url('images/LogoBlack.svg');
  --bg-color: #ffffff;
  --main-head-color: #696871;
  --secondary-head-color: #19191b;
  --button-color: #2749f5;
  --button-text-color: #f9f9f9;
  --title-text-color: #000000;
  --desc-text-color: #696871;
  --graf-background-color: #f1f1f1;
  --total-amount-color: #000000;
  --brands-title-color: #000000;
  --card-border: rgba(0, 0, 0, 0.08);
  --card-border-hover: rgba(99, 102, 241, 0.4);
  --text-main: #0f172a;
  --span-color: #696871;
}

:root[data-theme="dark"] {
  --logo-url: url('images/LogoWhite.svg');
  --bg-color: #030913;
  --main-head-color: #d6d3d3;
  --secondary-head-color: #F9F9F9;
  --button-color: #2749f5;
  --button-text-color: #f9f9f9;
  --title-text-color: #ffffff;
  --desc-text-color: #696871;
  --graf-background-color: #0b0f19;
  --total-amount-color: #ffffff;
  --brands-title-color: #ffffff;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(99, 102, 241, 0.35);
  --text-main: #f8fafc;
  --span-color: #a4a2aa;
}

html {
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  font-family: "Plus Jakarta Sans", sans-serif;
  transition: 
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    fill 0.3s ease,
    stroke 0.3s ease;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

/* --- HEADER & CONTAINERS --- */


.burger-btn {
  display: none;
  background: #2749f5;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
  z-index: 101;
  flex-shrink: 0;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  line-height: 1;
  align-self: center;
  transform: none !important; 
  transition: background-color 0.3s ease;
}

.burger-btn-span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  flex-shrink: 0;
}


.burger-btn:focus,
.burger-btn:focus-visible,
.burger-btn:active {
  outline: none;
  box-shadow: none;
  background-color: #2749f5;
}

.header {
  padding-block: 24px;
}

.header__container, .hero__container {
  max-width: 1110px;
  margin-inline: auto;
  padding-inline: 20px;
}

.header__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px; /* Расстояние между темой, кошельком и бургером */
}

.header__logo {
  display: block;
  width: 199px;
  height: 47px;
  background-image: var(--logo-url);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.header__logo-svg {
  color: var(--text-color); 
  width: 120px;
  height: 40px;
}

.header__list {
  display: flex;
  gap: 48px;
}

.header__list-link {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.47px;
  color: var(--main-head-color);
  transition: color 0.3s;
}

.header__list-link:hover {
  color: var(--secondary-head-color);
}

[class="s520aVCi"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.47px;
  padding: 12px 12px;
  color: var(--button-text-color);
  background: var(--button-color);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header__button-wallet, .hero__button-wallet {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

button:hover {
  opacity: 85%;
  transform: translateY(-2px);
}




.hero {
  padding: 40px 0;
}

.hero__container {
  display: grid;
  /* Левая колонка занимает всё свободное место (1fr), правая — ровно ширину карточки (440px) */
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: start;
  max-width: 1110px;
  margin-inline: auto;
  padding-inline: 20px;
}

.hero__content {
  width: 100%;
}

.earnings-card {
  /* Полностью сбрасываем абсолютное позиционирование */
  position: relative;
  top: auto;
  right: auto;
  
  width: 100%;
  max-width: 440px;
  background: var(--graf-background-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  margin-top: 48px; /* Отступ от кнопок hero__buttons */
  padding: 0;
}




/* --- HERO SECTION --- */

/* .hero {
  padding-top: 40px;
  padding-bottom: 50px;
} */


/* .hero__container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.hero__content {
  max-width: 650px;
  width: 100%;
} */

.hero__span {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: var(--span-color);
  border-radius: 20px;
  border: 1.75px solid var(--span-color);
  padding: 2.5px 9px;
  display: inline-block;
}

.hero__span-h1-word {
  background: linear-gradient(to right, #4381ff 0%, #a26dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: background-position 0.4s ease;
  background-size: 200% 100%;
  background-position: left;
}

.hero__span-h1-word:hover {
  background-position: right;
}

.hero__title, .hero__span-h1-word {
  font-weight: 700;
  font-size: 60px;
  letter-spacing: -2.5px;
  line-height: 1.2;
  color: var(--title-text-color);
  margin-top: 22px;
}

.hero__desc {
  font-family: "Inter", sans-serif;
  font-size: 22px;
  letter-spacing: -1px;
  color: #5d6588;
  margin-top: 30px;
}

.hero__buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__button-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.47px;
  padding: 12px 12px;
  border: 1px solid var(--card-border, #ffffff);
  color: var(--text-main, #ffffff);
  border-radius: 8px;
  cursor: pointer;
  transform: translateY(0);
  transition: all 0.2s ease;
}

.hero__button-watch:hover {
  opacity: 85%;
  transform: translateY(-2px);
}

.hero__button-watch-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- EARNINGS CARD --- */

/* .earnings-card {
  position: relative;
  right: -80px;
  top: 0px;
  width: 100%;
  max-width: 440px;
  background: var(--graf-background-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
} */

.card-header {
  margin-bottom: 24px;
}

.header-label {
  font-size: 0.9rem;
  color: #9ca3af;
  font-weight: 500;
  margin-bottom: 8px;
}

.balance-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.balance-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--total-amount-color);
}

.badge-green {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  color: #10b981;
  font-size: 0.8rem;
  font-weight: 700;
}

.period-label {
  font-size: 0.8rem;
  color: #6b7280;
  margin-left: 2px;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 150px;
  margin-bottom: 12px;
}

.chart-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 75%;
  transform: translateX(-50%);
  background: #2749f5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  white-space: nowrap; 
  max-width: 90%;
}

.chart-dot {
  position: absolute;
  z-index: 3;
  left: 63%; 
  top: 54px;   
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border: 2.5px solid #2563eb; 
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.tooltip-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.tooltip-date {
  font-size: 0.7rem;
  color: #dbe5f7;
}

.chart-dates {
  display: flex;
  justify-content: space-between;
  color: #6b7280;
  font-size: 0.75rem;
  padding: 0 4px;
  margin-bottom: 28px;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0 -24px 24px;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.list-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brands-title-color);
}

.view-all {
  font-size: 0.85rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.view-all:hover {
  color: #60a5fa;
}

.tx-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tx-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1e293b;
  flex-shrink: 0;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brands-title-color);
  margin-bottom: 2px;
}

.tx-date {
  font-size: 0.75rem;
  color: #6b7280;
}

.tx-amount {
  font-size: 0.9rem;
  font-weight: 700;
  color: #10b981;
}

/* --- THEME TOGGLE BUTTON --- */

.theme-toggle-btn {
  background: var(--bg-color);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative; 
  transition: background-color 0.3s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-1px);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  pointer-events: none;
}

.moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

:root[data-theme="light"] .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  pointer-events: auto;
}

:root[data-theme="light"] .moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
  pointer-events: none;
}

/* --- FEATURES GRID --- */

/* .features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  max-width: 800px;
  width: 100%;
  margin-left: 400px;
  padding: 20px;
} */

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon-wrapper {
  color: #3b82f6; 
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.feature-icon-purple {
  color: #8b5cf6;
}

.feature-icon {
  width: 28px;
  height: 28px;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-title {
  color: var(--text-main, #ffffff);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.feature-description {
  color: var(--text-secondary, #94a3b8); 
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}

/* --- REWARDS SECTION --- */

.rewards-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  color: #ffffff;
}

.rewards-header {
  text-align: center;
  margin-bottom: 40px;
}

.rewards-header .subtitle {
  color: #5d6588;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.rewards-header .highlight {
  color: #3b82f6;
  font-weight: 500;
}

.rewards-header .title {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.reward-card {
  background-color: var(--graf-background-color);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.reward-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.icon-blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.icon-green {
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.icon-purple {
  background: linear-gradient(135deg, #a855f7, #6b21a8);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

.icon-orange {
  background: linear-gradient(135deg, #f97316, #c2410c);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 12px 0;
}

.card-desc {
  font-size: 0.875rem;
  color: #5d6588;
  line-height: 1.5;
  margin: 0;
}

.partners-block {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}

.partners-text {
  color: #3b82f6;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  color: var(--partner-logo-color);
}

.partners-logos img {
  height: 40px;
  width: auto;
  fill: currentColor;
  transition: opacity 0.2s ease;
}

.partners-logos img:hover {
  color: #3b82f6;
  opacity: 1;
}

.partners-bg {
  background-color: #0b1322;
  border-radius: 16px;
  padding: 24px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- VIDEO SECTION --- */

.video-section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.video-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.video-subtitle {
  color: #5d6588;
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.video-responsive {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background-color: #000000;
  display: flex;
}

.video-responsive video {
  width: 100%;
  height: auto;
  max-height: 550px;
  display: block;
  object-fit: cover;
}

/* --- GENERAL SECTIONS & BENEFITS --- */

.header-container {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 32px auto;
}

.section {
  padding: 80px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 48px auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 20px;
  color: #60a5fa;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: #3b82f6;
  border-radius: 50%;
  box-shadow: 0 0 8px #3b82f6;
}

.title-gradient {
  font-weight: 700;
  font-size: 50px;
  letter-spacing: -2.5px;
  line-height: 1.2;
  color: var(--title-text-color);
  margin-top: 22px;
  background: linear-gradient(to right, #4381ff 0%, #a26dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: background-position 0.4s ease;
  background-size: 200% 100%;
  background-position: left;
}

.title-gradient:hover {
  background-position: right;
}

.subtitle {
  color: #5d6588;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.benefit-card {
  background-color: var(--graf-background-color);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.benefit-subtitle {
  color: #5d6588;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4),
              0 0 20px rgba(59, 130, 246, 0.15);
}

.benefit-card--featured {
  background: var(--graf-background-color);
  border-color: rgba(59, 130, 246, 0.25);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
  color: #3b82f6;
}

.benefit-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 10px 0;
}

.benefit-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.scroll-down-wrapper {
  text-align: center;
}

.btn-scroll-down {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-scroll-down svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-scroll-down:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.btn-scroll-down:hover svg {
  transform: translateY(3px);
}

/* --- SECURITY SECTION --- */

.security-card {
  background-color: var(--graf-background-color);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 28px;
  padding: 48px;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(59, 130, 246, 0.1);
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.security-badge svg {
  width: 16px;
  height: 16px;
}

.security-text {
  margin-top: 24px;
}

.security-text p {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.security-text p:last-child {
  margin-bottom: 0;
}

.security-text strong {
  color: var(--text-main);
  font-weight: 600;
}


@media (max-width: 1024px) {
  .burger-btn {
    display: flex !important;
  }

  .burger-btn .burger-btn-span {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    min-height: 2px !important;
    background-color: #ffffff !important;
    opacity: 1;
    visibility: visible;
  }

  /* Выпадающий список ссылок */
  .header__list {
    position: fixed;
    top: 85px;
    left: 0;
    right: 0;
    background: var(--bg-color); /* Берет фоновый цвет шапки */
    backdrop-filter: blur(12px);
    border-radius: 10px;
    border: 2px solid #2a52ff;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    /* Состояние по умолчанию (скрыто) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
  }

  .header__list.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Анимация крестика у бургера */
  .burger-btn.is-active .burger-btn-span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .burger-btn.is-active .burger-btn-span:nth-child(2) {
    opacity: 0;
  }

  .burger-btn.is-active .burger-btn-span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    padding: 40px 0;
  }

  .hero__container {
    /* Переключаем в 1 колонку: Текст -> Карточка -> Фичи */
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .earnings-card {
    max-width: 100%; /* Карточка растягивается на всю ширину */
  }

  .chart-tooltip,
  .chart-dot {
    left: 70%; /* Корректировка точки под новую ширину контейнера */
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* --- СМАРТФОНЫ (до 768px) --- */
@media (max-width: 768px) {
  .hero__title, .title-gradient, .hero__span-h1-word {
    font-size: 38px;
    line-height: 1.2;
    letter-spacing: -1px;
  }

  .hero__desc {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr; /* Фичи выстраиваются строго в 1 столбец */
    gap: 24px;
  }

  .hero__buttons {
    flex-direction: column; /* Кнопки одна под другой на мобильных */
    gap: 12px;
  }

  .btn {
    width: 100%;
  }
}

/* --- МАЛЕНЬКИЕ ЭКРАНЫ (до 480px) --- */
@media (max-width: 480px) {
  
  .header__nav button span {
    display: none;
  }

  .hero__container {
    padding-inline: 16px;
  }

  .hero__title, .title-gradient, .hero__span-h1-word {
    font-size: 37px;
  }

  .earnings-card {
    padding: 20px 16px;
  }

  .earnings-card__amount {
    font-size: 1.65rem;
  }

  /* Идеальное центрирование тултипа и точки на узких экранах */
  .chart-tooltip {
    left: 74%;
    padding: 4px 10px;
  }

  .chart-dot {
    left: 63%;
    top: 50px;
  }

  .tooltip-value {
    font-size: 0.75rem;
  }

  .tooltip-date {
    font-size: 0.65rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .video-subtitle {
    color: #5d6588;
    font-size: 0.8rem;
    margin-bottom: 32px;
  }

  .subtitle {
    color: #5d6588;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
  }
}