/* СтійкаПРРО — сайт. Світлий, повітряний стиль: Manrope, білі картки, чорні кнопки-пігулки,
   червоний акцент з іконки — дозовано. */
:root {
  color-scheme: light;
  --ink: #0e0e11;
  --ink-soft: rgba(14, 14, 17, 0.42);
  --bg: #f6f5f8;
  --card: #ffffff;
  --text: #0e0e11;
  --muted: #6a6a75;
  --line: #e9e8ee;
  --accent: #ef4f55;
  --accent-soft: #fdeced;
  --ok: #1fa35c;
  --ok-soft: #e4f6ec;
  --r-lg: 28px;
  --r-md: 20px;
  --shadow: 0 1px 2px rgba(14,14,17,.04), 0 12px 32px -12px rgba(14,14,17,.12);
  --glass: rgba(255, 255, 255, 0.72);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 Manrope, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.55; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
h2 { font-size: clamp(30px, 4.2vw, 44px); }
h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.25; }
.fade { color: var(--ink-soft); }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.center { text-align: center; }
.sub { color: var(--muted); max-width: 560px; margin: 14px auto 0; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -8px rgba(14,14,17,.5), inset 0 1px 0 rgba(255,255,255,.14); }
.btn-link { padding: 12px 4px; border-bottom: 1px solid var(--ink); border-radius: 0; font-size: 14px; }
.btn-light { background: #fff; color: var(--ink); }

/* Шапка-пігулка */
.top { position: sticky; top: 12px; z-index: 20; padding: 0 12px; }
.top-row {
  max-width: 1000px; margin: 0 auto; height: 54px; padding: 0 8px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--glass); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(255,255,255,.8); border-radius: 999px; box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--muted); }
.nav .btn { padding: 9px 16px; font-size: 13px; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Головний блок */
.hero { position: relative; padding: 56px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px 380px at 78% 30%, rgba(239,79,85,.13), transparent 70%),
    radial-gradient(600px 420px at 62% 60%, rgba(150,140,255,.16), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 22px; }
.lead { font-size: 16px; color: var(--muted); max-width: 440px; margin: 0 0 30px; }
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.chips li::before { content: "•"; margin-right: 8px; color: #c4c3cc; }
.chips li:first-child::before { content: none; }

.stage { position: relative; height: 560px; }
.phone {
  position: absolute; left: 50%; top: 10px; width: 260px; transform: translateX(-50%) rotate(-2deg);
  border-radius: 42px; padding: 9px; background: linear-gradient(145deg, #fdfdff, #dcdbe6);
  box-shadow: 0 40px 80px -30px rgba(40,30,90,.45), 0 0 0 1px rgba(255,255,255,.9) inset;
}
.phone img { border-radius: 34px; }
.glass {
  position: absolute; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: var(--shadow);
  padding: 12px 14px; font-size: 12px; line-height: 1.35;
}
.glass b { display: block; font-size: 13px; }
.g-ok { left: 0; top: 70px; display: flex; gap: 10px; align-items: center; }
.g-off { right: 0; top: 210px; width: 170px; }
.g-nfc { left: 18px; bottom: 90px; display: flex; gap: 10px; align-items: center; }
.g-sum { right: 18px; bottom: 30px; }
.ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ico-ok { background: var(--ok-soft); color: var(--ok); }
.ico-red { background: var(--accent-soft); color: var(--accent); }
.bar { height: 6px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 64%; background: var(--ink); border-radius: 3px; }
.g-sum .num { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { height: 500px; max-width: 420px; width: 100%; margin: 12px auto 0; }
  .phone { width: 220px; }
}
@media (max-width: 420px) { .g-off { width: 150px; } .glass { padding: 10px 12px; } }

/* Смуга фактів */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 24px; }
.facts div { display: flex; gap: 12px; align-items: center; padding: 20px 18px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.facts div + div { border-left: 1px solid var(--line); }
.facts b { color: var(--text); display: block; font-size: 14px; }
.facts .ico { background: #fff; box-shadow: var(--shadow); color: var(--ink); }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Розділи */
.section { padding: 96px 0 0; }
.section:last-of-type { padding-bottom: 96px; }
.head { margin-bottom: 40px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--card); border-radius: var(--r-md); padding: 26px; box-shadow: var(--shadow); }
.card .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); color: var(--ink); margin-bottom: 18px; }
.card p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.card.dark { background: var(--ink); color: #fff; }
.card.dark p { color: #b4b4bf; }
.card.dark .ico { background: #26262d; color: #fff; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } .section { padding-top: 72px; } }

.band {
  margin-top: 14px; background: var(--ink); color: #fff; border-radius: var(--r-md);
  display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 20px; align-items: center; padding: 22px 26px;
}
.band h3 { font-size: 18px; }
.band span { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #c9c9d2; }
.band span::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid #3a3a44;
  display: grid; place-items: center; font-size: 11px; color: #fff;
}
@media (max-width: 820px) { .band { grid-template-columns: 1fr; } }

/* ПК + телефон */
.panel {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; position: relative;
}
.panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 320px at 80% 50%, rgba(150,140,255,.14), transparent 70%);
}
.panel-text { padding: 44px; position: relative; }
.panel-text h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 16px; }
.panel-text > p { color: var(--muted); margin: 0 0 20px; }
.rows { display: grid; gap: 10px; }
.row { display: flex; gap: 14px; align-items: flex-start; background: var(--bg); border-radius: 16px; padding: 14px 16px; font-size: 14px; color: var(--muted); }
.row b { color: var(--text); display: block; }
.row .ico { background: #fff; color: var(--ink); }
.panel-shots { display: flex; gap: 16px; justify-content: center; padding: 40px 24px; position: relative; }
.panel-shots img { width: 44%; max-width: 210px; border-radius: 26px; border: 6px solid #f1f0f5; box-shadow: 0 30px 60px -30px rgba(40,30,90,.4); }
.panel-shots img:last-child { margin-top: 48px; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } .panel-text { padding: 28px 22px 0; } }

/* Галерея */
.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 18px; scrollbar-width: thin; }
.gallery figure { margin: 0; flex: 0 0 200px; scroll-snap-align: start; }
.gallery img { border-radius: 24px; border: 5px solid #fff; box-shadow: var(--shadow); }
.gallery figcaption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; font-weight: 500; }

/* Кроки */
.steps-wrap { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 44px; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; top: 15px; left: 16px; right: 16%; height: 2px; background: var(--line); }
.steps li { position: relative; font-size: 14px; color: var(--muted); }
.steps .n {
  width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px;
  display: grid; place-items: center; margin-bottom: 16px; position: relative; box-shadow: 0 0 0 6px #fff;
}
.steps b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
@media (max-width: 760px) {
  .steps-wrap { padding: 28px 22px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps::before { top: 16px; bottom: 16px; left: 15px; right: auto; width: 2px; height: auto; }
  .steps li { padding-left: 50px; }
  .steps .n { position: absolute; left: 0; top: 0; }
}

/* Завантаження */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dl-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.dl-card.dark { background: var(--ink); color: #fff; }
.dl-card.dark .muted { color: #a9a9b4; }
.dl-card h3 { font-size: 26px; }
.dl-card p { margin: 0; }
.dl-card .btn { align-self: flex-start; margin-top: 6px; }
.os { display: flex; align-items: center; gap: 12px; }
.os .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--bg); color: var(--ink); }
.dl-card.dark .os .ico { background: #26262d; color: #fff; }
@media (max-width: 760px) { .dl { grid-template-columns: 1fr; } .dl-card { padding: 26px 22px; } }

/* Ціна */
.price { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 56px 24px; text-align: center; position: relative; overflow: hidden; }
.price::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px 220px at 50% 0%, rgba(239,79,85,.10), transparent 70%); }
.price .big { font-size: clamp(56px, 9vw, 96px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin: 18px 0 8px; position: relative; }
.price .big small { font-size: .32em; letter-spacing: -0.02em; color: var(--muted); font-weight: 600; }
.price p { color: var(--muted); max-width: 480px; margin: 10px auto 0; position: relative; }

/* Питання */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.faq details { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 28px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
@media (max-width: 820px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Підвал */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); }
.foot-links a:hover { color: var(--text); }

/* 404 */
.nf { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.nf h1 { font-size: 44px; margin-bottom: 10px; }
.nf .btn { margin-top: 18px; }

/* Кроки тестувальника (картка Android) */
.tsteps { margin: 2px 0 4px; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 10px; font-size: 14px; color: #c9c9d2; }
.tsteps li { counter-increment: t; position: relative; padding-left: 34px; }
.tsteps li::before {
  content: counter(t); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: #26262d; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.tsteps a, .faq a { text-decoration: underline; text-underline-offset: 3px; }
.tsteps a { color: #fff; }
