@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans+Condensed:wght@300;400;500;600;700&display=swap');


:root {
  --bg: #050814;
  --bg-alt: #060b18;
  --card: #0b1224;
  --accent: #2fd9ff;
  --accent-2: #3cf58e;
  --accent-soft: rgba(47, 217, 255, 0.1);
  --text-main: #f7fbff;
  --text-muted: #9ca7c4;
  --border-subtle: #1a223a;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.55);
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #101633 0, #050814 45%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Layout */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-inline: 6px; /* небольшой отступ от края для контента */
}

.max-width {
  width: 100%;
  max-width: 1120px;
  padding-inline: 20px;
  margin-inline: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5,8,20,0.98), rgba(5,8,20,0.85));
  border-bottom: 1px solid rgba(83, 104, 187, 0.4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 18px;
  text-transform: uppercase;
}

.brand-pill {
  border-radius: 999px;
  border: 1px solid rgba(47, 217, 255, 0.3);
  background: radial-gradient(circle at top left, rgba(60,245,142,0.25), rgba(9,13,35,0.9));
  padding: 2px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

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

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(83, 104, 187, 0.7);
  background: radial-gradient(circle at top, rgba(47, 217, 255, 0.2), rgba(5,8,20,0.95));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-main);
  font-size: 16px;
}

.social-link:hover {
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(83, 104, 187, 0.7);
  background: radial-gradient(circle at top, rgba(47, 217, 255, 0.1), rgba(5,8,20,0.95));
  font-size: 12px;
}

.flag {
  font-size: 16px;
}

select {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 500;
  outline: none;
}

/* Hero */

.hero {
  padding-block: 40px 32px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(60,245,142,0.4);
  background: radial-gradient(circle at left, rgba(60,245,142,0.25), rgba(6,11,24,0.95));
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 16px rgba(60,245,142,0.7);
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.12;
  font-weight: 800;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin-top: 12px;
  max-width: 520px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.hero-cta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #020309;
  box-shadow: 0 14px 30px rgba(60,245,142,0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(12,18,40,0.96);
  border-color: rgba(83,104,187,0.7);
  color: var(--text-main);
}

.hero-stats {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.hero-stat-pill {
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(83,104,187,0.7);
  background: radial-gradient(circle at top, rgba(47,217,255,0.18), rgba(5,8,20,0.96));
}

.hero-right {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 340px;
  padding: 18px 18px 16px;
  border-radius: 26px;
  border: 1px solid rgba(83,104,187,0.8);
  background: radial-gradient(circle at top left, rgba(47,217,255,0.22), rgba(5,8,20,0.96));
  box-shadow: var(--shadow-soft);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 11px;
  color: var(--text-muted);
}

.hero-card-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-main);
}

.hero-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(13,180,255,0.12);
  border: 1px solid rgba(47,217,255,0.5);
}

.hero-card-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.hero-probability {
  font-size: 34px;
  font-weight: 700;
}

.hero-duck {
  width: 140px;
  max-width: 140px;
  height: auto;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0,0,0,0.7);
}

.hero-outcomes {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.outcome-pill {
  flex: 1;
  border-radius: 999px;
  padding: 8px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.outcome-yes {
  background: linear-gradient(135deg, #3cf58e, #12d86f);
  color: #020309;
}

.outcome-no {
  background: rgba(10,16,36,0.96);
  color: var(--text-main);
  border: 1px solid rgba(83,104,187,0.8);
}

.hero-footnote {
  font-size: 10px;
  color: var(--text-muted);
}

/* Sections */

.section {
  padding-block: 32px;
}

.section + .section {
  border-top: 1px solid rgba(26,34,58,0.9);
}

.section-inner {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
  gap: 32px;
  align-items: center;
}

.section.reverse .section-inner {
  grid-template-columns: minmax(0,1fr) minmax(0,1.15fr);
}

.section-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.section-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.section-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-list {
  margin-top: 10px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.section-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(83,104,187,0.7);
  background: radial-gradient(circle at top, rgba(47,217,255,0.16), rgba(6,9,26,0.96));
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
}

.section-img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  display: block;
  margin-inline: auto;
}

/* Timeline */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-top: 14px;

  /* НАСТРОЙКА ШИРИНЫ ДОРОЖНОЙ КАРТЫ:
     1.2 = +20% ширины именно у дорожной карты */
  width: 120%;                 /* ← +20% */
  margin-left: auto;           /* центрируем расширенный блок */
  margin-right: auto;          /* центрируем расширенный блок */
  transform: translateX(-10%); /* ← чтобы расширение было симметрично слева/справа */
}



.timeline-step {
  padding: 10px 10px 12px;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(47,217,255,0.14), rgba(6,9,26,0.96));
  border: 1px solid rgba(83,104,187,0.7);
  font-size: 12px;
}

.timeline-label {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 4px;
}

/* Team & Contact */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.team-card {
  border-radius: 20px;
  border: 1px solid rgba(83,104,187,0.7);
  background: radial-gradient(circle at top, rgba(47,217,255,0.18), rgba(6,9,26,0.96));
  padding: 12px 12px 14px;
  text-align: center;
}

.team-img {
  width: 100%;
  max-width: 140px;
  height: auto;
  border-radius: 22px;
  object-fit: cover;
  margin-bottom: 8px;
}

.team-name {
  font-size: 13px;
  font-weight: 600;
}

.team-role {
  font-size: 11px;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 24px;
  margin-top: 16px;
}

form {
  display: grid;
  gap: 10px;
  font-size: 12px;
}

input,
textarea {
  border-radius: 999px;
  border: 1px solid rgba(83,104,187,0.8);
  background: rgba(5,8,20,0.96);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-main);
  font-family: inherit;
  outline: none;
}

textarea {
  min-height: 80px;
  border-radius: 18px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #5e6a92;
}

.btn-submit {
  margin-top: 4px;
  justify-content: center;
}

.contact-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.contact-duck {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  margin-inline: auto;
}

/* Footer */

footer {
  border-top: 1px solid rgba(26,34,58,0.9);
  padding-block: 18px;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 10px;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner,
  .section-inner,
  .contact-grid {
    grid-template-columns: minmax(0,1fr);
  }

  .hero-right {
    order: -1;
  }

  header {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
  }

  .hero {
    padding-block: 24px;
  }

  .section {
    padding-block: 24px;
  }

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

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

/* ===== New landing layout (TrueStake) ===== */
.loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(63, 125, 255, 0.15), transparent 40%), #040712;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader img {
  width: min(240px, 60vw);
  max-height: 60vh;
}

body.is-loaded .loader {
  opacity: 0;
  visibility: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5, 8, 20, 0.95), rgba(5, 8, 20, 0.7));
  border-bottom: 1px solid rgba(83, 104, 187, 0.35);
  padding: 14px 0;
  margin-inline: -6px; /* вернуть шапку на всю ширину */
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand__logo {
  width: 40px;
  height: 40px;
}

.brand__name {
  font-size: 18px;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}

.topbar__menu-toggle {
  display: none;
  width: 36px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.topbar__menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 999px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.socials__label {
  color: var(--text-muted);
  font-size: 13px;
}

/* ИКОНКИ В ШАПКЕ */
.pill {
  position: relative; /* ОБЯЗАТЕЛЬНО: база для MVP-бейджа */

  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);

  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}



/* БЕЙДЖ MVP НА ИКОНКЕ MINI APP */
.pill__badge {
  position: absolute;
  top: -6px;        /* регулируешь вверх/вниз */
  right: -6px;      /* регулируешь влево/вправо */

  font-size: 9px;
  padding: 2px 5px;
  border-radius: 8px;

  background: #2fd9ff;
  color: #000;
  font-weight: 700;
  line-height: 1;

  pointer-events: none; /* не мешает клику */
}



.pill:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  background: rgba(47, 217, 255, 0.08);
}

/* .lang {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang__label {
  color: var(--text-muted);
  font-size: 13px;
}

.lang__select {
  background: var(--card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px 10px;
} */

/* === Флаги переключения языка в шапке === */
/* === Кастомный выпадающий список языков с флажками === */
/* === Кастомный выпадающий список языков === */

.lang-dropdown {
  position: relative; /* меню позиционируется относительно блока */
}

.lang-dropdown__toggle {
  display: inline-flex;             /* флаг + стрелка в строчку */
  align-items: center;              /* выравнивание по вертикали */
  gap: 6px;                         /* отступ между флагом и стрелкой */
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--card);
  color: var(--text-main);
  cursor: pointer;
}

.lang-dropdown__flag {
  display: flex;                    /* внутри будет span-флаг */
}

.lang-dropdown__chevron {
  font-size: 10px;                  /* маленькая стрелка */
}

.lang-dropdown__menu {
  position: absolute;
  right: 0;
  margin-top: 4px;
  padding: 6px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border-subtle);
  display: none;                    /* изначально скрыто */
  z-index: 100;
  min-width: 100%;
}

.lang-dropdown__menu--open {
  display: flex;                    /* показываем меню */
  flex-wrap: wrap;
  gap: 4px;
}

.lang-dropdown__item {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  transition: background-color .2s ease, transform .2s ease;
}

.lang-dropdown__item:hover {
  background-color: rgba(255,255,255,0.08);
  transform: scale(1.08);
}

/* === CSS-флажки (маленькие прямоугольники с цветами) === */

.lang-flag-icon {
  display: inline-block;       /* сам "флажок" */
  width: 20px;                 /* ширина флажка */
  height: 14px;                /* высота флажка */
  border-radius: 3px;          /* чуть скруглённые края */
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4); /* тонкая окантовка */
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  font-size: 0;               /* убираем любые символы */
  overflow: hidden;           /* страхуемся от артефактов */
}

/* Россия: бело-сине-красный */
.flag-ru {
  background: linear-gradient(
    to bottom,
    #ffffff 0 33%,
    #0039a6 33% 66%,
    #d52b1e 66% 100%
  );
}

/* Великобритания / EN - упрощённый тёмно-синий */
.flag-en {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 42'><rect width='60' height='42' fill='%23b22234'/><g fill='%23fff'><rect y='6' width='60' height='6'/><rect y='18' width='60' height='6'/><rect y='30' width='60' height='6'/></g><rect width='24' height='21' fill='%23012577'/><g fill='%23fff'><g transform='translate(3 3) scale(0.7)'><polygon points='3,0 4.2,3 7.5,3 4.8,4.9 6,8 3,6.2 0,8 1.2,4.9 -1.5,3 1.8,3'/></g><g transform='translate(9 6) scale(0.7)'><polygon points='3,0 4.2,3 7.5,3 4.8,4.9 6,8 3,6.2 0,8 1.2,4.9 -1.5,3 1.8,3'/></g><g transform='translate(15 3) scale(0.7)'><polygon points='3,0 4.2,3 7.5,3 4.8,4.9 6,8 3,6.2 0,8 1.2,4.9 -1.5,3 1.8,3'/></g><g transform='translate(21 6) scale(0.7)'><polygon points='3,0 4.2,3 7.5,3 4.8,4.9 6,8 3,6.2 0,8 1.2,4.9 -1.5,3 1.8,3'/></g></g></svg>");
}

/* Испания: красно-жёлто-красный */
.flag-es {
  background: linear-gradient(
    to bottom,
    #aa151b 0 25%,
    #f1bf00 25% 75%,
    #aa151b 75% 100%
  );
}

/* Португалия: зелёно-красный */
.flag-pt {
  background: linear-gradient(
    to right,
    #006600 0 40%,
    #ff0000 40% 100%
  );
}

/* Франция: сине-бело-красный вертикальный */
.flag-fr {
  background: linear-gradient(
    to right,
    #0055a4 0 33%,
    #ffffff 33% 66%,
    #ef4135 66% 100%
  );
}

/* Турция: красный */
.flag-tr {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 42'><rect width='60' height='42' fill='%23e30a17'/><circle cx='24' cy='21' r='10' fill='%23fff'/><circle cx='26' cy='21' r='8' fill='%23e30a17'/><path fill='%23fff' d='M33 21l6-4-2.3 7 6 4-7.3.1L33 35l-1.4-7.9-7.3-.1 6-4-2.3-7z'/></svg>");
}

/* Германия: чёрный-красный-жёлтый */
.flag-de {
  background: linear-gradient(
    to bottom,
    #000000 0 33%,
    #dd0000 33% 66%,
    #ffce00 66% 100%
  );
}

/* Китай: красный с лёгким градиентом */
.flag-zh {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 42'><rect width='60' height='42' fill='%23de2910'/><polygon fill='%23ffde00' points='9,6 11,12 17.3,12 12.2,15.8 14,22 9,18.2 4,22 5.8,15.8 0.7,12 7,12'/><polygon fill='%23ffde00' points='22,6 24,6.7 22.7,8.5 24.7,8.5 23,10 24.7,11.5 22.7,11.5 24,13.3 22,14 21.3,12 19.5,13.3 19.5,11.3 17.7,12 18.4,10 16.4,10 18.1,8.5 16.4,7 18.4,7 17.7,5 19.5,5.7 19.5,3.7 21.3,5 22,3 22.7,5 24.5,3.7 24.5,5.7 26.3,5 25.6,7 27.6,7 25.9,8.5 27.6,10 25.6,10 26.3,12 24.5,11.3 24.5,13.3 22.7,12 22,14 21.3,12'/></svg>");
}

/* Вьетнам: красный с жёлтым центром */
.flag-vi {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 42'><rect width='60' height='42' fill='%23da251d'/><polygon fill='%23ffeb3b' points='30,8 33.5,18 44,18 35.5,24 39,34 30,28 21,34 24.5,24 16,18 26.5,18'/></svg>");
}

/* Арабские страны: зелёный */
.flag-ar {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 42'><rect width='60' height='42' fill='%23007f3b'/><path d='M32 21a10 10 0 0 1-15.5 8.2 10 10 0 0 0 0-16.4A10 10 0 0 1 32 21Z' fill='%23fff'/><path d='M27 21c0 2.8-2.3 5-5 5-1.5 0-2.8-.6-3.7-1.7a5 5 0 0 0 0-6.6A5 5 0 0 0 22 16c2.7 0 5 2.2 5 5Z' fill='%23007f3b'/></svg>");
}

/* Индия: оранжево-бело-зелёный */
.flag-hi {
  background: linear-gradient(
    to bottom,
    #ff9933 0 33%,
    #ffffff 33% 66%,
    #138808 66% 100%
  );
}




.hero {
  padding: clamp(32px, 5vw, 72px) 0 32px;
  text-align: center;
}

.hero__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 980px;
  margin-inline: auto;
}

/* Заголовок УЦП - общие настройки */
.hero__title {
  margin: 12px 0 20px;                 /* отступ сверху/снизу заголовка */
  max-width: 980px;                    /* ширина области заголовка */
  margin-inline: auto;

  display: flex;                       /* делаем контейнером для строк */
  flex-direction: column;              /* строки идут сверху вниз */
  align-items: center;                 /* ВАЖНО: выравнивает строки по центру */
  text-align: center;                  /* центрируем текст внутри строк */

  font-family: 'Sofia Sans Condensed', sans-serif; /* шрифт */
  font-weight: 300;                    /* Light 300 */
  font-size: clamp(38px, 5vw, 64px);   /* размер под hero */
  line-height: 1.12;                   /* компактнее, без растяжки вправо */
  letter-spacing: 0.01em;
}




/* базовая строка заголовка */
.hero-title-line {
  display: block;            /* строка */
  width: 100%;
  text-align: center;
  margin: 0 auto;
}



/* 1-я строка: "Инвестируйте в" */
.hero-title-line--small {
  display: block;
  width: 100%;
  text-align: center;

  font-size: clamp(36px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.1;
}

/* 2-я строка: "децентрализованный Web3 рынок прогнозов" */
.hero-title-line--big {
  display: block;
  width: 100%;
  text-align: center;

  font-size: clamp(42px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  margin-top: 4px;
  white-space: normal;
}

/* на мобилках всё-таки разрешаем перенос, чтобы не ломалось */
@media (max-width: 900px) {
  .hero-title-line--big {
    white-space: normal;                /* можно переносить */
  }
}


/* Подсветка части УЦП-заголовка ("рынок прогнозов") */
.hero__title-highlight {
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-weight: 400;        /* чуть плотнее для акцента */
  color: #2fd9ff;
  letter-spacing: 0.05em;
}




.hero__lead {
  font-size: clamp(16px, 2.1vw, 19px);  /* размер подзаголовка */
  color: #ffffff;                       /* белый текст, как ты просил */
  margin: 12px 0 18px;                  /* больше воздуха вокруг строки */
  max-width: 960px;                     /* шире, чтобы на десктопе была одной строкой */
  margin-inline: auto;
  text-align: center;
}

.hero__copy {
  color: var(--text-muted);
  line-height: 1.7;                     /* межстрочный интервал */
  margin: 0 0 26px;                     /* отступ вниз от большого текста */
  text-align: justify;                  /* выравнивание по ширине */
  max-width: 760px;                     /* делаем колонку шире, чтобы «не казалось простынёй» */
  margin-inline: auto;
}

/* на очень широких экранах стараемся держать подзаголовок в одну строку */
@media (min-width: 1200px) {
  .hero__lead {
    white-space: normal;
  }
}






.hero__text {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__text p,
.hero__text h1 {
  margin-left: auto;
  margin-right: auto;
}




.hero__utp {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(60, 245, 142, 0.08);
  border: 1px solid rgba(60, 245, 142, 0.35);
  display: grid;
  gap: 8px;
  color: #b7ffd5;
  max-width: 840px;
  margin-inline: auto;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

.hero__media {
  position: relative;        /* контейнер для карточки и боковых уток */
  display: grid;             /* карточка + подписи снизу */
  gap: 16px;                 /* расстояние между карточкой и текстом */
  justify-items: center;     /* всё содержимое по центру */

  max-width: 960px;          /* ширина зоны, как у текста сверху */
  margin: 24px auto 0;       /* центрируем блок + отступ сверху */

  overflow: visible;         /* утки могут выходить за пределы блока */
}



.amount-card {
  position: relative;  /* базовый контейнер для карточки и уток */
  padding: 18px;
  background: linear-gradient(145deg, rgba(47, 217, 255, 0.12), rgba(60, 245, 142, 0.08));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: visible;   /* ВАЖНО: утки могут выходить за границы карточки */
  max-width: 720px;    /* ширина карточки */
  margin-inline: auto; /* по центру */
}


.amount-card__rail {
  background: rgba(5, 9, 19, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  z-index: 1;
}

.amount-card__scale {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  /* overflow: hidden; */ /* убрали, чтобы уточка не обрезалась краями шкалы */
}


.amount-card__scale-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.amount-card__fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, #2fd9ff, #3cf58e);
}

.amount-card__percent {
  position: absolute;
  top: -16px;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-main);
  font-weight: 700;
}

.amount-card__duck {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%); /* сдвиг вверх: уточка над бегунком */
  width: 50px;                      /* было 120px → в 4 раза меньше */
  max-width: none;                  /* убрали масштабирование от ширины экрана */
  pointer-events: none;             /* не мешает кликам */
}


.amount-card__raised {
  text-align: center;
  margin-top: 16px;
}

.amount-card .label {
  color: var(--text-muted);
  font-size: 13px;
}

.amount-card .value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
}

.amount-card .note {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
}

.amount-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.amount-card__cell {
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn {
  cursor: pointer;                         /* курсор-рука на кнопке */
  border: none;                            /* без рамки */
  border-radius: 14px;                     /* скруглённые углы */
  padding: 14px 18px;                      /* внутренние отступы */
  font-weight: 700;                        /* жирный текст */
  font-size: 16px;                         /* чуть крупнее текст на кнопке */
  color: #041024;                          /* цвет текста */
  display: inline-flex;                    /* делаем флекс, чтобы центрировать содержимое */
  align-items: center;                     /* по вертикали по центру */
  justify-content: center;                 /* по горизонтали по центру */
  text-align: center;                      /* если текст в две строки — тоже по центру */
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* анимация наведения */
}



.btn-primary {
  background: linear-gradient(120deg, #2fd9ff, #3cf58e);
  width: 100%;
  box-shadow: 0 10px 30px rgba(47, 217, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(47, 217, 255, 0.4);
}

/* ===== БОКОВЫЕ УТКИ ВОКРУГ КАРТОЧКИ (left.png / right.png) ===== */

.amount-card__side {
  position: absolute;        /* утки позиционируются относительно .amount-card */
  bottom: -80px;             /* ВЫСОТА: ниже = больше число по модулю (подгоняй) */
  width: 320px;              /* РАЗМЕР уток на десктопе (подгоняй) */
  height: auto;              /* пропорции */
  display: block;            /* показываем */
  opacity: 1;                /* без прозрачности */
  pointer-events: none;      /* не мешают кликам */

  z-index: 50;                /* утки НИЖЕ карточки */
}

/* карточку поднимаем над утками */
.amount-card__rail {
  position: relative;
  z-index: 2;                /* карточка ВЫШЕ уток */
}

/* левая утка */
.amount-card__side--left {
  left: -300px;              /* СДВИГ ВЛЕВО: меньше модуль = ближе к карточке */
}

/* правая утка */
.amount-card__side--right {
  right: -300px;             /* СДВИГ ВПРАВО: меньше модуль = ближе к карточке */
}

/* Планшеты: утки меньше и ближе */
@media (max-width: 1200px) {
  .amount-card__side {
    width: 260px;
    bottom: -54px;
  }
  .amount-card__side--left  { left: -290px; }
  .amount-card__side--right { right: -290px; }
}

/* Мобилки: прячем, чтобы не ломало */
@media (max-width: 960px) {
  .amount-card__side {
    display: none;
  }
}



.token-desc {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.media {
  padding: 20px 0 60px;
  text-align: center;
}

.media__header {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.media__bullets {
  max-width: 600px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 auto;
}

.media__shot {
  position: relative;
  border-radius: var(--radius-lg);   /* только скругление углов — как ты и требовал */
  overflow: visible;                  /* НИЧЕГО НЕ ОБРЕЗАЕМ — уточка выходит наружу */
  background: transparent;            /* никакого фона и визуальной рамки */
  padding-right: 40px;                /* уменьшение области скрина справа */
  padding-bottom: 40px;               /* уменьшение снизу под уточку */
}


.media__img {
  display: block;
  width: 100%;                                      /* скрин занимает всю “рабочую” область внутри padding */
  height: auto;
}

/* right_screen.png — уточка поверх скриншота */
.media__duck {
  position: absolute;
  right: -25px;             /* смещение уточки ВПРАВО от угла скрина (примерно 1/4 её ширины) */
  bottom: -35px;            /* смещение уточки ВНИЗ от угла скрина (примерно половина её высоты) */
  width: 250px;             /* размер уточки (меняй это число для изменения размера) */
  pointer-events: none;     /* чтобы не мешала кликам */

  /* ============= РУЧНАЯ ПОДГОНКА =============
     - right:  значение < 0  → уточка правее
     - bottom: значение < 0  → уточка ниже
     - width:  больше число → уточка крупнее
     ======================================== */
}


/* Адаптация для планшетов и телефонов */
@media (max-width: 768px) {
  .media__shot {
    padding-right: 24px;                            /* на мелких экранах чуть меньше запас справа */
    padding-bottom: 24px;                           /* и снизу, чтобы всё влезало */
  }

  .media__duck {
    width: 110px;                                   /* поменьше уточка на маленьких экранах */
    right: -18px;                                   /* при необходимости подгони под свой вкус */
    bottom: -26px;
    /* тут тоже можно руками играться right/bottom под конкретный девайс */
  }
}




@media (max-width: 960px) {
  .topbar__menu-toggle {
    display: inline-flex;
  }

  .socials {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(5, 8, 20, 0.94);
    border: 1px solid rgba(83, 104, 187, 0.6);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
    flex-wrap: wrap;
    min-width: 220px;
  }

  .socials.socials--open {
    display: flex;
  }

  .amount-card__side {
    display: block;
    width: 200px;
    bottom: -40px;
    opacity: 0.7;
  }

  .amount-card__side--left  { left: -140px; }
  .amount-card__side--right { right: -140px; }
}

@media (max-width: 640px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

.socials__label {
    width: 100%;
  }

  .amount-card__side {
    width: 160px;
    bottom: -28px;
    opacity: 0.6;
  }

  .amount-card__side--left  { left: -110px; }
  .amount-card__side--right { right: -110px; }
}

/* === Новые секции === */
.section.info,
.section.economics,
.section.social,
.section.team,
.section.roadmap,
.section.faq {
  padding: 56px 0;
}

.info__inner,
.social__inner {
  display: flex;
  justify-content: center;
}

/* ===== БЛОК "ТОКЕН TSTK" НА ВСЮ ШИРИНУ ===== */

.info__card {
  width: 100%;              /* растягиваем на всю доступную ширину */
  max-width: var(--info-card-max, 100%); /* регулируем ширину карты (меняется через переменную) */
  padding: 24px 26px;
  border-radius: 26px;
  border: 1px solid rgba(76, 133, 255, 0.35);
  background: linear-gradient(135deg, rgba(12, 22, 44, 0.95), rgba(7, 14, 30, 0.9));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(76, 133, 255, 0.12) inset;
}

.info__card--about {
  --info-card-max: 960px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.info__card--presale {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.info__card-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* social__card оставляем как было (он может быть уже нормальным) */
.social__card {
  width: 100%;
  max-width: 960px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(83, 104, 187, 0.6);
  background: radial-gradient(circle at 75% 15%, rgba(60, 245, 142, 0.12), rgba(5, 8, 20, 0.92));
  box-shadow: var(--shadow-soft);
}


.info__card h2,
.social__card h2 {
  margin: 6px 0 14px;
  font-size: clamp(24px, 3vw, 30px);
  color: #f7fbff;
}

.feature-grid__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(83, 104, 187, 0.6);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.feature-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.feature-card__icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.feature-card h3 {
  margin: 0;
  font-size: 16px;
  color: #f7fbff;
  line-height: 1.3;
}

.feature-card__list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 14px;
}

.feature-card__list li::first-letter {
  color: #7bd6ff;
}

.info--presale {
  padding-top: 28px;
}

.vision__card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(83, 104, 187, 0.6);
  background: radial-gradient(circle at 10% 20%, rgba(47, 217, 255, 0.14), rgba(5, 8, 20, 0.92));
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.vision__card h2 {
  margin: 8px 0 0;
  font-size: clamp(22px, 3vw, 28px);
}

.info__text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

.economics__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.economics__text h2 {
  margin: 6px 0 12px;
  font-size: clamp(24px, 3vw, 30px);
}

.economics__list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  display: grid;
  gap: 8px;
}

.economics__card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(60, 245, 142, 0.4);
  background: radial-gradient(circle at 80% 20%, rgba(60, 245, 142, 0.14), rgba(5, 8, 20, 0.96));
  padding: 20px;
  display: grid;
  gap: 12px;
  align-content: center;
}

.sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

.sticker--accent {
  background: rgba(47, 217, 255, 0.12);
  border-color: rgba(47, 217, 255, 0.4);
}

.sticker--muted {
  color: var(--text-muted);
}

.social__card {
  background: radial-gradient(circle at 75% 15%, rgba(60, 245, 142, 0.12), rgba(5, 8, 20, 0.92));
}

/* === Команда / карусель === */
/* ЗАМЕНА: убираем absolute у карточек → делаем нормальную flex-ленту (gap начинает работать) */

/* === Команда / карусель === */

.team__header h2 {
  margin: 6px 0 18px;
  font-size: clamp(24px, 3vw, 30px);
}

/* ВАЖНО: убираем “пустые поля” между стрелками и окном.
   Делается через gap у flex-контейнера + НИКАКИХ margin:auto у viewport */
/* .team-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
} */

/* ОКНО карусели: 3 карточки полностью + по краям видны частично (симметрично) */
.team-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  flex-wrap: nowrap;     /* КЛЮЧЕВОЕ: стрелки никогда не уйдут на новую строку */
  gap: 18px;
  margin-top: 12px;
}

.team-carousel__viewport {
  --card-w: 210px;
  --gap: 24px;

  /* сколько видно крайних карточек слева/справа (20–50%).
     поставил 35% как на твоём "как должно быть" */
  --peek: 0.35;

  overflow: hidden;
  margin: 0;      /* КРИТИЧНО: убираем auto, иначе стрелки разъезжаются */

  /* Окно: [кусок] [полная] [центр] [полная] [кусок] */
  width: calc(
    (3 + (2 * var(--peek))) * var(--card-w) +
    (4 * var(--gap))
  );

  max-width: 100%;
}

.team-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;

  gap: var(--gap);

  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); /* плавнее */
  transform: translate3d(0, 0, 0); /* сглаживание, меньше дёрганий */
  backface-visibility: hidden;

  padding: 10px 0;
  box-sizing: border-box;
}




/* Карточка в ленте */
/* КАРТОЧКА в ленте: ВАЖНО — никаких absolute */
.team-carousel__track .team-card {
  flex: 0 0 var(--card-w);
  width: var(--card-w);

  min-height: 360px;   /* ↓ БЫЛО 420 */
  max-height: 360px;

  padding: 14px 14px 10px; /* ↓ меньше снизу */
  border-radius: 18px;
  border: 1px solid rgba(83, 104, 187, 0.7);
  background: radial-gradient(circle at top, rgba(47, 217, 255, 0.12), rgba(6, 9, 26, 0.96));
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  position: relative;

  opacity: 0.92;
  transform: none;
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}


/* ФИКС: ограничиваем фото, чтобы оно не раздувалось и не скрывало текст */
.team-carousel__track .team-card__photo {
  width: 170px;
  height: 170px;
  object-fit: contain;
  display: block;
  margin: 12px 0 10px;
  flex: 0 0 auto;
}

/* (не обязательно, но помогает тексту стабильно влезать) */
.team-carousel__track .team-card__name {
  margin: 6px 0 6px;
}

.team-carousel__track .team-card__role {
  margin-bottom: 0;   /* убираем лишний отступ вниз */
  line-height: 1.3;
}

.team-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(83, 104, 187, 0.7);
  color: var(--text-main);
  background: rgba(47, 217, 255, 0.08);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.team-card__link:hover {
  border-color: var(--accent);
  background: rgba(47, 217, 255, 0.14);
  transform: translateY(-1px);
}

.team-carousel__track .team-card__desc {
    display: none;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}


/* Состояния масштаба (центр/рядом/дальние) */
.team-carousel__track .team-card.is-active {
  transform: scale(1.02);
  opacity: 1;
  box-shadow: 0 16px 40px rgba(47, 217, 255, 0.20);
}

.team-carousel__track .team-card.is-near {
  transform: scale(0.98);
  opacity: 0.95;
}

.team-carousel__track .team-card.is-far {
    transform: scale(0.94);
    opacity: 0.88;
  }

  .presale-panel {
    margin: 16px auto 8px;
    padding: 16px 18px;
    border-radius: 18px;
    background: radial-gradient(circle at 20% 10%, rgba(47, 217, 255, 0.12), rgba(6, 9, 26, 0.92));
    border: 1px solid rgba(83, 104, 187, 0.6);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    width: min(860px, 100%);
    display: grid;
    gap: 12px;
    text-align: center;
  }

  .presale-panel__row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
  }

  .presale-panel__row--accent {
    color: var(--text-main);
    font-weight: 700;
    font-size: 16px;
  }

  .presale-panel__icon {
    font-size: 16px;
    line-height: 1;
  }

  .presale-panel__timer {
    font-size: clamp(26px, 5vw, 34px);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.25;
    word-spacing: 12px; /* расстояние между группами времени */
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .presale-panel__timer-box {
    margin: 10px auto;
    padding: 10px 12px;
    border: 1px solid rgba(83, 104, 187, 0.8);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    width: min(600px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

.doc-links {
  width: min(860px, 100%);
  margin: 4px auto 0;
  padding: 10px 18px;
  border-radius: 18px;
  background: radial-gradient(circle at 20% 10%, rgba(47, 217, 255, 0.12), rgba(6, 9, 26, 0.92));
  border: 1px solid rgba(83, 104, 187, 0.6);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  align-items: center;
  gap: 4px;
  overflow: visible;
}

.doc-links img {
  width: 100%;
  max-width: 160px;
  margin-inline: auto;
  display: block;
}

  .doc-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .doc-link img {
    display: block;
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  .doc-link:hover,
  .doc-link:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  }

  .doc-link--left {
    justify-self: start;
  }

  .doc-link--center {
    justify-self: center;
  }

  .doc-link--right {
    justify-self: end;
  }

  .doc-link::after {
    content: attr(data-title);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translate(-50%, -8px);
    background: rgba(10, 18, 38, 0.95);
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(83, 104, 187, 0.7);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
    pointer-events: none;
    font-size: 13px;
    z-index: 3;
  }

  .doc-link:hover::after,
  .doc-link:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -12px);
  }

  /* Кнопки листания */
  .team-carousel__control {
    width: 42px;
    height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  cursor: pointer;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.team-carousel__control:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}


/* === Дорожная карта с парящими утками === */
.roadmap__header h2 {
  margin: 6px 0 18px;
  font-size: clamp(24px, 3vw, 30px);
}

/* ===== Roadmap: правильная раскладка 1-3-5 / 2-4 ===== */
.roadmap__grid{
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: auto;
  column-gap: 0;
  row-gap: 122px;

  width: 100%;
  margin: 0;
  padding: 16px;

  overflow: visible; /* можно hidden, если тебе принципиально */
}

.roadmap__item{
  margin-left: 0;
  height: auto;
  flex: none;
  justify-self: center;

  /* ✅ РАСШИРЕНИЕ КАРТОЧКИ НА 20% (БЕЗ СДВИГОВ СЕТКИ) */
  width: 130%;

  padding: 20px 18px 35px;
  border-radius: 18px;

  border: 1px solid rgba(83, 104, 187, 0.55);
  background: linear-gradient(135deg, rgba(12, 22, 44, 0.75), rgba(7, 14, 30, 0.65));
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(76,133,255,0.10) inset;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ✅ НА МОБИЛКЕ НЕ РАСШИРЯЕМ (чтобы не ломалось) */
@media (max-width: 960px){
  .roadmap__item{
    width: 100%;
  }
}


/* ===== ROADMAP LINES (SVG overlay) ===== */
.roadmap__lines{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;          /* линии */
}

.roadmap__item{
  position: relative;
  z-index: 2;          /* карточки поверх линий */
}

.roadmap__line{
  fill: none;
  stroke: rgba(47, 217, 255, 0.95);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(47,217,255,0.55));
}

/* на мобилках лучше выключить линии */
@media (max-width: 960px){
  .roadmap__lines{ display:none; }
}





/* ✅ ФИКС: этапы считаются только среди .roadmap__item (SVG не влияет) */

/* Ряд 1: 1 / 3 / 5 */
.roadmap__grid > .roadmap__item:nth-of-type(1){ grid-column: 1; grid-row: 1; justify-self: start; }
.roadmap__grid > .roadmap__item:nth-of-type(3){ grid-column: 3; grid-row: 1; justify-self: center; }
.roadmap__grid > .roadmap__item:nth-of-type(5){ grid-column: 5; grid-row: 1; justify-self: end; }

/* Ряд 2: 2 / 4 */
.roadmap__grid > .roadmap__item:nth-of-type(2){ grid-column: 2; grid-row: 2; justify-self: center; margin-top: 0; }
.roadmap__grid > .roadmap__item:nth-of-type(4){ grid-column: 4; grid-row: 2; justify-self: center; margin-top: 0; }


/* Мобилка: просто список */
@media (max-width: 960px){
  .roadmap__grid{
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
  .roadmap__item{
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: stretch;
  }
}



.roadmap__item--low {
  --base-shift: 10px;
}

.roadmap__item[data-active="true"]{
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(47, 217, 255, 0.25);
  background: radial-gradient(circle at 20% 20%, rgba(47, 217, 255, 0.12), rgba(6, 9, 26, 0.94));
}


.roadmap__item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
  margin-bottom: 10px;
}

.roadmap__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.roadmap__head img {
  margin-bottom: 0;
  flex-shrink: 0;
}

.roadmap__stage {
  font-weight: 700;
  margin-bottom: 4px;
  color: #f7fbff;
  font-size: 14px;
}

.roadmap__time {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.roadmap__list {
  margin: 0 0 6px;
  padding-left: 16px;
  color: var(--text-muted);
  line-height: 1.5;
  display: grid;
  gap: 3px;
  font-size: 13px;
}

.roadmap__result {
  margin: 0;
  font-size: 12px;
  color: #f7fbff;
}



@keyframes floatDuck {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-14px); }
  100% { transform: translateY(0px); }
}

/* Плавное хаотичное плавание карточек дорожной карты */
.roadmap__grid .roadmap__item {
  animation: floatCard var(--float-duration, 8s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

.roadmap__grid .roadmap__item:nth-of-type(1) { --float-delay: -0.6s; --float-duration: 7.6s; }
.roadmap__grid .roadmap__item:nth-of-type(2) { --float-delay: -0.2s; --float-duration: 8.4s; }
.roadmap__grid .roadmap__item:nth-of-type(3) { --float-delay: -1.1s; --float-duration: 7.9s; }
.roadmap__grid .roadmap__item:nth-of-type(4) { --float-delay: -0.8s; --float-duration: 8.7s; }
.roadmap__grid .roadmap__item:nth-of-type(5) { --float-delay: -0.4s; --float-duration: 7.3s; }

@keyframes floatCard {
  0%   { transform: translate3d(0, 0px, 0); }
  25%  { transform: translate3d(4px, -10px, 0); }
  50%  { transform: translate3d(-5px, 12px, 0); }
  75%  { transform: translate3d(3px, -8px, 0); }
  100% { transform: translate3d(0, 0px, 0); }
}

/* === FAQ === */
.faq__header h2 {
  margin: 6px 0 18px;
  font-size: clamp(24px, 3vw, 30px);
}

.faq__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.faq__item {
  border-radius: 16px;
  border: 1px solid rgba(83, 104, 187, 0.6);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq__item.is-open {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(47, 217, 255, 0.16);
}

.faq__question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}

.faq__toggle {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.faq__item.is-open .faq__toggle {
  background: rgba(47, 217, 255, 0.12);
  border-color: rgba(47, 217, 255, 0.5);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  color: var(--text-muted);
  padding: 0 14px;
  font-size: 14px;
  line-height: 1.6;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.faq__item.is-open .faq__answer {
  max-height: 220px;
  padding: 0 14px 14px;
}

/* === Юридическая информация === */
.legal__header h2 {
  margin: 6px 0 8px;
  font-size: clamp(24px, 3vw, 30px);
}

.legal__subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.legal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.legal-card {
  border-radius: 16px;
  border: 1px solid rgba(83, 104, 187, 0.6);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 14px 16px;
  display: grid;
  gap: 10px;
}

.legal-card--full {
  grid-column: span 2;
}

.legal-card__title {
  font-weight: 700;
  font-size: 15px;
  margin: 0;
}

.legal-card__list {
  display: grid;
  gap: 8px;
}

.legal-card__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 6px 10px;
  align-items: start;
}

.legal-card__label {
  font-size: 13px;
  color: var(--text-muted);
}

.legal-card__value {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
}

.legal-card__text {
  margin: 0;
  color: var(--text-main);
  line-height: 1.6;
  font-size: 14px;
}

.legal-accordion {
  display: grid;
  gap: 8px;
}

.legal-accordion__header {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}

.legal-accordion__icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.legal-accordion__body {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.legal-accordion__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.legal-accordion__list--docs {
  gap: 8px;
  padding-left: 0;
}

.legal-accordion__list--docs li {
  list-style: none;
}

.legal-doc-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid rgba(83, 104, 187, 0.5);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-main);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.legal-doc-btn:hover {
  border-color: var(--accent);
  background: rgba(47, 217, 255, 0.08);
  transform: translateY(-1px);
}

.legal-accordion--open .legal-accordion__body {
  max-height: 260px;
  padding: 0px 0 16px;
}

.legal-accordion--open .legal-accordion__icon {
  background: rgba(47, 217, 255, 0.12);
  border-color: rgba(47, 217, 255, 0.5);
}



/* контейнер карты внутри карточки юр.адреса */
.legal-card__map {
  margin-top: 12px;        /* отступ сверху от текста */
  border-radius: 12px;     /* скругляем карту как карточку */
  overflow: hidden;        /* обрезаем углы iframe по радиусу */
}

/* сама карта, растягивается по ширине блока и держит пропорции */
.legal-card__map iframe {
  width: 100%;             /* всегда по ширине legal-card */
  aspect-ratio: 16 / 9;    /* соотношение сторон, авто-высота */
  border: 0;               /* без рамки iframe */
  display: block;          /* убираем лишние пробелы/отступы */
}



@media (max-width: 960px) {
  .economics__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-grid__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info__card--presale {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  /* ВАЖНО: карусель ВСЕГДА в строку, стрелки не уходят вниз */
  .team-carousel {
    flex-direction: row;     /* вместо column */
    flex-wrap: nowrap;       /* без переносов */
    gap: 10px;
    align-items: center;
  }

  .team-carousel__control {
    flex: 0 0 auto;          /* стрелки фиксированного размера */
    order: 0;                /* не переупорядочиваем */
  }

  .team-carousel__viewport {
    flex: 1 1 auto;          /* окно с карточками может сжиматься */
    min-width: 0;            /* критично для flex, чтобы не выталкивало стрелки */
  }

  /* остальная адаптивность как была */
  .legal__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-card--full {
    grid-column: span 1;
  }

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

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


/* мгновенная смена размеров/подсветки после перелистывания */
.team-carousel__track.is-instant .team-card {
  transition: none !important;
}

@media (max-width: 520px) {
  .team-carousel { gap: 10px; }

.team-carousel__control {
    width: 36px;
    height: 36px;
    font-size: 20px;
    border-radius: 10px;
  }
}

/* === Модалка покупки TSTK === */
body.modal-open {
  overflow: hidden;
}

.payment-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 2000;
}

.payment-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.payment-modal__backdrop {
  position: absolute;
  inset: 0;
}

.payment-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: linear-gradient(135deg, rgba(12, 22, 44, 0.95), rgba(7, 14, 30, 0.95));
  border: 1px solid rgba(83, 104, 187, 0.6);
  border-radius: 22px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.doc-modal__content {
  max-height: clamp(320px, 70vh, 620px);
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding-right: 6px;
}

.doc-modal__embed {
  width: 100%;
  min-height: 520px;
  border: 1px solid rgba(83, 104, 187, 0.6);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 18, 38, 0.9);
}

.doc-modal__embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.doc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding-right: 56px; /* leave space for close button in top-right */
}

.doc-modal__download {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(83, 104, 187, 0.7);
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.doc-modal__download:hover,
.doc-modal__download:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  border-color: var(--accent);
}

.doc-modal__content h4 {
  margin: 8px 0 2px;
  font-size: 16px;
  color: var(--text-main);
}

.doc-modal__lead {
  margin: 0;
  color: var(--text-main);
  line-height: 1.6;
}

.doc-modal__text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.doc-modal__pre,
pre.doc-modal__text {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--font-main, 'Inter', system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
}

.doc-modal__pre a,
pre.doc-modal__text a {
  color: var(--accent);
  text-decoration: underline;
}

.doc-modal__pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--font-main, 'Inter', system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
}

.doc-modal__list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  display: grid;
  gap: 6px;
}

.payment-modal__title {
  margin: 0 0 14px;
  font-size: clamp(20px, 3vw, 24px);
}

.payment-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.payment-modal__wallets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 12px;
}

.payment-wallet {
  border: 1px solid rgba(83, 104, 187, 0.6);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.payment-wallet img {
  width: 180px;
  max-width: 100%;
  height: auto;
}

.payment-wallet__label {
  display: block;
  margin-top: 8px;
  font-weight: 700;
}

.payment-modal__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.payment-modal__email {
  color: var(--accent);
  text-decoration: underline;
  word-break: break-all;
}

.payment-modal__or {
  margin: 14px 0 10px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.payment-form {
  display: grid;
  gap: 10px;
}

.form-field {
  display: grid;
  gap: 6px;
  text-align: left;
}

.form-field__label {
  font-size: 13px;
  color: var(--text-muted);
}

.payment-form__submit {
  justify-content: center;
  width: 100%;
}

.payment-form__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.payment-form__status {
  font-size: 13px;
  min-height: 18px;
  color: var(--text-muted);
}

.payment-form__status.is-success {
  color: #3cf58e;
}

.payment-form__status.is-error {
  color: #ff9d7b;
}

@media (max-width: 640px) {
  .payment-modal__wallets {
    grid-template-columns: 1fr;
  }

  .payment-modal__dialog {
    padding: 20px 16px 16px;
  }
}

/* === Responsive matrix === */
@media (min-width: 1400px) {
  .max-width {
    max-width: 1320px;
  }

  .hero__grid {
    max-width: 1100px;
  }

  .presale-panel {
    width: min(1020px, 100%);
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .max-width {
    max-width: 1220px;
  }
}

@media (max-width: 1200px) {
  .feature-grid__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 992px) {
  .info__card--about,
  .info__card--presale {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature-grid__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-carousel__viewport {
    --card-w: 200px;
  }
}

@media (max-width: 768px) {
  .presale-panel {
    padding: 14px;
  }

  .presale-panel__row {
    font-size: 13px;
    line-height: 1.45;
  }

  .presale-panel__timer {
    font-size: clamp(24px, 6vw, 30px);
  }

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

  .feature-grid__items {
    grid-template-columns: 1fr;
  }

  .team-carousel__viewport {
    --card-w: 190px;
  }
}

@media (max-width: 576px) {
  .presale-panel {
    gap: 10px;
  }

  .presale-panel__timer-box {
    width: 100%;
  }

  .presale-panel__timer {
    word-spacing: 10px; /* настройка расстояния между блоками на маленьких экранах */
  }

  .team-carousel__viewport {
    --card-w: 180px;
  }
}

@media (max-width: 480px) {
  .presale-panel {
    padding: 12px;
  }

  .presale-panel__timer {
    font-size: 22px;
  }

  .hero__title {
    font-size: clamp(28px, 7vw, 40px);
  }

  .hero-title-line--small {
    font-size: clamp(26px, 6.5vw, 34px);
  }

  .hero-title-line--big {
    font-size: clamp(32px, 7.5vw, 40px);
  }
}

@media (max-width: 414px) {
  .presale-panel {
    padding: 10px;
    gap: 8px;
  }

  .presale-panel__timer-box {
    padding: 8px 10px;
  }

  .presale-panel__timer {
    font-size: 20px;
    word-spacing: 8px;
  }

  .team-carousel__viewport {
    --card-w: 165px;
  }
}

/* iPhone XR (414px width) fixes: prevent horizontal scroll and hide side ducks */
@media (max-width: 430px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .timeline {
    width: 100%;
    transform: none;
  }

  .roadmap__item {
    width: 100%;
  }

  .amount-card__side {
    display: none;
  }

  .doc-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    width: 100%;
    margin-inline: 0;
    padding: 12px 6px; /* регулируйте вертикальные отступы здесь */
    gap: 0;
  }

  .doc-links img {
    width: 130%;
    max-width: none;
    margin-inline: -10%;
    transform: scale(1.1);
    margin-top: 4px;   /* доп. отступ сверху — меняйте при необходимости */
    margin-bottom: 6px;/* доп. отступ снизу — меняйте при необходимости */
  }

  .media__duck {
    width: 120px;
    right: -6px;
    bottom: -12px;
  }
}
