:root {
  color-scheme: dark;
  --bg: #0a0d14;
  --bg-alt: #101626;
  --panel: rgba(24, 31, 49, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --muted: #9ea8c7;
  --accent: #ff7a4f;
  --accent-alt: #7a9bff;
  --accent-dark: #ff541f;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow-soft: 0 18px 45px rgba(7, 10, 18, 0.55);
  --shadow-card: 0 12px 30px rgba(10, 13, 23, 0.55);
  --transition: 0.3s ease;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(122, 155, 255, 0.2), transparent 55%), linear-gradient(160deg, #06070d 0%, #101626 55%, #151b2d 100%);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  text-align: center;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.container.narrow {
  width: min(820px, 92%);
}

.section {
  padding: 110px 0;
}

.section.alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  margin: 0;
}

.section p.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 0.9s var(--transition) forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header {
  position: sticky;
  inset: 0 0 auto 0;
  z-index: 2000;
  background: rgba(6, 9, 15, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  flex-direction: row;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(122, 155, 255, 0.08);
}

.timestamp {
  font-size: 0.85rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  transition: var(--transition);
}

.site-nav a {
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 -10px 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  transform: scaleX(0);
  transform-origin: center;
  transition: var(--transition);
  opacity: 0;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.hero {
  position: relative;
  padding: 120px 0 120px;
  background: none;
}

.hero .container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-visual {
  position: relative;
  width: min(1240px, 96vw);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 35px 90px rgba(4, 6, 12, 0.65);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(6, 8, 14, 0.78), rgba(8, 12, 22, 0.15) 60%, rgba(8, 12, 22, 0.85));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2.8rem, 6vw, 4.5rem);
  gap: 1.4rem;
  text-align: left;
}

.hero-overlay h1 {
  font-size: clamp(2.8rem, 6.4vw, 4.6rem);
  margin: 0;
  line-height: 1.12;
}

.hero-overlay p {
  max-width: clamp(480px, 48vw, 640px);
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  background: none;
  color: inherit;
}

.btn.primary {
  background: linear-gradient(130deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 20px 45px rgba(255, 122, 79, 0.38);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 26px 55px rgba(255, 122, 79, 0.48);
}

.btn.secondary {
  border-color: var(--border);
  color: var(--text);
  background: rgba(122, 155, 255, 0.07);
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  border-color: var(--accent-alt);
  color: var(--accent-alt);
}

.card-grid {
  width: 100%;
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 2.2rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card.has-visual {
  padding: 2rem 1.6rem 2.4rem;
}

.card.has-visual img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card:hover,
.card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(255, 122, 79, 0.35);
  box-shadow: 0 30px 55px rgba(5, 8, 16, 0.55);
}

.mini-game {
  width: min(560px, 100%);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(24, 32, 52, 0.9), rgba(12, 16, 27, 0.9));
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.5rem;
}

.mini-game fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.4rem;
}

.mini-game legend {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.flavor-step {
  display: grid;
  gap: 0.75rem;
  text-align: left;
}

.flavor-step p {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.flavor-options {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.flavor-option {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(10, 14, 24, 0.6);
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), color var(--transition);
}

.flavor-option:hover,
.flavor-option:focus-visible {
  border-color: var(--accent-alt);
  color: var(--accent-alt);
  transform: translateY(-2px);
}

.flavor-option.is-active {
  background: linear-gradient(140deg, var(--accent), var(--accent-dark));
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 122, 79, 0.35);
}

.game-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.mini-game form {
  display: grid;
  gap: 1rem;
}

.mini-game label {
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mini-game select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 11, 18, 0.7);
  color: var(--text);
  font-size: 1rem;
}

.mini-game .result {
  min-height: 1.4rem;
  color: var(--accent);
  font-weight: 600;
}

.game-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.accordion {
  width: min(760px, 100%);
  display: grid;
  gap: 1rem;
}

.accordion-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(14, 19, 33, 0.8);
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 1.5rem;
  cursor: pointer;
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  padding: 0 1.5rem;
}

.accordion-body p {
  color: var(--muted);
}

.accordion-item.active {
  border-color: rgba(122, 155, 255, 0.4);
  background: rgba(16, 24, 42, 0.94);
}

.accordion-item.active .accordion-body {
  opacity: 1;
  padding: 0 1.5rem 1.3rem;
}

.comparison-table {
  width: min(900px, 100%);
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(14, 20, 36, 0.9);
  box-shadow: var(--shadow-card);
}

.comparison-table th,
.comparison-table td {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--muted);
}

.comparison-table tbody tr:nth-child(odd) {
  background: rgba(10, 14, 24, 0.7);
}

.site-footer {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border);
  background: rgba(6, 8, 14, 0.9);
}

.site-footer .container {
  gap: 1rem;
}

.footer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-actions .link {
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--transition);
}

.footer-actions .link:hover,
.footer-actions .link:focus-visible {
  color: var(--accent);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 5000;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition), visibility var(--transition);
  padding: 2rem clamp(1.5rem, 6vw, 4rem) 2rem clamp(1.5rem, 8vw, 5rem);
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 9, 0.78);
  backdrop-filter: blur(12px);
  z-index: -1;
}

.modal-content {
  width: min(520px, calc(100vw - clamp(3rem, 12vw, 6rem)));
  background: linear-gradient(160deg, rgba(14, 19, 33, 0.94), rgba(18, 26, 45, 0.96));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(4, 6, 12, 0.65);
  display: grid;
  gap: 1.2rem;
  max-height: min(82vh, 660px);
  overflow-y: auto;
  text-align: left;
  overflow-wrap: anywhere;
}

.modal-close {
  justify-self: center;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color var(--transition);
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--accent-alt);
}

.cookie-banner {
  position: fixed;
  inset: auto 50% 24px auto;
  transform: translateX(50%);
  width: min(420px, calc(100% - 32px));
  padding: 1.8rem;
  background: rgba(12, 16, 27, 0.92);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 5100;
}

.cookie-banner.is-visible {
  visibility: visible;
  opacity: 1;
}

.form-grid {
  width: min(640px, 100%);
  display: grid;
  gap: 1rem;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 13, 22, 0.7);
  color: var(--text);
  font-size: 1rem;
  resize: vertical;
}

.form-grid textarea {
  min-height: 160px;
}

.map-wrapper {
  width: min(720px, 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.map-wrapper iframe {
  width: 100%;
  height: 360px;
  border: 0;
  filter: saturate(0.8) contrast(1.05) brightness(0.9);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent-alt);
  background: rgba(122, 155, 255, 0.12);
}

@media (max-width: 960px) {
  .site-nav {
    position: fixed;
    inset: 86px 1.4rem auto 1.4rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.6rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(10, 14, 24, 0.96);
    box-shadow: 0 24px 55px rgba(4, 6, 12, 0.65);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
  }

  .site-nav a {
    width: 100%;
    padding: 0.5rem 0;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 90px 0;
  }

  .hero {
    padding: 100px 0 100px;
  }

  .hero .container {
    gap: 1.6rem;
  }

  .hero-visual {
    width: min(100%, 92vw);
    margin-top: -20px;
  }

  .hero-overlay {
    align-items: center;
    text-align: center;
    padding: 2.2rem;
    gap: 1.1rem;
  }

  .hero-overlay h1 {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .hero-actions {
    margin-top: 1.6rem;
  }

  .modal {
    align-items: flex-start;
    padding: 1.5rem 1.5rem 1.5rem 1.2rem;
  }

  .modal-content {
    width: calc(100vw - 1.6rem);
    padding: 1.85rem;
    max-height: calc(100vh - 96px);
  }

  .card.has-visual img {
    height: 180px;
  }

  .mini-game {
    padding: 2rem 1.5rem;
  }

  .accordion-header {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 1rem;
  }

  .map-wrapper iframe {
    height: 280px;
  }
}

