/* =========================================================
   НАСТРОЙКИ ДИЗАЙНА — меняйте значения здесь,
   и они применятся ко всему сайту сразу.
   ========================================================= */
:root {
  /* Цвета */
  --color-accent: #12976b;        /* главный цвет: кнопки, заголовки, слайдер (изумрудный) */
  --color-accent-hover: #0d7c57;  /* кнопка при наведении */
  --color-accent-soft: #ddf3ea;   /* светлый оттенок акцента (фоны, плашки) */
  --color-text: #0b2545;          /* основной текст (тёмно-синий) */
  --color-muted: #4a5a70;         /* второстепенный текст */
  --color-bg: #f4faf7;            /* фон страницы */
  --color-card: #ffffff;          /* фон карточек */
  --color-star: #ffb627;          /* звёзды в отзывах */
  --color-footer: #0b2545;        /* фон подвала */

  /* Шрифты (подключаются в <head> HTML-файлов) */
  --font-heading: "Nunito", "Poppins", sans-serif;
  --font-heading-weight: 900;     /* жирность заголовков */
  --font-main: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Размеры */
  --radius: 30px;                 /* скругление карточек и блоков */
  --radius-btn: 60px;             /* скругление кнопок */
  --container: 1240px;            /* максимальная ширина контента */
  --section-gap: 100px;           /* отступ между секциями */
  --shadow: 0 20px 50px rgba(11, 37, 69, .08);
  --color-highlight: #ffc845;     /* второй акцент (жёлтый) */
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-main); font-size: 18px; line-height: 1.5;
  color: var(--color-text); background: var(--color-bg); overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.mobile-show { display: none !important; }

/* Фон страницы: декоративные пятна (вместо фоновой картинки) */
.body__bg { position: absolute; inset: 0 0 auto 0; height: 1100px; z-index: -1; overflow: hidden; }
.body__bg::before, .body__bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(10px);
}
.body__bg::before { width: 900px; height: 900px; right: -250px; top: -300px;
  background: radial-gradient(circle, rgba(18, 151, 107, .22), rgba(18, 151, 107, 0) 70%); }
.body__bg::after { width: 600px; height: 600px; left: -250px; top: 300px;
  background: radial-gradient(circle, rgba(255, 200, 69, .25), rgba(255, 200, 69, 0) 70%); }
.site-container { position: relative; }

/* Заголовки */
.title-h1 h1 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 64px; line-height: 1.05; }
.title-h2 h2 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 48px; line-height: 1.1; }
.title-h3 h3, .title-h3 p { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 26px; line-height: 1.2; }
.title--red, .title--red h1, .title--red h2, .title--red h3 { color: var(--color-accent); }

/* Кнопка */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 300px; padding: 22px 40px; border: 0; border-radius: var(--radius-btn);
  background: var(--color-accent); color: #fff; cursor: pointer;
  font: 700 18px/1 var(--font-main); text-transform: uppercase; text-decoration: none;
  box-shadow: 0 12px 30px rgba(18, 151, 107, .35); transition: background .2s, transform .2s;
}
.btn:hover { background: var(--color-accent-hover); transform: translateY(-2px); }
.btn span { font-size: 14px; font-weight: 600; text-transform: none; padding: 6px 10px; border-radius: 30px; background: var(--color-highlight); color: var(--color-text); }

/* ---------- Шапка ---------- */
.header { padding: 30px 0 10px; }
.header__logo, .footer__logo {
  display: inline-flex; align-items: center; gap: 10px; height: 51px;
  font: 900 30px/1 var(--font-heading); color: var(--color-text); text-decoration: none; letter-spacing: -.02em;
}
.header__logo img, .footer__logo img { width: 44px; height: 44px; }
.header__logo b, .footer__logo b { font-weight: 900; color: var(--color-accent); }

/* ---------- Promo (первый экран) ---------- */
.promo { padding: 40px 0 var(--section-gap); }
.promo__container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.promo__text { margin-top: 24px; font-size: 20px; max-width: 520px; }
.promo-slider {
  margin-top: 36px; padding: 34px 36px 36px; background: var(--color-card);
  border-radius: var(--radius); box-shadow: var(--shadow); max-width: 560px;
}
.promo__representative { margin-top: 24px; font-size: 13px; color: var(--color-muted); max-width: 560px; }
.promo__img { aspect-ratio: 656 / 775; }
.promo__img img, .quick-cash__img img, .steps__img img { width: 100%; height: 100%; object-fit: contain; }

/* Слайдер суммы */
.promo-slider__value { position: relative; height: 54px; margin: 0 52px 10px; }
.ui-slider__value {
  position: absolute; left: var(--progress, 0%); transform: translateX(-50%); bottom: 0;
  padding: 8px 18px; border-radius: 30px; background: var(--color-accent-soft);
  font: 900 26px/1 var(--font-heading); color: var(--color-accent); white-space: nowrap;
}
.ui-slider__value::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%);
  border: 7px solid transparent; border-bottom: 0; border-top-color: var(--color-accent-soft);
}
.promo-slider__wrapper { display: flex; align-items: flex-start; gap: 18px; }
.promo-slider__wrapper-inner { flex: 1; padding-top: 13px; }
.ui-slider__btn {
  flex: 0 0 34px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: var(--color-accent); color: #fff; cursor: pointer; font-size: 22px; line-height: 34px;
}
.ui-slider__btn:hover { background: var(--color-accent-hover); }
.ui-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; outline: none; cursor: pointer;
  background: linear-gradient(to right, var(--color-accent) var(--progress, 0%), #dce9e3 var(--progress, 0%)); }
.ui-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 6px solid var(--color-accent); box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.ui-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 6px solid var(--color-accent); }
.ui-slider__limit { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; margin-top: 12px; font-size: 13px; color: var(--color-muted); }
.promo-slider__btn { margin-top: 28px; }
.promo-slider__btn .btn { width: 100%; }

/* Заглушка картинки — замените на <img src="..."> */
.img-placeholder {
  width: 100%; height: 100%; min-height: 200px; border-radius: var(--radius);
  display: grid; place-items: center; text-align: center; padding: 20px;
  background: repeating-linear-gradient(45deg, #fbe9e3, #fbe9e3 14px, #f8dfd7 14px, #f8dfd7 28px);
  color: var(--color-accent); font-size: 15px; font-weight: 600;
}

/* ---------- Features ---------- */
.features { padding-bottom: var(--section-gap); text-align: center; }
.features__subtitle h2 { margin-top: 12px; font: 900 32px/1.2 var(--font-heading); }
.features__container { margin-top: 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.features__card { padding: 40px 30px; background: var(--color-card); border-radius: var(--radius); box-shadow: var(--shadow); }
.features__card-img { width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 50%; background: var(--color-accent-soft); display: grid; place-items: center; }
.features__card-img svg { width: 40px; height: 40px; }
.features__card-text { margin-top: 12px; color: var(--color-muted); }

/* ---------- Quick cash ---------- */
.quick-cash { padding-bottom: var(--section-gap); }
.quick-cash__container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.quick-cash__img { aspect-ratio: 774 / 540; }
.quick-cash__text { margin-top: 24px; font-size: 18px; }
.quick-cash__btn { margin-top: 36px; }

/* ---------- Offer ---------- */
.offer { padding-bottom: var(--section-gap); text-align: center; }
.offer__subtitle { margin-top: 12px; }
.offer__subtitle p { color: var(--color-text); }
.offer__container { margin-top: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.offer__card { padding: 50px 40px; border-radius: var(--radius); background: var(--color-card); box-shadow: var(--shadow); }
.offer__card:nth-child(2) { background: var(--color-accent); }
.offer__card:nth-child(2) h3, .offer__card:nth-child(2) p { color: #fff; }
.offer__card-text { margin-top: 14px; }

/* ---------- Steps ---------- */
.steps { padding-bottom: var(--section-gap); }
.steps__container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.steps__subtitle { margin-top: 20px; font-size: 20px; }
.steps__list { margin-top: 30px; counter-reset: st; display: grid; gap: 18px; }
.steps__list li { counter-increment: st; position: relative; padding: 22px 24px 22px 86px; background: var(--color-card); border-radius: 20px; box-shadow: var(--shadow); }
.steps__list li::before {
  content: counter(st); position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-accent); color: #fff; font: 900 22px/1 var(--font-heading);
}
.steps__btn { margin-top: 36px; }
.steps__img { aspect-ratio: 741 / 802; }

/* ---------- Flexibility ---------- */
.flexibility { padding-bottom: var(--section-gap); }
.flexibility__container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
  padding: 60px; border-radius: var(--radius); background: var(--color-accent-soft);
}
.flexibility__text { margin-top: 20px; }
.flexibility__label { margin-top: 24px; }
.flexibility__label span { display: inline-block; padding: 10px 20px; border-radius: 30px; background: #fff; color: var(--color-accent); font-weight: 600; font-size: 15px; }
.audience { display: grid; gap: 14px; }
.audience__item { display: flex; align-items: center; gap: 18px; padding: 20px 24px; background: var(--color-card); border-radius: 20px; box-shadow: var(--shadow); }
.audience__icon { flex: 0 0 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--color-accent); color: #fff; }
.audience__icon svg { width: 26px; height: 26px; }
.audience__item h3 { font: var(--font-heading-weight) 22px/1.2 var(--font-heading); color: var(--color-text); }
.audience__item p { margin-top: 2px; font-size: 15px; color: var(--color-muted); }
.audience .btn { margin-top: 10px; width: 100%; }
.footer__representative:empty, .footer__links:empty, .footer__company:empty { min-height: 0; }

/* ---------- Testimonials ---------- */
.testimonials { padding-bottom: var(--section-gap); }
.testimonials__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.testimonials__slider-nav { display: flex; align-items: center; gap: 16px; font-weight: 600; }
.testimonials__slider-btn { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--color-accent); background: transparent; color: var(--color-accent); cursor: pointer; font-size: 22px; }
.testimonials__slider-btn:hover:not(:disabled) { background: var(--color-accent); color: #fff; }
.testimonials__slider-btn:disabled { opacity: .35; cursor: default; }
.testimonials__slider { margin-top: 40px; }
.swiper { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 10px 2px 30px; }
.swiper::-webkit-scrollbar { display: none; }
.testimonials__slider-card { flex: 0 0 380px; scroll-snap-align: start; padding: 32px; background: var(--color-card); border-radius: var(--radius); box-shadow: var(--shadow); }
.item-rating { color: var(--color-star); font-size: 22px; letter-spacing: 2px; }
.testimonials__slider-author { display: block; margin-top: 12px; font: 900 24px/1.2 var(--font-heading); }
.testimonials__slider-text { margin-top: 12px; font-size: 16px; color: var(--color-muted); }
.testimonials__note { font-size: 13px; color: var(--color-muted); }

/* ---------- FAQ ---------- */
.faq { padding-bottom: var(--section-gap); }
.faq__title { text-align: center; }
.faq__list { max-width: 860px; margin: 40px auto 0; display: grid; gap: 14px; }
.faq__item { background: var(--color-card); border-radius: 20px; box-shadow: var(--shadow); }
.faq__item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 64px 22px 26px; font-weight: 600; font-size: 18px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-accent-soft); color: var(--color-accent); font-size: 22px; font-weight: 700; transition: transform .2s;
}
.faq__item[open] summary::after { content: "−"; background: var(--color-accent); color: #fff; }
.faq__answer { padding: 0 26px 22px; color: var(--color-muted); font-size: 16px; }

/* ---------- Banner ---------- */
.banner { padding-bottom: var(--section-gap); }
.banner__container { padding: 70px 60px; border-radius: var(--radius); background: var(--color-card); box-shadow: var(--shadow); text-align: center; }
.banner__text { margin: 20px auto 0; max-width: 820px; }
.banner__btn { margin-top: 36px; }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 40px; background: var(--color-footer); color: rgba(255,255,255,.75); font-size: 14px; }
.footer__logo { color: #fff; }
.footer__logo b { color: #5fd3a8; }
.footer__info { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 50px; }
.footer__representative { display: flex; flex-direction: column; gap: 6px; }
.footer__representative strong { color: #fff; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { color: #fff; }
.footer__bottom { margin-top: 50px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer__company { display: flex; gap: 40px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; margin: 6px 0; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.15); white-space: nowrap; }
.table th { color: #fff; font-weight: 600; }

/* ---------- Окно с формой (popup) ---------- */
.popup-overlay {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  padding: 16px; background: rgba(11, 37, 69, .6);
}
.popup-overlay.is-open { display: flex; }
.popup {
  position: relative; width: 100%; max-width: 480px;
  padding: 32px 32px 28px; border-radius: var(--radius); background: #fff; animation: pop .3s ease;
}
@keyframes pop { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.popup__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent); font-size: 26px; line-height: 40px; cursor: pointer; }
.popup__title { font: 900 30px/1.1 var(--font-heading); color: var(--color-accent); }
.popup__sub { margin-top: 4px; font-size: 15px; color: var(--color-muted); }
.form { margin-top: 0; }
.popup-overlay { overflow-y: auto; }
.form__field { margin-bottom: 12px; }
.form__field label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.form__field input, .form__field select {
  width: 100%; padding: 12px 16px; border: 2px solid #d9e8e1; border-radius: 16px; font: inherit; font-size: 16px; color: var(--color-text); background: #fff;
}
.form__field input:focus, .form__field select:focus { outline: none; border-color: var(--color-accent); }
.form__check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 13px; color: var(--color-muted); }
.form__check input { margin-top: 3px; accent-color: var(--color-accent); }
.form .btn { width: 100%; min-width: 0; }
.form__success { display: none; text-align: center; }
.form__success.is-visible { display: block; }
.form__success .btn { margin-top: 24px; min-width: 0; }

/* ---------- Пустая страница ---------- */
.page-empty { min-height: 55vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .title-h1 h1 { font-size: 48px; }
  .title-h2 h2 { font-size: 38px; }
  .flexibility__container { grid-template-columns: 1fr; padding: 40px; }
}
@media (max-width: 860px) {
  :root { --section-gap: 60px; --radius: 22px; }
  body { font-size: 16px; }
  .mobile-hide { display: none !important; }
  .mobile-show { display: block !important; }
  .promo__container, .quick-cash__container, .offer__container, .steps__container { grid-template-columns: 1fr; }
  .features__container { grid-template-columns: 1fr; }
  .promo { padding-top: 20px; }
  .steps__img.mobile-show { width: 115px; height: 115px; aspect-ratio: auto; margin-top: 20px; }
  .steps__img.mobile-show .img-placeholder { min-height: 0; font-size: 11px; border-radius: 50%; }
  .footer__info { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .header__logo { font-size: 24px; }
  .header__logo img { width: 38px; height: 38px; }
  .title-h1 h1 { font-size: 38px; }
  .title-h2 h2 { font-size: 30px; }
  .features__subtitle h2 { font-size: 24px; }
  .promo-slider { padding: 26px 18px; }
  .promo-slider__value { margin: 0 44px 10px; }
  .btn { min-width: 0; width: 100%; padding: 20px 24px; font-size: 16px; }
  .flexibility__container, .banner__container { padding: 30px 20px; }
  .testimonials__top { flex-direction: column; align-items: flex-start; }
  .testimonials__slider-card { flex-basis: 86%; }
  .popup { padding: 26px 20px 22px; }
  .popup__title { font-size: 26px; }
  .faq__item summary { font-size: 16px; padding: 18px 56px 18px 20px; }
  .faq__answer { padding: 0 20px 18px; font-size: 15px; }
}
