/* ==========================================================================
   "Мы помогаем должникам" — базовые стили сайта
   Цвета и шрифт — по фирменному брендбуку (2014, Open Sans)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,400&display=swap');

:root{
  --red:        #ff1e00; /* знак «Мы», контакт, слоган-акцент */
  --navy:       #004691; /* слоган, заголовок */
  --grey-light: #d7d7d7; /* стилеобразующий элемент */
  --grey-dark:  #646464; /* слоган в монохроме / вспомогательный текст */
  --green:      #25d366; /* акцент для основной кнопки-действия (цвет WhatsApp, не из брендбука) */
  --bg:         #f7f7f7;
  --bg-alt:     #ffffff;
  --text:       #222222;
  --text-muted: #5b5b5b;
  --border:     #e6e6e6;
  --radius:     14px;
  --shadow:     0 4px 18px rgba(0,0,0,.06);
  --container:  1160px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

h1, h2, h3, h4{
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--navy);
  text-align: center;
}

h1{ font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); }
h2{ font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3{ font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }

p{ margin: 0 0 1em; }

ul{ margin: 0; padding: 0; }
li{ list-style: none; }

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

.accent{ color: var(--red); }
.navy{ color: var(--navy); }

.section{ padding: 56px 0; }
.section--alt{ background: var(--bg-alt); }
.section--red{ background: #fff4f2; color: var(--text); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--red h2{ color: var(--navy); }
.section--red h3{ color: var(--red); }
.section-title{ text-align: center; margin-bottom: 8px; }
.section-lead{ text-align: center; color: var(--text-muted); max-width: 680px; margin: 0 auto 36px; }

/* ---------- Кнопки ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn--primary{ background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.32); animation: btn-pulse 2.6s ease-in-out infinite; }
.btn--primary:hover{ transform: translateY(-1px); box-shadow: 0 10px 26px rgba(37,211,102,.4); animation-play-state: paused; }
.btn--navy{ background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.32); }
.btn--navy:hover{ transform: translateY(-1px); box-shadow: 0 10px 26px rgba(37,211,102,.4); }
.btn--outline{ background: transparent; border-color: currentColor; color: var(--navy); }
.btn--block{ width: 100%; }
.btn--sm{ padding: 10px 18px; font-size: .92rem; }

@keyframes btn-pulse{
  0%, 100%{ box-shadow: 0 8px 20px rgba(37,211,102,.32); }
  50%{ box-shadow: 0 8px 26px rgba(37,211,102,.6), 0 0 0 6px rgba(37,211,102,.12); }
}
@media (prefers-reduced-motion: reduce){
  .btn--primary{ animation: none; }
}

/* ---------- Хедер ---------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: #fff;
}
.header-pattern{
  height: 8px;
  background-color: var(--red);
  background-image: radial-gradient(circle at 9px 4px, #fff 2.4px, transparent 3px);
  background-size: 18px 18px;
  background-repeat: repeat-x;
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
}
.logo{ flex: 0 0 auto; }
.logo img{ height: 40px; width: auto; }

.main-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  flex: 0 0 auto;
}
.main-nav a{
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.is-active{ color: var(--red); border-color: var(--red); }

.header-actions{ display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.icon-btn{
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg);
  color: var(--navy);
  border: 1px solid var(--border);
}
.icon-btn svg{ width: 20px; height: 20px; }
.icon-btn--wa{ background: #25d366; color: #fff; border-color: #25d366; }
.icon-btn--tg{ background: #29a9eb; color: #fff; border-color: #29a9eb; }
.icon-btn--call{ background: var(--red); color: #fff; border-color: var(--red); }

.burger{
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  cursor: pointer;
}
.burger span{ width: 20px; height: 2px; background: var(--red); border-radius: 2px; }

@media (max-width: 900px){
  .main-nav{
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.is-open{ max-height: 480px; }
  .main-nav a{ padding: 14px 20px; border-bottom: 1px solid var(--border); }
  .burger{ display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero{
  padding: 46px 0 56px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-intro{
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}
.hero h1{ margin-bottom: .35em; }
.hero-sub{ font-weight: 700; color: var(--navy); font-size: 1.02rem; margin-bottom: 14px; }
.hero .lead{ font-size: 1.08rem; color: var(--text-muted); max-width: 620px; margin-left: auto; margin-right: auto; text-align: center; }
.hero-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.hero-checks{ display: grid; gap: 14px; }
.hero-checks li{
  display: flex; gap: 10px; align-items: flex-start;
  font-weight: 600;
}
.check-ico{
  flex: none; width: 24px; height: 24px; border-radius: 6px;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; margin-top: 1px;
}
.hero-cta{ display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.hero-cta--center{ justify-content: center; }
.hero-side{
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); height: 100%;
}
.hero-side h3{ margin-bottom: 14px; }
.help-list{ display: grid; gap: 10px; }
.help-list li{ display: flex; gap: 8px; font-size: .95rem; align-items: center; }
.help-list li::before{
  content: "→"; color: var(--red); font-weight: 800; font-size: 1.2em; line-height: 1;
  text-shadow: .6px 0 currentColor, -.6px 0 currentColor, 0 .6px currentColor, 0 -.6px currentColor;
  -webkit-text-stroke: .6px currentColor;
}
.legal-note--center{ margin-left: auto; margin-right: auto; }

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
}

/* ---------- Карточки ---------- */
.cards{ display: grid; gap: 22px; }
.cards--3{ grid-template-columns: repeat(3, 1fr); }
.cards--2{ grid-template-columns: repeat(2, 1fr); }
.cards--4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
  .cards--3, .cards--2, .cards--4{ grid-template-columns: 1fr; }
}

.card{
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3{ margin-bottom: 10px; }
.card p{ color: var(--text-muted); margin-bottom: 0; }

.check-card{
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; font-weight: 600;
}

/* ---------- Списки долгов "можно/нельзя" ---------- */
.two-col{ display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 760px){ .two-col{ grid-template-columns: 1fr; } }
.list-block{
  background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
  padding: 24px; box-shadow: var(--shadow);
}
.list-block h3{ display: flex; align-items: center; justify-content: center; gap: 10px; }
.list-block ul{ display: grid; gap: 10px; margin-top: 14px; }
.list-block li{ display: flex; gap: 10px; align-items: flex-start; }
.mark{
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800; color: #fff; margin-top: 2px;
}
.mark--yes{ background: var(--green); }
.mark--no{ background: var(--red); }

/* ---------- Этапы / шаги ---------- */
.steps{ counter-reset: step; display: grid; gap: 16px; }
.step{
  position: relative;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px 20px 70px; box-shadow: var(--shadow);
}
.step::before{
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
}
.step h3{ margin-bottom: 4px; font-size: 1.05rem; }
.step p{ margin: 0; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq{ display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item{
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden;
}
.faq-item summary{
  cursor: pointer; list-style: none;
  padding: 18px 22px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+"; color: var(--red); font-size: 1.4rem; font-weight: 400; flex: none;
}
.faq-item[open] summary::after{ content: "–"; }
.faq-item .faq-a{ padding: 0 22px 20px; color: var(--text-muted); }

/* ---------- Команда ---------- */
.team-card{ text-align: center; }
.team-avatar{
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0 auto 14px; background: var(--navy);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.5rem; overflow: hidden;
}
.team-avatar img{ width: 100%; height: 100%; object-fit: cover; }
.team-solo{ display: flex; justify-content: center; }
.team-solo .team-card{ width: 100%; max-width: 380px; padding: 36px 30px; }
.team-solo .team-avatar{ width: 156px; height: 156px; margin-bottom: 18px; }
.team-solo .team-card h3{ font-size: 1.2rem; }
.team-solo .team-role{ font-size: .96rem; }
.team-solo .team-exp{ font-size: .94rem; }
.team-card h3{ font-size: 1rem; margin-bottom: 2px; }
.team-role{ color: var(--red); font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.team-exp{ color: var(--text-muted); font-size: .88rem; }

/* ---------- Числа/достижения ---------- */
.stats{ display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; text-align: center; }
@media (max-width: 760px){ .stats{ grid-template-columns: 1fr; } }
.stat b{ display: block; font-size: 2.2rem; color: var(--navy); font-weight: 800; }
.stat span{ color: var(--text-muted); font-size: .92rem; }

/* ---------- Обязательное уведомление о последствиях банкротства (ст. 5 38-ФЗ, с изм. 332-ФЗ от 31.07.2025) ---------- */
.legal-note{
  margin-top: 16px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  font-size: .84rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 620px;
}

/* ---------- Хоровод-паттерн (декоративная полоса) ---------- */
.pattern-strip{
  height: 26px;
  background-image: radial-gradient(circle at 12px 6px, var(--grey-light) 5px, transparent 6px);
  background-size: 26px 26px;
  background-repeat: repeat-x;
  opacity: .8;
}

/* ---------- CTA-блок ---------- */
.cta-block{
  background: var(--navy); color: #fff;
  border-radius: var(--radius); padding: 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
}
.cta-block h2{ color: #fff; margin-bottom: 6px; }
.cta-block p{ color: rgba(255,255,255,.85); margin: 0; }

/* ---------- Контакты / мессенджеры ---------- */
.contact-grid{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }
.messenger-row{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
@media (max-width: 640px){ .messenger-row{ grid-template-columns: repeat(2, 1fr); } }
.messenger-btn{
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 10px; border-radius: 14px; border: 1px solid var(--border);
  background: #fff; font-weight: 700; font-size: .9rem; text-align: center;
}
.messenger-btn svg{ width: 26px; height: 26px; }
.messenger-btn--wa{ color: #1ea952; }
.messenger-btn--tg{ color: #29a9eb; }
.messenger-btn--vk{ color: #0077ff; }
.messenger-btn--max{ color: var(--red); }
.msg-badge{ font-size: 1.3rem; font-weight: 800; line-height: 1; }
.footer-msgs .badge-text{ font-size: .72rem; font-weight: 800; color: #cfcfcf; }
.contact-info dt{ font-weight: 700; color: var(--navy); margin-top: 14px; }
.contact-info dd{ margin: 2px 0 0; color: var(--text-muted); }
.contact-info dt:first-child{ margin-top: 0; }

/* ---------- Отзывы ---------- */
.review-card{
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.review-card:hover{ box-shadow: 0 14px 30px rgba(15,23,42,.12); transform: translateY(-2px); border-color: var(--red); }
.review-stars{ color: #ffb400; font-size: 1rem; letter-spacing: 2px; }
.review-card p{ color: var(--text); margin: 0; flex: 1; }
.review-author{ display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .86rem; }
.review-author b{ color: var(--navy); }
.review-author span{ color: var(--text-muted); }
.review-platforms{ display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 24px; }
.review-platform{
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; font-weight: 700; font-size: .9rem; color: var(--text);
}
.review-platform b{ color: var(--navy); }
.review-platform .review-stars{ font-size: .85rem; }

/* ---------- Футер ---------- */
.site-footer{ background: #111; color: #cfcfcf; padding: 40px 0 22px; }
.footer-grid{ display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h4{ color: #fff; font-size: .95rem; margin-bottom: 12px; text-align: left; }
.footer-grid a{ color: #cfcfcf; }
.footer-grid a:hover{ color: var(--red); }
.footer-nav{ display: grid; gap: 8px; font-size: .92rem; }
.footer-logo img{ height: 34px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.footer-msgs{ display: flex; gap: 10px; margin-top: 12px; }
.footer-msgs a{
  width: 40px; height: 40px; border-radius: 50%; background: #222;
  display: flex; align-items: center; justify-content: center;
}
.footer-msgs svg{ width: 18px; height: 18px; }
.footer-bottom{
  border-top: 1px solid #2a2a2a; padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: .82rem; color: #8a8a8a;
}

/* ---------- Заметка о плейсхолдерах ---------- */
.todo-note{
  background: #fff7e6; border: 1px dashed #e0a300; color: #7a5200;
  border-radius: 10px; padding: 10px 14px; font-size: .82rem; margin-top: 10px;
}

/* ---------- Утилиты ---------- */
.text-center{ text-align: center; }
.mt-0{ margin-top: 0; }
.small{ font-size: .88rem; color: var(--text-muted); }
.breadcrumbs{ font-size: .85rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumbs a{ color: var(--navy); }
