/* ===== СБРОС И БАЗОВЫЕ ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --zenit-dark: #003da5;
  --zenit-blue: #0055a4;
  --zenit-light: #4d9de0;
  --zenit-sky: #7ec8e3;
  --zenit-gold: #ffd700;
  --zenit-white: #f0f4f8;
  --zenit-bg: #0a1628;
  --zenit-card: #101d33;
  --zenit-card-hover: #162744;
  --zenit-accent: #00b4d8;
  --zenit-text: #d0dce8;
  --zenit-muted: #7a8ea0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--zenit-bg);
  color: var(--zenit-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== ШАПКА ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(77, 157, 224, 0.15);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo__shield {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--zenit-blue), var(--zenit-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(0, 85, 164, 0.4);
}

.logo__z {
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__club {
  font-weight: 900;
  font-size: 1rem;
  color: white;
  letter-spacing: 0.05em;
}

.logo__city {
  font-size: 0.7rem;
  color: var(--zenit-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Навигация */
.nav {
  display: flex;
  gap: 2rem;
}

.nav__link {
  text-decoration: none;
  color: var(--zenit-text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
}

.nav__link:hover {
  color: var(--zenit-light);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--zenit-light);
  transition: width 0.3s;
}

.nav__link:hover::after {
  width: 100%;
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--zenit-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== ГЕРОЙ ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  position: relative;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0, 61, 165, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(0, 180, 216, 0.15) 0%, transparent 50%),
    var(--zenit-bg);
  overflow: hidden;
}

.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

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

.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: white;
  letter-spacing: 0.03em;
  text-shadow: 0 0 60px rgba(0, 85, 164, 0.5);
  margin-bottom: 0.5rem;
}

.hero__flag {
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--zenit-muted);
  margin-bottom: 2.5rem;
  font-weight: 600;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--zenit-light), var(--zenit-sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--zenit-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, var(--zenit-blue), var(--zenit-dark));
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(0, 85, 164, 0.4);
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 85, 164, 0.6);
}

/* ===== СЕКЦИИ ===== */
.section {
  padding: 5rem 1.5rem;
}

.section__container {
  max-width: 1200px;
  margin: 0 auto;
}

.section__title {
  font-size: 2.2rem;
  font-weight: 900;
  color: white;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section__desc {
  text-align: center;
  color: var(--zenit-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ===== СОСТАВ ===== */
.squad__position {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--zenit-light);
  margin: 2.5rem 0 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(77, 157, 224, 0.2);
}

.squad__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Карточка игрока */
.player-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--zenit-card);
  border: 1px solid rgba(77, 157, 224, 0.1);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.player-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 85, 164, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.player-card:hover {
  transform: translateY(-3px);
  border-color: rgba(77, 157, 224, 0.3);
  box-shadow: 0 8px 32px rgba(0, 85, 164, 0.2);
}

.player-card:hover::before {
  opacity: 1;
}

.player-card--star {
  border-color: rgba(255, 215, 0, 0.3);
  background: linear-gradient(135deg, var(--zenit-card), rgba(255, 215, 0, 0.05));
}

.player-card--star:hover {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.15);
}

.player-card__number {
  font-size: 1.6rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.12);
  min-width: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.player-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.player-card__info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.player-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-card__pos {
  font-size: 0.78rem;
  color: var(--zenit-muted);
  margin-top: 2px;
}

.player-card__age {
  font-size: 0.72rem;
  color: var(--zenit-light);
  margin-top: 2px;
}

.player-card__badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--zenit-gold), #ffaa00);
  color: #1a1a2e;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
}

/* ===== МАТЧИ ===== */
.matches {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 61, 165, 0.15) 0%, transparent 60%),
    var(--zenit-bg);
}

.matches__timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.match-card {
  display: flex;
  background: var(--zenit-card);
  border: 1px solid rgba(77, 157, 224, 0.12);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
}

.match-card:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 157, 224, 0.3);
  box-shadow: 0 8px 32px rgba(0, 85, 164, 0.2);
}

.match-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  background: linear-gradient(135deg, var(--zenit-dark), var(--zenit-blue));
  padding: 1rem;
}

.match-card__day {
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.match-card__month {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--zenit-sky);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.match-card__body {
  flex: 1;
  padding: 1rem 1.25rem;
}

.match-card__comp {
  font-size: 0.72rem;
  color: var(--zenit-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.match-card__teams {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.match-card__team {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: white;
}

.match-card__crest {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.match-card__crest--zenit {
  background: linear-gradient(135deg, var(--zenit-blue), var(--zenit-dark));
  box-shadow: 0 2px 12px rgba(0, 85, 164, 0.4);
}

.match-card__vs {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--zenit-muted);
  letter-spacing: 0.1em;
}

.match-card__meta {
  font-size: 0.78rem;
  color: var(--zenit-muted);
}

/* ===== О КЛУБЕ ===== */
.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.about__card {
  background: var(--zenit-card);
  border: 1px solid rgba(77, 157, 224, 0.1);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.about__card:hover {
  transform: translateY(-3px);
  border-color: rgba(77, 157, 224, 0.3);
  box-shadow: 0 8px 32px rgba(0, 85, 164, 0.15);
}

.about__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.about__card h3 {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about__card p {
  color: var(--zenit-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.about__card p strong {
  color: var(--zenit-sky);
}

/* ===== ФАНАТЫ ===== */
.fans {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(0, 61, 165, 0.2) 0%, transparent 60%),
    var(--zenit-bg);
}

.fans__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.fans__banner {
  background: linear-gradient(135deg, var(--zenit-dark), var(--zenit-blue), var(--zenit-dark));
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fans__banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255, 255, 255, 0.03) 40px,
    rgba(255, 255, 255, 0.03) 80px
  );
}

.fans__tifo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.fans__scarf {
  font-weight: 900;
  font-size: 1.2rem;
  color: white;
  letter-spacing: 0.15em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: sway 3s ease-in-out infinite;
}

.fans__scarf--right {
  animation-delay: 0.5s;
}

@keyframes sway {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}

.fans__emblem {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--zenit-gold);
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.fans__info h3 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 0.75rem;
}

.fans__info p {
  color: var(--zenit-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.fans__quotes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fans__quote {
  background: var(--zenit-card);
  border-left: 3px solid var(--zenit-light);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  color: var(--zenit-text);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
}

.fans__quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--zenit-muted);
  font-style: normal;
  font-weight: 600;
}

/* ===== ПОДВАЛ ===== */
.footer {
  border-top: 1px solid rgba(77, 157, 224, 0.12);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer__fan {
  font-weight: 700;
  color: var(--zenit-light);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer__note {
  color: var(--zenit-muted);
  font-size: 0.85rem;
}

.footer__smile {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--zenit-gold);
  letter-spacing: 0.15em;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero__stats {
    gap: 1.5rem;
  }
  .squad__grid {
    grid-template-columns: 1fr;
  }
  .about__grid {
    grid-template-columns: 1fr;
  }
  .match-card__date {
    min-width: 64px;
  }
  .match-card__day {
    font-size: 1.4rem;
  }
  .fans__tifo {
    flex-direction: column;
    gap: 0.75rem;
  }
  .fans__scarf {
    font-size: 0.95rem;
  }
}

@media (min-width: 769px) {
  .nav.open {
    display: flex;
  }
}

/* ===== СКРОЛЛ-АНИМАЦИИ ===== */
.player-card,
.match-card,
.about__card,
.fans__quote {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.player-card.visible,
.match-card.visible,
.about__card.visible,
.fans__quote.visible {
  opacity: 1;
  transform: translateY(0);
}
