/* Team Q — сайт. Палітра і шрифти як у застосунку. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(fonts/inter-700.woff2) format("woff2"); }

:root {
  --bg: #F7F5F0; --surface: #FFFFFF; --surface2: #EFEBE2; --text: #1B1F3B; --muted: #5B6075;
  --border: #E3DED2; --primary: #232C8C; --on-primary: #FFFFFF; --gold: #C9962B; --gold-text: #8A6516;
  --shadow: 0 14px 30px rgba(16, 19, 42, .16); --card: #FFFFFF;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10132A; --surface: #1A1E3A; --surface2: #232849; --text: #F3F1EA; --muted: #A9ADC4;
    --border: #2E3358; --primary: #E2B44C; --on-primary: #10132A; --gold: #E2B44C; --gold-text: #E2B44C;
    --shadow: 0 14px 30px rgba(0, 0, 0, .4); --card: #1E2245;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 9; }

/* Шапка */
header.top { padding: 18px 0; }
header.top .wrap { display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand { white-space: nowrap; }
.brand img { width: 26px; height: 40px; border-radius: 4px; background: var(--card); border: 1px solid var(--border); }
.top nav { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }
.lang { border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }

/* Головна */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 40px 0 56px; }
.hero h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px;
  border-radius: 16px; font-weight: 700; font-size: 17px; text-decoration: none;
  background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 24px rgba(35, 44, 140, .22);
}
.btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: none; font-weight: 600; }
.soon { font-size: 14px; color: var(--muted); }
.deck { position: relative; width: 220px; height: 345px; margin: 0 auto; }
.deck img { position: absolute; width: 200px; height: 313px; border-radius: 14px; box-shadow: var(--shadow); background: var(--card); border: 1px solid var(--border); }
.deck .c1 { left: 20px; top: 24px; transform: rotate(8deg); }
.deck .c2 { left: 10px; top: 12px; transform: rotate(-5deg); }
.deck .c3 { left: 0; top: 0; }
.dark-only { display: none; }
@media (prefers-color-scheme: dark) { .light-only { display: none; } .dark-only { display: block; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 48px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px;
}
.card h2, .card h3 { font-size: 18px; margin: 10px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface2); color: var(--gold-text); font-weight: 700; font-size: 15px; }
.note { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 56px; }
.note svg { flex: none; margin-top: 3px; }

/* Текстові сторінки */
main.doc { max-width: 720px; margin: 0 auto; padding: 24px 20px 56px; }
main.doc h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; margin: 8px 0 6px; }
main.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
main.doc h2 { font-size: 21px; margin: 32px 0 8px; }
main.doc ul { padding-left: 22px; }
main.doc li { margin: 4px 0; }
.mail { font-size: 20px; font-weight: 600; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Підвал */
footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }
footer .legal { flex-basis: 100%; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .deck { order: -1; transform: scale(.8); margin: -20px auto -50px; }
  .features { grid-template-columns: 1fr; }
  .top nav a:not(.lang) { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .deck .c3 { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
  .deck:hover .c3 { transform: translateY(-8px) rotate(-2deg); }
}
