/* Платформа Кредистория — адаптивные стили */
:root {
  --ink: #14213d;
  --ink-soft: #4a5568;
  --bg: #f6f8fc;
  --card: #ffffff;
  --accent: #1d4ed8;
  --accent-dark: #1e40af;
  --accent-soft: #e8effc;
  --gold: #f59e0b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 33, 61, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Шапка */
.header { background: var(--card); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 20; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; flex-wrap: wrap; }
.header__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.header__logo { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #3b82f6); color: #fff; display: grid; place-items: center; font-size: 20px; }
.header__nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.header__nav a { color: var(--ink-soft); text-decoration: none; }
.header__nav a:hover { color: var(--accent); }

/* Герой */
.hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin-bottom: 16px; }
.hero__lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); margin-bottom: 24px; max-width: 560px; }
.hero__bullets { list-style: none; margin-top: 22px; display: grid; gap: 8px; }
.hero__bullets li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.hero__bullets li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero__note, #order-note-off { margin-top: 10px; font-size: 14px; color: var(--gold); font-weight: 600; }

/* Кнопки */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 999px; border: none;
  font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; box-shadow: 0 8px 20px rgba(29, 78, 216, .3); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(29, 78, 216, .38); }
.btn--big { font-size: 19px; padding: 18px 44px; }
.btn--small { padding: 10px 22px; font-size: 14px; }
.btn--ghost { background: transparent; border: 1px solid #cbd5e1; color: var(--ink-soft); }
.btn--disabled { background: #cbd5e1; color: #64748b; box-shadow: none; cursor: not-allowed; }

/* Секции */
.section { padding: 56px 0; }
.section--alt { background: var(--card); }
.section h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.section__lead { color: var(--ink-soft); margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid #e6ebf4; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15px; }
.section__cta { margin-top: 32px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.link-return { font-size: 14px; color: var(--ink-soft); }

/* О бюро */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.about p { margin-bottom: 14px; color: var(--ink-soft); }
.about__facts { display: grid; gap: 14px; }
.fact { background: var(--accent-soft); border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: baseline; gap: 12px; }
.fact__num { font-size: 26px; font-weight: 800; color: var(--accent); }
.fact__label { font-size: 14px; color: var(--ink-soft); }

/* FAQ */
.faq { background: var(--card); border: 1px solid #e6ebf4; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin-top: 10px; color: var(--ink-soft); }

/* Подвал */
.footer { background: var(--ink); color: #cbd5e1; padding: 32px 0; margin-top: 40px; font-size: 14px; }
.footer__disclosure { color: #94a3b8; margin-bottom: 10px; line-height: 1.5; }
.footer__links { margin-bottom: 10px; }
.footer__links a { color: #e2e8f0; }
.footer__copy { color: #64748b; }

/* Баннер согласия */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 560px; margin: 0 auto; background: var(--card); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(20, 33, 61, .25); padding: 18px 20px; font-size: 14px;
}
.consent__actions { display: flex; gap: 10px; margin-top: 12px; }

/* Текстовые страницы */
.text-page { max-width: 780px; }
.text-page h1 { margin-bottom: 20px; }
.text-page h2 { margin: 26px 0 10px; font-size: 22px; }
.text-page p, .text-page li { color: var(--ink-soft); margin-bottom: 12px; }
.text-page ul { padding-left: 22px; }
.text-page code { background: #eef2f9; border-radius: 6px; padding: 2px 6px; font-size: 14px; }
.text-page__back { margin-top: 24px; }

/* Адаптив */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header__nav { gap: 12px; font-size: 14px; }
  .hero { padding: 32px 0 28px; }
  .btn--big { width: 100%; text-align: center; }
  .section { padding: 36px 0; }
  .fact__num { font-size: 22px; }
}
