:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --tint: #efe9e0;
  --ink: #1d1a16;
  --muted: #6c645a;
  --line: #e2dbd0;
  --accent: #d9502a;
  --accent-ink: #ffffff;
  --accent-soft: #fbe6dd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(40, 30, 20, .06), 0 8px 24px rgba(40, 30, 20, .08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, "Noto Sans", Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent-soft); color: var(--ink); }
.ico, .f-ico, .ico-a, .ico-i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .6em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* шапка */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 243, 238, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 20px; margin-left: auto; }
.top nav a, .lang { color: var(--muted); text-decoration: none; font-size: .95rem; }
.top nav a:hover, .lang:hover { color: var(--ink); }
.top nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.lang { border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; background: var(--surface); }

/* кнопки */
.btn {
  display: inline-flex; flex-direction: column; justify-content: center;
  padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.25;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:focus-visible, .tabs button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary small { color: rgba(255, 255, 255, .8); }
.btn-ghost { background: transparent; }
.btn-big { padding: 14px 22px; font-size: 1.05rem; flex-direction: row; }

/* перший екран */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -.03em; }
.lead { font-size: 1.2rem; color: var(--muted); margin: 20px 0 28px; max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { color: var(--muted); font-size: .9rem; margin-top: 16px; }
.hero-shots { position: relative; padding-bottom: 9%; }
.hero-shots img { filter: drop-shadow(0 18px 36px rgba(40, 30, 20, .18)); }
.h1-shot { width: 100%; position: relative; z-index: 1; }
.h3-shot { position: absolute; z-index: 2; width: 58%; right: -6%; bottom: 0; }

/* розділи */
.sec { padding: 72px 0; }
.sec-tint { background: var(--tint); }
.sub { color: var(--muted); max-width: 40em; margin: -.2em 0 28px; font-size: 1.06rem; }
.cap { color: var(--muted); text-align: center; font-size: 1rem; margin: 40px 0 0; }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
.features li, .rows li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 24px 0; border-top: 1px solid var(--line); }
.features h3, .rows h3 { font-size: 1.06rem; margin: 2px 0 6px; }
.features p, .rows p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.f-ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.rows { list-style: none; padding: 0; margin: 0; }
.rows li:last-child { border-bottom: 1px solid var(--line); }
/* два стовпці: текст і список */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.skins-shot { margin: 28px 0 0; }
.skins-shot img, .skins-mini img { width: 100%; height: auto; display: block; }
.skins-mini { margin-top: 36px; align-items: center; }
.skins-mini figure { margin: 0; max-width: 460px; justify-self: end; width: 100%; }
.soon { font-weight: 500; }
.eq-shot { margin: 0; }
.eq-shot img { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.10); }
.split-rev .split-text { order: 2; }
.split .sub { margin-bottom: 18px; }
.aside { color: var(--muted); font-size: 1rem; line-height: 1.65; margin: 0 0 14px; max-width: 34em; }
.aside .ico-i { width: 20px; height: 20px; vertical-align: -4px; margin-right: 8px; color: var(--accent); }
.aside.safe { display: flex; gap: 12px; align-items: flex-start; max-width: 52em; margin-top: 28px; }
.aside.safe .ico-i { flex: none; margin: 3px 0 0; }
.ico-a { width: 18px; height: 18px; vertical-align: -3px; margin-left: 2px; transition: transform .15s ease; }
a:hover > .ico-a { transform: translateX(3px); }

/* знімки */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 24px; }
.tabs button { font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.shots[hidden] { display: none; }
.shots figure { margin: 0; }
.shots img { filter: drop-shadow(0 6px 16px rgba(40, 30, 20, .10)); }
.shots-mini { grid-template-columns: repeat(2, 1fr); margin-top: 20px; max-width: 900px; margin-inline: auto; }
.shots-term { align-items: end; }

/* пульт */
.steps { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: st; border-top: 1px solid var(--line); padding: 22px 0 0; }
.steps li::before { content: counter(st); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.steps h3 { font-size: 1.1rem; margin: 12px 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 1rem; }
.note-box { margin: 20px 0 0; padding: 14px 18px; background: var(--accent-soft); border-radius: var(--radius); font-size: .95rem; }
.sec-top { padding-top: 24px; }
.rm-shots { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 20px; margin-top: 36px; align-items: start; }
.rm-shots figure { margin: 0; }
.rm-phone img { border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.rm-mac { display: grid; gap: 12px; }
.rm-mac img { margin-inline: auto; }

/* завантаження */
.ver { font-size: .55em; font-weight: 600; color: var(--muted); vertical-align: middle; margin-left: 8px; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.dl-card.is-mine { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dl-card h3 { font-size: 1.35rem; }
.dl-card h4 { font-size: .85rem; font-weight: 600; color: var(--muted); margin-top: 10px; }
.dl-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dl-card .row .btn { text-align: center; align-items: center; }
.note { color: var(--muted); font-size: .94rem; margin: 6px 0 0; }
pre { margin: 0; background: #23201c; color: #f4efe8; border-radius: 10px; padding: 12px 14px; font-size: .82rem; overflow-x: auto; }
code { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; }
.more { font-weight: 600; text-decoration: none; margin-top: 4px; display: inline-block; }
.more:hover { text-decoration: underline; }
.dl-foot { text-align: center; margin-top: 24px; color: var(--muted); }

/* термінал */
.term { display: grid; gap: 28px; }
.term > div:first-child { max-width: 46em; }
.term p { color: var(--muted); font-size: 1.05rem; }

/* сторінки «Що нового» і «Допомога» */
.prose { max-width: 820px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.02em; margin-bottom: .4em; }
.prose h2 { font-size: 1.35rem; margin: 2em 0 .5em; }
.prose p, .prose li { color: #3b352e; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose code { background: var(--tint); padding: .1em .35em; border-radius: 5px; font-size: .9em; overflow-wrap: anywhere; }
.prose pre code { background: none; padding: 0; }
.prose pre { margin: 1em 0; max-width: 100%; }
.prose pre code { overflow-wrap: normal; }
.prose table { border-collapse: collapse; margin: 1em 0; display: block; max-width: 100%; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.ver-block { border-top: 1px solid var(--line); }
.ver-block:first-of-type { border-top: 0; }
.ver-block h2 { margin-top: 1.4em; }
.badge { display: inline-block; vertical-align: middle; font-size: .78rem; font-weight: 600; color: var(--accent-ink); background: var(--accent); padding: 3px 8px; border-radius: 999px; margin-left: 8px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0 8px; }
.toc h2 { font-size: .85rem; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.toc ul { margin: 0; padding-left: 1.1em; columns: 2; column-gap: 28px; }
.toc li { margin: .25em 0; break-inside: avoid; font-size: .95rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.help-more { margin-top: 2.5em; padding: 16px 20px; background: var(--accent-soft); border-radius: var(--radius); }

/* низ */
.foot { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: .92rem; }
.foot p { margin: 4px 0; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .features, .dl-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 8px; }
  .split-rev .split-text { order: 0; }
  .hero-shots { max-width: 620px; }
  .steps { grid-template-columns: 1fr; }
  .rm-shots { grid-template-columns: 1fr 1fr; }
  .rm-mac { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: start; }
  .top-in { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 8px 16px; }
  .top nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; gap: 10px; padding-bottom: 2px; scrollbar-width: none; }
  .top nav a { font-size: .86rem; }
  .top nav a { white-space: nowrap; }
  .lang { margin-left: auto; }
  .toc ul { columns: 1; }
}
@media (max-width: 620px) {
  .top nav a:nth-child(2) { display: none; }
  .features, .dl-grid, .shots, .shots-mini { grid-template-columns: 1fr; }
  .features li, .rows li { padding: 18px 0; }
  .h3-shot { right: 0; width: 64%; }
  .shots figure:nth-child(n+2) { display: none; }
  .shots.shots-mini figure, .shots.shots-term figure { display: block; }
  .rm-mac { grid-template-columns: 1fr; }
  .sec { padding: 52px 0; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
