:root {
  --yellow: #f5d061;
  --yellow-hover: #f3c63f;
  --blue: #3e84d7;
  --blue-hover: #2972c8;
  --blue-deep: #1d4f8c;
  --text: #222;
  --muted: #5a5a5a;
  --bg: #fff;
  --bg-soft: #f5f8fc;
  --line: #e6eef8;
  --shadow-btn: 0 4px 12px rgba(42, 47, 41, 0.25);
  --radius: 18px;
  --container: 1140px;
  --font-display: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "Montserrat", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-hover);
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(62, 132, 215, 0.55);
  outline-offset: 2px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.preview-banner {
  background: #fff4cc;
  color: #4a3b00;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #f0df8a;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

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

.brand img {
  width: 184px;
  height: 41px;
  object-fit: contain;
}

.brand-note {
  display: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  max-width: 160px;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: #111;
  border-radius: 2px;
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

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

.phone-display {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

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

.btn-yellow {
  background: var(--yellow);
  color: #000;
  box-shadow: var(--shadow-btn);
}

.btn-yellow:hover {
  background: var(--yellow-hover);
  color: #000;
}

.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn-blue:hover {
  background: var(--blue-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--blue-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero {
  padding: 28px 0 48px;
  background:
    radial-gradient(circle at 12% 20%, rgba(62, 132, 215, 0.12), transparent 40%),
    linear-gradient(180deg, #f7fbff 0%, #fff 70%);
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-visual {
  position: relative;
  min-height: 340px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(29, 79, 140, 0.55), rgba(62, 132, 215, 0.35)),
    url("../img/hero-panel-bg.webp") center / cover no-repeat;
}

.hero-visual img.hero-person {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 420px);
  height: auto;
}

.hero-doc {
  position: absolute;
  right: 18px;
  top: 24px;
  width: 88px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

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

.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
  max-width: 38ch;
}

.hero-points {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero-points li {
  position: relative;
  padding-left: 22px;
  font-weight: 600;
  font-size: 15px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245, 208, 97, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-bottom: 14px;
}

.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 42ch;
}

.section {
  padding: 64px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  max-width: 720px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.problem-intro {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

.problem-visual {
  display: flex;
  align-items: center;
  gap: 14px;
}

.problem-visual img.weight {
  width: 92px;
}

.problem-visual img.bracket {
  width: 28px;
  height: 120px;
}

.cards {
  display: grid;
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(29, 79, 140, 0.05);
}

.card img.icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.section-cta {
  margin-top: 28px;
}

.why-grid,
.types-grid,
.steps,
.faq-list {
  display: grid;
  gap: 14px;
}

.why-item,
.type-card,
.step,
.guarantee-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.why-item h3,
.type-card h3,
.guarantee-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.why-item p,
.type-card p,
.guarantee-card p {
  margin: 0;
  color: var(--muted);
}

.type-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 72px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  color: #111;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.price-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(29, 79, 140, 0.07);
}

.price-box ul {
  margin: 16px 0 24px;
  padding-left: 18px;
  color: var(--muted);
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.faq-item__q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 18px 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq-item__q span:last-child {
  color: var(--blue);
}

.faq-item__a {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
  margin: 0;
}

.faq-item.is-open .faq-item__a {
  display: block;
}

.form-section {
  background:
    linear-gradient(180deg, rgba(62, 132, 215, 0.08), rgba(62, 132, 215, 0.02)),
    var(--bg-soft);
}

.form-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 28px 22px;
  box-shadow: 0 16px 40px rgba(29, 79, 140, 0.08);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 600;
  font-size: 14px;
}

.field input,
.field select {
  min-height: 50px;
  border: 1px solid #d5e0ef;
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
}

.consent input {
  margin-top: 3px;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-message {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.form-message.is-error {
  color: #b42318;
}

.form-message.is-success {
  color: #027a48;
}

.form-message.is-info {
  color: #175cd3;
}

.site-footer {
  padding: 40px 0;
  background: #0f2d52;
  color: rgba(255, 255, 255, 0.86);
}

.footer-grid {
  display: grid;
  gap: 18px;
}

.site-footer a {
  color: #fff;
}

.footer-brand {
  font-weight: 800;
  font-size: 20px;
  color: #fff;
}

.footer-meta {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 14px;
}

.human-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 24, 44, 0.72);
  display: grid;
  place-items: center;
  padding: 16px;
}

.human-gate[hidden] {
  display: none !important;
}

.gate-dialog {
  width: min(100%, 460px);
  max-height: min(92vh, 680px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.gate-dialog h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.gate-dialog > p {
  margin: 0 0 16px;
  color: var(--muted);
}

.gate-challenge {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.gate-image-wrap {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 12px;
}

.gate-image-wrap img {
  max-height: 72px;
  width: auto;
}

.gate-words {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.gate-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.gate-message {
  min-height: 1.3em;
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.gate-message.is-error {
  color: #b42318;
}

.gate-message.is-info {
  color: #175cd3;
}

.gate-legal {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

body.gate-locked {
  overflow: hidden;
}

@media (min-width: 768px) {
  .burger {
    display: none;
  }

  .brand-note {
    display: block;
  }

  .site-nav {
    display: block;
    position: static;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .site-nav ul {
    display: flex;
    gap: 18px;
  }

  .header-bar {
    gap: 24px;
  }

  .hero-grid,
  .problem-intro,
  .cards,
  .why-grid,
  .types-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .form-card {
    padding: 36px;
  }

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

  .form-grid .full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
  }

  .hero-visual {
    min-height: 480px;
  }

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

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

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

  .phone-display {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}

/* Мобильная ширина: без горизонтальной прокрутки (360–767 px) */
.field { min-width: 0; }
.field input,
.field select { width: 100%; min-width: 0; max-width: 100%; }
@media (max-width: 767px) {
  .header-contact .btn { display: none; }
  .brand { min-width: 0; }
  .brand img { width: 150px; height: auto; }
  .phone-display { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
}

/* Планшет (768–1199 px): горизонтальное меню не помещается — оставляем бургер */
@media (min-width: 768px) and (max-width: 1199px) {
  .burger { display: inline-flex; }
  .brand-note { display: none; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line); padding: 16px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; gap: 10px; }
}
