/* Промо-сайт PillsTracker: общие стили русской и английской страниц. */
/* Раскладка: hero как на концепт-борде (оффер слева, два телефона с выносками),
   ниже чередуются блоки «текст + живые скрины», приватность - тёмная полоса, в конце вопросы. */
:root {
  --bg: #F3F8FC;
  --bg-blob: #E2F0F7;
  --surface: #FFFFFF;
  --ink: #12233F;
  --ink-soft: #4C5D78;
  --ink-faint: #8392A8;
  --teal: #1C8C9E;
  --teal-soft: #DDF1F4;
  --primary: #2F6FED;
  --ok: #2E9E5B;
  --cross: #E0464E;        /* перечёркивание в «Чего здесь нет» */
  --line: #C9DCEA;
  --frame: #2A2F38;
  --band: #0F2036;          /* тёмная полоса «приватность» в обеих темах */
  --band-ink: #EAF2FB;
  --band-soft: #9FB3CB;

  --f-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-body: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --f-hand: "Caveat", "Segoe Script", cursive;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1726; --bg-blob: #10243A; --surface: #13263C;
    --ink: #EAF2FB; --ink-soft: #A9BBD0; --ink-faint: #6F849E;
    --teal: #4CC3D3; --teal-soft: #123548; --primary: #8FB8FF; --ok: #4CC27E; --cross: #FF6A70;
    --line: #23405E; --frame: #05080D; --band: #06101C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1726; --bg-blob: #10243A; --surface: #13263C;
  --ink: #EAF2FB; --ink-soft: #A9BBD0; --ink-faint: #6F849E;
  --teal: #4CC3D3; --teal-soft: #123548; --primary: #8FB8FF; --ok: #4CC27E; --cross: #FF6A70;
  --line: #23405E; --frame: #05080D; --band: #06101C;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h2, h3 { text-wrap: balance; }
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: 24px; }
.eyebrow { font: 600 12px/1 var(--f-body); letter-spacing: .32em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 18px; }

/* ── навигация ─────────────────────────────── */
.nav { position: relative; z-index: 5; display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none;
  font: 800 20px/1 var(--f-display); letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { text-decoration: none; color: var(--ink-soft); font-size: 15px; }
.nav ul a:hover { color: var(--ink); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg); }
.lang a { text-decoration: none; font: 600 12px/1 var(--f-body); letter-spacing: .08em;
  padding: 7px 11px; border-radius: 999px; color: var(--ink-faint); }
.lang a[aria-current] { background: var(--ink); color: var(--bg); }

/* ── телефон ───────────────────────────────── */
.phone { width: clamp(170px, 14.5vw, 225px); aspect-ratio: 1080 / 2400; border-radius: 34px;
  padding: 7px; background: var(--frame); max-width: 100%; flex: none;
  box-shadow: 0 30px 60px -20px rgba(18, 35, 63, .35), inset 0 0 0 1.5px rgba(255,255,255,.12); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; }
.phone.lg { width: clamp(220px, 23vw, 320px); border-radius: 42px; padding: 9px; }
.phone.lg img { border-radius: 33px; }

/* ── hero ──────────────────────────────────── */
.hero { position: relative; isolation: isolate; padding-block: 28px 64px; overflow-x: clip; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: var(--bg-blob); }
.hero::before { width: 600px; height: 600px; right: 7%; top: 70px; }
.hero::after  { width: 280px; height: 280px; right: -90px; bottom: 60px; opacity: .7; }
.leaves { position: absolute; z-index: -1; left: -70px; bottom: -30px; width: 230px;
  opacity: .55; transform: rotate(-28deg); filter: saturate(.8); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 3.7fr) minmax(0, 8.3fr); gap: 24px; align-items: center; }
.wordmark { font: 800 clamp(48px, 7vw, 88px)/0.95 var(--f-display); letter-spacing: -0.045em; margin: 0; }
.wordmark span { color: var(--teal); }
.claim { font: 500 clamp(24px, 2.6vw, 32px)/1.25 var(--f-display); letter-spacing: -0.015em;
  margin: 22px 0 0; max-width: 15em; }
.claim-sub { font: 500 clamp(17px, 1.6vw, 20px)/1.4 var(--f-body); color: var(--ink-soft); margin: 12px 0 0; max-width: 24em; }
.rule { width: 44px; height: 3px; background: var(--teal); border-radius: 2px; margin: 26px 0; }
.lead { color: var(--ink-soft); max-width: 31em; margin: 0; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px;
  border-radius: 14px; background: var(--ink); color: var(--bg); text-decoration: none; cursor: default; }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font: 500 11px/1.2 var(--f-body); letter-spacing: .06em; opacity: .7; text-transform: uppercase; }
.store b { font: 700 17px/1.2 var(--f-display); }
.cta .more { color: var(--teal); font-weight: 500; text-decoration: none; padding: 12px 6px; }
.cta .more:hover { text-decoration: underline; }
.meta { margin-top: 18px; font-size: 14px; color: var(--ink-faint); }
.hand { font: 500 30px/1.05 var(--f-hand); color: var(--ink-soft); transform: rotate(-8deg);
  margin: 38px 0 0 8px; max-width: 12em; }
.hand svg { display: inline-block; width: 20px; height: 20px; vertical-align: -2px; color: var(--teal); }

.stage { position: relative; display: grid; grid-template-columns: minmax(0, 190px) auto minmax(0, 190px);
  justify-content: space-between; align-items: center; gap: 44px; }
.phones { position: relative; display: flex; align-items: flex-start; }
.phones .phone + .phone { margin-left: -10px; margin-top: 56px; z-index: -1; }
.notif { position: absolute; left: -36px; right: 20px; top: 79%; border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 50px -16px rgba(18, 35, 63, .45); border: 1px solid var(--line); }
.notif-tag { position: absolute; right: 18px; top: calc(79% - 44px); z-index: 2;
  font: 700 22px/1 var(--f-hand); color: var(--teal); background: var(--surface);
  border: 1px solid var(--line); padding: 6px 12px 7px; border-radius: 999px;
  transform: rotate(-4deg); white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(18, 35, 63, .4); }

.notes { display: grid; gap: 40px; }
.note { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 10px; width: 100%; position: relative; }
.note svg { width: 26px; height: 26px; color: var(--teal); grid-row: span 2; }
.note h3 { font: 700 15px/1.3 var(--f-display); margin: 4px 0 0; }
.note p { grid-column: 2; margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.notes.left .note::after, .notes.right .note::before { content: ""; position: absolute; top: 18px;
  width: 46px; height: 1px; background: var(--line); }
.notes.left .note::after { right: -38px; width: 28px; }
.notes.right .note::before { left: -38px; width: 28px; }
.notes .note i { position: absolute; top: 15px; width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px solid var(--teal); background: var(--bg); }
.notes.left .note i { right: -42px; }
.notes.right .note i { left: -42px; }

/* ── «Чего здесь нет» ──────────────────────── */
.without { margin-top: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 28px; padding: 30px 34px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; }
.without-head { position: relative; display: flex; align-items: center; gap: 16px;
  padding-right: 36px; border-right: 1px solid var(--line); }
.without-head svg { width: 54px; height: 54px; color: var(--teal); flex: none; }
.without-head h2 { font: 800 30px/1 var(--f-display); letter-spacing: -0.03em; margin: 0; }
.without-head h2 span { display: block; }
.without-head .hand-note { position: absolute; right: 18px; bottom: -26px; font: 700 21px/1 var(--f-hand);
  color: var(--teal); transform: rotate(-7deg); white-space: nowrap; }
.without ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.without li { display: grid; gap: 6px; align-content: start; }
.without b { font: 800 19px/1.2 var(--f-display); letter-spacing: -0.01em; justify-self: start; position: relative; }
/* две тонкие красные линии крестом поверх слова */
.without b::before, .without b::after { content: ""; position: absolute; left: -6%; top: 50%; width: 112%; height: 1.5px;
  background: var(--cross); border-radius: 1px; }
.without b::before { transform: rotate(12deg); }
.without b::after  { transform: rotate(-12deg); }
.without li span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }

/* ── нижние блоки ──────────────────────────── */
.section { padding-block: 96px 0; }
.section h2 { font: 800 clamp(30px, 3.6vw, 46px)/1.08 var(--f-display); letter-spacing: -0.035em; margin: 0; max-width: 15em; }
.section .intro { color: var(--ink-soft); max-width: 34em; margin: 18px 0 0; }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.split.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.split.flip > :first-child { order: 2; }
.split > *, .hero-grid > *, .band-grid > *, .faq > * { min-width: 0; }
.duo { display: flex; justify-content: center; align-items: flex-start; gap: 22px; }
.duo .phone:nth-child(2) { margin-top: 64px; }
/* два телефона никогда не шире своей колонки */
.duo .phone.lg { width: min(clamp(220px, 23vw, 320px), calc((100% - 22px) / 2)); }
.duo .phone.lg:only-child { width: clamp(220px, 23vw, 320px); }

.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.checks li::before { content: ""; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks b { font-weight: 600; }
.checks span { color: var(--ink-soft); }

/* напоминания: уведомление крупно + проверка */
.remind-visual { position: relative; display: grid; gap: 18px; justify-items: center; }
.remind-visual .shade { width: min(100%, 520px); border-radius: 26px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -24px rgba(18, 35, 63, .45); }
.remind-visual .shade img { width: 100%; }
.test-chip { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.test-chip svg { width: 22px; height: 22px; color: var(--teal); }
.test-chip small { display: block; color: var(--ink-faint); font-size: 13px; }

/* цитата из приложения */
.quote { margin: 28px 0 0; padding: 18px 22px; border-radius: 18px; background: var(--teal-soft);
  font: 600 19px/1.4 var(--f-display); letter-spacing: -0.01em; max-width: 26em; }
.quote small { display: block; font: 400 14px/1.4 var(--f-body); color: var(--ink-soft); margin-top: 6px; letter-spacing: 0; }

/* статистика: крупная цифра */
.big-number { display: flex; align-items: baseline; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.big-number b { font: 800 clamp(72px, 9vw, 120px)/0.9 var(--f-display); letter-spacing: -0.05em; color: var(--ok); }
.big-number span { color: var(--ink-soft); max-width: 13em; }

/* формы иконок */
.shapes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.shapes span { font-size: 14px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); background: var(--surface); }

/* приватность - тёмная полоса */
.band { margin-top: 110px; background: var(--band); color: var(--band-ink); padding-block: 88px; position: relative; overflow: hidden; }
.band .eyebrow { color: var(--band-soft); }
.band h2 { color: var(--band-ink); }
.band .intro { color: var(--band-soft); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.zero { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.zero b { font: 800 clamp(96px, 12vw, 150px)/0.8 var(--f-display); letter-spacing: -0.06em; color: #4CC3D3; }
.zero span { font: 600 20px/1.3 var(--f-display); max-width: 11em; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: baseline; color: var(--band-soft); }
.steps li::before { content: counter(s); font: 700 13px/1 var(--f-body); width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid #2E4B6B; color: var(--band-ink); }
.steps b { color: var(--band-ink); font-weight: 500; }
.band .phone { box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6), inset 0 0 0 1.5px rgba(255,255,255,.12); }
.backup { margin-top: 26px; padding-top: 22px; border-top: 1px solid #23405E; color: var(--band-soft); font-size: 15px; max-width: 32em; }
.backup b { color: var(--band-ink); font-weight: 600; }

/* вопросы */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font: 700 18px/1.35 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 500 26px/1 var(--f-body); color: var(--teal); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); max-width: 40em; }
.faq summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 6px; }

/* финал и подвал */
.final { margin-top: 110px; text-align: center; display: grid; justify-items: center; gap: 22px; padding-block: 20px 90px; }
.final img { width: 84px; height: 84px; }
.final h2 { font: 800 clamp(30px, 3.6vw, 44px)/1.1 var(--f-display); letter-spacing: -0.035em; margin: 0; max-width: 16em; }
.final .hand { transform: rotate(-4deg); margin: 0; max-width: none; }
footer { border-top: 1px solid var(--line); padding-block: 26px 22px; color: var(--ink-faint); font-size: 14px; }
footer .wrap.legal { justify-content: center; text-align: center; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }

/* ── адаптив ───────────────────────────────── */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .hand { display: none; }
  .without { grid-template-columns: 1fr; gap: 30px; }
  .without-head { border-right: 0; padding-right: 0; }
  .without ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav ul { display: none; }
  .lang { margin-left: auto; }
  .stage { grid-template-columns: 1fr; justify-items: center; gap: 36px; }
  .notes { order: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; }
  .notes .note::before, .notes .note::after, .notes .note i { display: none; }
  .split, .split.flip, .band-grid, .faq { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > :first-child { order: 0; }
  .section { padding-block: 72px 0; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .phone { width: 44vw; border-radius: 26px; padding: 5px; }
  .phone img { border-radius: 21px; }
  .phone.lg { width: 42vw; border-radius: 26px; padding: 5px; }
  .phone.lg img { border-radius: 21px; }
  .phones .phone + .phone { margin-left: -8px; margin-top: 40px; }
  .notif { left: -12px; right: 12px; }
  .notif-tag { right: 6px; font-size: 19px; }
  .notes { grid-template-columns: 1fr; }
  .without { padding: 24px 20px; }
  .without ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo { gap: 12px; }
  .duo .phone:nth-child(2) { margin-top: 40px; }
  .zero { gap: 14px; }
  .zero span { font-size: 17px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .phone, .notif { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero .phone + .phone { animation-delay: .08s; }
  .notif { animation-delay: .35s; }
  @keyframes rise { from { transform: translateY(14px); opacity: .0001; } }
}
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
