/* Screen Memos — спільні стилі сайту. Кольори й шрифт ті самі, що в програмі та на знімках. */
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("assets/fonts/manrope-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2010-2027, U+20AC, U+2122; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("assets/fonts/manrope-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2010-2027, U+20AC, U+2122; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("assets/fonts/manrope-cyr-500.woff2") format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("assets/fonts/manrope-cyr-800.woff2") format("woff2"); unicode-range: U+0400-04FF; }

:root {
  --paper: #F3F0E8;
  --paper-deep: #DEDACF;
  --ink: #262626;
  --text: #45423C;
  --muted: #6F6B62;
  --line: #D2CEC2;
  --accent: #E8701A;
  --accent-text: #B8500A;
  --flow: #7C5CE0;
  --flow-text: #5B3FC4;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%) fixed;
  color: var(--ink);
  font: 500 18px/1.55 "Manrope", -apple-system, system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Мова: показуємо одну. Без скрипта лишається англійська. */
html:not([data-lang="uk"]) [lang="uk"] { display: none; }
html[data-lang="uk"] [lang="en"] { display: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Шапка */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; }
.brand img { width: 40px; height: 40px; }
.lang { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--paper-deep); }
.lang button { border: 0; border-radius: 8px; padding: 6px 12px; background: none; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #FBFAF6; color: var(--ink); box-shadow: 0 1px 2px rgba(60, 50, 30, 0.18); }

/* Перший екран */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; padding: 48px 0 88px; }
.hero h1 { margin: 0 0 20px; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em, .feature h2 em { font-style: normal; color: var(--accent); }
.lead { margin: 0 0 32px; font-size: clamp(19px, 2vw, 23px); line-height: 1.45; color: var(--text); max-width: 30em; }
.cta { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; background: var(--ink); color: #FBFAF6; font-weight: 800; font-size: 17px; text-decoration: none; }
.cta[aria-disabled="true"] { background: none; color: var(--text); border: 1.5px solid var(--line); cursor: default; }
.note { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.shot { justify-self: center; width: 100%; max-width: 420px; border-radius: 26px; box-shadow: 0 40px 80px rgba(60, 50, 30, 0.28), 0 6px 18px rgba(60, 50, 30, 0.18); }

/* Розділи */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding: 72px 0; border-top: 1px solid var(--line); }
.feature.flip .copy { order: 2; }
.feature h2 { margin: 0 0 16px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.feature .kicker { margin: 0 0 12px; font-size: clamp(40px, 5vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.feature .kicker em { font-style: normal; color: var(--flow); }
.feature p { margin: 0 0 16px; color: var(--text); }
.feature ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.feature li { position: relative; padding-left: 26px; color: var(--text); }
.feature li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; border-radius: 5px; background: var(--accent); }
.feature.flow li::before { background: var(--flow); }
.feature li b { display: block; color: var(--ink); font-weight: 800; }
.shot.wide { max-width: 520px; border-radius: 0 0 30px 30px; }
.shot.tall { max-width: 340px; border-radius: 22px 22px 0 0; }
.mark { background: linear-gradient(180deg, transparent 56%, rgba(124, 92, 224, 0.32) 56%, rgba(124, 92, 224, 0.32) 94%, transparent 94%); }

/* Подяка авторові */
.thanks { padding: 72px 0; border-top: 1px solid var(--line); text-align: center; }
.thanks h2 { margin: 0 0 12px; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.thanks p { margin: 0 auto 28px; max-width: 32em; color: var(--text); }

/* Підвал */
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Сторінка з текстом (політика приватності) */
.doc { max-width: 680px; padding: 24px 0 80px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.doc h2 { font-size: 21px; font-weight: 800; margin: 40px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc .date { color: var(--muted); margin: 0 0 32px; }

@media (max-width: 820px) {
  .hero, .feature { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 24px 0 64px; }
  .feature { padding: 56px 0; }
  .feature.flip .copy { order: 0; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
