/* Цвета сайта — меняются здесь */
:root {
  --brand: #0f6fde;        /* основной цвет: плашки, акценты */
  --brand-2: #0bb5c9;      /* второй цвет градиента */
  --brand-soft: #e8f2ff;   /* светлая подложка */
  --cta: #17a34a;          /* кнопки «Перейти к заявке» */
  --cta-2: #0e8a3c;
  --ink: #0f172a;
  --muted: #5b6577;
  --line: #e4e9f1;
  --bg: #f5f8fc;
  --card: #ffffff;
  --ok: #15803d;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 40, 90, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.5;
}
a { color: var(--brand); }
button, input, textarea { font: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h2 { font-size: 30px; font-weight: 800; }
.sub { color: var(--muted); margin: 8px 0 0; }
.section { padding: 56px 0; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 12px; padding: 13px 22px; font-weight: 800;
  cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn-brand { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px rgba(15, 111, 222, .28); }
.btn-cta { background: linear-gradient(135deg, var(--cta), var(--cta-2)); color: #fff; box-shadow: 0 8px 20px rgba(23, 163, 74, .3); }

/* Шапка */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; }
.logo b { display: block; font-size: 18px; font-weight: 800; line-height: 1.1; }
.logo small { color: var(--muted); font-size: 12px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--brand); }

/* Первый экран */
.hero { background: linear-gradient(160deg, #e6f1ff 0%, #e3fbf6 60%, var(--bg) 100%); padding: 56px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.hero h1 { font-size: 46px; font-weight: 800; margin: 18px 0 14px; letter-spacing: -.02em; }
.hero h1 span { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; margin: 0 0 22px; max-width: 520px; }
.hero-form { display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 16px; box-shadow: var(--shadow); max-width: 520px; }
.hero-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #f8fafc; }
.hero-form input:focus, .lead input:focus, .lead textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.stats { display: flex; gap: 34px; margin-top: 26px; flex-wrap: wrap; }
.stats b { display: block; font-size: 22px; font-weight: 800; }
.stats span { color: var(--muted); font-size: 13px; }
.hero-art { position: relative; height: 320px; }
.art-card { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; }
.art-main { inset: 30px 30px 60px 40px; }
.art-main h4 { margin: 0 0 12px; font-size: 14px; color: var(--muted); font-weight: 700; }
.bar { display: flex; align-items: center; gap: 10px; margin: 11px 0; font-size: 13px; font-weight: 700; }
.bar span { width: 62px; color: var(--muted); }
.bar div { height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.bar em { font-style: normal; color: var(--ok); }
.art-a { left: 0; bottom: 20px; font-weight: 800; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.art-a i { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 14px; }
.art-b { right: 0; top: 0; background: var(--cta); color: #fff; text-align: center; font-weight: 800; font-size: 24px; line-height: 1; }
.art-b small { display: block; font-size: 11px; font-weight: 600; margin-top: 4px; opacity: .9; }

/* Опрос */
.match { background: #fff; border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.match-head { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; padding: 26px 30px; }
.match-head h2 { font-size: 24px; }
.match-head p { margin: 6px 0 0; opacity: .92; }
.match-prog { height: 4px; background: rgba(255, 255, 255, .3); border-radius: 9px; margin-top: 16px; }
.match-prog i { display: block; height: 100%; width: 25%; background: #fff; border-radius: 9px; transition: width .3s; }
.match-body { padding: 24px 30px 28px; }
.match-step { display: none; }
.match-step.on { display: block; animation: fade .25s; }
.match-q { font-weight: 800; margin: 0 0 14px; }
.match-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.match-opt { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 18px; font-weight: 700; cursor: pointer; transition: .15s; }
.match-opt:hover, .match-opt.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.match-back { background: none; border: 0; color: var(--muted); cursor: pointer; margin-top: 16px; padding: 0; font-weight: 600; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Каталог */
.note { display: flex; gap: 12px; background: var(--brand-soft); border: 1px solid #cfe2fb; border-radius: 14px; padding: 14px 16px; font-size: 14px; color: #33415c; margin: 22px 0; }
.note b { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #fff; padding: 5px; border-radius: 14px; box-shadow: var(--shadow); }
.chip { border: 0; background: none; padding: 9px 16px; border-radius: 10px; font-weight: 700; color: var(--muted); cursor: pointer; }
.chip:hover { color: var(--ink); }
.chip.on { background: var(--brand-soft); color: var(--brand); }
.active-filter { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.active-filter button { background: none; border: 0; color: var(--brand); font-weight: 700; cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; border: 1px solid transparent; transition: transform .18s, border-color .18s; }
.card:hover { transform: translateY(-3px); border-color: #cfe2fb; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.badge { font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 8px; }
.online { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ok); background: #ecfdf3; border-radius: 99px; padding: 5px 10px; }
.online i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.logo-box { height: 84px; display: grid; place-items: center; text-decoration: none; }
.logo-box img { max-height: 54px; max-width: 80%; }
.logo-text { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.svc { display: flex; justify-content: center; gap: 6px; min-height: 24px; }
.svc span { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; }
.promo { display: block; margin: 12px 0; background: var(--brand-soft); color: var(--brand); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 700; text-align: center; text-decoration: none; }
.rows { border-top: 1px solid var(--line); padding-top: 6px; margin-bottom: 14px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 14px; }
.row span { color: var(--muted); }
.row b { font-weight: 800; }
.row .amt { color: var(--brand); }
.row .rate { color: var(--ok); }
.appr { background: #ecfdf3; color: var(--ok); font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 99px; }
.card-note { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.card .btn { margin-top: auto; width: 100%; text-transform: uppercase; letter-spacing: .02em; }
.ad { font-size: 10px; color: #8a94a6; margin: 8px 0 0; text-align: center; }
.empty { grid-column: 1 / -1; background: #fff; border-radius: var(--radius); padding: 34px; text-align: center; color: var(--muted); }
.more { display: block; margin: 26px auto 0; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 26px; font-weight: 800; cursor: pointer; }
.more:hover { border-color: var(--brand); color: var(--brand); }

/* Советы и вопросы */
.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.tip { background: #fff; border-radius: 16px; padding: 18px; display: flex; gap: 14px; box-shadow: var(--shadow); }
.tip b { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.tip p { margin: 0; font-size: 15px; }
.faq { margin-top: 20px; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p, .faq details li { color: #33415c; font-size: 15px; }
.faq details > *:last-child { margin-bottom: 18px; }
.faq ul { padding-left: 20px; margin: 0; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.trio div { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: 16px; padding: 20px; }
.trio b { display: block; font-size: 17px; margin-bottom: 4px; }
.trio span { font-size: 14px; opacity: .92; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.review { background: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.review header { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.ava { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.review b { display: block; }
.review small { color: var(--muted); }
.review p { margin: 0; font-size: 15px; color: #33415c; }
.review.hid { display: none; }

/* Реквизиты */
.legal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.legal div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: 14px; color: #33415c; }
.legal b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 15px; }

/* Форма */
.lead { background: linear-gradient(135deg, #0b2a55, #0f6fde); color: #fff; padding: 56px 0; }
.lead .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.lead p { opacity: .9; }
.lead form { background: #fff; color: var(--ink); border-radius: 20px; padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead label { font-size: 13px; font-weight: 700; display: grid; gap: 6px; }
.lead input { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #f8fafc; width: 100%; }
.lead .full { grid-column: 1 / -1; }
.lead .fine { font-size: 12px; color: var(--muted); font-weight: 500; margin: 0; }

/* Подвал */
.foot { background: #0b1526; color: #b8c2d3; padding: 44px 0 110px; font-size: 14px; }
.foot .cols { display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 40px; }
.foot b.t { color: #fff; font-size: 18px; display: block; margin-bottom: 8px; }
.foot a { color: #9ecbff; }
.foot hr { border: 0; border-top: 1px solid #1f2c44; margin: 26px 0 18px; }
.foot .bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Предупреждение и cookie */
.warn { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff7e6; border-top: 1px solid #f5d899; color: #6b4a00; font-size: 13px; }
.warn .wrap { display: flex; gap: 12px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.warn b { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #f0a400; color: #fff; display: grid; place-items: center; }
.warn p { margin: 0; flex: 1; }
.warn button { background: none; border: 0; font-size: 22px; cursor: pointer; color: #6b4a00; line-height: 1; }
.cookie { position: fixed; left: 50%; transform: translateX(-50%); bottom: 70px; z-index: 70; width: min(560px, calc(100% - 24px)); background: #16233b; color: #e3e9f3; border-radius: 16px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; font-size: 13px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.cookie p { margin: 0; flex: 1; }
.cookie a { color: #9ecbff; }
.cookie .btn { padding: 10px 18px; }
[hidden] { display: none !important; }

/* Страница политики */
.doc { max-width: 820px; margin: 0 auto; padding: 40px 20px 80px; }
.doc h1 { font-size: 32px; margin-bottom: 18px; }
.doc h2 { font-size: 20px; margin: 28px 0 8px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero .wrap, .lead .wrap, .foot .cols { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero h1 { font-size: 34px; }
  .grid, .reviews { grid-template-columns: repeat(2, 1fr); }
  .trio { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  h2 { font-size: 24px; }
  .section { padding: 40px 0; }
  .grid, .reviews, .tips, .legal { grid-template-columns: 1fr; }
  .hero-form { flex-direction: column; }
  .lead form { grid-template-columns: 1fr; }
  .hdr .btn { padding: 10px 14px; font-size: 14px; }
  .logo small { display: none; }
  .match-head, .match-body { padding-left: 20px; padding-right: 20px; }
  .cookie { flex-direction: column; align-items: stretch; text-align: center; }
}
