/* ==========================================================================
   FundBack — THE LAW COMPANY, INC.
   Тема: возврат средств после онлайн-мошенничества
   Полная ширина, максимально резиновая вёрстка, анимация заголовков по буквам
   ========================================================================== */

/* ---------- Переменные ---------- */
:root {
  --color-primary: #0b2447;
  --color-primary-600: #123c6b;
  --color-primary-50: #eaf1fa;
  --color-accent: #14b87a;
  --color-accent-600: #0f9a66;
  --color-accent-50: #e6f8f0;
  --color-bg: #f6f8fb;
  --color-surface: #ffffff;
  --color-text: #172033;
  --color-muted: #5b6b85;
  --color-border: #dfe6f0;
  --color-danger: #d64545;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(11, 36, 71, 0.06);
  --shadow: 0 10px 30px rgba(11, 36, 71, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 36, 71, 0.14);

  /* Резиновые отступы: тянутся вместе с экраном */
  --gutter: clamp(1.25rem, 4vw, 5.5rem);
  --gap: clamp(1rem, 1.8vw, 2rem);
  --section-y: clamp(3rem, 8vw, 7rem);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --transition: 200ms ease;
}

/* ---------- Сброс ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Резиновый корень: 16px на мобильных -> ~27px на больших экранах.
     Всё, что задано в rem, масштабируется автоматически. */
  font-size: clamp(1rem, 1vw + 0.1rem, 1.7rem);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary-600);
  text-decoration: none;
}
a:hover {
  color: var(--color-accent-600);
}

h1,
h2,
h3 {
  line-height: 1.18;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Полноширинный «контейнер» без ограничения ширины ---------- */
.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}
.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem clamp(1.25rem, 2vw, 2rem);
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    color var(--transition);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 184, 122, 0.3);
}
.btn--accent:hover {
  background: var(--color-accent-600);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--ghost:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow var(--transition),
    border-color var(--transition);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2.5rem);
  width: 100%;
  padding-inline: var(--gutter);
  min-height: 72px;
  /* хедер держим компактным, чтобы на больших экранах он не раздувался */
  font-size: clamp(0.9rem, 0.25vw + 0.82rem, 1rem);
}

/* Кнопка и лого в хедере считаются от размера хедера, а не от корня */
.header .btn {
  min-height: 46px;
  padding: 0.55em 1.35em;
  font-size: 0.95em;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(20, 184, 122, 0.26);
}
.header .logo__text {
  font-size: 1.35em;
}
.header .nav__link {
  font-size: 0.95em;
}
.header .nav__phone {
  font-size: 0.95em;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.logo__mark {
  width: clamp(34px, 3vw, 44px);
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.logo__text {
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}
.logo__text-accent {
  color: var(--color-accent);
}

/* Мобильное меню */
.nav {
  position: fixed;
  inset: 72px 0 auto 0;
  background: var(--color-surface);
  padding: 1.25rem var(--gutter);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  transform: translateY(-120%);
  transition: transform 250ms ease;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}
.nav--open {
  transform: translateY(0);
}
.nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.nav__link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-text);
  border-radius: var(--radius-sm);
}
.nav__link:hover {
  background: var(--color-primary-50);
  color: var(--color-primary);
}
.nav__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.nav__phone {
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.burger__line {
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}
.burger[aria-expanded='true'] .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded='true'] .burger__line:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded='true'] .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Секции ---------- */
.section {
  padding: var(--section-y) 0;
}
.section--alt {
  background: var(--color-surface);
}

.section__head {
  max-width: 52rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section__eyebrow {
  display: inline-block;
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-600);
}
.section__title {
  font-size: clamp(1.5rem, 2.6vw + 0.8rem, 2.75rem);
  margin-bottom: 0.75rem;
}
.section__lead {
  color: var(--color-muted);
  margin: 0;
}
.section__footnote {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  text-align: center;
}

/* ==========================================================================
   HERO — фон-картинка, светлый текст, форма справа
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: clamp(30rem, 80vh, 46rem);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.06);
  animation: hero-ken-burns 22s ease-in-out infinite alternate;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 23, 51, 0.5) 0%, rgba(7, 23, 51, 0.32) 45%, rgba(7, 23, 51, 0.72) 100%),
    linear-gradient(95deg, rgba(7, 23, 51, 0.92) 0%, rgba(7, 23, 51, 0.55) 52%, rgba(7, 23, 51, 0.22) 100%);
}

@keyframes hero-ken-burns {
  from {
    transform: scale(1.06) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-1.2%, -1.5%);
  }
}

.hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: stretch;
  width: 100%;
  min-height: inherit;
}

.hero__text {
  padding: clamp(2.25rem, 5vw, 4rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem);
}

.hero__text-card {
  max-width: 42rem;
  animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__firm {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.2rem;
  font-size: 0.78rem;
  line-height: 1.3;
}

.hero__firm-name,
.hero__firm-meta {
  display: inline-block;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero__firm-name {
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero__firm-meta {
  font-weight: 500;
  color: rgba(215, 225, 240, 0.92);
  background: rgba(255, 255, 255, 0.05);
}

.hero__title {
  max-width: 11.5em;
  margin: 0;
  font-size: clamp(2.15rem, 1.8vw + 1.25rem, 3.65rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
  perspective: 720px;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero__line--accent {
  color: var(--color-accent);
  text-shadow: 0 2px 32px rgba(20, 184, 122, 0.35);
}

.hero__title .split .char {
  transform: translateY(1em) rotateX(52deg);
  transform-origin: 50% 100%;
  filter: blur(8px);
}

.hero__title.is-visible .split .char,
.hero__line.is-visible .split .char {
  animation: hero-char-in 720ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * var(--char-step, 28ms));
}

@keyframes hero-char-in {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
}

.hero__lead {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(215, 225, 240, 0.94);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__trust li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.hero__trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  transform: translateY(-50%);
  background: rgba(20, 184, 122, 0.22);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
}

.hero__trust li::after {
  content: '';
  position: absolute;
  left: 0.37rem;
  top: 50%;
  width: 0.42rem;
  height: 0.22rem;
  margin-top: -0.14rem;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}

.hero__panel {
  background: linear-gradient(180deg, var(--color-primary) 0%, #081a38 100%);
  padding: clamp(1.75rem, 4vw, 3rem) var(--gutter);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.22);
}

/* ---------- Формы ---------- */
.form {
  padding: clamp(1.4rem, 2vw, 2rem);
}
.form__title {
  font-size: clamp(1.15rem, 0.9vw + 0.95rem, 1.5rem);
  margin-bottom: 0.25rem;
}
.form__subtitle {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}
.form__head {
  margin-bottom: 1.1rem;
}
.form__badge {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.28rem 0.8rem;
  background: var(--color-accent-50);
  color: var(--color-accent-600);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form__field {
  margin-bottom: 0.85rem;
}
.form__row {
  display: grid;
  gap: 0.85rem;
}
.form__label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.form__textarea {
  resize: vertical;
  min-height: 82px;
}
.form__input::placeholder,
.form__textarea::placeholder {
  color: #9aa7bd;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-50);
  outline: none;
}
.form__input--invalid,
.form__select--invalid {
  border-color: var(--color-danger);
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.5rem 0 1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  cursor: pointer;
}
.form__check input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--color-accent);
  flex: 0 0 auto;
}

.form__error {
  display: block;
  min-height: 1.1rem;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--color-danger);
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: center;
}

.form__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted);
}
.form__trust li {
  position: relative;
  padding-left: 1.2rem;
}
.form__trust li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent-600);
  font-weight: 800;
}

.form__success {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  background: var(--color-accent-50);
  color: var(--color-accent-600);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form--hero {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  animation: hero-rise 0.7s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.form--hero .form__head {
  margin-bottom: 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.form--hero .form__title {
  color: #fff;
  font-size: clamp(1.35rem, 0.6vw + 1.1rem, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.form--hero .form__subtitle,
.form--hero .form__label,
.form--hero .form__note,
.form--hero .form__check {
  color: #d5e0ef;
}
.form--hero .form__label {
  margin-bottom: 0.35rem;
  color: rgba(213, 224, 239, 0.92);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.form--hero a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.form--hero .form__subtitle {
  margin-bottom: 0;
  line-height: 1.5;
  color: rgba(199, 211, 230, 0.88);
}
.form--hero .form__field {
  margin-bottom: 0.85rem;
}
.form--hero .form__row {
  gap: 0.75rem;
  margin-bottom: 0;
}
.form--hero .form__row .form__field {
  margin-bottom: 0.85rem;
}
.form--hero .form__input {
  background: #fff;
  border-color: rgba(223, 230, 240, 0.95);
  color: var(--color-text);
  font-size: 0.95rem;
  transition:
    border-color 0.2s ease,
    box-shadow var(--transition),
    background var(--transition);
}
.form--hero .form__input::placeholder {
  color: #8b98ad;
}
.form--hero .form__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(20, 184, 122, 0.22);
}
.form--hero .ie-field {
  position: relative;
}
.form--hero .ie-field .form__input {
  padding-right: 2.65rem;
}
.form--hero .ie-field .ie-check {
  position: absolute;
  right: 14px;
  bottom: 13px;
  top: auto;
  transform: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}
.form--hero .iti {
  width: 100%;
  display: block;
}
.form--hero .iti--separate-dial-code .form__input,
.form--hero .iti--separate-dial-code input[type='tel'] {
  width: 100%;
  min-height: 44px;
  padding-right: 2.65rem !important;
  background: #fff;
  border: 1.5px solid rgba(223, 230, 240, 0.95);
  border-radius: var(--radius-sm);
  color: var(--color-text);
}
.form--hero .iti--separate-dial-code .iti__flag-container {
  border-right: 1px solid var(--color-border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.form--hero .iti--separate-dial-code .iti__selected-flag {
  padding: 0 0.65rem;
  background: rgba(11, 36, 71, 0.04);
  border-radius: calc(var(--radius-sm) - 1px) 0 0 calc(var(--radius-sm) - 1px);
}
.form--hero .iti__selected-dial-code {
  color: var(--color-primary) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
}
.form--hero .ie-field:has(.iti) .ie-check {
  bottom: 13px;
  z-index: 5;
}
.form--hero .btn--block {
  margin-top: 0.35rem;
  min-height: 52px;
  font-size: 1.02rem;
  box-shadow: 0 10px 28px rgba(20, 184, 122, 0.35);
}
.form--hero .btn--block:hover {
  box-shadow: 0 14px 32px rgba(20, 184, 122, 0.42);
}

/* ---------- Карточки проблемы ---------- */
.cards {
  display: grid;
  gap: var(--gap);
}
.cards--problem {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.card--problem {
  padding: clamp(1.25rem, 2vw, 1.75rem);
}
.card--problem .card__title {
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.25rem);
  margin-bottom: 0.4rem;
}
.card--problem .card__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ---------- Шаги ---------- */
.steps {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.step {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2vw, 1.75rem);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.75rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 50%;
}
.step__title {
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.2rem);
}
.step__text {
  margin: 0.4rem 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ---------- Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.chips__item {
  padding: 0.6rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

/* ---------- Why us ---------- */
.why {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.why__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
}
.why__list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.why__item {
  padding-left: 1.6rem;
  position: relative;
  color: var(--color-muted);
}
.why__item strong {
  color: var(--color-text);
}
.why__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--color-accent);
  border-radius: 3px;
}

/* ---------- Кейсы ---------- */
.cases {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.case {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.case:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.case__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.case__body {
  padding: 1.25rem;
}
.case__tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.7rem;
  background: var(--color-primary-50);
  color: var(--color-primary-600);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.case__title {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}
.case__text {
  margin: 0 0 0.75rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.case__amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-accent-600);
}

/* ---------- Отзывы ---------- */
.reviews {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.review {
  padding: clamp(1.25rem, 2vw, 1.75rem);
}
.review__quote {
  margin: 0 0 1rem;
  font-size: 1rem;
}
.review__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.review__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.review__name {
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- About ---------- */
.about {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.about__text {
  color: var(--color-muted);
}
.about__facts {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.about__fact {
  display: grid;
  grid-template-columns: minmax(6rem, 8rem) 1fr;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
.about__fact dt {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.9rem;
}
.about__fact dd {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}
.about__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
}

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.price {
  padding: clamp(1.5rem, 2vw, 2.25rem);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.price--featured {
  border: 2px solid var(--color-accent);
  position: relative;
}
.price__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.price__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.price__value {
  font-size: clamp(1.75rem, 1.5vw + 1rem, 2.25rem);
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 1rem;
}
.price__list {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  text-align: left;
  color: var(--color-muted);
}
.price__list li {
  padding-left: 1.6rem;
  position: relative;
}
.price__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent-600);
  font-weight: 800;
}
.price .btn {
  margin-top: auto;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 62rem;
  margin-inline: auto;
}
.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.25rem 1.25rem;
}
.faq__q {
  cursor: pointer;
  padding: 1rem 1.75rem 1rem 0;
  font-weight: 600;
  color: var(--color-primary);
  list-style: none;
  position: relative;
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--color-accent-600);
  transition: transform var(--transition);
}
.faq__item[open] .faq__q::after {
  content: '–';
}
.faq__a {
  margin: 0;
  padding: 0 0 1rem;
  color: var(--color-muted);
}

/* ---------- CTA ---------- */
.cta {
  padding: var(--section-y) 0;
  background: linear-gradient(160deg, var(--color-primary), var(--color-primary-600));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -20% 40% auto -30%;
  height: 70%;
  background: radial-gradient(circle, rgba(20, 184, 122, .22) 0%, transparent 68%);
  pointer-events: none;
}
.cta__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: stretch;
}
.cta__content,
.cta-card {
  min-width: 0;
}
.cta__eyebrow {
  display: inline-block;
  margin: 0 0 .65rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.cta__title {
  color: #fff;
  font-size: clamp(1.5rem, 2vw + 1rem, 2.6rem);
  max-width: 16ch;
  margin-bottom: .75rem;
}
.cta__text {
  max-width: 40rem;
  margin: 0;
  color: #c7d3e6;
  line-height: 1.55;
}
.cta__contacts {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.cta__contacts li {
  display: grid;
  gap: .2rem;
}
.cta__contact-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(199, 211, 230, .75);
}
.cta__contact-text {
  color: #e8edf6;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: break-word;
}
.cta__contacts a {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.05rem;
}
.cta__contacts a:hover {
  color: #fff;
}

.cta-card {
  margin: 0;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .2);
  backdrop-filter: blur(12px);
}
.cta-card__badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .35rem .85rem;
  background: rgba(20, 184, 122, .18);
  border: 1px solid rgba(20, 184, 122, .45);
  border-radius: 999px;
  color: #b8f5dc;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cta-card__title {
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: clamp(1.15rem, .8vw + 1rem, 1.45rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.cta-card__steps {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.cta-card__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  align-items: start;
}
.cta-card__num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(20, 184, 122, .22);
  border: 1px solid rgba(20, 184, 122, .5);
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
}
.cta-card__step-text {
  color: #d5e0ef;
  font-size: .95rem;
  line-height: 1.45;
  padding-top: .35rem;
}
.cta-card .btn--block {
  margin-top: .25rem;
  min-height: 52px;
  height: auto;
  padding-block: 0.85rem;
  line-height: 1.35;
  white-space: normal;
  text-wrap: balance;
  box-shadow: 0 12px 28px rgba(20, 184, 122, .35);
}
.cta-card__trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  list-style: none;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(199, 211, 230, .9);
}
.cta-card__trust li {
  position: relative;
  padding-left: 1.1rem;
}
.cta-card__trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 800;
}

/* ---------- Footer ---------- */
.footer {
  background: #071733;
  color: #aebbd0;
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}
.footer .logo__text {
  color: #fff;
}
.footer__about {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  max-width: 34ch;
}
.footer__title {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}
.footer__list {
  display: grid;
  gap: 0.5rem;
}
.footer__list a {
  color: #aebbd0;
  font-size: 0.92rem;
}
.footer__list a:hover {
  color: var(--color-accent);
}
.footer__address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.7;
}
.footer__phone {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
}

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 0.75rem;
}
.footer__copy {
  margin: 0;
  font-size: 0.85rem;
}
.footer__disclaimer {
  margin: 0;
  font-size: 0.78rem;
  color: #8093ae;
  max-width: 90ch;
}

/* ==========================================================================
   Анимация заголовков по буквам («проявление / печать»)
   ========================================================================== */
.split {
  display: inline;
}
.split .word {
  display: inline-block;
  white-space: nowrap;
}
.split .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  filter: blur(6px);
  will-change: transform, opacity, filter;
}
.is-visible .split .char {
  animation: char-in 560ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * var(--char-step, 26ms));
}

.hero__line .split .char {
  animation-delay: calc(var(--i, 0) * var(--char-step, 28ms));
}
@keyframes char-in {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ---------- Адаптив ---------- */
@media (min-width: 640px) {
  .form__row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .nav {
    position: static;
    transform: none;
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;
    max-height: none;
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    overflow: visible;
  }
  .nav__list {
    flex-direction: row;
    gap: 0.25rem;
    margin-bottom: 0;
  }
  .nav__actions {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    padding-left: clamp(1rem, 2vw, 1.75rem);
  }
  .nav__actions::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: var(--color-border);
  }
  .nav__phone {
    white-space: nowrap;
  }
  .burger {
    display: none;
  }
}

/* CTA: мобильные и планшеты (одна колонка) */
@media (max-width: 899px) {
  .cta {
    padding-block: clamp(2.25rem, 9vw, 4rem);
  }

  .cta__grid {
    gap: clamp(1.5rem, 5vw, 2.25rem);
  }

  .cta__title {
    max-width: none;
    font-size: clamp(1.35rem, 5vw + 0.9rem, 2rem);
    line-height: 1.22;
  }

  .cta__text {
    font-size: clamp(0.94rem, 2.5vw + 0.75rem, 1.05rem);
  }

  .cta__contacts {
    margin-top: 1.5rem;
    gap: 1.15rem;
  }

  .cta__contacts a {
    overflow-wrap: anywhere;
    line-height: 1.4;
  }

  .cta-card {
    width: 100%;
    padding: clamp(1.2rem, 4.5vw, 1.75rem);
  }

  .cta-card .btn--block {
    font-size: clamp(0.9rem, 3vw, 1rem);
    padding-inline: 1rem;
  }

  .cta-card__trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (min-width: 900px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 36rem);
    align-items: stretch;
  }

  .hero__text {
    grid-column: 1;
    align-self: center;
    padding-block: clamp(2.5rem, 6vw, 5rem);
    padding-right: clamp(1rem, 3vw, 2rem);
  }

  .hero__panel {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: clamp(1.5rem, 2.5vw, 2.75rem);
  }

  .form--hero {
    max-width: 26rem;
  }

  .form--hero .form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__bg-overlay {
    background: linear-gradient(
      105deg,
      rgba(7, 23, 51, 0.93) 0%,
      rgba(11, 36, 71, 0.55) 42%,
      rgba(11, 36, 71, 0.12) 72%,
      rgba(11, 36, 71, 0.35) 100%
    );
  }

  .why {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
  .about {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
  .cta__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
  }

  .cta-card {
    max-width: 28rem;
    justify-self: end;
    width: 100%;
  }
}

/* На очень широких экранах не даём строкам растягиваться бесконечно */
@media (min-width: 1800px) {
  .section__head {
    max-width: 60rem;
  }
}

/* ---------- Доступность: уменьшенная анимация ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .split .char {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .hero__bg-image {
    transform: none;
  }
}
