/* =========================================================================
   Единый центр проверки списания долгов — одноэкранный лендинг
   (по референсу septikkanal.ru) в стиле «Госуслуги». Квиз — в quiz.css.
   ========================================================================= */

:root {
  --blue: #0d4cd3;
  --blue-hover: #0a3cb0;
  --blue-bright: #2965ff;
  --blue-50: #eaf0ff;
  --blue-100: #d8e3ff;
  --green: #2bb673;
  --red: #ee3f58;

  --ink: #0b1f33;
  --body: #2b3849;
  --muted: #5a6b7b;

  --bg: #f2f5fa;
  --surface: #ffffff;
  --border: #e2e8f1;
  --border-strong: #cdd7e6;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(13, 38, 76, 0.05);
  --shadow-md: 0 8px 28px rgba(13, 38, 76, 0.08);
  --shadow-lg: 0 24px 64px rgba(13, 38, 76, 0.16);
  --shadow-blue: 0 12px 30px rgba(13, 76, 211, 0.28);

  --font: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --z-header: 100;
  --z-modal-backdrop: 800;
  --z-modal: 810;
  --z-cookie: 900;

  --maxw: 1240px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1 { color: var(--ink); margin: 0; letter-spacing: -0.025em; line-height: 1.06; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 24px;
}

/* --------------------------------------------------------------- кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  border: none;
  border-radius: var(--r-sm);
  padding: 16px 26px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s var(--ease), transform 0.12s var(--ease), box-shadow 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-2px); }
.btn-primary:active { transform: scale(0.96); }
.btn-lg { font-size: 18px; padding: 21px 34px; border-radius: 14px; }

/* --------------------------------------------------------------- шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.brand-text { font-weight: 700; font-size: 16px; color: var(--ink); line-height: 1.25; letter-spacing: -0.01em; }

/* --------------------------------------------------------------- hero */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 40px 0 56px;
  background:
    radial-gradient(1100px 560px at 92% 4%, rgba(41, 101, 255, 0.1), transparent 60%),
    radial-gradient(760px 460px at -6% 14%, rgba(13, 76, 211, 0.07), transparent 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.85rem); font-weight: 700; line-height: 1.08; }
.hero h1 .accent { color: var(--blue); }

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--blue-50);
  color: var(--blue);
  font-weight: 700;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  margin: 18px 0 0;
}
.hero-chip svg { stroke-width: 2; }

.hero-bullets {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.hero-bullets li {
  position: relative;
  padding-left: 34px;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
  font-weight: 600;
  color: var(--ink);
}
.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230d4cd3' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.btn-cta-main { margin-top: 26px; max-width: 560px; }
.hero-cta-note { font-size: 14.5px; color: var(--muted); margin-top: 14px; max-width: 52ch; }

/* плавное появление контента hero (выключается при reduce-motion глобально) */
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: heroIn 0.6s var(--ease) both; }
.hero-copy h1 { animation-delay: 0.02s; }
.hero-chip { animation-delay: 0.1s; }
.hero-bullets { animation-delay: 0.18s; }
.btn-cta-main { animation-delay: 0.26s; }
.hero-cta-note { animation-delay: 0.32s; }
.hero-media { animation: heroIn 0.7s var(--ease) both; animation-delay: 0.12s; }

/* --------------------------------------------------------------- карусель */
.hero-media { position: relative; }
.carousel {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(0, 0, 0, 0.07);
  background: #dfe6f1;
  aspect-ratio: 1 / 1.02;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.65s var(--ease);
  will-change: transform;
}
.carousel-slide { flex: 0 0 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.carousel-arrow:hover { background: #fff; }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }
.carousel-arrow.prev:hover { transform: translateY(-50%) translateX(-2px); }
.carousel-arrow.next:hover { transform: translateY(-50%) translateX(2px); }

.carousel-dots {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dots button {
  width: 9px; height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s var(--ease), width 0.3s var(--ease);
}
.carousel-dots button.active { background: #fff; width: 24px; border-radius: var(--r-pill); }

/* --------------------------------------------------------------- низ */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 40px;
  padding: 32px 0;
}
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-logo-tile {
  width: 48px; height: 48px; flex-shrink: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  display: grid; place-items: center;
}
.footer-logo-tile img { width: 38px; height: 38px; object-fit: contain; }
.fb-name { font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }

.footer-req { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.footer-req p { margin: 0; }
.footer-org { color: var(--body); font-weight: 600; }
.footer-phone {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none;
  font-variant-numeric: tabular-nums; transition: color 0.2s;
}
.footer-phone:hover { color: var(--blue); }
.footer-phone svg { color: var(--blue); stroke-width: 2; }

.footer-legal { display: flex; flex-direction: column; gap: 9px; }
.footer-legal a { color: var(--muted); text-decoration: none; font-size: 13.5px; transition: color 0.2s; }
.footer-legal a:hover { color: var(--blue); text-decoration: underline; }

/* --------------------------------------------------------------- cookie */
.cookie-banner {
  position: fixed;
  bottom: 18px; right: 18px;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  z-index: var(--z-cookie);
  display: flex; flex-direction: column; gap: 13px;
}
.cookie-banner.hidden { display: none; }
.cookie-text { font-size: 13.5px; color: var(--body); }
.cookie-text a { color: var(--blue); text-decoration: none; }
.cookie-accept {
  align-self: flex-start;
  background: var(--blue); color: #fff;
  border: none; border-radius: var(--r-sm);
  padding: 11px 26px; font-family: var(--font);
  font-weight: 600; font-size: 14px; cursor: pointer;
}
.cookie-accept:hover { background: var(--blue-hover); }

/* --------------------------------------------------------------- адаптив */
@media (max-width: 980px) {
  :root { --header-h: 76px; }
  .hero { min-height: 0; padding: 36px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { max-width: 460px; margin-inline: auto; width: 100%; order: -1; }
  .carousel { aspect-ratio: 16 / 11; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .brand-text { font-size: 14px; }
  .brand-logo { width: 46px; height: 46px; }
  .btn-cta-main { width: 100%; max-width: none; }
  .carousel { aspect-ratio: 4 / 3.6; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .carousel-track { transition: none; }
}
