:root {
  --bg: #f5f7fb;
  --text: #1f2937;
  --muted: #4b5563;
  --brand: #1d4ed8;
  --brand-dark: #1e40af;
  --accent: #f97316;
  --white: #ffffff;
  --border: #dbe4f3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  padding-top: 56px;
}

a {
  color: var(--brand);
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #0b1220;
  color: var(--white);
  border-bottom: 1px solid #1f2d43;
}

.top-bar-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar-phone {
  color: var(--white);
  font-weight: 700;
}

.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand-dark);
}

.descriptor {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.header-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-link {
  font-weight: 600;
}

.messengers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.messengers a {
  color: #334155;
  font-size: 14px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  min-height: 46px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 700;
  background: var(--brand);
  color: var(--white);
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  background: var(--brand-dark);
}

.btn-small {
  min-height: 38px;
  padding: 0 14px;
}

.btn-secondary {
  background: var(--accent);
}

.btn-secondary:hover {
  background: #ea580c;
}

.btn-outline {
  background: var(--white);
  color: var(--brand-dark);
  border: 1px solid #9eb2db;
}

.btn-outline:hover {
  background: #eff6ff;
}

.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(11, 18, 32, 0.65), rgba(11, 18, 32, 0.7)), url("img/images.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.1;
  max-width: 900px;
}

.hero p {
  max-width: 760px;
  font-size: clamp(18px, 2.2vw, 22px);
  color: #e5e7eb;
  margin: 22px 0 0;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

h2 {
  margin: 0 0 24px;
  font-size: clamp(26px, 3vw, 40px);
}

.quiz-form,
.lead-inner,
.payment-info {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.quiz-form {
  padding: 24px;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

select,
input {
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 16px;
}

.quiz-motivator {
  color: #065f46;
  font-weight: 700;
  margin: 16px 0;
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-result {
  margin: 16px 0 0;
  font-weight: 600;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tab {
  border: 1px solid #b6c5e3;
  background: var(--white);
  color: #1e3a8a;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 600;
  cursor: pointer;
}

.tab.active {
  background: #dbeafe;
  border-color: #93c5fd;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 16px;
}

.card h3 {
  margin: 0 0 12px;
}

.card p {
  margin: 6px 0;
  color: #374151;
}

.price {
  font-size: 28px;
  line-height: 1.2;
  color: #111827;
  font-weight: 800;
}

.installment {
  color: #1d4ed8;
  font-weight: 600;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.section-cta {
  margin-top: 22px;
}

.advantages-grid,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.advantages-grid article,
.review {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.advantages-grid h3 {
  margin: 0 0 8px;
}

.payment-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-cards span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 10px;
  padding: 0 16px;
  border: 1px solid #c7d2fe;
  background: var(--white);
  font-weight: 700;
  color: #1e3a8a;
}

.payment-info {
  margin-top: 16px;
  padding: 18px;
}

.payment-info p {
  margin: 8px 0;
}

.review img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
}

.review p {
  color: #374151;
  margin: 12px 0;
}

.lead-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  padding: 26px;
  gap: 20px;
}

.lead-form {
  display: grid;
  gap: 12px;
}

.lead-form p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}

.footer {
  background: #0f172a;
  color: #cbd5e1;
}

.footer a {
  color: #93c5fd;
  display: inline-block;
  margin: 4px 0;
}

.map-frame {
  margin-top: 10px;
  width: 100%;
  height: 170px;
  border: 0;
  border-radius: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.footer h3 {
  color: var(--white);
  margin-top: 0;
}

.hidden {
  display: none;
}

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: 1fr;
    padding: 14px 0;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .lead-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 52px;
  }

  .section {
    padding: 54px 0;
  }

  .top-bar-inner {
    min-height: 52px;
  }

  .descriptor {
    font-size: 13px;
  }

  .hero-content {
    min-height: 470px;
  }

  .hero-actions,
  .quiz-actions {
    flex-direction: column;
  }

  .btn,
  .btn-outline,
  .btn-secondary {
    width: 100%;
  }

  .quiz-grid,
  .cards,
  .advantages-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .card img,
  .review img {
    height: 200px;
  }

  .price {
    font-size: 25px;
  }
}
