/* cartoons.beatland.io — BEATLAND UNIVERSE. Тёмная тема, фиолет, неон. */

:root {
  --bg: #0B0A12;
  --surface: #14121F;
  --surface-2: #1B1830;
  --border: #2A2540;
  --fg: #ECEAF4;
  --fg-2: #B7B2CC;
  --muted: #837D9C;
  --violet: #B08CFF;
  --violet-deep: #6E3BE0;
  --cyan: #4CE0FF;
  --pink: #FF3D9A;
  --font: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.prose a, .v a, .foot a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(920px, 100% - 48px); }

h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); margin-bottom: 28px; }
h3 { font-size: 1.15rem; letter-spacing: 0; margin-bottom: 8px; }
p { margin: 0 0 16px; }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--violet); margin-bottom: 10px;
}
.eyebrow.mt { margin-top: 48px; }
.mono { font-family: var(--mono); }

/* шапка */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; gap: 22px; font-size: 14px; color: var(--fg-2); }
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--fg); border-color: var(--violet); }

/* переключатель языка */
.langs { display: flex; gap: 14px; font-size: 12px; letter-spacing: .18em; color: var(--muted); }
.langs a { padding: 6px 2px; border-bottom: 2px solid transparent; }
.langs a[aria-current="true"] { color: var(--fg); border-color: var(--violet); }
.langs a:hover { color: var(--fg); }


/* герой */
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 130%; pointer-events: none;
  background:
    radial-gradient(55% 45% at 18% 22%, color-mix(in srgb, var(--violet-deep) 42%, transparent), transparent 62%),
    radial-gradient(45% 38% at 82% 12%, color-mix(in srgb, var(--cyan) 16%, transparent), transparent 62%);
}
.hero .wrap { position: relative; }
.slogan {
  font-family: var(--mono); font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: .34em; text-transform: uppercase; color: var(--cyan);
  margin: 18px 0 14px;
}
.slogan.sm { font-size: 14px; letter-spacing: .3em; margin-bottom: 10px; }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.4rem); color: var(--fg-2); max-width: 46ch; }

/* строка с датой премьеры — появляется, когда дата известна */
.release { display: inline-block; margin: 6px 0 14px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }

.btn {
  display: inline-block; margin-top: 10px; padding: 13px 24px; border-radius: 999px;
  background: var(--violet); color: #14101F; font-weight: 600;
  border: 1px solid transparent; transition: transform .2s ease, background .2s ease;
}
.btn:hover { background: #C6ABFF; transform: translateY(-1px); }

.teaser { margin: clamp(36px, 6vw, 64px) 0 0; }
.teaser video {
  width: 100%; border-radius: 16px; border: 1px solid var(--border);
  background: #000; box-shadow: 0 30px 80px rgba(110, 59, 224, .28);
}
.teaser figcaption { margin-top: 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* секции */
section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--border); }
.hero { border-top: 0; }

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.prose p:last-child { margin-bottom: 0; }
.prose b { color: var(--fg); font-weight: 600; }

.shot img, .wide img { border-radius: 14px; border: 1px solid var(--border); width: 100%; }
.wide { margin: clamp(28px, 4vw, 44px) 0 0; }

blockquote {
  margin: clamp(32px, 5vw, 52px) 0 0; padding: 24px 28px;
  border-left: 3px solid var(--violet); border-radius: 0 14px 14px 0;
  background: var(--surface); color: var(--fg-2); font-size: 1.05rem;
}
blockquote b { display: block; margin-top: 10px; color: var(--fg); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo.tight { margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 22px 24px 26px; }
.card-body p { color: var(--fg-2); margin: 0; }
.after { margin-top: 28px; color: var(--fg-2); max-width: 78ch; }
.after b { color: var(--fg); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: clamp(28px, 4vw, 44px); }
.unit p { color: var(--fg-2); margin: 0; }

.acts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 16px; }
.acts figure { margin: 0; }
.acts img { border-radius: 10px; border: 1px solid var(--border); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.acts figcaption { margin-top: 8px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; }
.fact .k { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.fact .v { color: var(--fg-2); margin: 0; }

.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.strip img { border-radius: 12px; border: 1px solid var(--border); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.contact {
  margin-top: clamp(36px, 5vw, 56px); padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--border); border-radius: 18px; text-align: center;
  background: radial-gradient(70% 120% at 50% 0%, color-mix(in srgb, var(--violet-deep) 26%, transparent), var(--surface));
}
.contact p { color: var(--fg-2); }

footer { border-top: 1px solid var(--border); padding: 28px 0 40px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.foot a:hover { color: var(--fg); }

/* Бургер: виден только на узком экране (правило выше) */
.burger { display: none; width: 42px; height: 42px; margin-left: auto; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: transparent; border: 1px solid var(--border); border-radius: 12px;
  color: var(--fg); cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.drawer { display: none; }

/* вырезанный квадратный кадр — не растягиваем на всю ширину */
.narrow-fig { max-width: 560px; margin-inline: auto; }
.narrow-fig figcaption { margin-top: 10px; text-align: center; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 900px) {
  .split, .duo, .trio, .facts, .strip { grid-template-columns: 1fr; }
  .acts { grid-template-columns: repeat(2, 1fr); }
  .wrap, .wrap.narrow { width: calc(100% - 32px); }

  /* На телефоне вверху только логотип и бургер, разделы и языки — в панели */
  header.top .nav, header.top .langs { display: none; }
  .burger { display: flex; }
  .drawer { display: block; overflow: hidden; max-height: 0; transition: max-height .25s ease;
    background: var(--surface); border-bottom: 1px solid var(--border); position: relative; z-index: 1; }
  body.menu-open .drawer { max-height: 70vh; }
  .drawer .nav { display: flex; flex-direction: column; gap: 0; padding: 4px 16px 10px; font-size: 15px; }
  .drawer .nav a { padding: 13px 0; border-bottom: 1px solid var(--border); color: var(--fg); }
  .drawer .nav a:last-child { border-bottom: 0; }
  .drawer .langs { display: flex; gap: 18px; padding: 6px 16px 16px; }
}
