@import url("./styles/slider.css");
@import url("./styles/features.css");
@import url("./styles/review-slider.css");
@import url("./styles/faq.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand-primary: #5c0001;
  --brand-primary-light: #6b0406;
  --brand-title: #1a1a1a;
  --text-dark: #2c2c2c;
  --bg-light: #f5f5f5; /* изменено: светлый, но теплый */
  --text-muted: #64748b;
  --bg-accent: #c9a03d;
  --border-light: #eaeaea; /* изменено: будет видно рамки */

  --color-1: #30231f;
  --color-2: #734f4c;
  --color-3: #0c0c0c;
  --color-4: #ac83b4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background-color: #ffffff;
  color: #1a1f2c;
  line-height: 1.5;
  scroll-behavior: smooth;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ФИКСИРОВАННАЯ ШАПКА */
.navbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  z-index: 1000;
}

/* ОТСТУП, чтобы контент не уходил под шапку */
.header-offset {
  height: 90px; /* подстраивается под высоту шапки */
}

/* Стили самой шапки (внутри фиксированного блока) */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  flex-wrap: wrap;
  gap: 16px;
}

/* Остальные стили без изменений */
h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section {
  padding: 80px 0;
  border-bottom: 1px solid #eef2f6;
}
.section:last-child {
  border-bottom: none;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  width: 50%;
  background-color: var(--brand-primary-light);
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  border: 1px solid #726b6b;
}
.btn-primary:hover {
  background-color: var(--brand-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 38, 71, 0.2);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid #0a2647;
  color: #0a2647;
  padding: 8px 20px;
  border-radius: 40px;
}
.btn-outline:hover {
  background: #0a2647;
  color: white;
}
.full-width {
  width: 100%;
}

.logo-area {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0a2647;
}
.logo-sub {
  font-size: 0.85rem;
  color: #4a5568;
  border-left: 2px solid #cbd5e1;
  padding-left: 12px;
}
.header-contact {
  display: flex;
  gap: 24px;
  align-items: center;
}
.phone-link {
  font-weight: 600;
  color: #1a1f2c;
  text-decoration: none;
}
.hero-section {
  background: url("./images/banner-2.png");
  background-repeat: no-repeat;
  background-size: cover;
}
.hero {
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  width: 60%;
  align-items: center;
  gap: 20px;
}

.hero-content h1 {
  width: 80%;
  color: #fff;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 500;
  width: 50%;
  text-align: center;
}
.hero-text {
  width: 80%;
  color: #fff;
  margin-bottom: 20px;
  text-align: center;
}
.benefits-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 24px 0 32px;
}
.benefit-item {
  background: #f7f9fc;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2d9bef;
}
.benefit-item span {
  color: #2d9bef;
}
.scheme-caption {
  font-size: 0.75rem;
  margin-top: 10px;
  color: #2c5282;
}

.reviews-flex {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 24px;
  padding-bottom: 20px;
  margin-top: 32px;
}
.review-card {
  flex: 0 0 320px;
  background: #f9fbfe;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid #e9edf2;
}
.review-text {
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.review-author {
  font-weight: 700;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 16px;
}
.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  padding-bottom: 20px;
  color: #2d3a4b;
  display: none;
}
.faq-answer.active {
  display: block;
}

.final-cta {
  background: #f4f8fe;
  border-radius: 48px;
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}
.form-col {
  flex: 1;
}
input,
textarea {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 20px;
  border: 1px solid #cfdfed;
  border-radius: 28px;
  font-family: inherit;
  background: white;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: #0a2647;
}
.form-note {
  font-size: 0.7rem;
  margin-top: 12px;
}
.badge-call {
  background: #0a2647;
  color: white;
  border-radius: 32px;
  padding: 8px 18px;
  display: inline-block;
  font-size: 0.9rem;
}
.scheme-placeholder {
  background: #eef2f8;
  padding: 24px;
  text-align: center;
  border-radius: 24px;
  margin-top: 20px;
}

.footer {
  background: #0a1c2e;
  color: #cfdfed;
  padding: 40px 0;
  margin-top: 20px;
}
.footer a {
  color: #bdd3e8;
  text-decoration: none;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.7rem;
  }
  .section {
    padding: 48px 0;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    flex-direction: column;
  }
  .final-cta {
    padding: 32px;
  }
  .reviews-flex {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .review-card {
    flex: 1 1 auto;
  }
  .header-offset {
    height: 120px;
  } /* увеличиваем отступ на мобилках */
}
