* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

.snap-container {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

@media (min-width: 769px) {
  .snap-container {
    height: 100vh;
    overflow-y: auto;
  }
  
  .page-1, .page-2 {
    min-height: 100vh;
    position: relative;
  }
}

body {
  font-family: "Manrope", sans-serif;
  font-weight: 200;
  background-color: #0B0C0D;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  height: 100%;
}

.page-1, .page-2 {
  min-height: 100vh;
  position: relative;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
  transform: translateZ(0);
  backface-visibility: hidden;
  pointer-events: none;
}

.join-button {
  position: absolute;
  top: 25px;
  left: 20px;
  padding: 12px 24px;
  font-size: 16px;
  text-transform: uppercase;
  background: transparent;
  color: #ebebeb;
  border: 1px solid #ebebeb;
  overflow: hidden;
  z-index: 10;
  cursor: not-allowed;
}

.join-button:hover {
  background: rgba(255, 59, 91, 0.5);
  border-color: #DC143C;
}

.join-button__ribbon {
  position: absolute;
  top: -5px;
  left: -50px;
  width: 120%;
  transform: rotate(-30deg);
  height: 15px;
  background: repeating-linear-gradient(-35deg, #000000, #000000 10px, #facc15 10px, #facc15 20px);
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* контейнер меню справа сверху, чуть ниже и правее */
.circle-menu-container {
  position: fixed;
  top: 20px;   /* сдвинули вниз */
  right: 30px; /* сдвинули левее */
  width: 60px;
  height: 60px;
  z-index: 100;
}

/* скрываем чекбокс */
.menu-toggle {
  display: none;
}

/* кнопка меню — плюс */
.menu-button {
  width: 50px;   /* чуть тоньше */
  height: 50px;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-button .line {
  position: absolute;
  width: 30px;   /* чуть короче линий */
  height: 3px;   /* чуть тоньше */
  background: #fff;
  transition: transform 0.3s ease;
  border-radius: 1px;
}

.menu-button .line1 { transform: rotate(0deg); }
.menu-button .line2 { transform: rotate(90deg); }

/* При нажатии — плюс превращается в Х */
.menu-toggle:checked + .menu-button .line1 { transform: rotate(45deg); }
.menu-toggle:checked + .menu-button .line2 { transform: rotate(-45deg); }

/* контейнер подменю */
.menu-items {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none; /* скрыто по умолчанию */
}

/* кнопки подменю */
.menu-item {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  text-decoration: none;
  opacity: 0;
  transform: translate(0,0);
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: auto; /* чтобы можно было кликать */
}

/* Псевдо-кнопки */
.menu-item.pseudo {
  background: rgba(255,255,255,0.2);
}

/* Раскрытие подменю с 6 до 9 часов (сектор) */
.menu-toggle:checked ~ .menu-items .menu-item:nth-child(1) {
  transform: translate(-100px, -40px); /* поринг — прямо влево */
  opacity: 1;
}
.menu-toggle:checked ~ .menu-items .menu-item:nth-child(2) {
  transform: translate(-70px, 10px); /* псевдо — вниз и влево */
  opacity: 1;
}
.menu-toggle:checked ~ .menu-items .menu-item:nth-child(3) {
  transform: translate(-30px, 60px); /* псевдо — вниз */
  opacity: 1;
}

.menu-item img {
  width: 41px;
  height: 41px;
}


.letter-grid {
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  margin: 0 auto;
  width: fit-content;
  cursor: default;
  display: flex;
  gap: 30px;
  z-index: 2;
  user-select: none;
}

.letter-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-letter {
  font-size: 72px;
  color: #efefef;
  transition: color 0.3s ease;
  margin-bottom: 5px;
}

.letter-parts-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.letter-part {
  font-size: 24px;
  color: #dfdfdf;
}

.dropdown_eban .main-letter {
  animation: changeColor 8s ease forwards 0.5s;
}

.dropdown_eban .letter-parts-container {
  animation: revealParts 8s ease forwards 0.5s;
}

.scroll-down-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 36px;
  color: #ebebeb;
  opacity: 0.7;
  animation: pulse 2s infinite ease-in-out;
  user-select: none;
  z-index: 10;
}

.page-2 {
  background: #0B0C0D;
  padding: 40px 20px;
  color: #ebebeb;
  display: flex;
  flex-direction: column;
  user-select: none;
  pointer-events: none;
  padding-bottom: 100px;
  overflow: hidden;
}

.page-2 button, .page-2 .action-button, .page-2 .member-card, .page-2 .news-card, .page-2 .card {
  pointer-events: auto;
}

.page-2-content {
  min-height: calc(100vh - 120px);
  padding-bottom: 120px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 1fr;
  gap: 30px;
  align-items: start;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #ebebeb;
}

.news-section, .crypto-tracker, .shop-section {
  height: 100%; 
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.news-grid {
  flex-grow: 1;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 100%;
}

.news-card {
  background: #1A1B1D;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-3px);
  background: #2b2e30;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #ebebeb;
  word-break: break-word;
}

.news-date {
  font-size: 0.85rem;
  color: #a1a1aa;
  margin-bottom: 10px;
}

.news-excerpt {
  font-size: 0.9rem;
  line-height: 1.5;
}

.crypto-tracker {
  grid-column: 2;
  height: auto;
}

.eban-tracker {
  background: #1A1B1D;
  border-radius: 12px;
  padding: 20px;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tracker-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.coin-logo {
  margin-right: 15px;
}

.coin-logo svg {
  filter: drop-shadow(0 0 5px rgba(0, 102, 204, 0.5));
}

.coin-info {
  display: flex;
  flex-direction: column;
}

.coin-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ebebeb;
}

.coin-price {
  font-size: 1rem;
  color: #a1a1aa;
}

.tracker-content {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 5px;
  align-items: start;
}

.tracker-graph {
  flex: 1;
  height: 100%;
  position: relative;
}

.graph-svg {
  width: 100%;
  height: 150px;
}

.graph-line {
  stroke: #0066cc;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: drawGraph 2s ease-out forwards;
}

.graph-fill {
  opacity: 0;
  animation: fadeInFill 1s ease-out 0.5s forwards;
}

.graph-right-panel {
  width: 120px;
  display: flex;
  flex-direction: column;
  padding-left: 25px;
  margin-left: 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: space-between;
  align-self: flex-start;
  padding-top: 0;
}

.graph-stats {
  padding-top: 10px;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.stat-label {
  color: #a1a1aa;
}

.stat-value {
  font-weight: 500;
}

.positive {
  color: #4ade80;
}

.negative {
  color: #f87171;
}

.graph-actions {
  margin: 8px 0;
}

.action-button {
  position: relative;
  width: 100%;
  padding: 8px 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  background: transparent;
  color: #ebebeb;
  border: 1px solid #ebebeb;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.action-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.buy-button:hover, 
.sell-button:hover {
  border-color: #0066cc;
  color: #0066cc;
}

.eban-members {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  justify-items: center;
  width: 100%;
}

.member-card {
  background: #1A1B1D;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  width: 100%;
}

.member-card:hover {
  transform: translateY(-3px);
  background: #2b2e30;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-name {
  font-size: 0.95rem;
  color: #ebebeb;
  word-break: break-word;
  overflow-wrap: break-word;
  padding: 0 5px;
}

.shop-section {
  grid-column: 1 / -1;
  grid-row: 3;
  width: 100%;
  min-height: auto;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 100%;
  justify-content: center;
  justify-items: center;
}

.card {
  overflow: visible;
  width: 190px;
  height: 254px;
}

.content {
 width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 300ms;
  box-shadow: 0px 0px 10px 1px #000000ee;
  border-radius: 5px;
}

.card:hover .content {
  transform: rotateY(180deg);
}

.front, .back {
  background-color: #151515;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 5px;
  overflow: hidden;
}


.front {
  z-index: 2;
  transform: rotateY(180deg);
}

.back {
  justify-content: center;
  display: flex;
  align-items: center;
}

.back::before {
  position: absolute;
  content: ' ';
  display: block;
  width: 160px;
  height: 160%;
  background: linear-gradient(90deg, transparent, #0066cc, #0066cc, #0066cc, #0066cc, transparent);
  animation: rotation_481 5000ms infinite linear;
}

.back-content {
  position: absolute;
  width: 99%;
  height: 99%;
  background-color: #151515;
  border-radius: 5px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.front .img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.front .img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 2;
  pointer-events: none;
  transition: all 0.3s ease;
}


@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes changeColor {
  0%, 100% { color: #efefef; }
  10%, 70% { color: #0066cc; }
}

@keyframes revealParts {
  0%, 100% { max-height: 0; opacity: 0; }
  10%, 70% { max-height: 200px; opacity: 1; }
}

@keyframes drawGraph {
  from { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

@keyframes fadeInFill {
  to { opacity: 1; }
}

@keyframes rotation_481 {
  0% {
    transform: rotateZ(0deg);
  }

  0% {
    transform: rotateZ(360deg);
  }
}

@media (max-width: 768px) {
  html, body, .snap-container {
    overflow-y: auto !important;
    height: auto !important;
  }

    .video-background {
    min-height: 100vh;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%) translateZ(0); 
  }

  .page-1, .page-2 {
    min-height: 100dvh;
    height: auto !important;
    overflow: visible !important;
  }

  .page-2 {
    min-height: 0;
    padding-bottom: 60px;
    display: block; 
  }

  .page-1 > *, .page-2 > * {
    height: auto !important;
    max-height: none !important;
  }

  .page-2-content {
    grid-template-columns: 1fr;
    display: block;
  }
  
  .crypto-tracker {
    grid-column: 1;
  }
  
  .members-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .news-section .section-title,
  .crypto-tracker .section-title,
  .eban-members .section-title {
    margin-top: 30px;
  }

  .news-section .section-title {
    margin-top: 0;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .card {
    max-width: 160px;
    height: 220px;
  }

}

@media (max-width: 480px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-title {
    font-size: 1.5rem;
  }

  .shop-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .card {
    max-width: 190px;
    height: 254px;
  }
}





