:root {
  --paper: #F3F6F7;
  --surface: #FFFFFF;
  --ink: #0F1D27;
  --mist: #52636E;
  --line: #DCE4E8;
  --teal: #15B392;
  --blue: #1C89BF;
  --cobalt: #225EE3;
  --brand: linear-gradient(135deg, var(--teal) 0%, var(--blue) 50%, var(--cobalt) 100%);
  --corner: var(--cobalt);
  --kbd-bg: #FFFFFF;
  --kbd-edge: #C9D3D9;
  --radius-l: 28px;
  --radius-m: 18px;
  --wrap: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0A1520;
    --surface: #102130;
    --ink: #E6EEF2;
    --mist: #93A5B1;
    --line: #1E3344;
    --corner: #3FD1B0;
    --kbd-bg: #172C3D;
    --kbd-edge: #0A1520;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }

a:focus-visible, .download:focus-visible {
  outline: 3px solid var(--corner);
  outline-offset: 4px;
  border-radius: 12px;
}

main > section, .top, .foot {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

/* Шапка */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}
.brand img { border-radius: 8px; }
.top-link { color: var(--mist); text-decoration: none; font-size: 15px; }
.top-link:hover { color: var(--ink); }

/* Первый экран */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0 96px;
}
.hero h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

/* Видоискатель вокруг заголовка — фирменный знак: уголки как на иконке */
.viewfinder {
  position: relative;
  display: inline-block;
  padding: 26px 30px;
  margin: 0 0 30px -30px;
}
.viewfinder .c {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 0 solid var(--corner);
  animation: frame 0.7s cubic-bezier(.2,.9,.3,1) both 0.15s;
}
.viewfinder .tl { top: 0; left: 0; border-top-width: 5px; border-left-width: 5px; border-top-left-radius: 12px; --dx: -18px; --dy: -18px; }
.viewfinder .tr { top: 0; right: 0; border-top-width: 5px; border-right-width: 5px; border-top-right-radius: 12px; --dx: 18px; --dy: -18px; }
.viewfinder .bl { bottom: 0; left: 0; border-bottom-width: 5px; border-left-width: 5px; border-bottom-left-radius: 12px; --dx: -18px; --dy: 18px; }
.viewfinder .br { bottom: 0; right: 0; border-bottom-width: 5px; border-right-width: 5px; border-bottom-right-radius: 12px; --dx: 18px; --dy: 18px; }
.viewfinder::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  animation: flash 0.5s ease-out both 0.8s;
}
@keyframes frame {
  from { transform: translate(var(--dx), var(--dy)); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes flash {
  0% { opacity: 0; }
  20% { opacity: 0.85; }
  100% { opacity: 0; }
}

.lead { font-size: 20px; color: var(--mist); max-width: 34em; margin-bottom: 34px; }
.req { margin-top: 14px; font-size: 15px; color: var(--mist); }

.download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 28px 17px 24px;
  border-radius: 16px;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 10px 28px -10px rgba(34, 94, 227, 0.65);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.download:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(34, 94, 227, 0.75); }
.download:active { transform: translateY(1px); }
.download svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.hero-shot { margin: 0; }
.hero-shot img { border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(15, 29, 39, 0.45); }

/* Возможности */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-bottom: 110px;
}
.features h2 { grid-column: 1 / -1; margin-bottom: 18px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 30px;
  display: grid;
  align-content: start;
  gap: 10px;
}
.feature p { color: var(--mist); }
.feature-wide {
  grid-column: 1 / -1;
  grid-template-columns: 1.55fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 26px 40px 26px 26px;
  border-radius: var(--radius-l);
}
.feature-wide > div { display: grid; gap: 14px; }
.feature-wide h3 { font-size: 30px; }
.feature-img img { border-radius: 14px; margin-bottom: 14px; }
.feature-img > div { display: grid; gap: 10px; }
.hint { font-size: 15px; color: var(--mist); }

/* Цифры */
.light { padding-bottom: 110px; }
.section-lead { color: var(--mist); font-size: 19px; margin: 12px 0 40px; max-width: 36em; }
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 2px solid var(--ink);
}
.numbers > div { padding: 22px 22px 0 0; display: grid; gap: 2px; align-content: start; }
.numbers > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.numbers dt { color: var(--mist); font-size: 15px; order: 0; }
.numbers dd {
  margin: 0;
  font-family: ui-rounded, -apple-system, "SF Pro Rounded", sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.numbers small { font-size: 0.42em; margin-left: 4px; letter-spacing: 0; }
.numbers p { font-size: 15px; color: var(--mist); }

/* Приватность */
main > section.private {
  width: min(var(--wrap) + 80px, 100% - 20px);
  border-radius: 34px;
  background: var(--brand);
  color: #fff;
  padding: 72px 40px;
  margin-bottom: 110px;
}
.private-inner {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: start;
}
.lock { width: 76px; height: 76px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lock circle { fill: #fff; stroke: none; }
.private p { font-size: 20px; margin-top: 14px; opacity: 0.94; max-width: 32em; }

/* Клавиши */
.keys { padding-bottom: 110px; }
.keylist { list-style: none; margin: 34px 0 20px; padding: 0; display: grid; gap: 0; }
.keylist li {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.keylist li:first-child { border-top: 1px solid var(--line); }
.combo { display: flex; gap: 8px; flex-wrap: wrap; }
kbd {
  font: 600 15px/1 -apple-system, BlinkMacSystemFont, sans-serif;
  min-width: 46px;
  padding: 12px 14px 14px;
  text-align: center;
  border-radius: 10px;
  background: var(--kbd-bg);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 3px 0 var(--kbd-edge);
}

/* Установка */
.install { padding-bottom: 120px; }
.steps {
  list-style: none;
  counter-reset: step;
  margin: 40px 0 44px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.steps li::before {
  content: counter(step);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font: 700 21px/1 ui-rounded, -apple-system, sans-serif;
  margin-bottom: 6px;
}
.steps p { color: var(--mist); }
.steps b { color: var(--ink); font-weight: 650; }

/* Подвал */
.foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 30px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 15px;
}
.foot img { border-radius: 7px; }
.foot-req { margin-left: auto; }

/* Планшет и телефон */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 28px 0 72px; }
  .feature-wide { grid-template-columns: 1fr; padding: 20px 20px 28px; gap: 24px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .numbers > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .numbers > div:nth-child(n+3) { padding-top: 28px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .viewfinder { padding: 16px 14px; margin-left: -12px; }
  .viewfinder .c { width: 24px; height: 24px; }
  .lead { font-size: 18px; }
  .download { width: 100%; justify-content: center; }
  .features { grid-template-columns: 1fr; padding-bottom: 80px; }
  .feature { padding: 24px; }
  .feature-wide h3 { font-size: 25px; }
  .light, .keys { padding-bottom: 80px; }
  main > section.private { padding: 44px 24px; margin-bottom: 80px; border-radius: 26px; }
  .private-inner { grid-template-columns: 1fr; gap: 20px; }
  .lock { width: 56px; height: 56px; }
  .private p { font-size: 18px; }
  .keylist li { grid-template-columns: 1fr; gap: 10px; }
  .foot { flex-wrap: wrap; }
  .foot-req { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .viewfinder .c, .viewfinder::after { animation: none; }
  .download { transition: none; }
}
