/* Onava — спільні стилі сайту.
   Винесені з інлайну index.html, коли сайт розрісся з 2 сторінок до 12
   (6 сторінок × 2 мови). Дублювати ~150 рядків стилю дванадцять разів
   означало б, що будь-яка правка кольору робиться дванадцять разів. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope-light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0f1720;
  --bg-band: #0b1420;
  --surface: #0a121a;
  --border: #233244;
  --text: #eef4f1;
  --muted: #a9beb6;
  --dim: #6f8079;
  --accent: #46a595;
  --accent-light: #8ff0d5;
  --gold: #e6b450;
  --blue: #7e9cd8;
}

html, body { margin: 0; padding: 0; background: var(--bg); }
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
}
h1, h2, h3, .mf-heading { font-family: "Manrope", -apple-system, sans-serif; }
a { color: var(--accent-light); text-decoration: none; }
a:hover { color: #b6ffe8; }
button { font-family: inherit; }
img { max-width: 100%; }

@keyframes bcGlow { 0%, 100% { opacity: .45; } 50% { opacity: .9; } }
@keyframes bcScale { 0%, 100% { transform: scale(.92); } 50% { transform: scale(1.08); } }
@keyframes mfGrain {
  0%, 100% { transform: translate(0,0); }
  10% { transform: translate(-2%,-4%); }
  20% { transform: translate(-6%,2%); }
  30% { transform: translate(4%,-8%); }
  40% { transform: translate(-2%,6%); }
  50% { transform: translate(-8%,1%); }
  60% { transform: translate(6%,-3%); }
  70% { transform: translate(2%,7%); }
  80% { transform: translate(-5%,-2%); }
  90% { transform: translate(5%,3%); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

[data-mf-fade] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s ease, transform .9s ease;
}
[data-mf-fade].mf-visible { opacity: 1; transform: translateY(0); }

/* ---------- каркас ---------- */

.page { position: relative; min-height: 100vh; overflow: hidden; }
.grain {
  position: absolute; inset: -10%; opacity: .035; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 3px);
  animation: mfGrain 9s steps(8) infinite;
}
.wrap { max-width: 1120px; margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }
main { position: relative; z-index: 2; }

/* ---------- шапка ---------- */

.site-header {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; position: relative;
  background: radial-gradient(circle at 50% 34%, #1a3f45, #0a121a 76%);
  box-shadow: 0 8px 20px rgba(70,165,151,.28), inset 0 1px 0 rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 1.5px; color: var(--text); }

.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent-light); }

/* Перемикач мови — справжні посилання на окремі URL, не JS-тогл:
   краулеру потрібні дві адреси, а не один DOM із display:none. */
.langnav {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px;
}
.langnav a {
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  padding: 8px 16px; border-radius: 999px;
  color: var(--dim);
}
.langnav a:hover { color: var(--muted); }
.langnav a[aria-current="true"] { background: var(--accent); color: #04140f; }

/* ---------- герой ---------- */

.hero {
  max-width: 760px; margin: 0 auto;
  padding: 48px 24px 36px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px;
}
.hero h1 {
  margin: 0; font-size: clamp(32px, 5vw, 48px); font-weight: 700;
  line-height: 1.12; letter-spacing: -.5px; color: var(--text);
}
.hero .lede { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 520px; margin: 0; }

.breathing { position: relative; width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.breathing .glow {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(70,165,151,.28), transparent 68%);
  animation: bcGlow 5.2s ease-in-out infinite;
}
.breathing .ring {
  position: absolute; width: 160px; height: 160px; border-radius: 50%;
  border: 1px solid rgba(70,165,151,.32);
  animation: bcScale 5.2s ease-in-out infinite;
}
.breathing .core {
  position: absolute; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, rgba(70,165,151,.5), rgba(70,165,151,.08) 72%);
  box-shadow: 0 0 70px rgba(70,165,151,.3), inset 0 2px 22px rgba(255,255,255,.08);
  animation: bcScale 5.2s ease-in-out infinite;
}

/* ---------- кнопки ---------- */

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; padding: 15px 26px; border-radius: 14px;
}
.btn-primary { background: var(--accent); border: 1px solid var(--accent); color: #04140f; }
.btn-primary:hover { background: #52bcaa; color: #04140f; }
.btn-ghost { background: transparent; border: 1px solid #2a3d4e; color: #ccd8e0; font-weight: 600; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

/* ---------- секції ---------- */

.section { padding: 8px 24px 72px; }
.section-title {
  text-align: center; font-size: 28px; font-weight: 700;
  color: var(--text); margin: 0 0 40px; letter-spacing: -.3px;
}
.band { background: var(--bg-band); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-inner {
  max-width: 760px; margin: 0 auto; padding: 64px 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
}
.band-inner h2 { font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: -.3px; margin: 0; }
.band-inner p { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 560px; margin: 0; }

/* ---------- денна дуга ---------- */

.arc-strip {
  max-width: 920px; margin: 0 auto;
  padding: 24px 24px 64px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}
.arc-pill {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 14px 24px 14px 14px; min-width: 250px;
}
.arc-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.arc-pill .label { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.arc-pill .value { font-size: 15px; font-weight: 600; color: var(--text); }

/* ---------- картки ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.card .icon-box { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.card h3 { font-size: 17px; font-weight: 700; color: var(--text); margin: 0; }
.card p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.card--accent { border-top: 3px solid var(--accent); }
.card--gold { border-top: 3px solid var(--gold); }
.card--blue { border-top: 3px solid var(--blue); }

.streak-card {
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--gold);
  border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.streak-card .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; }
.streak-card .number { font-family: "Manrope", sans-serif; font-weight: 300; font-size: 72px; line-height: 1; letter-spacing: -2px; color: var(--accent-light); }
.streak-card p { font-size: 14px; color: var(--muted); margin: 0; }

.pill-tag {
  background: var(--surface); border: 1px solid var(--border); color: #cdd9d4;
  font-size: 13.5px; font-weight: 600; padding: 9px 18px; border-radius: 999px;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- таблиця фактів ----------
   Свідомо прісна й скановна: це той блок, який модель цитує дослівно,
   коли її питають «що таке Onava». Поетика — вище, факти — тут. */

.facts {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  overflow: hidden;
}
.facts dl { margin: 0; display: grid; grid-template-columns: minmax(140px, 240px) 1fr; }
.facts dt, .facts dd {
  margin: 0; padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 15px; line-height: 1.5;
}
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: none; }
.facts dt { font-weight: 700; color: var(--muted); }
.facts dd { color: var(--text); }
@media (max-width: 560px) {
  .facts dl { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-top: 1px solid var(--border); }
  .facts dd { padding-top: 6px; border-top: none; }
  .facts dt:first-of-type + dd { border-top: none; }
}

/* ---------- скріншоти ---------- */

.shots {
  display: flex; gap: 20px; overflow-x: auto; padding: 4px 0 20px;
  scroll-snap-type: x mandatory;
}
.shot { flex: 0 0 auto; width: 240px; scroll-snap-align: center; }
.shot img { width: 100%; border-radius: 22px; border: 1px solid var(--border); display: block; }
.shot figcaption { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- проза (FAQ, фічі, приватність) ---------- */

.prose { font-size: 16px; line-height: 1.7; color: #cfdcd6; }
.prose h2 {
  font-size: 22px; font-weight: 700; color: var(--text);
  margin: 44px 0 14px; letter-spacing: -.2px;
}
.prose h3 { font-size: 17.5px; font-weight: 700; color: var(--text); margin: 30px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 700; }

.qa { border-top: 1px solid var(--border); padding: 26px 0; }
.qa:first-of-type { border-top: none; }
.qa h2 { font-size: 19px; font-weight: 700; color: var(--text); margin: 0 0 10px; }
.qa p { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 0 0 10px; }
.qa p:last-child { margin-bottom: 0; }

/* ---------- підвал ---------- */

.site-footer {
  position: relative; z-index: 2; padding: 36px 24px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
}
.site-footer .copy { font-size: 13px; color: var(--dim); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; }
