/* Work-Webcam.Online — вид «заказ». Одно запоминающееся место: кольцевая лампа на первом экране. Остальное тихое. */
:root {
  --bg: #f6f2fa;
  --surface: #ffffff;
  --ink: #1c1432;
  --muted: #5b5273;
  --line: #ddd4ea;
  --accent: #c8175f;
  --accent-ink: #ffffff;
  --night: #1c1432;
  --night-ink: #f4eefb;
  --night-muted: #c3b8da;
  --night-line: #3a2e58;
  --disc: #1a1230;
  --glow: rgba(255, 150, 110, .5);
  --bubble-in: #2b2148;
  --bubble-out: #ff7aa6;
  --bubble-out-ink: #2a0b19;
  --ring-a: #fff6e6;
  --ring-b: #ffc58f;
  --ring-c: #ff8fb1;
  --display: "Yeseva One", Georgia, "Times New Roman", serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 20px;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120c20;
    --surface: #1b1330;
    --ink: #f4eefb;
    --muted: #b9add2;
    --line: #34294f;
    --accent: #ff6b9c;
    --accent-ink: #26091a;
    --night: #0a0614;
    --night-line: #2c2246;
    --disc: #0d0818;
    --glow: rgba(255, 120, 150, .42);
    --bubble-in: #261c43;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  text-rendering: optimizeLegibility;
}
main { overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ssylka-propustit { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 10px 14px; z-index: 50; }
.ssylka-propustit:focus { left: 8px; }

.obertka { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Шапка */
.shapka { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 8px; }
.imya { font: 400 21px/1 var(--display); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.imya svg { width: 26px; height: 26px; flex: none; }
.vozrast { font-weight: 600; font-size: 14px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 11px; line-height: 1.2; }

/* Кнопка */
.knopka {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 17px/1 var(--text); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.knopka:hover { filter: brightness(1.08); }
.knopka:active { transform: translateY(1px); }
.knopka svg { width: 22px; height: 22px; flex: none; }

/* Первый экран */
.pervyj { padding: 28px 0 56px; display: grid; gap: 40px; }
.pervyj h1 { font-size: clamp(2.6rem, 12.2vw, 5.6rem); line-height: 1.02; letter-spacing: -.01em; }
.pervyj .vstuplenie { font-size: 18px; margin: 22px 0 28px; max-width: 34em; color: var(--muted); }
.pervyj .primechanie { font-size: 14.5px; color: var(--muted); margin: 16px 0 0; }

/* Кольцевая лампа */
.lampa {
  position: relative; isolation: isolate;
  width: min(100%, 360px); aspect-ratio: 1; margin-inline: auto;
  border-radius: 50%; padding: 6.5%;
  background: conic-gradient(from 200deg, var(--ring-a), var(--ring-b), var(--ring-c), var(--ring-b), var(--ring-a));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset;
}
.lampa::before { /* свет, падающий вокруг кольца */
  content: ""; position: absolute; inset: -16%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0 42%, transparent 68%);
  animation: svet 1.5s ease-out both;
}
.lampa .disk {
  position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(120% 120% at 30% 18%, #2b2150 0, var(--disc) 60%);
  box-shadow: inset 0 0 38px rgba(0, 0, 0, .65);
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  padding: 0 14%;
}
.lampa .disk::after { /* блик на стекле */
  content: ""; position: absolute; width: 60%; height: 34%; left: 6%; top: 4%; border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), transparent 70%); transform: rotate(-24deg); pointer-events: none;
}
.puzyr { font-size: 14.5px; line-height: 1.4; padding: 9px 13px; border-radius: 16px; max-width: 92%; color: #f4eefb; }
.puzyr.vhod { align-self: flex-end; background: var(--bubble-out); color: var(--bubble-out-ink); border-bottom-right-radius: 5px; font-weight: 500; }
.puzyr.otvet { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 5px; animation: otvet .5s ease-out 1.5s both; }
@keyframes svet { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes otvet { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Разделы */
.razdel { padding: 56px 0; }
.razdel h2 { font-size: clamp(1.9rem, 7vw, 3rem); line-height: 1.1; }
.razdel .podskazka { color: var(--muted); margin-top: 14px; max-width: 30em; }

/* Условия: ведомость, не карточки */
.usloviya { display: grid; gap: 28px; }
.vedomost { margin: 0; padding: 0; }
.vedomost > div { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.vedomost > div:last-child { border-bottom: 1px solid var(--line); }
.vedomost dt { color: var(--muted); font-size: 15px; }
.vedomost dd { margin: 0; font: 400 clamp(1.5rem, 6.4vw, 2.2rem)/1.15 var(--display); }

/* Путь: настоящая последовательность */
.put { list-style: none; margin: 32px 0 36px; padding: 0; counter-reset: shag; display: grid; gap: 0; }
.put li { position: relative; padding: 0 0 30px 64px; counter-increment: shag; }
.put li::before { /* кольцо-маркер: то же кольцо, что на первом экране */
  content: counter(shag); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font: 400 20px/1 var(--display); color: #2a0b19;
  background: conic-gradient(from 200deg, var(--ring-a), var(--ring-b), var(--ring-c), var(--ring-b), var(--ring-a));
}
.put li::after { content: ""; position: absolute; left: 21.5px; top: 50px; bottom: 6px; width: 1.5px; background: var(--line); }
.put li:last-child { padding-bottom: 0; }
.put li:last-child::after { display: none; }
.put h3 { font-size: 1.35rem; line-height: 1.25; margin: 6px 0 4px; }
.put p { margin: 0; color: var(--muted); }

/* Безопасность: тёмная полоса */
.noch { background: var(--night); color: var(--night-ink); }
.noch .razdel { padding: 64px 0; }
.noch .podskazka { color: var(--night-muted); }
.garantii { display: grid; gap: 0; margin-top: 32px; }
.garantii > div { padding: 22px 0; border-top: 1px solid var(--night-line); }
.garantii h3 { font-size: 1.45rem; margin-bottom: 6px; }
.garantii p { margin: 0; color: var(--night-muted); }

/* О работе */
.rabota { display: grid; gap: 8px; }
.rabota .tekst p { color: var(--ink); }
.rabota .tekst { max-width: 36em; }

/* Блок «город» — текст сохранён, оформление новое */
.bg-wrap { background: var(--surface); padding: 56px 0; border-block: 1px solid var(--line); }
.bg-in { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; font-size: 17px; line-height: 1.65; }
.bg-in h2 { font-size: clamp(1.7rem, 6vw, 2.5rem); line-height: 1.15; margin: 0 0 18px; }
.bg-in h3 { font-size: 1.35rem; margin: 30px 0 10px; }
.bg-in p { margin: 0 0 12px; }
.bg-in ul { padding-left: 20px; margin: 0 0 12px; }
.bg-in li { margin: 4px 0; }
.bg-btn {
  display: inline-flex; align-items: center; min-height: 52px; margin-top: 20px; padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600;
}
.bg-btn:hover { filter: brightness(1.08); }

/* Проверенная студия */
.proverennaya { padding: 48px 0; }
.proverennaya .obertka { display: grid; gap: 16px; align-items: center; }
.proverennaya h2 { font-size: 1.6rem; line-height: 1.2; }
.camgigs-otzyvy { font-size: 16px; }
.camgigs-otzyvy a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }

/* Финал и подвал */
.final { text-align: center; padding: 64px 0 48px; }
.final h2 { font-size: clamp(1.9rem, 7vw, 3.2rem); line-height: 1.1; margin-bottom: 22px; }
.podval { padding: 8px 0 110px; font-size: 14.5px; color: var(--muted); }
.podval .obertka { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; }

/* Нижняя кнопка на телефоне */
.nizhnyaya {
  position: fixed; inset: auto 0 0 0; z-index: 30; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.nizhnyaya.vidna { transform: none; }
.nizhnyaya .knopka { width: 100%; }

/* Окно квиза (скрипт bot-priemnik.js не менялся: перекрашиваем его классы под тему) */
.kz-f .kz-b { background: var(--surface); color: var(--ink); border-radius: 24px; font-family: var(--text); }
.kz-f .kz-s { color: var(--muted); }
.kz-f .kz-t { font-family: var(--display); font-weight: 400; font-size: 24px; }
.kz-f .kz-o { background: var(--bg); color: var(--ink); border-color: var(--line); font-family: var(--text); }
.kz-f .kz-o:hover, .kz-f .kz-o:focus-visible { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 0; }
.kz-f .kz-g { background: var(--accent); color: var(--accent-ink); font-family: var(--text); }
.kz-f .kz-x { color: var(--muted); }

/* Широкие экраны */
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  body { font-size: 18px; }
  .shapka { padding-top: 26px; }
  .pervyj { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; padding: 56px 0 88px; }
  .lampa { width: min(100%, 460px); }
  .puzyr { font-size: 16.5px; padding: 11px 16px; }
  .razdel { padding: 88px 0; }
  .usloviya { grid-template-columns: 4fr 8fr; gap: 72px; align-items: start; }
  .usloviya .zagolovok { position: sticky; top: 32px; }
  .vedomost > div { grid-template-columns: 1fr 1.5fr; align-items: baseline; gap: 24px; padding: 22px 0; }
  .put { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .put li { padding: 64px 0 0; }
  .put li::after { left: 54px; right: 0; top: 21px; bottom: auto; width: auto; height: 1.5px; }
  .put li:last-child::after { display: none; }
  .garantii { grid-template-columns: repeat(2, 1fr); column-gap: 64px; }
  .garantii > div:nth-child(5) { grid-column: 1 / -1; }
  .rabota { grid-template-columns: 4fr 8fr; gap: 72px; }
  .proverennaya .obertka { grid-template-columns: 4fr 8fr; gap: 72px; }
  .nizhnyaya { display: none; }
  .podval { padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lampa::before, .puzyr.otvet { animation: none; }
  .nizhnyaya { transition: none; }
}

/* ---- Тексты владельца, возвращённые из боевой версии ---- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.knopki { display: flex; flex-wrap: wrap; gap: 12px; }
.knopka.vtoraya { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.knopka.vtoraya:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); filter: none; }
.noch .knopka.vtoraya { color: var(--night-ink); box-shadow: inset 0 0 0 2px var(--night-ink); }
.pervyj .podzagolovok { font: 400 clamp(1.3rem, 5.4vw, 2rem)/1.2 var(--display); color: var(--accent); margin: 18px 0 0; }
.pervyj .vstuplenie { margin-top: 14px; }

/* Три главных обещания */
.vygody { display: grid; gap: 0; padding-top: 24px; }
.vygody > div { padding: 24px 0; border-top: 1px solid var(--line); }
.vygody h2 { font-size: clamp(1.35rem, 5.2vw, 1.75rem); line-height: 1.2; margin-bottom: 12px; }
.vygody p { color: var(--muted); margin: 0 0 .6em; }

/* Звёзды под ведомостью */
.zvezdy { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; font-size: 1.05rem; }

/* Кто такая веб модель */
.rabota .tekst h3 { font-size: 1.5rem; line-height: 1.2; margin: 32px 0 10px; }
.rabota .tekst strong { font: 400 1.5em/1 var(--display); color: var(--accent); white-space: nowrap; }
.noch .krupno { font: 400 clamp(1.15rem, 4.4vw, 1.5rem)/1.5 var(--text); max-width: 40em; margin-top: 22px; color: var(--night-ink); }

/* Такси */
.taksi { background: var(--accent); color: var(--accent-ink); }
.taksi__obertka { display: grid; gap: 24px; padding: 48px 0; align-items: center; }
.taksi h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.15; margin-bottom: 24px; }
.taksi img { width: min(100%, 460px); height: auto; margin-inline: auto; }
.taksi .knopka { background: var(--accent-ink); color: var(--accent); }
.taksi .knopka.vtoraya { background: transparent; color: var(--accent-ink); box-shadow: inset 0 0 0 2px var(--accent-ink); }

/* Площадки */
.spisok-pl { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.spisok-pl li { display: grid; gap: 10px; padding: 22px 0; border-top: 1px solid var(--line); }
.spisok-pl .logo { height: 44px; width: auto; max-width: 180px; object-fit: contain; object-position: left; background: #fff; border-radius: 8px; padding: 4px 8px; }
.spisok-pl p { margin: 0; }
.ssylka-sajt { font-weight: 600; color: var(--accent); text-underline-offset: 3px; justify-self: start; }

/* Калькулятор */
.kalk { margin-top: 24px; max-width: 560px; display: grid; gap: 22px; }
.kalk .shag { display: grid; gap: 22px; }
.kalk .shag[hidden] { display: none; }
.pole { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.pole > label, .pole > legend { font-weight: 500; padding: 0; }
.pole input[type=range] { width: 100%; accent-color: var(--accent); }
.diapazon { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.pole input[type=text], .okno input[type=text] {
  width: 100%; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: 400 17px/1 var(--text);
}
.vybor { display: inline-block; margin: 0 8px 8px 0; }
.vybor input { position: absolute; opacity: 0; }
.vybor span { display: inline-grid; place-items: center; min-width: 52px; min-height: 52px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 500; }
.vybor input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.vybor input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.itog { font-size: 18px; margin: 0; }
.itog__chislo { font: 400 clamp(2.2rem, 9vw, 3.2rem)/1 var(--display); margin-right: 6px; }
.oshibka { color: var(--accent); font-weight: 500; margin: 0; }
.galka { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.galka input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }

/* Получи всё, что хочешь */
.poluchi { display: grid; gap: 32px; align-items: center; }
.poluchi p { max-width: 34em; }
.zhizn { display: flex; align-items: flex-end; justify-content: center; gap: 8px; }
.zhizn img { height: auto; min-width: 0; }
.zhizn img:nth-child(1) { width: 42%; }
.zhizn img:nth-child(2) { width: 36%; }
.zhizn img:nth-child(3) { width: 22%; }

/* Отзывы */
.otzyvy-fon { background: var(--surface); border-block: 1px solid var(--line); }
.otzyvy { display: grid; gap: 0; margin-top: 24px; }
.otzyv { margin: 0; padding: 28px 0; border-top: 1px solid var(--line); }
.otzyv figcaption { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-items: center; margin-bottom: 14px; }
.otzyv img { grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.otzyv__imya { font: 400 1.35rem/1.2 var(--display); }
.otzyv__rol { color: var(--muted); font-size: 15px; }
.otzyv blockquote { margin: 0; }
.otzyv p { margin: 0; }

/* ТОП3 */
.top3__spisok { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.top3__spisok li { display: grid; grid-template-columns: 100px 1fr; gap: 6px 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.top3__spisok li > img:first-child { max-width: 100px; max-height: 100px; background: #fff; border-radius: 12px; padding: 8px; grid-row: span 2; width: 100px; height: auto; object-fit: contain; }
.top3__spisok .top3__shirokij { background: #fff; }
.top3__spisok span { overflow-wrap: anywhere; font-weight: 500; }
.zvezdy5 { height: 20px; width: auto; }

/* Окно анкеты (работает и без скриптов: открывается по #anketa) */
.okno { display: none; position: fixed; inset: 0; z-index: 100; place-items: center; padding: 16px; overflow-y: auto; }
.okno:target, .okno.otkryto { display: grid; }
.okno__fon { position: fixed; inset: 0; background: rgba(10, 6, 20, .6); }
.okno__forma { position: relative; width: min(100%, 460px); background: var(--surface); color: var(--ink); border-radius: 24px; padding: 32px 24px 24px; display: grid; gap: 16px; }
.okno__forma h2 { font-size: 1.7rem; line-height: 1.15; padding-right: 28px; }
.okno__x { position: absolute; top: 12px; right: 16px; font-size: 30px; line-height: 1; text-decoration: none; color: var(--muted); }
.melko { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0; }

@media (min-width: 900px) {
  .vygody { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .taksi__obertka { grid-template-columns: 1.2fr .8fr; padding: 56px 0; }
  .zvezdy { grid-template-columns: 1fr 1fr; }
  .spisok-pl { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .poluchi { grid-template-columns: 1fr 1fr; gap: 64px; }
  .otzyvy { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .otzyv { border-top: 0; }
  .top3__spisok { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .top3__spisok li { grid-template-columns: 1fr; border-top: 1px solid var(--line); justify-items: start; gap: 12px; }
  .top3__spisok li > img:first-child { grid-row: auto; }
  .rabota .tekst { max-width: 40em; }
}

.varianty { display: flex; flex-wrap: wrap; }
.poluchi h2 { margin-bottom: 16px; }
.poluchi .knopka { margin-top: 8px; }
.cifra { font-family: Arial, Helvetica, sans-serif; font-weight: 700; }
.pl-shapka { display: flex; align-items: center; gap: 12px; }
.znachok { width: 28px; height: 28px; }
