/* VOICE   occasion, quiet: a product teaser, calm like a sheet of e-ink
   IDEA    the studio sweep of the render: the hero band is the photo's own grey, so the key sits on the page itself
   PICTURE the hero render, 55% of the first screen on a laptop, under the title on a phone
   COLOUR  studio grey #dfdedc band, near-black ink, one deep teal accent; lower bands follow the system theme
   TYPE    system sans only (no web fonts: the page makes no third-party requests)
   LAYOUT  laptop: text left, render right inside the grey band; phone: title, lead, render, facts */

:root {
  --studio: #dfdedc;
  --studio-ink: #1a1a19;
  --studio-ink-2: #4a4945;
  --bg: #f5f4f1;
  --ink: #1a1a19;
  --ink-2: #55534d;
  --line: #d6d3cb;
  --accent: #1f5f5b;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151514;
    --ink: #ecebe6;
    --ink-2: #b4b2aa;
    --line: #33322e;
    --accent: #6fb8b0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151514;
  --ink: #ecebe6;
  --ink-2: #b4b2aa;
  --line: #33322e;
  --accent: #6fb8b0;
  color-scheme: dark;
}

/* Language: html[lang] is set by lang.js; text for the other language is hidden. */
html[lang="en"] body [lang="ru"],
html[lang="ru"] body [lang="en"] { display: none; }

* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Side gutter; on wide screens it grows so the content stays 1240px and centred. */
.band {
  padding-left: max(5vw, 16px, env(safe-area-inset-left, 0px), calc((100% - 1240px) / 2));
  padding-right: max(5vw, 16px, env(safe-area-inset-right, 0px), calc((100% - 1240px) / 2));
}

/* Hero: one grey field, same tone as the render background, in both themes. */
.hero {
  background: var(--studio);
  color: var(--studio-ink);
  padding-top: env(safe-area-inset-top, 0px);
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.switch {
  display: inline-flex;
  border: 1px solid #b9b7b0;
  border-radius: 999px;
  padding: 3px;
  background: #ebeae7;
}
.switch[hidden] { display: none; }
.switch button {
  font: 600 14px/1 var(--sans);
  color: var(--studio-ink-2);
  background: transparent;
  border: 0;
  border-radius: 999px;
  min-width: 48px;
  min-height: 36px;
  padding: 0 14px;
  cursor: pointer;
}
.switch button:hover { color: var(--studio-ink); }
.switch button[aria-pressed="true"] { background: var(--studio-ink); color: #f5f4f1; }
.switch button:focus-visible { outline: 2px solid #1f5f5b; outline-offset: 2px; }

.first {
  display: grid;
  gap: 8px;
  padding-bottom: 28px;
}
.intro { padding-top: 12px; }
h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 13em;
  text-wrap: balance;
}
.lead {
  margin: 0 0 24px;
  max-width: 34em;
  color: var(--studio-ink-2);
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 16px;
  background: #ebeae7;
  border: 1px solid #c9c7c0;
  font-weight: 600;
  font-size: 16px;
  border-radius: 22px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #1f5f5b; flex: none; }
.shot { margin: 0; }
/* Soft edges: the render's grey melts into the band instead of showing a box. */
.shot img {
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
}
.shot figcaption { font-size: 13px; color: #67655f; text-align: right; }

@media (min-width: 900px) {
  .first {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 24px;
    min-height: min(78svh, 760px);
    padding-bottom: 36px;
  }
  .intro { padding-top: 0; }
  .shot { margin-right: -2vw; }
}

/* Lower bands follow the viewer's theme. */
h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.facts { padding-block: clamp(40px, 6vw, 72px); }
.facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17em), 1fr));
  gap: 0 32px;
}
.facts li {
  border-top: 1px solid var(--line);
  padding: 18px 0 22px;
  color: var(--ink-2);
  font-size: 16px;
}
.facts b {
  display: block;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
@media (min-width: 900px) {
  .facts ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.news {
  padding-block: clamp(36px, 5vw, 60px);
  border-top: 1px solid var(--line);
}
.news h2 { margin-bottom: 10px; }
.news p { margin: 0; max-width: 38em; color: var(--ink-2); }
.news h2::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 14px;
  vertical-align: 0.12em;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
