:root {
  --bg: #f6f8ff;
  --text: #121a2a;
  --muted: #4d5b7c;
  --primary: #1a37d8;
  --primary-dark: #122cae;
  --white: #ffffff;
  --border: #d9e1ff;
  --card: #eef2ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.header {
  background: #0d47a1;
  border-bottom: 1px solid #0a3a82;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
}

.brand__name {
  margin: 0;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
}

.brand__meta,
.header__contacts p {
  margin: 0;
  color: var(--white);
  font-size: 0.9rem;
}

.header__contacts {
  text-align: right;
}

.header__contacts a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.header__messengers {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.header__messengers a {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.85rem;
}

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

.hero--center {
  text-align: center;
  max-width: 880px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  color: #0d47a1;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

h3 {
  margin: 0 0 8px;
}

.hero__lead {
  font-size: 1.06rem;
  color: var(--muted);
  margin: 0 auto 16px;
  max-width: 760px;
}

.hero__guarantee {
  margin: 0 0 10px;
  color: #0d47a1;
  font-weight: 700;
}

.feature-list {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.feature-icon {
  width: 24px;
  display: inline-flex;
  justify-content: center;
  flex-shrink: 0;
}

.hero__single-feature {
  margin: 0 0 18px;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 1rem;
  font-family: inherit;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}

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

.btn--secondary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn--full {
  width: 100%;
}

.section {
  padding: 24px 0;
}

.section--muted {
  background: var(--card);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step-card {
  text-align: center;
}

.step-card__num {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #0d47a1;
  color: #fff;
  font-weight: 800;
  margin-bottom: 10px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

th {
  background: #f3f6ff;
}

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

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
}

.product-card h3 {
  margin: 0;
  font-size: 1rem;
}

/* ---- СТИЛИ ФОРМЫ ВНУТРИ МОДАЛЬНОГО ОКНА ---- */
#request label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

#request .contact-method label {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  margin-bottom: 6px;
  font-weight: 500 !important;
}

#request .checkbox {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500 !important;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

#request input,
#request select,
#request textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid #c8d2f8;
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
}

#request input[type="checkbox"],
#request input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.checkbox {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500 !important;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-method {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 12px;
}

.contact-method legend {
  font-weight: 700;
  padding: 0 6px;
}

.contact-method label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-method input {
  width: auto;
  margin: 0;
}

.file-label {
  cursor: pointer;
  color: var(--primary);
  font-weight: 600 !important;
}

.file-label em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.file-label input[type="file"] {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- МОДАЛЬНЫЕ ОКНА ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 25, 51, 0.68);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  overflow-y: auto;
}

.modal-overlay:not([hidden]) {
  display: flex;
}

/* Базовое модальное окно (успех) */
.modal {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #dbe4ff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(13, 25, 51, 0.28);
  padding: 20px 18px 18px;
  text-align: center;
  position: relative;
}

/* Широкое модальное окно для формы */
.modal--form {
  width: min(560px, 100%);
  text-align: left;
  max-height: 90vh;
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #edf2ff;
  color: #2c3f71;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.modal__icon {
  font-size: 3.2rem;
  line-height: 1;
  margin: 4px 0 12px;
}

.modal__title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0d47a1;
}

.modal__form-title {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0d47a1;
  padding-right: 30px;
}

.modal__subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.modal__text {
  margin: 0 0 16px;
  color: #667085;
  font-weight: 500;
}

/* ---- ОТЗЫВЫ ---- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-card__meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
}

/* ---- ФУТЕР ---- */
.footer {
  margin-top: 20px;
  background: #0f1933;
  color: #d7dfff;
  padding: 26px 0;
}

.footer a {
  color: #9ec0ff;
}

.footer__title {
  font-weight: 800;
  color: #fff;
}

.footer__row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  align-items: center;
}

.footer iframe {
  width: 100%;
  min-height: 230px;
  border: 0;
  border-radius: 12px;
}

/* ---- АДАПТИВ ---- */
@media (max-width: 960px) {
  .steps,
  .reviews {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .header__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .header__contacts {
    text-align: left;
  }

  .header__messengers {
    justify-content: flex-start;
  }

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

  .brand__logo {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 600px) {
  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap th,
  .table-wrap td {
    display: block;
    width: 100%;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tbody tr {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    margin: 0 0 10px;
  }

  .table-wrap tbody td {
    border: 0;
    padding: 4px 0;
  }

  .table-wrap tbody td:first-child {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
  }

  .table-wrap tbody td:nth-child(2)::before {
    content: "Стандарт: ";
    font-weight: 600;
  }

  .table-wrap tbody td:nth-child(3)::before {
    content: "За 1 час: ";
    font-weight: 600;
  }

  .modal--form {
    max-height: 85vh;
  }
}
