/* =========================================================================
   Служба оценки возможности списания долгов — одноэкранный лендинг.
   Структура — по референсу septikkanal.ru (герой + квиз, ничего лишнего).
   Стиль — finombudsman.ru: шрифт Exo 2, зелёный #006b58/#008675,
   бежевые кнопки, белый фон, мятная скруглённая карточка-герой.
   Квиз — в quiz.css.
   ========================================================================= */

:root {
  /* фирменный бирюзово-зелёный — как на finombudsman.ru */
  --brand: #006b58;
  --brand-600: #00553f;
  --brand-700: #00463a;
  --brand-900: #06342d;
  --brand-light: #008675;     /* зелёное ключевое слово / ссылки */
  --brand-50: #edf5f4;
  --brand-100: #d6e9e4;

  /* песочно-бежевый акцент — кнопки как на эталоне (градиент) */
  --sand-from: #e6d0bb;
  --sand-to: #edd5bc;
  --sand-from-h: #dcc4ab;
  --sand-to-h: #e4cbac;
  --sand: #d8bd97;

  /* нейтральные — белый фон + прохладные светлые поверхности */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f7f6;
  --ink: #352f2a;             /* основной текст */
  --heading: #45504c;         /* заголовки (их #4e4e4e, чуть «фирменнее») */
  --ink-2: #575553;
  --muted: #686868;
  --border: #e7eceb;
  --border-strong: #d3dad8;
  --red: #c0392b;

  /* алиасы для движка квиза (quiz.css написан в терминах --blue*) */
  --blue: var(--brand);
  --blue-hover: var(--brand-600);
  --blue-50: var(--brand-50);

  --font: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --r-pill: 999px;
  --r-xl: 28px;
  --r-lg: 18px;
  --r-md: 10px;
  --r-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(8, 50, 42, 0.05), 0 2px 8px rgba(8, 50, 42, 0.05);
  --shadow-md: 0 8px 28px rgba(8, 50, 42, 0.1);
  --shadow-lg: 0 24px 64px rgba(8, 50, 42, 0.16);

  --z-header: 100;
  --z-cookie: 400;
  --z-modal-backdrop: 900;
  --z-modal: 901;

  --maxw: 1240px;
  --header-h: 80px;
}

/* ----------------------------------------------------------- база */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-light); }
h1 { margin: 0; color: var(--heading); letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font-family: inherit; }

.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.3;
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  padding: 15px 26px; cursor: pointer; text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.16s var(--ease), box-shadow 0.22s var(--ease), color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
/* первичная кнопка — бежевый градиент как на finombudsman, тёмный читаемый текст */
.btn-primary { background: linear-gradient(95deg, var(--sand-from), var(--sand-to)); color: #3a322a; box-shadow: 0 6px 16px rgba(176, 142, 96, 0.3); }
.btn-primary:hover { background: linear-gradient(95deg, var(--sand-from-h), var(--sand-to-h)); box-shadow: 0 10px 24px rgba(176, 142, 96, 0.38); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0) scale(0.99); }
.btn-lg { font-size: 17.5px; padding: 19px 32px; border-radius: 10px; }
.btn-block { width: 100%; white-space: normal; }

/* ----------------------------------------------------------- шапка */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(170%) blur(13px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; }
.brand-logo {
  width: 50px; height: 50px; flex-shrink: 0; object-fit: contain;
  border-radius: 13px; background: #fff; padding: 5px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 16px; color: var(--heading); letter-spacing: -0.01em; }
.brand-sub { font-size: 13px; color: var(--muted); }

/* ----------------------------------------------------------- hero (один экран) */
.hero { padding: 36px 0 56px; }
.hero-grid {
  /* фото-колонка крупнее текстовой — как на /2/ (фото — главный акцент) */
  display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(24px, 3vw, 44px); align-items: stretch;
  /* мятная скруглённая карточка — сигнатурный приём finombudsman.ru */
  background: linear-gradient(105deg, #e6f9f6 0%, #eef7f5 52%, #ffffff 100%);
  border: 1px solid #e0efeb;
  border-radius: var(--r-xl);
  padding: clamp(22px, 2.8vw, 40px);
}
.hero-copy, .hero-media { min-width: 0; }

.hero h1 { font-size: clamp(2rem, 1.3rem + 2.9vw, 3.15rem); font-weight: 700; }
.hero h1 .accent { color: var(--brand-light); }

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

.hero-bullets {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 13px;
}
.hero-bullets li {
  position: relative; padding-left: 34px;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.16rem); font-weight: 600; color: var(--ink);
}
.hero-bullets li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 23px; height: 23px; border-radius: 50%;
  background: var(--brand-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='%23006b58' 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;
  border: 1px solid var(--brand-100);
}

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

/* плавное появление контента hero */
@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; }

/* ----------------------------------------------------------- карусель фото */
/* фото тянется ровно по высоте текстовой колонки (верх H1 → низ подписи) */
.hero-media { position: relative; height: 100%; min-height: 420px; }
.carousel {
  position: relative; height: 100%; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(8, 50, 42, 0.06);
  background: #dfeae6;
}
.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; object-position: center 32%; }

/* плашка СПИСАНО поверх фото */
.carousel-stamp {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: #fff;
  background: var(--brand); padding: 6px 12px; border-radius: 7px;
  box-shadow: 0 4px 12px rgba(0, 107, 88, 0.4); transform: rotate(3deg);
}

.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: 14px; }
.carousel-arrow.next { right: 14px; }
.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-2); }
.footer-inner { padding: 30px 0 32px; display: flex; flex-direction: column; gap: 18px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.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; padding: 6px;
}
.footer-logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.fb-name { font-weight: 600; font-size: 15px; color: var(--heading); max-width: 30ch; }
.footer-phone { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.fp-label { font-size: 12.5px; color: var(--muted); }
.fp-num { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.fp-num:hover { color: var(--brand); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.footer-legal a { color: var(--muted); text-decoration: none; font-size: 13.5px; transition: color 0.2s; }
.footer-legal a:hover { color: var(--brand); text-decoration: underline; }
.footer-req { font-size: 12.5px; color: var(--muted); line-height: 1.6; max-width: 92ch; }
.footer-req a { color: var(--brand); text-decoration: none; }
.footer-req a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .footer-phone { text-align: left; }
}

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

/* ----------------------------------------------------------- адаптив */
@media (max-width: 980px) {
  :root { --header-h: 74px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  /* в одну колонку фото больше не тянется по тексту — размер задаёт пропорция */
  .hero-media { max-width: 540px; margin-inline: auto; width: 100%; height: auto; min-height: 0; }
  .carousel { aspect-ratio: 16 / 12; height: auto; }
  .hero-cta-note { max-width: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .brand-name { font-size: 14.5px; }
  .brand-sub { font-size: 12px; }
  .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; }
  .btn { transition: none; }
}
