/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Palette */
  --gold:        #D4A843;
  --gold-light:  #E8C468;
  --gold-dark:   #B8912E;
  --burgundy:    #7B2D3B;
  --burgundy-deep: #5A1E2A;
  --anthracite:  #1A1A1E;
  --anthracite-light: #2A2A2E;
  --beige:       #EDE0D0;
  --beige-dark:  #D4C4A8;
  --cream:       #F5EDE0;
  --white:       #FAFAFA;
  --dark:        #0F0E11;

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container: 1200px;
    --section-pad: 80px 24px;
}

html, body {
  height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--beige);
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

main {
  flex: 1;
}

footer {
  flex-shrink: 0;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  flex: 1;
}

main {
  flex: 1;
}

footer {
  flex-shrink: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 10px;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--anthracite);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--anthracite);
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.2);
}

.btn--full {
  width: 100%;
}

.btn--lg {
  padding: 18px 48px;
  font-size: 1.1rem;
  margin: 0 auto;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 14, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

.nav__container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  white-space: nowrap;
}

.nav__subtitle {
  font-size: 0.75em;
  letter-spacing: 0;
  font-weight: 400;
  opacity: 0.8;
}

.nav__user-name a {
    color: #ffffff !important;
}

@media (max-width: 480px) {
  .nav__logo {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav__subtitle {
    display: none;
  }
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--beige-dark);
  transition: color 0.3s;
  letter-spacing: 0.5px;
}

.nav__links a:hover {
  color: var(--gold);
}

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

.nav__user-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.nav__logout {
  font-size: 1.2rem;
  opacity: 0.7;
  transition: opacity 0.3s;
  text-decoration: none;
}

.nav__logout:hover {
  opacity: 1;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--beige);
  
}

.u__180deg {
  display: inline-block;
  transform: rotate(180deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../images/bg.webp') center center / cover no-repeat;
  padding: 120px 24px 80px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15, 14, 17, 0.7) 0%,
      rgba(15, 14, 17, 0.3) 30%,
      rgba(15, 14, 17, 0.2) 50%,
      rgba(15, 14, 17, 0.5) 80%,
      rgba(15, 14, 17, 0.9) 100%
    );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero__title-accent {
  color: var(--gold);
  display: inline;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: var(--beige-dark);
  margin-bottom: 40px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-pad);
}

.hypogeum {
  background: var(--dark);
}

/* Hero */
.hypogeum-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../images/hypogeum.webp') center center / cover no-repeat;
  padding: 120px 24px 80px;
}

.hypogeum-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 14, 17, 0.7) 0%, rgba(15, 14, 17, 0.3) 50%, rgba(15, 14, 17, 0.8) 100%);
  z-index: 1;
}

.hypogeum-hero__content {
  position: relative;
  z-index: 2;
}

.hypogeum-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hypogeum-hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: var(--beige-dark);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hypogeum .section {
  background: transparent;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hypogeum .section.profile {
  padding-top: 100px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: url('../images/hypogeum.webp') center center / cover no-repeat;
  position: relative;
}

.hypogeum .section.profile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 14, 17, 0.7) 0%, rgba(15, 14, 17, 0.3) 50%, rgba(15, 14, 17, 0.8) 100%);
  z-index: 0;
}

.hypogeum .section.profile > div {
  position: relative;
  z-index: 1;
}

.hypogeum .section.profile .profile-card {
  margin-bottom: 32px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  text-align: center;
  color: var(--cream);
  margin-bottom: 15px;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px auto 0;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: linear-gradient(180deg, var(--dark) 0%, var(--anthracite) 50%, var(--dark) 100%);
}

.steps {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: stretch;
}

.step {
  max-width: calc(50% - 8px);
  text-align: center;
  padding: 32px 20px;
  background: rgba(42, 42, 46, 0.5);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 8px;
  min-width: 220px;
}

.step:hover {
  border-color: rgba(212, 168, 67, 0.4);
  background: rgba(42, 42, 46, 0.8);
  transform: translateY(-4px);
}

.step__number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

.step__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
}

.step__text {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--beige-dark);
  line-height: 1.5;
}

/* ===== BATTLE CARD ===== */
.battle {
  background: var(--dark);
}

.battle-card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(145deg, var(--anthracite-light), var(--anthracite));
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.battle-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: rgba(123, 45, 59, 0.3);
  border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

.battle-card__tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.battle-card__date {
  font-size: 0.85rem;
  color: var(--beige-dark);
  opacity: 0.7;
}

.battle-card__question {
  padding: 32px;
  border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

.battle-card__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 8px;
  opacity: 0.8;
}

.battle-card__question p:last-child {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.5;
}

.battle-card__verdict {
  padding: 32px;
}

.verdict-icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 16px;
}

.verdict__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  color: var(--gold);
  margin-bottom: 20px;
}

.verdict__content p {
  font-size: 1rem;
  color: var(--beige);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 28px;
}

.verdict__scores {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.score {
  text-align: center;
}

.score__label {
  display: block;
  font-size: 0.85rem;
  color: var(--beige-dark);
  margin-bottom: 6px;
}

.score__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/images/login.webp') center center / cover no-repeat;
  padding: 120px 24px 80px;
  position: relative;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.login-card {
  position: relative;
  z-index: 2;
  max-width: 480px;
  width: 100%;
  background: linear-gradient(145deg, var(--anthracite-light), var(--anthracite));
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.login-card__icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.login-card__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
}

.login-card__subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--beige-dark);
  line-height: 1.6;
  margin-bottom: 36px;
}

.login-form__group {
  margin-bottom: 20px;
  text-align: left;
}

.login-form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.login-form__input {
  width: 100%;
  background: rgba(42, 42, 46, 0.6);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 8px;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.login-form__input::placeholder {
  color: rgba(212, 196, 168, 0.4);
}

.login-form__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.15);
}

.login-form__input--error {
  border-color: #F87171;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.15);
}

.login-form__error {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 400;
  color: #F87171;
  line-height: 1.5;
  text-align: left;
}

.login-form__submit {
  margin-top: 28px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 520px) {
  .login-card {
    padding: 36px 24px;
  }

  .login-card__title {
    font-size: 1.5rem;
  }
}

/* ===== ADVANTAGES ===== */
.advantages {
  background: linear-gradient(180deg, var(--dark) 0%, var(--anthracite) 50%, var(--dark) 100%);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.advantage-card {
  background: linear-gradient(145deg, rgba(42, 42, 46, 0.6), rgba(26, 26, 30, 0.8));
  border: 1px solid rgba(212, 168, 67, 0.12);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  
}

.advantage-card:hover {
  border-color: rgba(212, 168, 67, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.advantage-card__icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.advantage-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
}

.advantage-card__text {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--beige-dark);
  line-height: 1.5;
}

/* ===== PRICING ===== */
.pricing {
  background: var(--dark);
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  flex: 0 0 340px;
  max-width: 340px;
  background: linear-gradient(145deg, var(--anthracite-light), var(--anthracite));
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-card:hover {
  border-color: rgba(212, 168, 67, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* Pricing card */
.pricing-card__name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 16px;
}

.pricing-card__subtitle {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--beige-dark);
  font-style: italic;
  margin-bottom: 0;
  margin-top: auto;
  line-height: 1.4;
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

.pricing-card__features {
  margin-bottom: 25px;
}

.pricing-card__features li {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--beige-dark);
  padding: 10px 0;
  border-bottom: 1px solid rgba(212, 168, 67, 0.08);
}

.pricing-card__features li:last-child {
  border-bottom: none;
}

.agree-index-block {
    margin: 20px;
    display: flex;
    justify-content: center;    
}

/* ===== CHRONICLE ===== */
.chronicle-page {
  background: url('../images/chronicle.webp') center center / cover no-repeat,
              linear-gradient(180deg, var(--dark) 0%, var(--anthracite) 100%);
}

.chronicle-page__section {
  padding-top: 120px;
  padding-bottom: 80px;
}

.chronicle {
  background: transparent;
}

.chronicle-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.chronicle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(145deg, var(--anthracite-light), var(--anthracite));
  border: 1px solid rgba(212, 168, 67, 0.12);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.chronicle-item:hover {
  border-color: rgba(212, 168, 67, 0.3);
}

.chronicle-item__winner,
.chronicle-item__loser {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.chronicle-item__winner .chronicle-item__icon {
  color: #4ADE80;
}

.chronicle-item__loser .chronicle-item__icon {
  color: #F87171;
}

.chronicle-item__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cream);
  white-space: nowrap;
}

.chronicle-item__content {
  flex: 1;
  text-align: center;
}

.chronicle-item__topic {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--beige-dark);
}

.chronicle-more {
  text-align: center;
  margin-top: 24px;
}

.chronicle-more__link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
}

/* Paginator */
.paginator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.paginator__text {
  font-size: 0.9rem;
  color: var(--beige-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  user-select: none;
}

.paginator__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  background: rgba(42, 42, 46, 0.6);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 8px;
  text-decoration: none;
}

.paginator__link--active {
  background: var(--gold);
  color: var(--anthracite);
  border-color: var(--gold);
}

.paginator__arrow {
  font-size: 1.2rem;
  color: var(--gold);
  user-select: none;
}

.paginator__link:hover:not(.paginator__link--active) {
  border-color: rgba(212, 168, 67, 0.4);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--anthracite);
  border-top: 1px solid rgba(212, 168, 67, 0.1);
  padding: 32px 24px;
  text-align: center;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--beige-dark);
  opacity: 0.6;
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.modal.active {
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s;
}

.modal.active .modal__overlay {
  opacity: 1;
}

.modal__content {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 90%;
  background: linear-gradient(145deg, var(--anthracite-light), var(--anthracite));
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  transform: scale(0.88) translateY(20px);
  opacity: 0;
  transition: transform 0.35s, opacity 0.35s;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.modal.active .modal__content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 50%;
  color: var(--beige-dark);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.modal__close:hover {
  background: rgba(212, 168, 67, 0.2);
  color: var(--gold);
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 16px;
}

.modal__text {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--beige-dark);
  line-height: 1.6;
  margin-bottom: 36px;
}

.modal__providers {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.prompt-buttons {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 28px;
}

.prompt-buttons .btn {
  min-width: 140px;
  border-radius: 0;
}

.prompt-buttons .btn:first-child {
  border-radius: 4px 0 0 4px;
}

.prompt-buttons .btn:last-child {
  border-radius: 0 4px 4px 0;
  margin-left: -2px;
}

.provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 67, 0.15);
  background: rgba(42, 42, 46, 0.5);
  transition: box-shadow 0.3s, transform 0.3s;
}

.provider-btn img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.provider-btn:hover {
  transform: translateY(-3px);
}

.provider-btn--yandex:hover {
  box-shadow: 0 0 16px rgba(252, 63, 29, 0.4), 0 0 40px rgba(252, 63, 29, 0.15);
}

.provider-btn--vk:hover {
  box-shadow: 0 0 16px rgba(0, 119, 255, 0.4), 0 0 40px rgba(0, 119, 255, 0.15);
}

.provider-btn--mailru:hover {
  box-shadow: 0 0 16px rgba(0, 95, 249, 0.4), 0 0 40px rgba(0, 95, 249, 0.15);
}

/* ===== HYPGEUM (Личный кабинет) ===== */
.hypogeum {
  background: var(--dark);
}

/* Page Title */
.hypogeum-title {
  text-align: center;
  padding: 100px 24px 40px;
}

.hypogeum-title__text {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
  position: relative;
}

.hypogeum-title__text::after {
  content: '';
  display: block;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto 0;
}

/* Profile */
.profile-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 32px 32px;
  background: linear-gradient(145deg, var(--anthracite-light), var(--anthracite));
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 16px;
  text-align: center;
}

.profile-card__top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.profile-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-card__avatar > img {
  width: 6rem;
}

.profile-card__info {
  text-align: left;
  flex: 1;
}

.profile-card__name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 4px;
}

.profile-card__role {
  font-size: 0.95rem;
  color: var(--beige-dark);
}

.profile-card__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

.profile-card__balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
}

.balance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.balance-label {
  font-size: 0.8rem;
  color: var(--beige-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.balance-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
}

.balance-action {
  flex-shrink: 0;
}

.stat {
  text-align: center;
}

.stat__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.stat__label {
  display: block;
  font-size: 0.85rem;
  color: var(--beige-dark);
  opacity: 0.8;
}

.stat--wins .stat__value {
  color: #4ADE80;
}

.stat--losses .stat__value {
  color: #F87171;
}

.stat--draws .stat__value {
    color: #FFFFFF;
}

/* Actions */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.actions-grid-one {
  display: grid;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.actions-grid--centered {
  justify-content: center;
}

.action-card {
  background: linear-gradient(145deg, var(--anthracite-light), var(--anthracite));
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  min-height: 34vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.action-card:hover {
  border-color: rgba(212, 168, 67, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.action-card--challenge {
  border-color: rgba(212, 168, 67, 0.25);
}

.action-card--shadow {
  border-color: rgba(123, 45, 59, 0.3);
}

.action-card--shadow:hover {
  border-color: rgba(123, 45, 59, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(123, 45, 59, 0.1);
}

.action-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.action-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
}

.action-card__desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--beige-dark);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.btn--sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.del-account {
    color: #d13b3b;
    margin-top: 25px;
    font-size: 13px;
}

/* Battles list */
.battles-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.battle-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(145deg, var(--anthracite-light), var(--anthracite));
  border: 1px solid rgba(212, 168, 67, 0.12);
  border-radius: 12px;
  margin: 10px;
}

.battle-item--win {
  border-left: 3px solid #4ADE80;
}

.battle-item--loss {
  border-left: 3px solid #F87171;
}

.battle-item__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}

.battle-item__icon {
  font-size: 1.8rem;
}

.battle-item__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.battle-item--win .battle-item__label {
  color: #4ADE80;
}

.battle-item--loss .battle-item__label {
  color: #F87171;
}

.battle-item--wait .battle-item__label {
  color: #d1af58;
}

.battle-item__info {
  flex: 1;
}

.battle-item__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 6px;
}

.battle-item__date {
  font-size: 0.85rem;
  color: var(--beige-dark);
  opacity: 0.7;
}

.cancel-block {
    display: flex; 
    justify-content: end; 
}

.green-notice {
    display: flex; 
    justify-content: end;
    color: #18c324;
}

/* ===== CREATE BATTLE MODAL ===== */
.modal-create {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-create.active {
  display: flex;
}

.modal-create__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.modal-create__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(145deg, var(--anthracite-light), var(--anthracite));
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 16px;
  padding: 56px 48px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.modal-create__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 50%;
  color: var(--beige-dark);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.modal-create__close:hover {
  background: rgba(212, 168, 67, 0.2);
  color: var(--gold);
}

.modal-create__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 32px;
}

/* Create form */
.create-form__group {
  margin-bottom: 24px;
  text-align: left;
}

.create-form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.create-form__hint {
  display: block;
  font-size: 0.85rem;
  color: var(--beige-dark);
  opacity: 0.7;
  margin-bottom: 8px;
  font-style: italic;
}

.create-form__input,
.create-form__textarea {
  width: 100%;
  background: rgba(42, 42, 46, 0.6);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 8px;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
  outline: none;
}

.create-form__input::placeholder,
.create-form__textarea::placeholder {
  color: rgba(212, 196, 168, 0.4);
}

.create-form__input:focus,
.create-form__textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.15);
}

.create-form__textarea {
  min-height: 200px;
  resize: vertical;
  line-height: 1.6;
  font-size: 1rem;
}

/* Question + checkbox */
.create-form__question {
  margin-bottom: 28px;
  text-align: left;
}

.create-form__question-text {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--beige-dark);
  line-height: 1.5;
  margin-bottom: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 4px;
  background: rgba(42, 42, 46, 0.6);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--anthracite);
  font-size: 14px;
  font-weight: bold;
}

.checkbox-label__text {
  font-size: 0.95rem;
  color: var(--cream);
  font-weight: 500;
}

/* Link step */
.create-link__desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--beige-dark);
  margin-bottom: 24px;
  line-height: 1.5;
}

.create-link__row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.create-link__url {
  flex: 1;
  font-size: 0.9rem;
  color: var(--gold);
  background: rgba(42, 42, 46, 0.6);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 8px;
  padding: 14px 16px;
  word-break: break-all;
  text-align: left;
  font-family: var(--font-body);
}

.create-link__copy {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 8px;
  color: var(--gold);
  cursor: pointer;
  ;
}

.create-link__copy:hover {
  background: rgba(212, 168, 67, 0.2);
}

.create-link__copy.copied {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.3);
  color: #4ADE80;
}

/* ===== BATTLE PAGE ===== */
.battle-page {
  background: url('../images/battle.webp') center center / cover no-repeat,
              linear-gradient(180deg, var(--dark) 0%, var(--anthracite) 100%);
  width: 100%;
}

/* Topic Header */
.battle-topic {
    padding-top: 120px;
    text-align: center;
    margin: 5px;
    width: 81%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* Arena */
.battle-arena {
  padding-bottom: 40px;
}

.arena__container {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 0 auto;
  width: 81%;
}

.arena-auth-required {
  width: 100%;
  text-align: center;
}

.arena-auth-required button {
  margin-top: 20px;
}

/* Opponent Block */
.opponent-block {
  width: 40%;
  min-height: 50vh;
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.opponent__awaiting {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: larger;
    height: 64%;
}

.start__block {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: larger;
    height: 64%; 
}

.opponent-block__ready {
  width: 100%;
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.opponent-block::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
}

.opponent-block--red {
  background: linear-gradient(145deg, rgba(180, 50, 50, 0.12), rgba(42, 42, 46, 0.8));
  border: 1px solid rgba(180, 50, 50, 0.25);
}

.opponent-block--red::before {
  background: radial-gradient(ellipse at center, rgba(180, 50, 50, 0.08) 0%, transparent 70%);
}

.opponent-block--blue {
  background: linear-gradient(145deg, rgba(50, 80, 180, 0.12), rgba(42, 42, 46, 0.8));
  border: 1px solid rgba(50, 80, 180, 0.25);
}

.opponent-block--blue::before {
  background: radial-gradient(ellipse at center, rgba(50, 80, 180, 0.08) 0%, transparent 70%);
}

.opponent-block__avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 42, 46, 0.6);
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.opponent-block__icon {
  font-size: 1.8rem;
}

.opponent-block__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
}

.opponent-block__role {
  font-size: 0.85rem;
  color: var(--beige-dark);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.opponent-block__creator-opinion-core {
  display: flex;
  margin-top: 15px;
}

.opponent-block__text {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--beige);
  line-height: 1.6;
  text-align: left;
}

.opponent-block__text p {
  margin: 0;
}

/* Input State */
.opponent-block__input-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.opponent-block__textarea {
  width: 100%;
  min-height: 140px;
  background: rgba(42, 42, 46, 0.6);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--cream);
  outline: none;
  resize: vertical;
  line-height: 1.5;
}

.opponent-block__textarea::placeholder {
  color: rgba(212, 196, 168, 0.4);
}

.opponent-block__textarea:focus {
  border-color: var(--gold);
}

/* Start Button */
.battle-start {
  padding-top: 40px;
  padding-bottom: 80px;
  text-align: center;
}

/* Battle Result */
.battle-result {
  padding-top: 40px;
  padding-bottom: 40px;
  text-align: center;
}

.battle-topic__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--cream);
  margin: 0 auto;
  line-height: 1.3;
}

/* ===== BATTLE LINK ===== */
.battle-link__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.battle-link {
  margin: 20px;
}

.battle-link__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.battle-link__url {
  flex: 1;
  font-size: 0.9rem;
  color: var(--cream);
  background: rgba(42, 42, 46, 0.6);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 8px;
  padding: 14px 16px;
  word-break: break-all;
  text-align: left;
  font-family: var(--font-body);
}

.battle-link__copy {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 8px;
  color: var(--gold);
  cursor: pointer;
  transition: background 0.2s ease;
}

.battle-link__copy:hover {
  background: rgba(212, 168, 67, 0.2);
}

.battle-link__copy.copied {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.3);
  color: #4ADE80;
}

/* ===== SPINNER ===== */
.spinner {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 14, 17, 0.92);
}

.spinner__ring {
  width: 64px;
  height: 64px;
  border: 3px solid rgba(212, 168, 67, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner__text {
  margin-top: 20px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--cream);
  letter-spacing: 2px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== RESULT ===== */
.result-card {
  width: 81%;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(212, 168, 67, 0.1), rgba(42, 42, 46, 0.9));
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 16px;
  padding: 48px 40px;
  position: relative;
}

.result-card__top-left {
  position: absolute;
  top: 16px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.result-card__top-right {
  position: absolute;
  top: 16px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
}

.result-card__icon {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 4px;
}

.result-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 16px;
  text-align: center;
}

.result-card__text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.5;
  text-align: left;
  margin-bottom: 8px;
}

.result-card__winner {
  color: var(--gold);
}

.result-card__explanation {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--beige);
  line-height: 1.6;
  text-align: left;
}

.opinion-block-clue {
 font-weight: bold;
 margin-top: 15px;
}

/* ===== BATTLE ANIMATIONS ===== */

/* Fly-in animation */
@keyframes flyIn {
  to { transform: translateX(0); }
}

/* Shatter animation */
@keyframes shatter {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(0);
  }
}

/* Debris pieces */
.shard {
  position: absolute;
  pointer-events: none;
  animation: shatter 0.6s ease-out forwards;
}

/* Fade in result */
@keyframes fadeInResult {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.result-card {
  animation: fadeInResult 0.5s ease-out;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1400px) {
  :root {
    --section-pad: 60px 20px;
  }

  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .nav__burger span {
    width: 20px;
    height: 2px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .verdict__scores {
    gap: 32px;
  }

  .pricing-grid {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card {
    max-width: 100%;
    width: 100%;
  }

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

  .action-card {
    padding: 28px 20px;
  }

  .action-card__icon {
    font-size: 2rem;
  }

  .action-card__title {
    font-size: 1.1rem;
  }

  .action-card__desc {
    font-size: 0.85rem;
  }

  .profile-card__stats {
    gap: 32px;
  }

  .profile-card__name {
    font-size: 1.5rem;
  }

  .battle-item {
    padding: 20px;
    gap: 16px;
  }

  .battle-item__status {
    min-width: 80px;
  }

  /* Battle page responsive */
  .arena__container {
    flex-direction: column;
    align-items: center;
  }

  .opponent-block {
    width: 95%;
    min-height: auto;
  }

  .battle-topic__title {
    font-size: 1.4rem;
  }

  .opponent-block {
    padding: 28px 20px;
  }

  .opponent-block__name {
    font-size: 1.1rem;
  }

  .opponent-block__text {
    font-size: 0.9rem;
  }

  .opponent-block__textarea {
    min-height: 120px;
  }

  .challenges-page__section {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .challenges-header {
    padding: 24px 24px;
    margin-bottom: 28px;
  }

  .challenges-header__desc {
    font-size: 0.9rem;
  }

  .chronicle-item {
    padding: 16px 20px;
    gap: 12px;
  }

  .chronicle-item__name {
    font-size: 0.85rem;
  }

  .chronicle-item__topic {
    font-size: 0.85rem;
  }
  
  .chronicle-page__section {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .chronicle-header {
    padding: 24px 24px;
    margin-bottom: 28px;
  }

  .chronicle-header__desc {
    font-size: 0.9rem;
  }

  .chronicle-item {
    padding: 16px 20px;
    gap: 12px;
  }

  .chronicle-item__name {
    font-size: 0.85rem;
  }

  .chronicle-item__topic {
    font-size: 0.85rem;
  }  
}

/* Steps — tablet */
@media (max-width: 1024px) {
  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  .step__connector {
    display: none;
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root {
    --section-pad: 60px 16px;
  }

  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .nav__container {
    padding: 12px 16px;
  }

  .nav__logo {
    font-size: 0.75rem;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav__subtitle {
    display: none;
  }

  .nav__user {
    gap: 8px;
  }

  .nav__user-name {
    font-size: 0.8rem;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .btn--lg {
    padding: 16px 36px;
    font-size: 1rem;
    margin: 0 auto;
  }

  .battle-card__header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 16px 20px;
  }

  .battle-card__question,
  .battle-card__verdict {
    padding: 24px 20px;
  }

  .verdict__scores {
    gap: 24px;
  }

  .score__value {
    font-size: 1.5rem;
  }

  .advantage-card {
    padding: 28px 20px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .profile-card {
    padding: 40px 20px;
  }

  .profile-card__stats {
    gap: 24px;
  }

  .stat__value {
    font-size: 1.6rem;
  }

  .profile-card__name {
    font-size: 1.5rem;
  }

  .profile-card__top {
    flex-direction: column;
    gap: 12px;
  }

  .profile-card__info {
    text-align: center;
  }

  .profile-card__balance {
    flex-direction: column;
    gap: 12px;
  }

  .profile-card__name {
    font-size: 1.4rem;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

  .action-card {
    padding: 28px 20px;
  }

  .action-card__desc {
    font-size: 0.85rem;
  }

  .battle-item {
    padding: 16px;
    gap: 12px;
  }

  .battle-item__status {
    flex-direction: row;
    gap: 8px;
    min-width: auto;
  }

  .battle-item__icon {
    font-size: 1.4rem;
  }

  .battle-item__label {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }

  .battle-item__title {
    font-size: 0.95rem;
  }

  .battle-item__date {
    font-size: 0.8rem;
  }

  .hypogeum-title {
    padding: 90px 16px 32px;
  }

  .hypogeum-title__text {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .challenges-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 20px 24px;
  }

  .challenges-item__winner,
  .challenges-item__loser {
    flex: none;
  }

  .challenges-item__topic {
    font-size: 0.85rem;
  }

  .paginator {
    gap: 4px;
  }

  .paginator__link {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

/* Tiny phones */
@media (max-width: 375px) {
  .nav__container {
    padding: 10px 12px;
  }

  .nav__logo {
    font-size: 0.7rem;
    max-width: 120px;
  }

  .profile-card {
    padding: 32px 16px;
  }

  .profile-card__avatar {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }

  .profile-card__name {
    font-size: 1.2rem;
  }

  .profile-card__stats {
    gap: 16px;
  }

  .stat__value {
    font-size: 1.4rem;
  }

  .stat__label {
    font-size: 0.75rem;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

  .action-card {
    padding: 24px 16px;
  }

  .action-card__icon {
    font-size: 1.8rem;
  }

  .action-card__title {
    font-size: 1rem;
  }

  .action-card__desc {
    font-size: 0.8rem;
  }

  .action-card .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .hypogeum-title {
    padding: 85px 12px 24px;
  }

  .hypogeum-title__text {
    font-size: 1.8rem;
  }
}


/* ===== CHRONICLE PAGE ===== */
.chronicle-page {
  background: url('../images/chronicle.webp') center center / cover no-repeat,
              linear-gradient(180deg, var(--dark) 0%, var(--anthracite) 100%);
}

.chronicle-page__section {
  padding-top: 120px;
  padding-bottom: 80px;
}

.chronicle-description {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1rem;
  font-weight: 300;
  color: var(--beige-dark);
  line-height: 1.7;
  text-align: center;
  padding: 20px 28px;
  background: rgba(26, 26, 30, 0.75);
  border: 1px solid rgba(212, 168, 67, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ===== CHALLENGES HEADER ===== */
.chronicle-header {
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 32px 36px;
  background: rgba(26, 26, 30, 0.75);
  border: 1px solid rgba(212, 168, 67, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
}

.chronicle-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 16px;
  position: relative;
}

.chronicle-header__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto 0;
}

.chronicle-header__desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--beige-dark);
  line-height: 1.7;
}

.chronicle-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.chronicle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(145deg, var(--anthracite-light), var(--anthracite));
  border: 1px solid rgba(212, 168, 67, 0.12);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.chronicle-item:hover {
  border-color: rgba(212, 168, 67, 0.3);
}

.chronicle-item__gladiator {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  justify-content: space-between;
  width: 100%;
}

.chronicle-item__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cream);
  white-space: nowrap;
}

.chronicle-item__content {
  flex: 1;
  text-align: center;
}

.chronicle-item__topic {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--beige-dark);
}


/* ===== CHALLENGES PAGE ===== */
.challenges-page {
  background: url('../images/challenges.webp') center center / cover no-repeat,
              linear-gradient(180deg, var(--dark) 0%, var(--anthracite) 100%);
}

.challenges-page__section {
  padding-top: 120px;
  padding-bottom: 80px;
}

.challenges-description {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1rem;
  font-weight: 300;
  color: var(--beige-dark);
  line-height: 1.7;
  text-align: center;
  padding: 20px 28px;
  background: rgba(26, 26, 30, 0.75);
  border: 1px solid rgba(212, 168, 67, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ===== CHALLENGES HEADER ===== */
.challenges-header {
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 32px 36px;
  background: rgba(26, 26, 30, 0.75);
  border: 1px solid rgba(212, 168, 67, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
}

.challenges-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 16px;
  position: relative;
}

.challenges-header__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto 0;
}

.challenges-header__desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--beige-dark);
  line-height: 1.7;
}

.challenges-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.challenge-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(145deg, var(--anthracite-light), var(--anthracite));
  border: 1px solid rgba(212, 168, 67, 0.12);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.challenge-item:hover {
  border-color: rgba(212, 168, 67, 0.3);
}

.challenge-item__gladiator {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.challenge-item__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cream);
  white-space: nowrap;
}

.challenge-item__content {
  flex: 1;
  text-align: center;
}

.challenge-item__topic {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--beige-dark);
}

@media (max-width: 1400px) {
  :root {
    --section-pad: 60px 20px;
  }

  .challenges-page__section {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .challenges-header {
    padding: 24px 24px;
    margin-bottom: 28px;
  }

  .challenges-header__desc {
    font-size: 0.9rem;
  }

  .challenge-item {
    padding: 16px 20px;
    gap: 12px;
  }

  .challenge-item__name {
    font-size: 0.85rem;
  }

  .challenge-item__topic {
    font-size: 0.85rem;
  }
}

/* ===== ERROR PAGE (404) ===== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/404.webp') center center / cover no-repeat,
              linear-gradient(180deg, var(--dark) 0%, var(--anthracite) 100%);
}

.error-page__content {
  text-align: center;
  padding: 48px 40px;
  background: var(--dark);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
}

.error-page__code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(212, 168, 67, 0.3);
}

.error-page__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.error-page__text {
  font-size: 1rem;
  font-weight: 300;
  color: var(--beige-dark);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ===== PRICING MODAL ===== */
.modal-pricing {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-pricing.active {
  display: flex;
}

.modal-pricing__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.modal-pricing__content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(145deg, var(--anthracite-light), var(--anthracite));
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 16px;
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.modal-pricing__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 50%;
  color: var(--beige-dark);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-pricing__close:hover {
  background: rgba(212, 168, 67, 0.2);
  color: var(--gold);
}

.modal-pricing__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 32px;
}

.pricing-modal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-modal-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(42, 42, 46, 0.5);
  border: 1px solid rgba(212, 168, 67, 0.1);
  border-radius: 10px;
}

.pricing-modal-item__info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  text-align: left;
}

.pricing-modal-item__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
}

.pricing-modal-item__price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.pricing-modal-item__desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--beige-dark);
  flex-shrink: 0;
  min-width: 70px;
  text-align: center;
}

@media (max-width: 768px) {
  .modal-pricing__content {
    padding: 36px 24px;
  }

  .pricing-modal-item {
    padding: 14px 16px;
    gap: 12px;
  }

  .pricing-modal-item__name {
    font-size: 0.9rem;
  }

  .pricing-modal-item__price {
    font-size: 1rem;
  }

  .pricing-modal-item__desc {
    font-size: 0.85rem;
    min-width: 60px;
  }

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

  .action-card {
    padding: 24px 16px;
    min-height: auto;
  }

  .action-card__icon {
    font-size: 1.8rem;
  }

  .action-card__title {
    font-size: 1rem;
  }

  .action-card__desc {
    font-size: 0.8rem;
  }

  .action-card .btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .result-card__top-left,
  .result-card__top-right {
    position: static;
    justify-content: center;
    margin-bottom: 8px;
  }

  .result-card__top-left {
    order: 1;
  }

  .result-card__top-right {
    order: 2;
  }

  .result-card {
    padding: 32px 20px;
  }
}

/* Стили для уведомления */
.cookie-notification {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95); /* Темный фон с прозрачностью */
    border-top: 2px solid #cda45e; /* Золотая линия сверху */
    padding: 20px 30px;
    z-index: 9999; /* Чтобы быть поверх всего контента */
    display: none; /* Скрыто по умолчанию */
    font-family: 'Times New Roman', Times, serif; /* Шрифт в стиле скриншота */
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease-in-out;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    color: #e0dcdb;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

.cookie-content p a {
    color: #cda45e;
    text-decoration: underline;
}

.cookie-btn {
    background: transparent;
    border: 1px solid #cda45e;
    color: #cda45e;
    padding: 10px 35px;
    font-size: 16px;
    font-family: 'Times New Roman', Times, serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 1px;
}

.cookie-btn:hover {
    background-color: #cda45e;
    color: #121212;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 15px;
    }
    .cookie-content p {
        font-size: 14px;
    }
}

.centerer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom__margin__36px {
    margin-bottom: 36px;
}

.pointer {
    cursor: pointer;
}