/* === Обязательные стили для ScrollSmoother === */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --index: calc(1vw + 1vh);
  --text: #e7e7e0;
}

body {
  background-color: #010101;
  font-family: 'raleway_f', sans-serif;
  line-height: 1.55;
}

/* === Структура для ScrollSmoother === */
.wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.content {
  position: relative;
  min-height: 300vh;
}

/* === Шапка === */
.main-header {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.main-header::after {
  content: '';
  position: absolute;
  z-index: 100;
  width: 100%;
  height: calc(var(--index) * 10);
  background-image: url('../img/ground.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  bottom: calc(var(--index) * -4.5);
}

.layers {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.layer {
  height: 100%;
  width: 100%;
  position: absolute;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.layers__base {
  background-image: url('../img/layer-base.png');
  z-index: 0;
  transform: translate3d(0, 0, 0);
}

.layers__middle {
  background-image: url('../img/layer-middle.png');
  z-index: 1;
  transform: translate3d(0, 0, 0);
}

.layers__front {
  background-image: url('../img/layer-front.png');
  z-index: 2;
  transform: translate3d(0, 0, 0);
}

.layer__header {
  z-index: 3;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--text);
  text-shadow: 0 0 15px #9d822b;
  position: relative;
}

.layers__title {
  font-size: calc(var(--index) * 2.65);
  letter-spacing: calc(var(--index) / 2.25);
}

.layers__caption {
  font-size: calc(var(--index) / 1.175);
  letter-spacing: calc(var(--index) / 3.5);
  margin-top: calc(var(--index) * -0.75);
}

/* === Индикатор прокрутки === */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  margin: 0 auto 8px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

.scroll-text {
  color: var(--text);
  font-size: calc(var(--index) * 0.65);
  letter-spacing: calc(var(--index) / 25);
  text-transform: uppercase;
  font-weight: 300;
  text-shadow: 0 0 15px rgba(157, 130, 43, 0.7);
  font-family: 'raleway_f', sans-serif;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: rotate(45deg) translateY(0);
  }
  40% {
    transform: rotate(45deg) translateY(-8px);
  }
  60% {
    transform: rotate(45deg) translateY(-4px);
  }
}

/* === Основная статья === */
.main-article {
  min-height: 100vh;
  background-color: #010101;
  background-image: url('../img/dungeon.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  padding: 100px 20px;
  margin-top: -1px;
}

.main-article__content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 11;
}

.main-article__header {
  text-transform: uppercase;
  font-size: calc(var(--index) * 1.8);
  letter-spacing: calc(var(--index) / 7.5);
  margin-bottom: 30px;
  color: #fff;
  text-align: center;
}

.main-article__paragraph {
  font-size: calc(var(--index) * 0.9);
  margin: 20px 0;
  line-height: 1.8;
  color: #e7e7e0;
  text-align: center;
}

/* === Описание приложения === */
.app-description {
  max-width: 1000px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px 25px;
  border-radius: 15px;
  border: 1px solid rgba(157, 130, 43, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: rgba(157, 130, 43, 0.6);
  box-shadow: 0 10px 30px rgba(157, 130, 43, 0.2);
}

.feature-item h3 {
  color: #fff;
  font-size: calc(var(--index) * 0.9);
  margin-bottom: 15px;
  font-weight: 600;
}

.feature-item p {
  color: #e7e7e0;
  font-size: calc(var(--index) * 0.7);
  line-height: 1.6;
  opacity: 0.9;
}

.highlight {
  background: linear-gradient(45deg, rgba(157, 130, 43, 0.1), rgba(255, 215, 0, 0.1));
  padding: 25px;
  border-radius: 10px;
  border-left: 4px solid #9d822b;
  margin: 40px 0;
  font-style: italic;
  text-align: center;
}

/* === Стили для иконок === */
.feature-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(157, 130, 43, 0.1), rgba(255, 215, 0, 0.1));
  border-radius: 50%;
  border: 2px solid rgba(157, 130, 43, 0.3);
  transition: all 0.3s ease;
}

.feature-icon i {
  font-size: 2em;
  color: #d4af37;
  z-index: 2;
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
  border-color: #ffd700;
  background: linear-gradient(135deg, rgba(157, 130, 43, 0.2), rgba(255, 215, 0, 0.2));
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.feature-item:hover .feature-icon i {
  color: #ffd700;
  transform: scale(1.1);
}

/* Анимации для иконок */
.icon-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid #ffd700;
  border-radius: 50%;
  animation: pulse 2s infinite;
  opacity: 0;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.icon-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.3);
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.feature-item:hover .icon-ripple {
  width: 100%;
  height: 100%;
}

.icon-float {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.icon-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-item:hover .icon-glow {
  opacity: 1;
  animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  }
  to {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
  }
}

/* === Кнопка CTA === */
.cta-button-container {
  text-align: center;
  margin: 60px 0 30px;
}

.cta-button {
  position: relative;
  background: linear-gradient(135deg, #9d822b 0%, #d4af37 50%, #ffd700 100%);
  border: none;
  padding: 22px 50px;
  border-radius: 50px;
  color: #1a1a1a;
  font-size: calc(var(--index) * 0.9);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 5px 25px rgba(157, 130, 43, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(157, 130, 43, 0.6);
  letter-spacing: 3px;
  color: #1a1a1a;
  text-decoration: none;
}

.cta-button:active {
  transform: translateY(-1px);
}

.button-text {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.button-arrow {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.button-arrow i {
  font-size: 1.2em;
}

.cta-button:hover .button-arrow {
  transform: translateX(8px);
}

.button-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
}

.cta-button:hover .button-shine {
  left: 100%;
}

/* Частицы для кнопки */
.button-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
}

.cta-button:hover .particle:nth-child(1) {
  animation: particle-float 1s ease-out 0.1s;
}

.cta-button:hover .particle:nth-child(2) {
  animation: particle-float 1s ease-out 0.2s;
}

.cta-button:hover .particle:nth-child(3) {
  animation: particle-float 1s ease-out 0.3s;
}

.cta-button:hover .particle:nth-child(4) {
  animation: particle-float 1s ease-out 0.4s;
}

@keyframes particle-float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0;
  }
}

/* Анимация пульсации для кнопки */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 5px 25px rgba(157, 130, 43, 0.4);
  }
  50% {
    box-shadow: 0 5px 35px rgba(157, 130, 43, 0.8), 0 0 30px rgba(255, 215, 0, 0.4);
  }
}

.cta-button {
  animation: pulse-glow 3s infinite ease-in-out;
}

/* === Подвал === */
.copy {
  position: absolute;
  bottom: calc(var(--index) * 2.5);
  opacity: 0.45;
  font-size: calc(var(--index) * 0.75);
  letter-spacing: calc(var(--index) / 37.5);
  z-index: 12;
}

/* === Адаптивность === */
@media (max-height: 600px) {
  .scroll-indicator {
    bottom: 20px;
  }

  .scroll-arrow {
    width: 25px;
    height: 25px;
  }

  .scroll-text {
    font-size: calc(var(--index) * 0.55);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-item {
    padding: 20px 15px;
  }

  .feature-icon {
    width: 70px;
    height: 70px;
  }

  .feature-icon i {
    font-size: 1.7em;
  }

  .cta-button {
    padding: 20px 40px;
    font-size: calc(var(--index) * 0.8);
    flex-direction: column;
    gap: 10px;
  }

  .cta-button:hover .button-arrow {
    transform: translateY(5px);
  }

  .main-article {
    padding: 60px 15px;
  }

  .main-article__header {
    font-size: calc(var(--index) * 1.4);
  }
}

@media (min-height: 1000px) {
  .scroll-indicator {
    bottom: 80px;
  }
}
/* Стили для аутентификации */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.auth-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.form-input {
    padding: 1rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-hint {
    color: #718096;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.auth-button {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.auth-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.auth-button .button-arrow {
    transition: transform 0.3s ease;
}

.auth-button:hover .button-arrow {
    transform: translateX(5px);
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.auth-error {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #c53030;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #fc8181;
}

.auth-error p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card .feature-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
    position: relative;
}

.feature-card h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: #718096;
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .auth-form-wrapper {
        padding: 2rem;
    }
}
