/* Monstro site. Same palette and face as the app: warm paper, ink outlines,
   chunky shadows. One accent per block. */
:root {
  --bg: #FFF4E6;
  --ink: #2B1B3D;
  --muted: #6B5B7B;
  --surface: #FFFFFF;
  --soft: #FFE2C2;
  --primary: #FF6B3D;
  --teal: #3BB8A8;
  --dice: #8C7CFF;
  --accent: #FFC94D;
  --line: #EADFD2;
  --shadow: #2B1B3D;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E1529;
    --ink: #F4EAFB;
    --muted: #B9A9CC;
    --surface: #2B2038;
    --soft: #3A2B4A;
    --line: #43344F;
    --shadow: #0E0914;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 600 17px/1.55 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* Language: the page carries both; the root class hides one. */
html.ru [lang="en"], html:not(.ru) [lang="ru"] { display: none !important; }

.wrap { max-width: 1040px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }

header.top { padding-block: 18px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; border: 2.5px solid var(--ink); }
.lang { display: flex; border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--surface); }
.lang button { font: 800 14px var(--font); color: var(--ink); background: none; border: 0; padding: 6px 12px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Hero */
.hero { padding-block: 24px 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-weight: 900; font-size: clamp(38px, 6vw, 64px); line-height: 1.02; margin: 0 0 18px; letter-spacing: -0.5px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.lede { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 30ch; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px 11px 14px; border-radius: 16px;
  border: 2.5px solid var(--ink); background: var(--surface);
  box-shadow: 0 4px 0 var(--shadow); color: var(--ink); text-decoration: none;
  cursor: not-allowed; opacity: .9;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 12px; font-weight: 800; color: var(--muted); line-height: 1.1; }
.store b { display: block; font-size: 17px; font-weight: 900; line-height: 1.15; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }

.phones { position: relative; height: 560px; }
.phone {
  position: absolute; width: 250px; border-radius: 34px; overflow: hidden;
  border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--shadow); background: var(--surface);
}
.phone img { width: 100%; }
.phone.a { left: 4%; top: 30px; transform: rotate(-5deg); }
.phone.b { right: 4%; top: 0; transform: rotate(4deg); z-index: 1; }

/* Features */
.features { padding-block: 48px; background: var(--surface); border-block: 2.5px solid var(--ink); }
.features h2, .shots h2 { font-weight: 900; font-size: 32px; margin: 0 0 28px; text-wrap: balance; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { padding: 22px; border: 2.5px solid var(--ink); border-radius: 22px; background: var(--bg); }
.feat .ic { width: 52px; height: 52px; border-radius: 16px; border: 2.5px solid var(--ink); display: grid; place-items: center; margin-bottom: 14px; }
.feat .ic svg { width: 30px; height: 30px; }
.feat h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.feat p { margin: 0; color: var(--muted); font-size: 16px; }

.shots { padding-block: 56px; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.strip figure { margin: 0; }
.strip img { border-radius: 24px; border: 2.5px solid var(--ink); box-shadow: 0 5px 0 var(--shadow); }
.strip figcaption { margin-top: 10px; font-size: 15px; font-weight: 800; text-align: center; }

.grownups { padding-block: 8px 56px; }
.box { border: 2.5px solid var(--ink); border-radius: 26px; padding: 28px; background: var(--soft); display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.box h2 { margin: 0 0 8px; font-size: 26px; font-weight: 900; }
.box ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.box .ic { width: 64px; height: 64px; border-radius: 20px; background: var(--surface); border: 2.5px solid var(--ink); display: grid; place-items: center; }
.box .ic svg { width: 36px; height: 36px; }

footer { padding-block: 28px 40px; border-top: 2.5px solid var(--line); font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { font-weight: 800; color: var(--ink); }

/* Text pages */
.doc { padding-block: 16px 64px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 900; margin: 8px 0 6px; line-height: 1.1; }
.doc .updated { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.doc h2 { font-size: 22px; font-weight: 900; margin: 32px 0 8px; }
.doc p, .doc li { font-weight: 600; }
.doc ul { padding-left: 22px; display: grid; gap: 6px; }
.doc .card { background: var(--surface); border: 2.5px solid var(--ink); border-radius: 20px; padding: 18px 20px; margin: 20px 0; }
.doc .card p { margin: 0; }
.mail { font-weight: 900; font-size: 20px; user-select: all; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 470px; max-width: 420px; margin: 0 auto; width: 100%; }
  .phone { width: 205px; }
  .grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .box { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .phones { height: 400px; }
  .phone { width: 170px; }
}

@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Medium.ttf") format("truetype"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }

/* Grid children default to min-width:auto, which lets the 520px screenshots
   widen the columns past a phone screen. */
.hero .wrap > *, .grid > *, .strip > *, .box > * { min-width: 0; }
