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

html,
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
  background-color: #f5f7fb;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn--outline {
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #cbd5f5;
}

.btn + .btn {
  margin-left: 12px;
}

header {
  background: #ffffff;
  padding: 32px 0 40px;
  border-bottom: 1px solid #e5e7f5;
}

.hero {
  padding: 24px 0 32px;
}

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e0ebff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 16px;
  color: #4b5563;
  max-width: 520px;
  margin-bottom: 20px;
}

.hero-actions {
  margin-bottom: 24px;
}

.hero-stats {
  max-width: 320px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 2px solid #2563eb;
  background: #f9fbff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.hero-stats h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.hero-stats ul {
  list-style: none;
  font-size: 14px;
  color: #4b5563;
}

section {
  padding: 48px 0;
}

.section-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15px;
  color: #6b7280;
  max-width: 560px;
  margin-bottom: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr;
  gap: 32px;
  margin-top: 24px;
}

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

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 16px 18px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.card p {
  font-size: 14px;
  color: #6b7280;
}

.card--blue {
  background: #e5f0ff;
}

.card--green {
  background: #e7f8ef;
}

.card--purple {
  background: #f1e9ff;
}

.card--orange {
  background: #fff3e1;
}

.card--pink {
  background: #ffe8f3;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit {
  padding: 18px 20px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.benefit h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.benefit p {
  font-size: 14px;
  color: #6b7280;
}

.trust-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.trust-item {
  flex: 1 1 160px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.trust-item h3 {
  font-size: 22px;
  margin-bottom: 4px;
  color: #2563eb;
}

.trust-item p {
  font-size: 13px;
  color: #6b7280;
}

.trust-badges {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-badges span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  background: #ffffff;
  font-size: 12px;
}

.cta {
  background: #2563eb;
  color: #ffffff;
  padding: 48px 0;
}

.cta .section-title {
  color: #ffffff;
}

.cta .section-subtitle {
  color: #e5e7f5;
}

.cta-form {
  max-width: 460px;
  margin-top: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  font-size: 14px;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

input,
textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font: inherit;
}

.cta input,
.cta textarea {
  border: 1px solid #9cb7ff;
}

.contacts-block {
  background: #ffffff;
}

.contacts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.contact-card {
  flex: 1 1 220px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f9fafb;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.top-nav a {
  margin-left: 16px;
  font-size: 14px;
}

footer {
  padding: 16px 0 24px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

footer nav {
  margin-top: 8px;
}

footer nav a {
  margin: 0 8px;
  font-size: 13px;
}

/* --------- РЕСПОНСИВНОСТЬ (ЛАБА 7) --------- */
/* Базовая ширина без медиазапросов ~>=1200px [web:48] */

/* 992–1199 px: слегка уменьшаем шрифты, сетки остаются */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .section-title {
    font-size: 22px;
  }

  .container {
    max-width: 960px;
  }
}

/* 768–991 px: about в одну колонку, карточки шире */
@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }

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

  .hero-stats {
    max-width: 100%;
  }

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

  .trust-stats {
    gap: 16px;
  }
}

/* 576–767 px: почти планшет, всё по центру, заголовки меньше [web:52] */
@media (max-width: 767px) {
  header {
    padding-bottom: 24px;
  }

  .hero {
    text-align: left;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .btn + .btn {
    margin-left: 0;
  }

  .about-grid {
    gap: 20px;
  }

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

  .trust-stats {
    flex-direction: column;
  }

  .contacts-grid {
    flex-direction: column;
  }
}

/* 460–575 px: кнопки и формы на всю ширину */
@media (max-width: 575px) {
  .container {
    max-width: 540px;
  }

  .btn,
  .cta .btn {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    margin-top: 12px;
  }

  section {
    padding: 32px 0;
  }

  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .top-nav a {
    margin-left: 0;
    margin-right: 12px;
  }
}

/* 414–459 px: ещё уменьшаем заголовки и паддинги */
@media (max-width: 459px) {
  .hero-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 20px;
  }

  .hero {
    padding-top: 16px;
  }

  .card,
  .benefit,
  .trust-item,
  .contact-card {
    padding: 14px 14px;
  }
}

/* 375–413 px: уплотняем, чтобы не было горизонтального скролла [web:55] */
@media (max-width: 413px) {
  .container {
    padding: 0 12px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-subtitle,
  .section-subtitle {
    font-size: 14px;
  }

  input,
  textarea {
    padding: 8px 10px;
  }

  .hero-actions {
    flex-direction: column;
  }
}

/* 320–374 px: самый маленький экран, всё в одну колонку, текст поменьше [web:52] */
@media (max-width: 374px) {
  .hero-title {
    font-size: 18px;
  }

  .hero-subtitle,
  .section-subtitle {
    font-size: 13px;
  }

  .section-title {
    font-size: 18px;
  }

  .hero-stats h3 {
    font-size: 14px;
  }

  .hero-stats ul {
    font-size: 12px;
  }

  footer nav a {
    display: inline-block;
    margin: 4px;
  }
}
