/* ООО «Свободный Путь» — FULL-S. Cool editorial identity:
   grey-blue paper, deep slate ink, indigo accents, Bitter display / Manrope body. */

:root {
  --paper: #F2F4F7;
  --card: #FFFFFF;
  --ink: #19232E;
  --ink-soft: #46525F;
  --muted: #6C7885;
  --accent: #365B8C;
  --accent-dark: #2A4874;
  --accent-tint: #E9EFF6;
  --hairline: #D8DEE6;
  --danger: #B3402E;
  --radius: 14px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(25, 35, 46, 0.05), 0 14px 34px -20px rgba(25, 35, 46, 0.25);
  --font-display: "Bitter", Georgia, serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.22; margin: 0; }
h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; }
.section-sub { margin: 0 0 26px; color: var(--muted); }

section { padding: 62px 0; }

a { color: var(--accent); }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  cursor: pointer;
  border: 1.5px solid var(--accent);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-tint); }
.btn--big { padding: 14px 30px; font-size: 16.5px; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

:is(a, button, input, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Шапка ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242, 244, 247, 0.94);
  backdrop-filter: blur(7px);
  border-bottom: 1px solid var(--hairline);
}

.site-head__row {
  max-width: 1080px;
  margin: 0 auto;
  padding: 11px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-head__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
}

.site-head__cta { padding: 9px 18px; font-size: 14.5px; }

/* ---------- Интро ---------- */

.intro { padding: 74px 0 66px; }

.intro__grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.intro h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 16px; }

.intro__lead { margin: 0 0 26px; font-size: 18px; color: var(--ink-soft); max-width: 50ch; }

.intro__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.intro__note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

.intro__media { margin: 0; }

.intro__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  /* фото шире рамки: держим группу солдат (правее центра) в кадре */
  object-position: 74% center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--hairline);
}

/* ---------- Принципы ---------- */

.pillars { padding-top: 8px; }

.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.pillar {
  background: var(--card);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
  padding: 24px 22px;
}

.pillar svg { color: var(--accent); margin-bottom: 12px; }
.pillar h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.pillar p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Кому помогаем ---------- */

.paths__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.path-card {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.path-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.path-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.path-card p { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-soft); }
.path-card__go { font-size: 14px; font-weight: 700; color: var(--accent); }

/* ---------- Основания (тёмная панель — якорь доверия) ---------- */

.law__inner {
  background: var(--ink);
  color: #E6EAEF;
  border-radius: var(--radius);
  padding: 40px 42px;
}

.law h2 { color: #fff; }
.law__head p { margin: 0 0 22px; color: #B9C2CC; max-width: 68ch; }

.law__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 26px;
}

.law__list li {
  position: relative;
  padding-left: 28px;
  font-weight: 600;
  font-size: 15.5px;
}

.law__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 8px;
  border-left: 2px solid #8FB2DC;
  border-bottom: 2px solid #8FB2DC;
  transform: rotate(-45deg);
}

.law__note { margin: 0; font-size: 13.5px; color: #93A0AD; }

/* ---------- Как мы работаем ---------- */

.steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: none;
}

.step-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.step-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 12px;
}

.step-item h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 7px; }
.step-item p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- Опрос ---------- */

.poll { padding-top: 30px; }

.poll__box {
  background: var(--card);
  border-radius: var(--radius);
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow);
  padding: 34px 38px 36px;
  max-width: 680px;
  margin: 0 auto;
}

.poll__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.poll__title { font-size: 22px; font-weight: 800; }

.poll__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 14.5px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  visibility: hidden;
  order: -1;
}

.poll__back.is-on { visibility: visible; }
.poll__back:hover { color: var(--accent); }

.poll__count { font-size: 13.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

.poll__track {
  height: 5px;
  border-radius: 999px;
  background: var(--hairline);
  overflow: hidden;
  margin-bottom: 26px;
}

.poll__fill {
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.poll-step { display: none; }
.poll-step.is-on { display: block; animation: slide-up 0.25s ease; }

@keyframes slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.poll-step h3 { font-size: 20px; font-weight: 700; margin-bottom: 18px; }

.choices { display: grid; gap: 10px; }

.choice {
  display: block;
  width: 100%;
  text-align: left;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 500;
  padding: 14px 16px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.choice::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--hairline);
  border-right: 2px solid var(--hairline);
  transform: translateY(-50%) rotate(45deg);
  transition: border-color 0.15s ease;
}

.choice:hover { border-color: var(--accent); }
.choice:hover::after { border-color: var(--accent); }
.choice.is-picked { border-color: var(--accent); background: var(--accent-tint); }
.choice.is-picked::after { border-color: var(--accent); }

.poll__hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.poll__hint svg { flex-shrink: 0; color: var(--accent); margin-top: 1px; }

.fieldset { margin-bottom: 16px; }

.fieldset input[type="text"] {
  width: 100%;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  padding: 13px 16px;
  transition: border-color 0.15s ease;
}

.fieldset input[type="text"]:focus { border-color: var(--accent); outline: none; }
.fieldset input.is-bad { border-color: var(--danger); }

.tel-box {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--hairline);
  border-radius: var(--radius-s);
  background: #fff;
  transition: border-color 0.15s ease;
}

.tel-box:focus-within { border-color: var(--accent); }
.tel-box.is-bad { border-color: var(--danger); }

.tel-box__code {
  padding: 13px 0 13px 16px;
  font-size: 16.5px;
  color: var(--ink);
  user-select: none;
}

.tel-box input {
  border: none;
  flex: 1;
  min-width: 0;
  padding: 13px 16px 13px 8px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16.5px;
  color: var(--ink);
}

.tel-box input:focus { outline: none; }

.fieldset__error { display: none; margin: 7px 0 0; color: var(--danger); font-size: 13.5px; }
.fieldset input.is-bad ~ .fieldset__error,
.tel-box.is-bad ~ .fieldset__error { display: block; }

.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
}

.agree input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }

.poll__fail { margin: 12px 0 0; color: var(--danger); font-size: 14.5px; }
.is-off { display: none !important; }

.poll__done { text-align: center; padding: 18px 0 8px; }
.poll__done svg { color: var(--accent); margin-bottom: 12px; }
.poll__done h3 { font-size: 24px; margin-bottom: 8px; }
.poll__done p { margin: 0 0 10px; color: var(--ink-soft); }
.poll__done-note { max-width: 44ch; margin: 0 auto; font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq__list { display: grid; gap: 10px; max-width: 760px; }

.qa {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  padding: 0 18px;
}

.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 26px 15px 0;
  font-weight: 700;
  font-size: 15.5px;
  position: relative;
}

.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.qa[open] summary::after { transform: rotate(-135deg); top: 26px; }

.qa p { margin: 0 0 16px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Подвал ---------- */

.site-foot {
  background: var(--ink);
  color: #C6CDD5;
  padding: 34px 0 28px;
  font-size: 13.5px;
  line-height: 1.65;
  margin-top: 30px;
}

.site-foot a { color: #E8ECF0; }

.site-foot__grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.site-foot__grid p { margin: 0 0 3px; }
.site-foot__name { font-weight: 700; color: #fff; font-size: 15.5px; margin-bottom: 7px; }
.site-foot__links { display: flex; flex-direction: column; gap: 7px; }

.site-foot__legal {
  max-width: 1080px;
  margin: 0 auto;
  padding: 15px 22px 0;
  border-top: 1px solid rgba(198, 205, 213, 0.22);
  color: #93A0AD;
  font-size: 12px;
}

/* ---------- Мобильная кнопка ---------- */

.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(242, 244, 247, 0.95);
  backdrop-filter: blur(7px);
  border-top: 1px solid var(--hairline);
}

.mobile-bar__btn { display: block; text-align: center; }

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
  .intro__grid { grid-template-columns: 1fr; gap: 30px; }
  .intro__media { max-width: 560px; }
  .pillars__grid { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: repeat(2, 1fr); }
  .law__list { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  body { padding-bottom: 74px; }
  .mobile-bar { display: block; }
  .site-head__cta { display: none; }
  section { padding: 46px 0; }
  .intro { padding: 42px 0 40px; }
  .intro h1 { font-size: 29px; }
  .intro__lead { font-size: 16px; }
  h2 { font-size: 24px; }
  .paths__grid { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; }
  .law__inner { padding: 28px 22px; }
  .poll__box { padding: 26px 18px 28px; }
  .poll__title { font-size: 19px; }
  .btn--big { width: 100%; text-align: center; }
}

/* ---------- Минимум движения ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .poll-step.is-on { animation: none; }
  .poll__fill, .btn, .choice, .path-card { transition: none; }
}
