/* ==========================================================================
   Путь Преодоления — Центр помощи. Основные стили лендинга.
   ========================================================================== */

:root {
  --navy-900: #0a1930;
  --navy-800: #0f2340;
  --navy-700: #16325c;
  --navy-600: #1d3f73;

  --white: #ffffff;
  --gray-50: #f7f9fb;
  --gray-100: #f0f3f7;
  --blue-gray-100: #eaf1f8;
  --blue-gray-200: #dbe6f0;

  --text-main: #182432;
  --text-muted: #56677a;
  --text-on-dark: #eef3f9;
  --text-on-dark-muted: #aebdd1;

  --purple: #6c3ce9;
  --purple-dark: #5a2fd0;

  --gold: #e0a530;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-md: 0 12px 30px rgba(10, 25, 48, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 25, 48, 0.18);

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4, p {
  margin: 0;
}

button, input, textarea {
  font-family: inherit;
}

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

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h2.section-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--navy-900);
}

.section-sub {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

section {
  padding: 88px 0;
}

.bg-light {
  background: var(--gray-50);
}

.bg-blue-gray {
  background: var(--blue-gray-100);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 10px 24px rgba(108, 60, 233, 0.35);
}

.btn-primary:hover {
  background: var(--purple-dark);
}

.btn-light {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(10, 25, 48, 0.12);
}

.btn-light:hover {
  background: var(--blue-gray-100);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-block {
  width: 100%;
}

.btn-max {
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.btn-max img,
.btn-max svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: var(--white);
  flex-shrink: 0;
}

.logo strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.logo span {
  font-size: 12.5px;
  color: var(--text-on-dark-muted);
  font-weight: 500;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: var(--text-on-dark);
  font-size: 15px;
  font-weight: 600;
  opacity: 0.88;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.phone-link {
  color: var(--white);
  font-weight: 700;
  font-size: 15.5px;
  white-space: nowrap;
}

.btn-max-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.btn-max-sm:hover {
  background: var(--purple-dark);
}

.btn-call-sm {
  padding: 11px 20px;
  font-size: 14px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.burger span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
  padding: 110px 28px 40px;
  gap: 30px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-menu nav a {
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

.mobile-menu .phone-link {
  text-align: center;
  font-size: 19px;
  padding: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 180px 0 100px;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(120deg, rgba(8, 18, 38, 0.88) 10%, rgba(10, 25, 48, 0.72) 55%, rgba(10, 25, 48, 0.55) 100%), url("img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.14;
  font-weight: 800;
  color: var(--white);
}

.hero-text {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-on-dark);
  max-width: 520px;
}

.hero-perks {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  max-width: 540px;
}

.hero-perk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.hero-perk .dot {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.hero-perk .dot svg {
  width: 12px;
  height: 12px;
}

.hero-cta-row {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero form card */
.hero-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  box-shadow: var(--shadow-lg);
}

.hero-form-card h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-900);
}

.hero-form-card .form-sub {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-field {
  margin-top: 18px;
}

.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.form-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--blue-gray-200);
  background: var(--gray-50);
  font-size: 15.5px;
  color: var(--text-main);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--white);
}

.form-consent {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.form-consent a {
  text-decoration: underline;
}

.hero-form-card .btn {
  margin-top: 20px;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  display: none;
}

.form-status.error {
  display: block;
  color: #c0392b;
}

/* honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3.2;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.badge {
  background: var(--blue-gray-100);
  color: var(--navy-700);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
}

.about-text p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.about-text p + p {
  margin-top: 14px;
}

.about-facts {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-fact {
  background: var(--white);
  border: 1px solid var(--blue-gray-200);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.about-fact strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.about-fact span {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Who we help
   ========================================================================== */

.help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.help-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.help-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--blue-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.help-icon svg {
  width: 26px;
  height: 26px;
  color: var(--navy-700);
}

.help-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.3;
}

.help-card p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.help-cta {
  margin-top: 44px;
  text-align: center;
}

/* ==========================================================================
   Process
   ========================================================================== */

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  position: relative;
}

.process-step {
  position: relative;
  padding: 30px 22px 0;
  border-top: 3px solid var(--blue-gray-200);
}

.process-step.active-line {
  border-top-color: var(--purple);
}

.process-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 10px;
}

.process-step h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-900);
}

.process-step p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Results
   ========================================================================== */

.results-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.stat-card {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  color: var(--white);
}

.stat-card .stat-num {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
}

.stat-card .stat-label {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-on-dark-muted);
  font-weight: 600;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.result-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.result-photo img {
  width: 100%;
  object-fit: cover;
}

.result-photo .result-caption {
  padding: 18px 22px 22px;
}

.result-photo .result-caption strong {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--navy-900);
}

.result-photo .result-caption span {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.results-note {
  margin-top: 36px;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-grid .g-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.gallery-grid .g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid .g-item:hover img {
  transform: scale(1.06);
}

.gallery-grid .g-item.tall {
  grid-row: span 2;
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.reviews-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--blue-gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.review-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-main);
  flex-grow: 1;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--blue-gray-200);
}

.review-person strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy-900);
}

.review-person span {
  font-size: 13px;
  color: var(--text-muted);
}

.review-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--blue-gray-100);
  padding: 5px 12px;
  border-radius: 999px;
}

.reviews-disclaimer {
  margin-top: 30px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   Contact + Quiz
   ========================================================================== */

.contact-section {
  background: var(--navy-900);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.contact-section .section-head h2.section-title {
  color: var(--white);
}

.contact-info-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-info-item .ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item .ico svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

.contact-info-item a,
.contact-info-item span {
  font-size: 17px;
  font-weight: 700;
}

.contact-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-note {
  margin-top: 28px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  max-width: 440px;
}

/* Quiz card */
.quiz-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
}

.quiz-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-900);
}

.quiz-progress {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 28px;
}

.quiz-progress span {
  height: 4px;
  flex: 1;
  background: var(--blue-gray-200);
  border-radius: 999px;
  overflow: hidden;
}

.quiz-progress span.done {
  background: var(--purple);
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-step h4 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 16px;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  position: relative;
}

.quiz-option input {
  position: absolute;
  opacity: 0;
}

.quiz-option label {
  display: block;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--blue-gray-200);
  background: var(--gray-50);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.quiz-option input:checked + label {
  border-color: var(--purple);
  background: var(--blue-gray-100);
  color: var(--purple-dark);
}

.quiz-nav {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.quiz-nav .btn {
  flex: 1;
}

.btn-ghost {
  background: var(--blue-gray-100);
  color: var(--navy-900);
}

.btn-ghost:hover {
  background: var(--blue-gray-200);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-900);
  color: var(--text-on-dark-muted);
  padding: 64px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  color: var(--white);
  font-size: 19px;
  font-weight: 800;
}

.footer-logo span {
  display: block;
  font-size: 13px;
  color: var(--text-on-dark-muted);
  font-weight: 500;
  margin-top: 4px;
}

.footer-desc {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14.5px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-max {
  margin-top: 18px;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.footer-bottom a {
  text-decoration: underline;
}

/* ==========================================================================
   Thanks page
   ========================================================================== */

.thanks-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 20px 80px;
  background: linear-gradient(180deg, var(--gray-50), var(--white));
}

.thanks-card {
  max-width: 560px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 52px 44px;
  text-align: center;
}

.thanks-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--blue-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
}

.thanks-icon svg {
  width: 34px;
  height: 34px;
  color: var(--purple);
}

.thanks-card h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy-900);
}

.thanks-card p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

.thanks-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Policy page
   ========================================================================== */

.policy-main {
  padding: 150px 0 90px;
}

.policy-main .container {
  max-width: 860px;
}

.policy-main h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 26px;
}

.policy-main h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-900);
  margin-top: 34px;
  margin-bottom: 12px;
}

.policy-main p, .policy-main li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.policy-main ul {
  padding-left: 20px;
  list-style: disc;
}

.policy-main li {
  margin-bottom: 6px;
}

.policy-back {
  display: inline-block;
  margin-bottom: 30px;
  font-weight: 700;
  color: var(--purple);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .help-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }

  .process-step {
    border-top: none;
    border-left: 3px solid var(--blue-gray-200);
    padding: 0 0 0 22px;
  }

  .process-step.active-line {
    border-left-color: var(--purple);
    border-top: none;
  }

  .reviews-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header-actions .phone-link {
    display: none;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 150px 0 70px;
    min-height: unset;
  }

  .hero-form-card {
    max-width: 520px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    order: -1;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .results-stats {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 640px) {
  section {
    padding: 60px 0;
  }

  .container {
    padding: 0 18px;
  }

  .site-header .container {
    height: 72px;
  }

  .hero {
    padding: 130px 0 56px;
  }

  .hero-perks {
    grid-template-columns: 1fr;
  }

  .hero-form-card {
    padding: 28px 22px;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .results-stats {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
  }

  .reviews-track {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .quiz-card {
    padding: 26px 20px;
  }

  .thanks-card {
    padding: 40px 26px;
  }

  .btn {
    width: 100%;
  }

  .hero-cta-row .btn,
  .contact-actions .btn {
    width: auto;
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .hero-cta-row .btn {
    width: 100%;
  }
}
