/* Тёмная страница в цветах приложения. Ролик показывается только после нажатия. */

:root {
  --bg: #0a0a0a;
  --card: #14181e;
  --line: #2a313b;
  --text: #f3f5f7;
  --muted: #a7b0ba;
  --accent: #6fd8cc;
  --accent-ink: #06221e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent);
}

.wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 18px 0 8px;
}

.langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.langs a,
.watch,
.store {
  font: inherit;
  cursor: pointer;
}

.langs a {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
}

.langs a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  column-gap: 28px;
  align-items: center;
  padding: 28px 0 28px;
}

.hero h1 {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
}

.hero h1 .brand {
  color: var(--text);
  font-weight: 700;
}

.hero .lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 400;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
}

.store {
  display: inline-block;
  line-height: 0;
}

.store img {
  display: block;
  height: 84px;
  width: auto;
}

.watch:hover,
.langs a:hover {
  filter: brightness(1.08);
}

.feature {
  display: grid;
  grid-template-columns: 300px minmax(0, 520px);
  justify-content: center;
  gap: 36px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

/* У чётных блоков текст слева, снимок справа. Ширина текста та же. */
.feature:nth-child(even) {
  grid-template-columns: minmax(0, 520px) 300px;
}

.feature:nth-child(even) .copy {
  order: -1;
}

.shot {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.shot img,
.shot iframe {
  width: min(100%, 300px);
  border-radius: 28px;
  background: #111;
}

.shot img {
  height: auto;
  display: block;
}

.shot iframe {
  aspect-ratio: 9 / 16;
  border: 0;
}

.watch {
  border: 0;
  background: var(--card);
  color: var(--accent);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}

.watch[hidden] {
  display: none;
}

.copy h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
}

.foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .feature,
  .feature:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .feature:nth-child(even) .copy,
  .feature:nth-child(even) .shot {
    order: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .hero-art {
    order: -1;
    max-width: 280px;
    margin: 0 auto 8px;
    justify-self: center;
  }
}
