/* styles.css — полностью уникальная тема: deep-navy + teal + amethyst
   Переменные, оптимизированы для контраста и быстрого рендеринга.
*/

:root {
  --nova-bg: #071428; /* deep navy */
  --nova-surface: #0b2030; /* card surface */
  --nova-edge: #112936; /* subtle border */
  --nova-muted: #fff;
  --nova-text: #e6f4ff;
  --nova-teal: #33e0c9;
  --nova-amethyst: #b892ff;
  --nova-highlight: linear-gradient(
    90deg,
    var(--nova-teal),
    var(--nova-amethyst)
  );
  --nova-radius: 14px;
  --nova-shadow: 0 10px 30px rgba(3, 16, 26, 0.6);
  --nova-glow: 0 8px 30px rgba(51, 224, 201, 0.08);
  --max-width: 1180px;
  --content-gap: 18px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* base */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(rgba(10, 10, 30, 0.9)),
    url(../img/bg-stadium.webp) no-repeat center center fixed;
  background-size: cover;
  color: var(--nova-text);
  min-height: 100vh;
  animation: bgShift 120s ease-in-out infinite alternate;
}

/* Анімація легкого руху фону */
@keyframes bgShift {
  0% {
    background-position: center top;
  }
  50% {
    background-position: center 40%;
  }
  100% {
    background-position: center bottom;
  }
}
.nova-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* skip link */
.nova-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  background: #002434;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  z-index: 9999;
}
.nova-skip:focus {
  left: 12px;
  top: 12px;
}

/* wrapper */
.nova-wrap {
  width: min(var(--max-width), 95%);
  margin: 0 auto;
}

/* header */
.nova-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: none;
}
.nova-header .nova-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nova-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nova-logo {
  font-family: "DM Serif Display", serif;
  color: var(--nova-amethyst);
  font-size: 24px;
  letter-spacing: 0.6px;
}
.nova-home-link {
  color: var(--nova-muted);
  text-decoration: none;
  font-weight: 600;
}
.nova-nav {
  display: flex;
  gap: 12px;
}
.nova-nav-link {
  color: var(--nova-muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
}
.nova-nav-link:hover,
.nova-nav-link:focus {
  color: var(--nova-text);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}

/* HERO: grid with rotated floating tiles */
.nova-hero {
  padding: 28px 0;
}
.nova-hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: stretch;
}
.nova-hero-left {
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: var(--nova-shadow);
  position: relative;
  overflow: hidden;
}
.nova-tag {
  color: var(--nova-teal);
  font-weight: 700;
  margin: 0 0 8px;
}
.nova-hero-title {
  font-family: "DM Serif Display", serif;
  font-size: 28px;
  margin: 0 0 12px;
  color: var(--nova-text);
}
.nova-lead {
  color: var(--nova-muted);
  line-height: 1.5;
  margin: 0 0 14px;
}
.nova-hero-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 12px 0 20px;
  list-style: none;
}
.nova-hero-features li {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  font-weight: 600;
  color: var(--nova-muted);
}

/* CTA buttons */
.nova-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  border: 0;
}
.nova-btn-primary {
  background: var(--nova-highlight);
  color: #071428;
  box-shadow: var(--nova-glow);
  transform: translateZ(0);
}
.nova-btn-ghost {
  background: transparent;
  color: var(--nova-text);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* right panel — highlight cards stack with 3D parallax-like offset */
.nova-hero-right {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.nova-highlight-cards {
  height: 100%;
  display: grid;
  gap: 12px;
  width: 100%;
}
.nova-card.compact {
  background: linear-gradient(
    180deg,
    rgba(10, 24, 36, 0.8),
    rgba(8, 18, 28, 0.6)
  );
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(11, 30, 40, 0.5);
}
.nova-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nova-card-body {
  max-width: 60%;
  width: 100%;
}
.nova-card-head img {
  width: 70px;
  height: 50px;
  padding: 5px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.02);
}
.nova-score-pill {
  background: rgba(255, 255, 255, 0.04);
  color: var(--nova-teal);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
}
.nova-card-title {
  font-weight: 700;
  color: var(--nova-text);
}
.nova-card-tags span {
  font-size: 12px;
  color: var(--nova-muted);
  margin-right: 8px;
}

/* PICKS GRID: alternative card style — "panels with slanted accent" */
.nova-section {
  padding: 34px 0;
}
.nova-section-header {
  margin-bottom: 18px;
}
.nova-section-header h2 {
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--nova-text);
}
.nova-section-header .nova-small {
  color: var(--nova-muted);
  margin: 0;
}

/* grid of fullcards */
.nova-picks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.nova-fullcard {
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.02)
  );
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: var(--nova-shadow);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.28s;
}
.nova-fullcard:hover {
  transform: translateY(-6px) rotate(-0.2deg);
  box-shadow: 0 22px 48px rgba(12, 28, 44, 0.6);
}

/* row layout: media + content */
.nova-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.nova-row.reverse {
  flex-direction: row-reverse;
}
.nova-media {
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.014),
    rgba(0, 0, 0, 0.02)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  max-width: 300px;
  height: 180px;
  width: 100%;
}
.nova-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nova-media-svg {
  display: block;
}
.nova-content {
  flex: 1;
}
.nova-entry-title {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--nova-text);
}
.nova-text {
  color: var(--nova-muted);
  margin: 0 0 12px;
  line-height: 1.5;
}
.nova-fast-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--nova-muted);
}
.nova-fast-facts li {
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}

/* actions */
.nova-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.nova-btn-action {
  background: transparent;
  color: var(--nova-teal);
  border: 1px solid rgba(51, 224, 201, 0.12);
  padding: 10px 14px;
  border-radius: 10px;
}
.nova-btn-action:hover {
  background: rgba(51, 224, 201, 0.06);
}

/* ACCORDION: buttons styled as pills, animated panels */
.nova-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.nova-acc-btn {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
  border-radius: 12px;
  text-align: left;
  font-weight: 700;
  color: var(--nova-text);
  cursor: pointer;
}
.nova-acc-btn[aria-expanded="true"] {
  background: var(--nova-highlight);
  color: #071428;
  box-shadow: var(--nova-glow);
}
.nova-acc-panel {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0.005)
  );
  margin-bottom: 8px;
}

/* TESTIMONIALS */
.nova-testimonials {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  position: relative;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: 84px;
}
.nova-testimonial {
  max-width: 30%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.02),
    rgba(0, 0, 0, 0.02)
  );
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: var(--nova-shadow);
  overflow: hidden;
}
.nova-testimonial.active {
  opacity: 1;
  transform: translateY(0);
}
.nova-testimonial blockquote {
  font-style: italic;
  color: var(--nova-text);
  margin: 0 0 6px;
}
.nova-testimonial cite {
  font-size: 13px;
  color: var(--nova-muted);
}

/* STATS */
.nova-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.nova-stat {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01),
    rgba(0, 0, 0, 0.02)
  );
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.nova-stat-title {
  color: var(--nova-muted);
  font-weight: 700;
}
.nova-stat-value {
  font-size: 20px;
  color: var(--nova-text);
  margin: 8px 0;
}
.nova-bar {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.03)
  );
  position: relative;
  overflow: hidden;
}
.nova-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--p) * 1%);
  background: var(--nova-highlight);
  transition: width 0.8s cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* footer */
.nova-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 28px 0;
  margin-top: 34px;
}
.nova-footer-grid {
  display: grid;
  grid-template-columns: 1fr 220px 1fr;
  gap: 18px;
  align-items: start;
}
.nova-foot-about h4 {
  margin: 0 0 6px;
  color: var(--nova-amethyst);
}
.nova-foot-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nova-foot-link {
  color: var(--nova-muted);
  text-decoration: none;
}
.nova-footer-bottom {
  padding-top: 12px;
  text-align: center;
  color: var(--nova-muted);
}

/* responsive */
@media (max-width: 980px) {
  .nova-hero-grid {
    grid-template-columns: 1fr;
  }
  .nova-picks-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .nova-stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .nova-footer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .nova-row {
    flex-wrap: wrap;
  }
  .nova-content {
    min-width: 400px;
  }
  .nova-testimonial {
    max-width: 100%;
    width: 100%;
  }
}
@media (max-width: 520px) {
  .nova-hero-left {
    padding: 18px;
  }
  .nova-entry-title {
    font-size: 16px;
  }
  .nova-btn {
    padding: 9px 12px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .nova-hero-right,
  .nova-hero-features,
  .nova-section-header {
    display: none;
  }
  .nova-section {
    padding: 24px 0;
  }
  .nova-hero {
    padding: 24px 0 0 0;
  }
  .nova-content {
    min-width: 280px;
  }
}

/* Accessibility: focus ring only when keyboard navigating */
.nova-user-tabbing :focus {
  outline: 3px solid rgba(179, 146, 255, 0.35);
  outline-offset: 3px;
  border-radius: 8px;
}
.nova-foot-regs img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.nova-regs-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
}
.nova-section__a {
  color: var(--nova-amethyst);
}
.nova-section__a:hover {
  transition: color 0.3s ease;
  color: var(--nova-muted);
}
