/* ═══════════ WHITE-ID — сайт WHITE TECHNOLOGIES ═══════════ */
:root {
    --ink: #15233b; --paper: #f3f6fa; --white: #fff; --line: #e2e8f0; --text: #1b2a42; --muted: #5f6f87;
    --blue: #2f5bff; --green: #12a26b; --amber: #d98a06; --red: #d93a3a;
    --display: "Unbounded", "Manrope", system-ui, sans-serif;
    --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 16px/1.6 var(--body); color: var(--text); background: var(--white); }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* шапка */
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo img { max-height: 36px; max-width: 190px; }
.logo-mark { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .4px; line-height: 1; }
.logo-mark span { color: var(--blue); }
.hdr nav { display: flex; gap: 22px; margin-left: auto; }
.hdr nav a { color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; }
.hdr nav a:hover { color: var(--blue); }
.hdr .lang { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.hdr .lang a { padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 800; color: var(--muted); text-decoration: none; }
.hdr .lang a.on { background: var(--ink); color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; border: 0; font: inherit; font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #224ae8; }
.btn-line { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* первый экран */
.hero { padding: 72px 0 64px; background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 20px; font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -1px; color: var(--ink); }
.hero p.lead { margin: 0 0 30px; max-width: 34em; font-size: 18px; color: var(--muted); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .facts { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero .facts div { font-size: 14px; color: var(--muted); }
.hero .facts b { display: block; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--ink); }

/* живая лента отметок — главный визуальный акцент */
.feed { position: relative; background: var(--ink); border-radius: 22px; padding: 22px; color: #dbe4f3; box-shadow: 0 30px 60px -30px rgba(21,35,59,.6); }
.feed-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 13px; color: #9fb0ca; }
.feed-h b { color: #fff; font-size: 15px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: #7ee2b8; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fd18b; box-shadow: 0 0 0 4px rgba(47,209,139,.18); }
.feed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed li { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); }
.feed li .av { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--c); }
.feed li .who b { display: block; color: #fff; font-size: 14.5px; }
.feed li .who span { font-size: 12.5px; color: #9fb0ca; }
.feed li .tm { text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; color: #fff; }
.feed li .tm small { display: block; font-weight: 700; font-size: 11.5px; }
.feed li .tm .in { color: #7ee2b8; } .feed li .tm .late { color: #ffc46b; } .feed li .tm .out { color: #a9b8ff; }
.feed-f { display: flex; gap: 10px; margin-top: 14px; }
.feed-f div { flex: 1; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); font-size: 12px; color: #9fb0ca; }
.feed-f b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; color: #fff; }
@media (prefers-reduced-motion: no-preference) {
    .feed li { animation: feed-in .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 140ms + 300ms); }
    @keyframes feed-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* разделы */
section.block { padding: 84px 0; }
section.block.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.5px; color: var(--ink); line-height: 1.15; }
.block .intro { margin: 0 0 40px; max-width: 40em; color: var(--muted); font-size: 17px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.feature svg { width: 30px; height: 30px; color: var(--blue); margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: st; }
.steps li { position: relative; padding: 26px 26px 26px 26px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.steps li::before { counter-increment: st; content: counter(st); display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; }
.steps h3 { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.price { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.price:nth-child(2) { border: 2px solid var(--blue); }
.price h3 { margin: 0 0 6px; font-size: 19px; color: var(--ink); }
.price .amt { margin: 10px 0 4px; font-family: var(--display); font-weight: 600; font-size: 32px; color: var(--ink); }
.price .amt small { font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--muted); }
.price p { color: var(--muted); font-size: 15px; white-space: pre-line; }
.price .lim { margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 700; color: var(--ink); }

/* форма заявки */
.lead-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.lead-side p { color: var(--muted); }
.contacts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.contacts li { font-weight: 700; color: var(--ink); }
.contacts li span { display: block; font-weight: 600; font-size: 13px; color: var(--muted); }
form.lead { padding: 30px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px -34px rgba(21,35,59,.45); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
form.lead .wide { grid-column: 1 / -1; }
form.lead label { display: block; margin-bottom: 5px; font-size: 13.5px; font-weight: 700; color: #34445c; }
form.lead input, form.lead textarea { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fbfcfe; font: inherit; color: var(--text); }
form.lead textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
form.lead input:focus, form.lead textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,91,255,.14); background: #fff; }
form.lead .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form.lead .note { font-size: 13px; color: var(--muted); }
.notice { padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 700; }
.notice.ok { background: #e7f6ef; color: #0d5c3d; } .notice.err { background: #fdecec; color: #8a1c1c; }
.sent { padding: 40px 30px; border-radius: 22px; background: #fff; border: 1px solid var(--line); text-align: left; }
.sent h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--ink); }

/* подвал */
.ftr { padding: 48px 0 36px; background: var(--ink); color: #b9c6db; font-size: 14px; }
.ftr .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.ftr h4 { margin: 0 0 10px; color: #fff; font-size: 14px; }
.ftr a { color: #dbe4f3; }
.ftr dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.ftr dt { color: #8ea0bd; } .ftr dd { margin: 0; color: #dbe4f3; }
.ftr .copy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #8ea0bd; }

/* страница оплаты и ошибки */
.narrow { max-width: 720px; margin: 48px auto; padding: 0 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 20px 50px -34px rgba(21,35,59,.4); }
.card h1 { margin: 0 0 6px; font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--ink); }
.inv-dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 14px; margin: 20px 0; }
.inv-dl dt { color: var(--muted); } .inv-dl dd { margin: 0; font-weight: 700; color: var(--ink); }
.amount-big { font-family: var(--display); font-weight: 600; font-size: 34px; color: var(--ink); }
.pay-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.pay-btns .btn { min-width: 170px; }
.btn-payme { background: #00baba; color: #fff; } .btn-click { background: #0068ff; color: #fff; }
.paid-mark { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: #e7f6ef; color: #0d5c3d; font-weight: 800; }

@media (max-width: 960px) {
    .hdr nav { display: none; }
    .hdr .wrap { gap: 12px; }
    .hdr .lang { margin-left: auto; }
    .hero { padding: 40px 0; }
    .hero .wrap, .lead-grid { grid-template-columns: 1fr; gap: 32px; }
    .features, .steps { grid-template-columns: 1fr; }
    form.lead { grid-template-columns: 1fr; padding: 22px; }
    .ftr .wrap { grid-template-columns: 1fr; }
    section.block { padding: 56px 0; }
    .inv-dl { grid-template-columns: 1fr; }
}
