/* ================= Переменные ================= */
:root {
  --ink: #0d0f14;          /* тёмный фон */
  --ink-2: #161a22;        /* карточки на тёмном */
  --ink-3: #232836;        /* линии на тёмном */
  --paper: #f4f3ee;        /* светлый фон */
  --white: #ffffff;
  --text: #12141a;
  --muted: #5c6270;
  --muted-dark: #a3a9b8;   /* серый текст на тёмном */
  --accent: #c6f432;       /* лаймовый акцент */
  --accent-ink: #12160a;   /* текст на акценте */
  --line: #e2e1da;
  --radius: 18px;
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: var(--body); color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }

/* ================= Кнопки ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #d8ff5c; }
.btn--ghost { border-color: rgba(255,255,255,.25); color: var(--white); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--line { border-color: var(--text); color: var(--text); background: transparent; }
.btn--line:hover { background: var(--text); color: var(--white); }
.btn--block { width: 100%; }

/* ================= Шапка ================= */
.header { position: sticky; top: 0; z-index: 50; background: rgba(13,15,20,.88); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); }
.logo__mark { font-family: var(--mono); font-weight: 500; font-size: 15px; background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 6px 8px; }
.logo__text { font-family: var(--display); font-weight: 700; font-size: 17px; }
.nav { display: flex; gap: 26px; }
.nav a { color: #d6d9e0; font-size: 14px; font-weight: 600; transition: color .2s; }
.nav a:hover { color: var(--accent); }
.nav__phone { display: none; }
.header__right { display: flex; align-items: center; gap: 10px; }
.header__phone { color: var(--white); font-weight: 700; margin-right: 6px; white-space: nowrap; }
.header__phone:hover { color: var(--accent); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: transform .2s; }
.icon-btn:hover { transform: scale(1.08); }
.icon-btn svg { width: 22px; height: 22px; fill: #fff; }
.icon-btn--tg { background: #2aabee; }
.icon-btn--wa { background: #25d366; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= Первый экран ================= */
.hero { background: var(--ink); color: var(--white); padding: 70px 0 0; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; padding-bottom: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted-dark); margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(198,244,50,.2); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .4; } }
.hero__title { font-size: clamp(34px, 5.2vw, 62px); font-weight: 800; margin-bottom: 22px; }
.hl { color: var(--accent); position: relative; white-space: nowrap; }
.hero__lead { font-size: 18px; color: #c7cbd6; max-width: 560px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 42px; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts b { font-family: var(--display); font-size: 26px; color: var(--white); }
.hero__facts span { font-size: 14px; color: var(--muted-dark); }

/* редактор кода + превью */
.hero__visual { position: relative; min-height: 440px; }
.editor, .preview { border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.editor { background: #12151d; border: 1px solid var(--ink-3); width: 88%; }
.editor__bar, .preview__bar, .mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; }
.editor__bar { background: #181c26; }
.editor__bar span, .preview__bar span, .mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a4050; }
.editor__bar span:first-child, .preview__bar span:first-child, .mock__bar span:first-child { background: #ff5f57; }
.editor__bar span:nth-child(2), .preview__bar span:nth-child(2), .mock__bar span:nth-child(2) { background: #febc2e; }
.editor__bar span:nth-child(3), .preview__bar span:nth-child(3), .mock__bar span:nth-child(3) { background: #28c840; }
.editor__bar em, .preview__bar em, .mock__bar em { font-style: normal; font-family: var(--mono); font-size: 12px; color: #7d8496; margin-left: 10px; }
.editor__code { font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: #d5d9e3; padding: 18px 20px 26px; min-height: 290px; white-space: pre-wrap; }
.editor__code .t { color: #7cc7ff; } .editor__code .a { color: var(--accent); } .editor__code .s { color: #ffb86b; } .editor__code .c { color: #6b7385; }
.caret { display: inline-block; width: 8px; height: 17px; background: var(--accent); vertical-align: -3px; animation: blink 1s steps(1) infinite; }

.preview { position: absolute; right: 0; bottom: 0; width: 62%; background: var(--white); color: var(--text); border: 1px solid #e8e8e8; }
.preview__bar { background: #f0f0ec; }
.preview__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; position: relative; min-height: 190px; }
.pv { border-radius: 6px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.pv--title { height: 22px; width: 85%; background: var(--ink); }
.pv--text { height: 10px; width: 100%; background: #dcdcd4; }
.pv--short { width: 65%; }
.pv--btn { align-self: flex-start; margin-top: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; padding: 10px 16px; border-radius: 999px; }
.preview__body.is-built .pv { opacity: 1; transform: none; }
.preview__body.is-built .pv:nth-child(2) { transition-delay: .15s; }
.preview__body.is-built .pv:nth-child(3) { transition-delay: .3s; }
.preview__body.is-built .pv:nth-child(4) { transition-delay: .45s; }
.pv-toast { position: absolute; right: 14px; bottom: 14px; background: #2aabee; color: #fff; font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: 10px; opacity: 0; transform: translateY(10px) scale(.95); transition: .4s; }
.preview__body.is-lead .pv-toast { opacity: 1; transform: none; }

/* бегущая строка */
.ticker { background: var(--accent); color: var(--accent-ink); overflow: hidden; transform: rotate(-1.2deg); margin: 0 -20px -10px; position: relative; z-index: 2; }
.ticker__track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker span { font-family: var(--display); font-weight: 700; font-size: 18px; padding: 14px 22px; white-space: nowrap; display: flex; align-items: center; gap: 22px; }
.ticker span::after { content: '✦'; font-size: 14px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ================= Секции ================= */
.section { padding: 100px 0; }
.section--alt { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--white); }
.section__kicker { font-family: var(--mono); font-size: 14px; color: var(--muted); margin-bottom: 14px; text-align: center; }
.section--dark .section__kicker { color: var(--accent); }
.section__title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; text-align: center; margin-bottom: 16px; }
.section__title--left { text-align: left; }
.section__sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto; }
.section--dark .section__sub { color: var(--muted-dark); }

/* для начинающих */
.start__hl { color: var(--text); background: linear-gradient(transparent 58%, var(--accent) 58%); padding: 0 4px; }
.start__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.start__item { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.start__num { display: inline-block; font-family: var(--mono); font-size: 14px; background: var(--ink); color: var(--accent); padding: 3px 10px; border-radius: 999px; margin-bottom: 16px; }
.start__item h3 { font-size: 18px; margin-bottom: 8px; }
.start__item p { color: var(--muted); font-size: 15px; }
.start__banner { margin-top: 22px; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.start__banner p { font-size: 18px; color: #c7cbd6; }
.start__banner b { color: var(--accent); font-family: var(--display); font-weight: 700; }

/* сравнение */
.compare { margin-top: 50px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare__head, .compare__row { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; }
.compare__head span { padding: 18px 22px; font-weight: 700; font-size: 14px; color: var(--muted); background: var(--paper); }
.compare__head .compare__us { background: var(--ink); color: var(--accent); }
.compare__row span { padding: 18px 22px; border-top: 1px solid var(--line); }
.compare__row span:first-child { font-weight: 700; }
.compare__row .no { color: var(--muted); }
.compare__row .yes { background: #fbfdf2; font-weight: 600; position: relative; padding-left: 48px; }
.compare__row .yes::before { content: ''; position: absolute; left: 20px; top: 21px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312160a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }

/* карточки услуг */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; align-items: stretch; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; position: relative; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(13,15,20,.1); }
.card--featured { background: var(--ink); color: var(--white); border-color: var(--ink); }
.card__tag { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card__desc { font-size: 15px; color: var(--muted); margin-bottom: 18px; min-height: 72px; }
.card--featured .card__desc { color: var(--muted-dark); }
.card__price { font-family: var(--display); font-size: 26px; font-weight: 800; }
.card--featured .card__price { color: var(--accent); }
.card__time { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.card--featured .card__time { color: var(--muted-dark); }
.card__list { list-style: none; flex: 1; margin-bottom: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.card--featured .card__list { border-color: var(--ink-3); }
.card__list li { font-size: 14.5px; padding: 5px 0 5px 24px; position: relative; }
.card__list li::before { content: '→'; position: absolute; left: 0; color: #7a9a10; font-weight: 700; }
.card--featured .card__list li::before { color: var(--accent); }

/* поддержка */
.support { margin-top: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 34px; align-items: center; }
.support__intro h3 { font-size: 24px; margin-bottom: 12px; }
.support__intro p { color: var(--muted); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.plan--accent { border: 2px solid var(--accent); background: #fbfdf2; }
.plan__name { font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.plan__price { font-family: var(--display); font-size: 28px; font-weight: 800; margin: 4px 0 12px; }
.plan__price small { font-family: var(--body); font-size: 15px; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; }
.plan li { font-size: 14.5px; padding: 4px 0 4px 22px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: #7a9a10; font-weight: 800; }

/* кейс */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.case .section__kicker { text-align: left; }
.case__lead { color: var(--muted); font-size: 17px; margin-bottom: 26px; }
.case__list { list-style: none; display: grid; gap: 16px; margin-bottom: 30px; }
.case__list li { display: flex; flex-direction: column; padding-left: 20px; border-left: 3px solid var(--accent); }
.case__list b { font-size: 16px; }
.case__list span { font-size: 15px; color: var(--muted); }

.case__mock { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(13,15,20,.14); transform: rotate(1.5deg); transition: transform .3s; background: #fff; }
.case__mock:hover { transform: rotate(0) scale(1.02); }
.mock__bar { background: #f0f0ec; }
.mock__body { font-family: 'Montserrat', var(--body); }
.mock__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; }
.mock__head img { border-radius: 50%; width: 44px; height: 44px; object-fit: cover; }
.mock__head b { color: #1d3557; font-size: 14px; font-weight: 800; flex: 1; }
.mock__head i { font-style: normal; font-weight: 700; color: #1d3557; font-size: 13px; }
.mock__nav { background: #1d3557; display: flex; justify-content: center; gap: 22px; padding: 9px; }
.mock__nav span { color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.mock__hero { background: linear-gradient(135deg, #f4f8fb, #e8f2f8); padding: 22px 18px; }
.mock__h { color: #1d3557; font-weight: 800; font-size: 19px; line-height: 1.25; margin-bottom: 14px; }
.mock__form { display: flex; gap: 8px; background: #fff; border-radius: 10px; padding: 8px; }
.mock__form span { flex: 1; border: 1px solid #d6e0ea; border-radius: 7px; padding: 8px 10px; font-size: 12px; color: #8a96a3; }
.mock__form em { font-style: normal; background: #1d3557; color: #fff; border-radius: 7px; padding: 8px 14px; font-size: 12px; font-weight: 700; }
.mock__calc { padding: 16px 18px 20px; }
.mock__calc p { font-weight: 800; color: #1d3557; font-size: 14px; margin-bottom: 8px; }
.mock__row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed #d6e0ea; color: #3d4b5c; }
.mock__row b { color: #1d3557; }
.mock__row--total { border-bottom: 0; font-weight: 800; font-size: 15px; color: #1d3557; }

/* калькулятор */
.calc { margin-top: 50px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.calc__options { display: grid; gap: 18px; }
.calc__group { border: 1px solid var(--ink-3); background: var(--ink-2); border-radius: var(--radius); padding: 24px; }
.calc__group[hidden] { display: none; }
.calc__group legend { font-family: var(--display); font-weight: 700; font-size: 17px; float: left; width: 100%; margin-bottom: 16px; display: flex; justify-content: space-between; }
.calc__group legend output { color: var(--accent); }
.chips { clear: both; display: flex; flex-wrap: wrap; gap: 10px; }
.chip input, .check input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--ink-3); cursor: pointer; font-weight: 600; transition: .2s; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span, .check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.range { clear: both; width: 100%; accent-color: var(--accent); height: 28px; }
.calc__hint { font-size: 13px; color: var(--muted-dark); margin-top: 6px; }
.checks { clear: both; display: grid; gap: 10px; }
.check span { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px 14px 48px; border-radius: 12px; border: 1.5px solid var(--ink-3); cursor: pointer; position: relative; transition: .2s; }
.check span::before { content: ''; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 6px; border: 1.5px solid #4a5163; transition: .2s; }
.check input:checked + span { border-color: var(--accent); }
.check input:checked + span::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312160a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--accent); }
.check b { color: var(--accent); white-space: nowrap; font-size: 14px; }

.calc__result { position: sticky; top: 90px; background: var(--white); color: var(--text); border-radius: var(--radius); padding: 28px; }
.calc__label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.calc__sum.is-range { font-size: 30px; }
.calc__sum { font-family: var(--display); font-size: 42px; font-weight: 800; line-height: 1.1; margin: 4px 0 16px; }
.calc__days { font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.calc__summary { list-style: none; border-top: 1px solid var(--line); padding-top: 12px; margin-bottom: 20px; font-size: 14px; color: var(--muted); display: grid; gap: 4px; }
.calc__summary li { display: flex; justify-content: space-between; gap: 10px; }
.calc__note { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }

/* шаги */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 50px; }
.steps li { counter-increment: s; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: '0' counter(s); font-family: var(--mono); font-size: 14px; color: var(--accent-ink); background: var(--accent); align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-weight: 500; margin-bottom: 8px; }
.steps b { font-family: var(--display); font-size: 16px; line-height: 1.25; }
.steps span { font-size: 14.5px; color: var(--muted); }

/* гарантии */
.guarantees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.guarantee { background: var(--white); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); }
.guarantee svg { width: 46px; height: 46px; padding: 10px; border-radius: 12px; background: var(--ink); fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.guarantee h3 { font-size: 18px; margin-bottom: 8px; }
.guarantee p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 44px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--text); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: 20px; transition: .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); }
.faq details p { color: var(--muted); padding-bottom: 20px; }

/* контакты */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contacts .section__kicker { text-align: left; }
.contacts__lead { color: var(--muted-dark); font-size: 17px; margin-bottom: 26px; }
.contacts__phone { display: inline-block; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 24px; }
.contacts__phone:hover { color: var(--accent); }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.messenger { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 700; color: #fff; transition: transform .2s; }
.messenger:hover { transform: translateY(-2px); }
.messenger svg { width: 22px; height: 22px; fill: #fff; }
.messenger--tg { background: #2aabee; }
.messenger--wa { background: #1fa855; }
.messenger--call { background: var(--ink-3); }

.form { background: var(--white); color: var(--text); border-radius: var(--radius); padding: 32px; display: grid; gap: 14px; }
.form h3 { font-size: 22px; margin-bottom: 4px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; font: 16px var(--body); padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fafaf7; color: var(--text); transition: border-color .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--text); background: #fff; }
.form input.is-error { border-color: #d93636; }
.form .consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 13px; color: var(--muted); }
.form .consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* подвал */
.footer { background: #08090c; color: var(--muted-dark); padding: 34px 0; font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; }
.logo--small .logo__text { font-size: 15px; }
.footer__links { display: flex; gap: 20px; }
.footer__links a:hover { color: var(--accent); }

/* плавающие кнопки */
.float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.float__btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.25); transition: transform .2s; }
.float__btn:hover { transform: scale(1.08); }
.float__btn svg { width: 28px; height: 28px; fill: #fff; }
.float__btn--tg { background: #2aabee; }
.float__btn--wa { background: #25d366; }

/* уведомление */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; background: var(--ink); color: #fff; border: 1px solid var(--accent); padding: 16px 22px; border-radius: 14px; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.toast[hidden] { display: none; }
.toast a { color: var(--accent); text-decoration: underline; }

/* появление при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================= Адаптив ================= */
@media (max-width: 1100px) {
  .start__grid { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 18px; }
  .header__phone { display: none; }
  .cards, .guarantees { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .support { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--ink); padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s;
  }
  .nav.is-open { max-height: 480px; padding: 8px 20px 18px; border-bottom: 1px solid var(--ink-3); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--ink-3); font-size: 16px; }
  .nav__phone { display: block; color: var(--accent) !important; }

  .hero { padding-top: 44px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-bottom: 54px; }
  .hero__visual { min-height: 380px; }
  .case, .contacts, .calc { grid-template-columns: 1fr; gap: 36px; }
  .calc__result { position: static; }
  .compare__head, .compare__row { grid-template-columns: 1fr 1fr; }
  .compare__head span:first-child { display: none; }
  .compare__row span:first-child { grid-column: 1 / -1; background: var(--paper); padding-top: 12px; padding-bottom: 12px; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  .start__grid { grid-template-columns: 1fr; }
  .start__banner { padding: 22px; }
  .start__banner .btn { width: 100%; }
  .header__right .icon-btn { width: 40px; height: 40px; }
  .logo__text { font-size: 15px; }
  .hero__cta .btn { width: 100%; }
  .hero__facts b { font-size: 22px; }
  .editor { width: 100%; }
  .editor__code { font-size: 12px; min-height: 250px; padding: 14px; }
  .preview { width: 78%; }
  .cards, .guarantees, .plans, .steps { grid-template-columns: 1fr; }
  .card__desc { min-height: 0; }
  .compare__row span { padding: 14px; font-size: 14px; }
  .compare__row .yes { padding-left: 40px; }
  .compare__row .yes::before { left: 14px; top: 17px; }
  .compare__head span { padding: 14px; font-size: 13px; }
  .support, .form, .calc__result, .calc__group { padding: 22px; }
  .check span { flex-direction: column; align-items: flex-start; gap: 2px; }
  .calc__sum { font-size: 36px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .float__btn { width: 50px; height: 50px; }
}
