@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/raleway-400.woff') format('woff');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/raleway-500.woff') format('woff');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/raleway-600.woff') format('woff');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/raleway-700.woff') format('woff');
}

:root {
  --red: #E5122B;
  --red-dark: #c50e24;
  --ink: #23272A;
  --ink-soft: rgba(35, 39, 42, 0.7);
  --tint: rgba(35, 39, 42, 0.03);
  --border: rgba(35, 39, 42, 0.07);
  --white: #ffffff;
  --radius: 4px;
  --container-w: 1360px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body,
button, input, select, textarea, optgroup,
a, span, p, h1, h2, h3, h4, h5, h6, label, li {
  font-family: 'Raleway', Arial, sans-serif;
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: "lnum" 1, "pnum" 1;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  line-height: 1.4;
}

button, input, select, textarea {
  -webkit-appearance: none;
  appearance: none;
  font-size: 100%;
}

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

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

h1, h2, h3, h4 { margin: 0; font-weight: 600; }
.text-accent { color: var(--red); }

p { margin: 0; }

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

button { font-family: inherit; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius);
  padding: 18px 32px;
  font-size: 18px;
  font-weight: 600;
  transition: background 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(90deg, #E5122A, #EC4B5E); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--tint); }
.btn-icon-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 63px;
  height: 63px;
  padding: 0;
  background: rgba(229, 18, 42, 0.04);
  border: none;
  border-radius: var(--radius);
}
.btn-icon-back:hover { background: rgba(229, 18, 42, 0.1); }
.btn-small { padding: 10px 20px; font-size: 14px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 103px;
}
.logo img { height: 62px; width: auto; }
.header-right { display: flex; align-items: center; gap: 32px; }
.header-tag { font-size: 18px; font-weight: 500; }
.header-phone { font-size: 18px; font-weight: 500; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 555px 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 20px 40px;
}
.hero-text h1 { font-size: 48px; line-height: 1.2; margin-bottom: 24px; }
.hero-text p { font-size: 18px; color: var(--ink-soft); }
.hero-image img { border-radius: var(--radius); width: 100%; }

/* Consult + results */
.consult-results {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 30px;
  padding: 40px 20px;
}
.consult-card, .results-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(35, 39, 42, 0.05);
  padding: 24px;
}
.consult-card h3, .results-card h3 { font-size: 24px; margin-bottom: 8px; }
.consult-card p { font-size: 18px; color: var(--ink-soft); margin-bottom: 24px; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.result-item { border-left: 2px solid var(--red); padding-left: 14px; }
.result-problem { font-size: 18px; margin-bottom: 12px; }
.result-outcome { font-size: 18px; font-weight: 600; }

/* Quiz section */
.quiz-section {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 30px;
  padding: 60px 20px;
  align-items: start;
}
.quiz-intro h2 { font-size: 36px; margin-bottom: 24px; }
.quiz-intro p { font-size: 18px; color: var(--ink-soft); margin-bottom: 32px; }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.trust-list li { display: flex; align-items: center; gap: 16px; font-size: 18px; font-weight: 500; }
.icon-check {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--red);
  position: relative;
}
.icon-check::after {
  content: '';
  position: absolute;
  left: 6px; top: 5px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

.quiz-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(35, 39, 42, 0.05);
  padding: 32px;
  min-height: 380px;
}
.quiz-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.progress-track { flex: 1; height: 6px; background: var(--tint); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; width: 33.33%; background: var(--red); border-radius: 10px; transition: width 0.25s ease; }
.progress-label { font-size: 14px; font-weight: 500; white-space: nowrap; }

.quiz-step h3 { font-size: 24px; margin-bottom: 24px; }
.quiz-subtitle { font-size: 16px; color: var(--ink-soft); margin: -16px 0 24px; }

.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.options-grid-1col { grid-template-columns: 1fr; }
.options-grid-2x2 { grid-template-columns: 1fr 1fr; }

.option {
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(35, 39, 42, 0.05);
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 500;
  text-align: left;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option:hover { border-color: var(--red); }
.option.selected { border-color: var(--red); background: rgba(229, 18, 43, 0.05); }
.option-double { display: flex; flex-direction: column; gap: 6px; }
.option-title { font-size: 18px; font-weight: 500; }
.option-sub { font-size: 14px; color: var(--ink-soft); font-weight: 400; }

.quiz-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 32px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.form-row input {
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(35, 39, 42, 0.05);
  padding: 16px 20px;
  font-size: 16px;
  font-family: inherit;
  width: 100%;
}
.form-row input:focus { outline: none; border-color: var(--red); }

.summary-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.summary-chips span {
  background: var(--tint);
  border-radius: 200px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
}

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.checkbox-row a { color: var(--red); text-decoration: underline; }
.checkbox-visual { position: relative; width: 20px; height: 20px; flex: none; margin-top: 1px; }
.checkbox-visual input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.checkbox-box {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 20px rgba(35, 39, 42, 0.05);
  border: 1px solid var(--border);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.checkbox-box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}
.checkbox-visual input:checked + .checkbox-box {
  background: var(--red);
  border-color: var(--red);
}
.checkbox-visual input:checked + .checkbox-box::after { opacity: 1; }
.checkbox-visual input:focus-visible + .checkbox-box { outline: 2px solid var(--red); outline-offset: 2px; }

.quiz-step-thanks { text-align: center; padding: 40px 0; }
.thanks-icon {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz-step-thanks h3 { margin-bottom: 8px; }
.quiz-step-thanks p { font-size: 18px; color: var(--ink-soft); }

/* Services */
.services-section { padding: 60px 20px; }
.services-section h2 { font-size: 36px; margin-bottom: 12px; }
.section-subtitle { font-size: 18px; color: var(--ink-soft); margin-bottom: 40px; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service-card {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 30px;
  align-items: center;
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(35, 39, 42, 0.05);
  padding: 24px;
  position: relative;
}
.service-text h3 { font-size: 24px; margin: 0 60px 16px 0; }
.service-text p { font-size: 18px; color: var(--ink-soft); }
.service-card img { border-radius: var(--radius); width: 220px; height: 160px; object-fit: contain; background: #fff; }
.badge {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-block;
  background: rgba(229, 18, 42, 0.04);
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 200px;
}
.service-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-top: 24px;
  background: var(--red);
  border: none;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}
.service-arrow:hover { background: var(--red-dark); }

/* About + stats + process */
.about-section { background: var(--tint); padding: 80px 20px; position: relative; overflow: hidden; }
.about-watermark { position: absolute; top: -60px; right: 20px; width: 440px; max-width: 45%; height: auto; pointer-events: none; z-index: 0; }
.about-section .container { position: relative; z-index: 1; }
.about-section h2 { font-size: 36px; margin-bottom: 20px; max-width: 670px; }
.about-section .section-subtitle { max-width: 670px; margin-bottom: 72px; }
.stats-grid { display: flex; flex-wrap: wrap; column-gap: 56px; row-gap: 24px; margin: 0 0 128px; }
.stat { display: flex; flex-direction: column; gap: 12px; }
.stat-num { font-size: 32px; font-weight: 600; }
.stat-label { font-size: 18px; color: var(--ink-soft); }
.process-title { margin-top: 0; }
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.process-icon { display: block; width: 40px; height: 40px; margin-bottom: 20px; }
.process-step h4 { font-size: 24px; margin-bottom: 12px; }
.process-step p { font-size: 18px; color: var(--ink-soft); }

/* Final CTA */
.final-cta {
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(35, 39, 42, 0.05);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 40px;
  align-items: center;
  padding: 60px 60px 60px 40px;
  margin: 60px 0;
}
.final-cta-text h2 { font-size: 32px; margin-bottom: 20px; color: #fff; }
.final-cta-text p { font-size: 18px; color: rgba(255,255,255,0.7); margin-bottom: 32px; }
.final-cta-image { align-self: stretch; margin: -60px -60px -60px 0; }
.final-cta-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* Consultation modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35,39,42,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 500;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(35,39,42,0.25);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 24px; height: 24px;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-card h3 { font-size: 28px; margin-bottom: 12px; padding-right: 24px; }
.modal-subtitle { font-size: 18px; font-weight: 500; color: var(--ink-soft); margin-bottom: 32px; }
#consultForm { display: flex; flex-direction: column; gap: 15px; }
#consultForm input[type="text"],
#consultForm input[type="tel"] {
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(35, 39, 42, 0.05);
  padding: 16px 20px;
  font-size: 16px;
  width: 100%;
}
#consultForm input:focus { outline: none; border-color: var(--red); }
.btn-block { width: 100%; }
.modal-thanks-view { text-align: center; padding: 20px 0; }
.modal-thanks-view h3 { padding-right: 0; }
.modal-thanks-view p { font-size: 18px; color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-legal, .footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 12px; bottom: 12px;
  max-width: 300px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11px;
  z-index: 200;
  opacity: 0.94;
}
.cookie-banner p { margin: 0; color: var(--ink-soft); line-height: 1.45; }
.cookie-banner a { color: var(--ink-soft); text-decoration: underline; }
.cookie-actions { display: flex; justify-content: flex-end; gap: 8px; }
.cookie-actions .btn { padding: 6px 14px; font-size: 12px; background: var(--tint); color: var(--ink-soft); }
.cookie-actions .btn-primary { background: var(--tint); color: var(--ink); }
.cookie-banner[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .consult-results { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .quiz-section { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stat { flex: 0 0 calc(50% - 28px); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .final-cta { grid-template-columns: minmax(0, 1fr); padding: 40px; }
  .final-cta-image { margin: 0 -40px -40px; }
  .final-cta-image img { height: 220px; }
}

@media (max-width: 720px) {
  /* Header: по дизайну на мобильном — только лого и телефон/тег, без кнопки и бургера */
  .header-inner { height: auto; padding-top: 16px; padding-bottom: 16px; align-items: flex-start; }
  .logo img { height: 48px; }
  .header-right {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 2px;
  }
  .header-right .btn { display: none; }
  .header-tag { font-size: 12px; }
  .header-phone { font-size: 14px; }

  /* Типографика — по мобильным размерам из дизайна */
  .hero-text h1 { font-size: 32px; }
  .hero-text p { font-size: 16px; }
  .quiz-intro h2, .services-section h2, .about-section h2, .final-cta-text h2 { font-size: 28px; }
  .quiz-intro p, .trust-list li { font-size: 16px; }
  .section-subtitle { font-size: 16px; }
  .consult-card h3, .results-card h3, .quiz-step h3, .service-text h3, .process-step h4 { font-size: 20px; }
  .consult-card p, .result-problem, .result-outcome { font-size: 16px; }
  .service-text p, .process-step p, .final-cta-text p { font-size: 16px; }
  .option, .option-title { font-size: 16px; }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 16px; }
  .badge { font-size: 13px; }
  .footer-legal, .footer-links { font-size: 13px; }
  .modal-card h3 { font-size: 20px; }
  .modal-subtitle { font-size: 16px; }
  .form-row input, #consultForm input { font-size: 14px; }

  /* Раскладка */
  .service-card { grid-template-columns: 1fr; }
  .service-card img { width: 100%; height: 200px; }
  .badge { position: static; display: inline-block; margin-bottom: 12px; }
  .service-text h3 { margin: 0 0 16px; }
  .options-grid, .options-grid-2x2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stat { flex: 0 0 calc(50% - 10px); }
  .stats-grid { column-gap: 20px; margin-bottom: 96px; }
  .about-section .section-subtitle { margin-bottom: 42px; }
  .process-grid { grid-template-columns: 1fr; }
  .cookie-banner { left: 10px; bottom: 10px; max-width: 240px; }
  .btn { white-space: normal; text-align: center; }

  /* Футер: реквизиты и ссылки в столбик, как в дизайне */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-direction: column; gap: 8px; }
}
