/* SynchroTron — synchrotronapp.ru, версия 2: короткая спокойная страница.
   Тёмный фон как у программы, белый текст, жёлтый — только кнопки действия. Одно скругление на всё. */

@font-face {
  font-family: "Medeo Sans";
  src: url("/assets/MedeoSans.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #121211;
  --surface: #1c1c1b;
  --surface-2: #262624;
  --ink: #ececea;
  --muted: #a9a7a0;
  --accent: #ef9f27;
  --accent-ink: #241602;
  --icon-bg: #14181c;

  --font: "Medeo Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --step-small: 0.875rem;                                   /* 14 */
  --step-body: 1.0625rem;                                   /* 17 */
  --step-lead: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem);      /* 19–24 */
  --step-head: clamp(2rem, 1.2rem + 2.4vw, 3.25rem);        /* 32–52 */
  --step-display: clamp(2.75rem, 1rem + 5vw, 5.5rem);       /* 44–88 */

  --margin: clamp(1rem, 4vw, 4rem);
  --max: 76rem;
  --gutter: clamp(1rem, 2.5vw, 2.5rem);
  --section: clamp(6rem, 11vw, 10rem);
  --r: 18px;
  --r-inner: 12px;
  --pill: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 160ms;
  --t-hover: 200ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul[role], ol[role] { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
:target { scroll-margin-top: 1.5rem; }
p { max-width: 62ch; text-wrap: pretty; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }

.wrap { width: min(100% - 2 * var(--margin), var(--max)); margin-inline: auto; }
.section { padding-block: calc(var(--section) / 2); }
.display { font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.035em; }
.head { font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.025em; }
.small { font-size: var(--step-small); line-height: 1.45; }
.nums { font-variant-numeric: tabular-nums; }

/* ---------- переход к содержанию (видна при фокусе с клавиатуры) ---------- */
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.75rem 1.25rem; border-radius: var(--pill); background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; transition: top var(--t-hover) var(--ease-out); }
.skip:focus { top: 1rem; }

/* ---------- кнопки и ссылки ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.6rem; border-radius: var(--pill); background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button-small { min-height: 2.75rem; padding: 0 1.1rem; font-size: var(--step-small); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.08em; transition: text-decoration-color var(--t-hover) ease; }
.hero-actions .link-plain, .price-buy > .link-plain, .foot-links a, .top-links a { display: inline-flex; align-items: center; min-height: 44px; } /* цель касания ≥44px */
.link-plain { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 0.08em; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #f5ae43; }
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { color: var(--accent); }
}

/* ---------- верхняя строка ---------- */
.top { display: flex; align-items: center; gap: 2rem; padding-block: 1.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.wordmark img { width: 2rem; height: 2rem; }
.top-links { display: flex; gap: 1.75rem; margin-left: auto; font-size: var(--step-small); }

/* ---------- первый экран ---------- */
.hero { padding-top: clamp(3rem, 7vw, 6rem); }
.hero-copy { max-width: 50rem; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-sub { margin-top: 1.75rem; font-size: var(--step-lead); line-height: 1.4; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; margin-top: 2.25rem; }
.hero-note { margin-top: 1.25rem; color: var(--muted); }
.hero-shot { margin-top: clamp(3rem, 6vw, 5rem); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.hero-shot img { width: 100%; }

/* ---------- что умеет ---------- */
.features .head { margin-bottom: 3rem; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem var(--gutter); }
.feature { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.5rem; align-items: center; padding: 1.25rem; border-radius: var(--r); background: var(--surface); }
.ficon { width: 5.5rem; height: 5.5rem; display: block; flex: none; }
.feature h3 { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; }
.feature p { margin-top: 0.4rem; color: var(--muted); }
.feature:last-child { grid-column: 1 / -1; }

/* ---------- как работает ---------- */
.how .head { margin-bottom: 3rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.step-shot { border-radius: var(--r); overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.step-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.step h3 { margin-top: 1.5rem; font-size: var(--step-lead); line-height: 1.2; }
.step p { margin-top: 0.4rem; color: var(--muted); }

/* ---------- цена ---------- */
.price-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: var(--r); background: var(--surface); }
.price-figure { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; }
.price-figure .nums { font-size: var(--step-display); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.price-once { color: var(--muted); }
.price-list { margin-top: 1.75rem; display: grid; gap: 0.5rem; }
.price-list li { padding-left: 1.6rem; position: relative; }
.price-list li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.9rem; height: 0.5rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); } /* галочка */
.price-buy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1rem; }
.price-trial { font-size: var(--step-lead); line-height: 1.4; max-width: 30ch; }
.buy { margin-top: 1.5rem; width: 100%; max-width: 32rem; }
.buy-label { display: block; font-size: var(--step-small); color: var(--muted); margin-bottom: 0.5rem; }
.buy-row { display: flex; gap: 0.75rem; }
.field { flex: 1; min-width: 0; min-height: 3.25rem; padding: 0 1.25rem; border-radius: var(--pill); border: 1px solid #77756d; background: var(--surface-2); color: var(--ink); font-size: var(--step-body); } /* граница поля ≥3:1 к плашке (WCAG 1.4.11) */
.field::placeholder { color: #9d9b93; }
.field[aria-invalid="true"] { outline: 2px solid #ff9b80; outline-offset: -2px; }
.buy-error { margin-top: 0.6rem; color: #ffb199; }
.buy-hint { margin-top: 0.75rem; color: var(--muted); }

/* ---------- вопросы ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gutter); align-items: start; }
.faq-side p { margin-top: 1.25rem; color: var(--muted); max-width: 28ch; }
.cards { display: grid; gap: 8px; }
.qcard { border-radius: var(--r); background: var(--surface); }
.qcard summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; font-size: var(--step-lead); font-weight: 600; }
.qcard summary::-webkit-details-marker { display: none; }
.qcard summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 240ms var(--ease-out); }
.qcard[open] summary::after { transform: rotate(-135deg); }
.qcard p { padding: 0 1.5rem 1.5rem; color: var(--muted); max-width: 60ch; }
@media (hover: hover) and (pointer: fine) { .qcard summary:hover { color: #fff; } }

/* ---------- подвал ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; padding-block: 3rem; margin-top: calc(var(--section) / 2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: var(--step-small); }
.foot-copy { margin-left: auto; color: var(--muted); }

/* ---------- планшет и телефон ---------- */
@media (max-width: 960px) {
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .top { gap: 1rem; }
  .top-links { display: none; }
  .top .button { margin-left: auto; }
  .feature-list { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem; padding: 1rem; }
  .ficon { width: 4rem; height: 4rem; }
  .steps { grid-template-columns: 1fr; }
  .price-box { grid-template-columns: 1fr; }
  .buy-row { flex-direction: column; }
  .buy-row .button { width: 100%; }
  .qcard summary { padding: 1.1rem 1.25rem; }
  .qcard p { padding: 0 1.25rem 1.25rem; }
  .foot-copy { margin-left: 0; }
  p { max-width: none; }
}

/* ================= Неон (по макету пользователя 24.11) =================
   Живой фон canvas#bg (bg.js) под всей страницей; стеклянные панели; градиентный акцент в заголовке;
   светящаяся рамка вокруг снимка программы. Палитра — из значка: голубой, синий, фиолетовый, оранжевый. */
:root {
  --bg: #060816;
  --surface: rgba(16, 19, 40, 0.62);
  --surface-2: rgba(30, 34, 64, 0.75);
  --edge: rgba(150, 170, 255, 0.16);
  --ink: #f1f3ff;
  --muted: #b3b8d6;
  --cyan: #3fd0f2;
  --blue: #5b7cff;
  --violet: #9b5cff;
  --orange: #ff8a1e;
  --accent: #ffa634;
  --accent-ink: #2a1500;
}
html, body { overflow-x: clip; }
body { background: var(--bg); }
#bg { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -2; pointer-events: none; filter: blur(0.6px) saturate(1.15); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 40%, rgba(6, 8, 22, 0) 0%, rgba(6, 8, 22, 0.55) 70%, rgba(6, 8, 22, 0.85) 100%); } /* taste-skill-ignore: виньетка поверх живого фона */

.grad { background: linear-gradient(95deg, var(--cyan) 10%, var(--blue) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; } /* taste-skill-ignore: акцент по макету */
.ico { width: 1.15em; height: 1.15em; margin-right: 0.55rem; flex: none; }

.button { background: linear-gradient(180deg, #ffbe55, #ff941f); box-shadow: 0 0 0 1px rgba(255, 190, 90, 0.35) inset, 0 10px 34px -8px rgba(255, 140, 30, 0.75); } /* taste-skill-ignore: светящаяся кнопка по макету */
@media (hover: hover) and (pointer: fine) { .button:hover { background: linear-gradient(180deg, #ffc86b, #ffa034); } }
.top-links a { color: var(--ink); }

/* первый экран: текст слева, волны значка справа */
.hero { padding-top: clamp(1.5rem, 4vw, 3rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: var(--gutter); }
.hero-copy { max-width: none; margin: 0; text-align: left; align-items: flex-start; }
.hero-copy { position: relative; isolation: isolate; }
.hero-copy::before { content: ""; position: absolute; inset: -12% -18% -12% -30%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(6, 8, 22, 0.82), rgba(6, 8, 22, 0.55) 60%, rgba(6, 8, 22, 0)); } /* taste-skill-ignore: затемнение под текстом, чтобы ленты фона не мешали читать */
.hero .display { font-size: clamp(3rem, 1rem + 5.4vw, 6rem); }
.hero-actions { justify-content: flex-start; }
.hero-waves { position: relative; margin-right: calc(var(--margin) * -1); }
.hero-waves img { width: 118%; max-width: none; margin-left: -6%; mix-blend-mode: screen; } /* чёрный фон рисунка исчезает поверх живого фона */
.perks { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2rem; }
.perks li { display: flex; align-items: center; gap: 0.7rem; font-size: var(--step-small); line-height: 1.3; max-width: 12rem; color: var(--ink); }
.perk-ico { width: 2rem; height: 2rem; flex: none; filter: drop-shadow(0 0 6px currentColor); } /* taste-skill-ignore */
.c-cyan { color: var(--cyan); } .c-violet { color: var(--violet); } .c-blue { color: #7f9bff; }

/* снимок программы в светящейся рамке, лёгкий наклон */
.hero-shot { margin-top: clamp(2rem, 4vw, 3.5rem); padding: 2px; border-radius: calc(var(--r) + 2px); overflow: visible;
  background: linear-gradient(120deg, rgba(63, 208, 242, 0.85), rgba(91, 124, 255, 0.6) 45%, rgba(155, 92, 255, 0.85));
  box-shadow: 0 0 60px -6px rgba(80, 130, 255, 0.55), 0 30px 80px -30px rgba(0, 0, 0, 0.8); } /* taste-skill-ignore: рамка по макету */
.hero-shot img { border-radius: var(--r); }
@media (min-width: 961px) { .hero-shot { transform: perspective(1800px) rotateX(9deg); transform-origin: 50% 0; } }

/* панели: стекло */
.feature, .step-shot, .price-box, .qcard { background: var(--surface); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); } /* taste-skill-ignore: стеклянные панели по макету */
.step-shot { box-shadow: 0 0 40px -14px rgba(91, 124, 255, 0.55); }
.price-box { box-shadow: 0 0 70px -20px rgba(155, 92, 255, 0.45); }
.price-figure .nums { background: linear-gradient(95deg, #fff 30%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-list li::before { border-color: var(--cyan); }
.field { background: rgba(8, 10, 26, 0.7); border-color: rgba(160, 175, 255, 0.45); }
.head { text-shadow: 0 0 30px rgba(91, 124, 255, 0.25); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-waves { order: -1; margin: -1rem calc(var(--margin) * -1) 0; }
  .hero-waves img { width: 100%; margin: 0; }
}
@media (max-width: 720px) {
  .perks { gap: 0.9rem 1.25rem; }
  .perks li { max-width: 10rem; }
}

/* ---------- движение (скилл animate) ----------
   Первый экран — CSS-анимация (работает и пока страница грузится), по очереди с шагом 70 мс.
   Блоки при прокрутке — переходы opacity/transform по .is-in, сдвиг по очереди 70 мс.
   Кривая --ease-out (0.23, 1, 0.32, 1); без скрипта и при «уменьшить движение» всё видно сразу. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { opacity: 0; animation: rise 640ms var(--ease-out) forwards; }
  .js .hero-copy > :nth-child(2) { animation-delay: 70ms; }
  .js .hero-copy > :nth-child(3) { animation-delay: 140ms; }
  .js .hero-copy > :nth-child(4) { animation-delay: 210ms; }
  .js .hero-shot { opacity: 0; animation: fade 900ms var(--ease-out) 260ms forwards; }
  .js .hero-waves img { opacity: 0; animation: fade 1200ms var(--ease-out) 120ms forwards, breathe 7s var(--ease-soft) 1.3s infinite alternate; }
  .js .hero-copy > :nth-child(5) { animation-delay: 280ms; }

  .js main section:not(.hero) [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js main section:not(.hero) [data-reveal].is-in { opacity: 1; transform: none; }

  /* ответ в вопросах: высота плавно там, где браузер умеет (Chrome 131+), текст проявляется везде */
  .qcard { interpolate-size: allow-keywords; }
  .qcard::details-content { block-size: 0; overflow: clip; transition: block-size 260ms var(--ease-out), content-visibility 260ms allow-discrete; }
  .qcard[open]::details-content { block-size: auto; }
  .qcard[open] p { animation: answer-in 260ms var(--ease-out); }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-copy > *, .js .hero-shot { animation: fade 300ms ease forwards; }
  .button:active { transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes shot-in { to { opacity: 1; transform: none; } }
@keyframes answer-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes breathe { from { transform: scale(1); filter: brightness(1); } to { transform: scale(1.03); filter: brightness(1.15); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.025); } }

/* Верхняя панель вдвое крупнее (просьба пользователя 24.11) */
.top { gap: 2.1rem; padding-block: 1.75rem; }
.top .wordmark { font-size: 1.75rem; gap: 0.8rem; flex: none; white-space: nowrap; }
.top .button-small { flex: none; }
.top .wordmark img { width: 2.8rem; height: 2.8rem; border-radius: 0.63rem; }
.top-links { gap: 2.1rem; font-size: calc(var(--step-small) * 1.4); }
.top .button-small { min-height: 3.85rem; padding: 0 1.55rem; font-size: calc(var(--step-small) * 1.4); }
.top-links a { white-space: nowrap; }
@media (max-width: 1240px) { .top-links { gap: 1.6rem; font-size: 1.1rem; } }
@media (max-width: 1100px) { .top-links { display: none; } .top .button { margin-left: auto; } }
@media (max-width: 640px) {
  .top { gap: 1rem; padding-block: 1.25rem; }
  .top .wordmark { font-size: 1.3rem; }
  .top .wordmark img { width: 2.2rem; height: 2.2rem; }
  .top .button-small { min-height: 2.75rem; padding: 0 1.1rem; font-size: 1rem; }
}

/* Подвал: только логотип, название и копирайт, вдвое крупнее (24.11) */
.foot { padding-block: 1.75rem; }
.foot .wordmark { font-size: 1.75rem; gap: 0.8rem; }
.foot .wordmark img { width: 2.8rem; height: 2.8rem; border-radius: 0.63rem; }
.foot .foot-copy { font-size: calc(var(--step-small) * 1.4); }
@media (max-width: 640px) {
  .foot .wordmark { font-size: 1.3rem; }
  .foot .wordmark img { width: 2.2rem; height: 2.2rem; }
  .foot .foot-copy { font-size: 1rem; }
}

/* Заголовок первого экрана ровно в две строки: «Синхронизация / аудио и видео файлов» (24.11).
   Размер — от ширины колонки (cqi), вторая строка не переносится. */
.hero-copy { container-type: inline-size; }
.hero .display { font-size: min(9.4cqi, 6rem); }
.hero .display .h1-line { white-space: nowrap; }

/* Снимки «Как это работает» — та же светящаяся рамка, что у главного снимка (24.11), без наклона */
.step-shot { padding: 2px; border: 0; border-radius: calc(var(--r) + 2px); overflow: visible;
  background: linear-gradient(120deg, rgba(63, 208, 242, 0.85), rgba(91, 124, 255, 0.6) 45%, rgba(155, 92, 255, 0.85));
  box-shadow: 0 0 60px -6px rgba(80, 130, 255, 0.55), 0 30px 80px -30px rgba(0, 0, 0, 0.8); } /* taste-skill-ignore: рамка по макету */
.step-shot img { border-radius: var(--r); background: var(--surface); }


/* Одинаковое расстояние между всеми блоками = как между плюсами и главным снимком (24–25.11).
   --block-gap = отступ снимка над ним; секции дают по половине сверху и снизу; первый экран добирает
   низ (наклонённый снимок визуально выходит вниз), подвал — с учётом своего внутреннего отступа. */
:root { --block-gap: clamp(2rem, 4vw, 3.5rem); }
.hero-shot { margin-top: var(--block-gap); }
.section { padding-block: calc(var(--block-gap) / 2); }
.hero { padding-bottom: calc(var(--block-gap) / 2); }
@media (min-width: 961px) { .hero { padding-bottom: calc(var(--block-gap) / 2 + min(3.91vw - 17.3px, 2.45rem)); } }
.foot { margin-top: calc(var(--block-gap) / 2); padding-top: 0; }

/* Оферта, политика, реквизиты (25.11) */
.buy-legal { margin-top: 0.5rem; color: var(--muted); }
.foot-legal { flex-basis: 100%; max-width: none; margin: 0; font-size: 0.8125rem; line-height: 1.6; color: var(--muted); }
.legal { max-width: 46rem; padding-block: var(--block-gap) calc(var(--block-gap) * 1.5); }
.legal .head { margin-bottom: 0.5rem; }
.legal-date { color: var(--muted); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.25rem; line-height: 1.3; margin: 2.25rem 0 0.75rem; }
.legal p, .legal li { line-height: 1.6; }
.legal p + p { margin-top: 0.75rem; }
.legal-list { margin: 0.75rem 0; padding-left: 1.25rem; list-style: disc; }
.legal-list li + li { margin-top: 0.5rem; }
.legal-page .top-links { display: flex; }
@media (max-width: 640px) { .legal-page .top-links { display: none; } }
