/* Лендинг в стиле macOS: обои, строка меню, окна, док. Тема по настройке системы. */
:root {
  --wall: #d6d6da;
  --win: rgba(255, 255, 255, .82);
  --win-solid: #ffffff;
  --bar: rgba(255, 255, 255, .72);
  --titlebar: rgba(236, 236, 240, .9);
  --inner: rgba(0, 0, 0, .045);
  --text: #1d1d1f;
  --muted: #55555c;
  --line: rgba(0, 0, 0, .12);
  --main: #0062d1;
  --main-hover: #004fa8;
  --on-main: #ffffff;
  --soft: rgba(0, 98, 209, .12);
  --warn-bg: #fff0c9;
  --warn-text: #6b4a00;
  --shadow: 0 20px 50px rgba(30, 20, 80, .25), 0 0 0 1px rgba(0, 0, 0, .08);
  --blur: saturate(180%) blur(24px);
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --wall: #1c1c1e;
    --win: rgba(40, 40, 46, .8);
    --win-solid: #2a2a30;
    --bar: rgba(30, 30, 34, .7);
    --titlebar: rgba(58, 58, 64, .92);
    --inner: rgba(255, 255, 255, .06);
    --text: #f5f5f7;
    --muted: #b4b4bd;
    --line: rgba(255, 255, 255, .14);
    --main: #62a8ff;
    --main-hover: #8bbfff;
    --on-main: #04101f;
    --soft: rgba(98, 168, 255, .18);
    --warn-bg: #3a2f10;
    --warn-text: #ffd98a;
    --shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .1);
  }
}
/* Если в системе просят меньше прозрачности, блюр отключаем и делаем фон плотным */
@media (prefers-reduced-transparency: reduce) {
  :root { --win: var(--win-solid); --bar: var(--win-solid); --titlebar: var(--win-solid); --blur: none; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--wall) fixed;
  min-height: 100vh;
  padding: 44px 0 110px; /* место под строку меню и док */
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 7vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--main); }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--main); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 14px; }
section { padding: 14px 0; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 640px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--main); margin-bottom: 10px; }
.section-head { margin-bottom: 24px; }

/* Окно */
.window {
  background: var(--win);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.titlebar {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  background: var(--titlebar);
  border-bottom: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--muted);
}
.titlebar i { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.titlebar i:nth-child(1) { background: #ff5f57; }
.titlebar i:nth-child(2) { background: #febc2e; }
.titlebar i:nth-child(3) { background: #28c840; }
.titlebar span { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; padding: 0 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { padding: 24px 18px 28px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px;
  border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--main); color: var(--on-main);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  transition: background-color .2s, transform .15s;
}
.btn:hover { background: var(--main-hover); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--inner); color: var(--text); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-row .btn { flex: 1 1 220px; }

/* Строка меню */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: var(--bar);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 36px; max-width: none; padding: 0 14px; }
.brand { font-weight: 800; font-size: .95rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.nav { display: none; gap: 4px; margin-right: auto; margin-left: 12px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .88rem; padding: 3px 10px; border-radius: 6px; }
.nav a:hover { background: var(--soft); color: var(--main); }
.menu-right { display: flex; align-items: center; gap: 12px; font-size: .85rem; font-weight: 500; }
.clock { color: var(--muted); font-variant-numeric: tabular-nums; }
.header .btn { min-height: 26px; padding: 2px 12px; font-size: .82rem; border-radius: 6px; }
.header .btn .long { display: none; }

/* Док */
.dock {
  position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 20;
  display: flex; gap: 8px; padding: 8px 10px;
  background: var(--bar);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-radius: 20px; box-shadow: var(--shadow);
  max-width: calc(100vw - 16px);
}
.dock a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 13px; color: #fff; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 6px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.dock a svg { width: 26px; height: 26px; }
.dock a:hover, .dock a:focus-visible { transform: translateY(-8px) scale(1.15); }
.dock a span {
  position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: var(--titlebar); color: var(--text); font-size: .78rem; font-weight: 600;
  padding: 3px 9px; border-radius: 6px; white-space: nowrap; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.dock a:hover span, .dock a:focus-visible span { opacity: 1; }
.d1 { background: linear-gradient(#5ac8fa, #0a84ff); }
.d2 { background: linear-gradient(#ff9f0a, #ff6a00); }
.d3 { background: linear-gradient(#bf5af2, #7d3cff); }
.d4 { background: linear-gradient(#30d158, #0a9d3a); }
.d5 { background: linear-gradient(#8e8e93, #48484a); }

/* Карточки внутри окон */
.grid { display: grid; gap: 14px; }
.card {
  background: var(--inner); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.card p:last-child { margin-bottom: 0; }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--warn-bg); color: var(--warn-text); margin-bottom: 10px;
}
.tag.ready { background: var(--soft); color: var(--main); }

.steps { counter-reset: step; }
.steps li { position: relative; padding-left: 54px; margin-bottom: 20px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 10px;
  background: var(--main); color: var(--on-main); font-weight: 700;
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }

.checks li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: #28c840 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.note { font-size: .92rem; color: var(--muted); margin-top: 14px; }

.demo-shots { display: grid; gap: 16px; margin-top: 24px; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--win-solid); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }

.price { font-size: 2rem; font-weight: 800; margin: 8px 0 4px; letter-spacing: -0.02em; }
.price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.card.featured { border: 2px solid var(--main); }

details { background: var(--inner); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
summary {
  cursor: pointer; font-weight: 650; padding: 16px 18px; list-style: none; min-height: 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--main); flex: none; }
details[open] summary::after { content: "–"; }
details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

.final { text-align: center; }
.final .lead { margin-left: auto; margin-right: auto; }
.final .btn-row { justify-content: center; }

.footer { font-size: .9rem; color: var(--text); padding: 14px 0 0; }
.footer .window { background: var(--bar); }
.footer .win-body { padding: 16px 18px; }
.footer .row { display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--muted); }

@media (min-width: 640px) {
  .header .btn .long { display: inline; }
  .grid.two, .grid.three { grid-template-columns: repeat(2, 1fr); }
  .demo-shots { grid-template-columns: repeat(2, 1fr); }
  .win-body { padding: 32px 32px 36px; }
}
@media (min-width: 960px) {
  body { font-size: 18px; }
  section { padding: 18px 0; }
  .nav { display: flex; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .btn-row .btn { flex: 0 0 auto; }
  .hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
  .hero-art { margin-top: 0; }
  .footer .row { flex-direction: row; justify-content: space-between; }
  .dock a { width: 58px; height: 58px; }
}
.hero-art { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .dock a:hover, .dock a:focus-visible { transform: none; }
}

/* Кнопка демо репетиционной в цвете её приложения */
.btn.demo-rehearsal { background: #ff8a3d; color: #1a0d00; }
.btn.demo-rehearsal:hover { background: #ffa066; }

/* Компактные скриншоты демо */
.demo-shots { display: flex; justify-content: center; gap: 14px; }
.shot { flex: 0 1 190px; min-width: 0; }
.shot img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.shot figcaption { text-align: center; }
