@font-face {
  font-family: system-ui;
  src: local("Arial");
}

:root {
  --bg: #08080b;
  --panel: rgba(18, 18, 24, 0.82);
  --panel-strong: rgba(24, 24, 32, 0.94);
  --text: #f2eee6;
  --muted: #b8b1a6;
  --soft: #7f766b;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #d9b46c;
  --accent-strong: #f0c776;
  --danger: #e46b57;
  --shadow: rgba(0, 0, 0, 0.58);
  --radius-xl: 28px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { min-height: 100%; color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(217, 180, 108, 0.10), transparent 28%),
    radial-gradient(circle at 82% 50%, rgba(105, 114, 156, 0.10), transparent 30%),
    linear-gradient(135deg, #050507 0%, #111117 48%, #07070a 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--background-cover, url("../assets/covers/cover-ru.png"));
  background-size: cover;
  background-position: center;
  opacity: 0.10;
  filter: blur(28px) saturate(0.75);
  transform: scale(1.08);
  transition: background-image 260ms ease;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.76), rgba(0,0,0,0.22), rgba(0,0,0,0.70)),
    radial-gradient(circle at center, transparent 26%, rgba(0,0,0,0.74) 100%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
}

.lang-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(16px);
}

.lang-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.lang-button:hover, .lang-button:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,0.07);
  outline: none;
}

.lang-button.active {
  color: #16130d;
  background: var(--accent-strong);
  font-weight: 700;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: 34px 0 56px;
}

.cover-column { display: flex; justify-content: center; }
.cover-stage { width: min(100%, 388px); perspective: 1200px; }

.cover-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--panel-strong);
  box-shadow: 0 34px 90px var(--shadow);
  transform-style: preserve-3d;
  transition: transform 440ms cubic-bezier(.2,.8,.2,1), opacity 220ms ease;
  overflow: hidden;
}

.cover-card.flipping { transform: rotateY(-90deg); opacity: 0.46; }

.cover-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 26%, rgba(217,180,108,0.25));
}

.cover-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.13);
  background: #08080b;
}

.content-column { max-width: 720px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }

.age-badge, .release-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.age-badge {
  border-color: rgba(228, 107, 87, 0.32);
  color: #ffd6d0;
  background: rgba(228, 107, 87, 0.10);
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.description {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.file-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.file-info div { padding: 14px; background: rgba(255,255,255,0.045); }
.file-info dt { margin: 0 0 4px; color: var(--soft); font-size: 12px; text-transform: uppercase; letter-spacing: 0.10em; }
.file-info dd { margin: 0; color: var(--text); font-size: 15px; font-weight: 700; }

.primary-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.primary-button {
  min-width: 180px;
  border: 1px solid rgba(240, 199, 118, 0.75);
  color: #17120a;
  background: linear-gradient(180deg, #f4d58e, #d7a956);
  box-shadow: 0 16px 38px rgba(0,0,0,0.28);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255,255,255,0.055);
}

.primary-button:hover, .primary-button:focus-visible, .secondary-button:hover, .secondary-button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.secondary-button:hover, .secondary-button:focus-visible { background: rgba(255,255,255,0.09); }
.placeholder-note { margin: 12px 0 0; color: var(--soft); font-size: 13px; }

.support-box {
  margin-top: 34px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(16px);
}

.support-box h2 { margin: 0 0 8px; color: var(--text); font-size: 18px; letter-spacing: -0.02em; }
.support-box p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.support-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.support-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(0,0,0,0.18);
  font-size: 14px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.support-links a:hover, .support-links a:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.065);
  outline: none;
}

.contact-email { margin-top: 15px !important; font-size: 14px !important; }
.contact-email a { color: var(--accent-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.disclaimer { margin: 20px 0 0; color: var(--soft); font-size: 12px; line-height: 1.55; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  transform: translateX(-50%) translateY(18px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18,18,24,0.96);
  color: var(--text);
  box-shadow: 0 18px 55px rgba(0,0,0,0.42);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 920px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .lang-switcher { justify-content: flex-start; border-radius: 22px; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .cover-column { order: -1; }
  .cover-stage { width: min(82vw, 360px); }
  .content-column { max-width: none; }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 22px, var(--max-width)); }
  .site-header { padding-top: 18px; }
  .lang-switcher { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .lang-button { text-align: center; }
  .hero { gap: 26px; padding-bottom: 36px; }
  .cover-stage { width: min(86vw, 310px); }
  h1 { font-size: clamp(38px, 14vw, 58px); }
  .description { font-size: 16px; }
  .file-info { grid-template-columns: 1fr 1fr; }
  .primary-actions { display: grid; grid-template-columns: 1fr; }
  .primary-button, .secondary-button { width: 100%; }
  .support-links { display: grid; grid-template-columns: 1fr; }
  .support-links a { justify-content: center; }
  .site-footer { flex-direction: column; }
}
