/* ==========================================================================
   Лендинг ООО «Инженерные системы»
   Точки: 320 / 375 / 425 телефон · 768 планшет · 1024 сетка · 1440 контейнер и шапка
   ========================================================================== */

:root {
  --primary-rgb: 191, 30, 46;
  --primary: #bf1e2e;
  --primary-hover: #a61c2b;
  --primary-light: rgba(var(--primary-rgb), 0.08);
  --primary-border: rgba(var(--primary-rgb), 0.4);
  --blue: #2b59ff;
  --blue-soft: rgba(43, 89, 255, 0.08);

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-alt: #f8fafc;
  --text: #555966;
  --text-bold: #3e4150;
  --text-muted: #787c8a;
  --border: #f1f2f5;
  --header-h: 72px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-num: 'Rajdhani', 'Space Grotesk', sans-serif;
  --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 60px -15px rgba(191, 30, 46, 0.12);
  --radius: 24px;
  --btn-radius-lg: 12px;
  --btn-radius: 12px;
  --btn-radius-sm: 10px;
  --ease: cubic-bezier(0.2, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
  max-width: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-bold);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: break-word;
  hyphens: auto;
}

p {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

.icons {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.container {
  width: min(1440px, calc(100% - 24px));
  margin-inline: auto;
}

/* -------------------------------------------------------------------------- */
/* Кнопки */
/* -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font: 800 15px/1 var(--font);
  border-radius: var(--btn-radius);
  cursor: pointer;
  border: 0;
  gap: 8px;
  transition: all 0.35s var(--ease);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.28);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(var(--primary-rgb), 0.36);
}

.btn-outline {
  background: #fff;
  color: var(--text-bold);
  border: 2px solid rgba(43, 89, 255, 0.25);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-3px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 0;
  min-height: 0;
  font-weight: 700;
  border-radius: var(--btn-radius-sm);
}

.btn-header {
  background: #fff;
  color: var(--primary);
  min-height: 40px;
  padding: 8px 18px;
  font-size: 13px;
  border-radius: var(--btn-radius-sm);
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* -------------------------------------------------------------------------- */
/* Шапка */
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--primary);
  color: #fff;
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.logo-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  font-size: 16px;
  display: grid;
  place-items: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(14px, 2.4vw, 18px);
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.nav-extra {
  display: none;
}

.header-aside {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.header-contacts {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}

.header-contacts .phone {
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}

.header-contacts .mail {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.burger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
}

.burger .icon-close {
  display: none;
}

.site-header.is-open .icon-menu {
  display: none;
}

.site-header.is-open .icon-close {
  display: block;
}

.nav-backdrop {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* Секции */
/* -------------------------------------------------------------------------- */

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.12;
  margin-bottom: 16px;
}

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

/* -------------------------------------------------------------------------- */
/* Герой */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 48px 0 48px;
  background: radial-gradient(circle at 80% 18%, rgba(120, 160, 200, 0.12), transparent 42%);
}

.hero-glow {
  position: absolute;
  inset: auto auto 10% 50%;
  width: 58%;
  height: 58%;
  transform: translateX(-50%);
  pointer-events: none;
  filter: blur(120px);
  background: radial-gradient(circle, rgba(191, 30, 46, 0.12), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-kicker-ru {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(191, 30, 46, 0.12);
  color: var(--text-bold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.hero-title {
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1.08;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--text-bold);
}

.hero-lead {
  margin: 0 auto 45px;
  max-width: 640px;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-muted);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-bold);
  box-shadow: var(--shadow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.hero-actions .btn {
  flex: 1 1 180px;
  min-height: 54px;
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--btn-radius-lg);
}

.hero-floats {
  display: none;
}

.float-card {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: row;
  gap: 8px;
  min-width: 168px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06), inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  color: var(--text-bold);
}

.float-card-icon {
  display: flex;
  align-items: center;
}

.float-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.float-card svg {
  color: var(--primary);
}

.float-card strong {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
}

.float-card span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

@keyframes slow-float-y-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes slow-float-y-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

@keyframes slow-float-y-3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes slow-float-y-4 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-y-1 {
  top: -17%;
  left: -26%;
  animation: 6s ease-in-out infinite slow-float-y-1;
}

.float-y-2 {
  top: -17%;
  right: -26%;
  animation: 8s ease-in-out infinite slow-float-y-2;
}

.float-y-3 {
  bottom: -28%;
  left: -14%;
  animation: 7s ease-in-out infinite slow-float-y-3;
}

.float-y-4 {
  bottom: -28%;
  right: -14%;
  animation: 6s ease-in-out infinite slow-float-y-4;
}
/* -------------------------------------------------------------------------- */
/* Форма */
/* -------------------------------------------------------------------------- */

.lead-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lead-form.is-plain {
  box-shadow: none;
  background: var(--surface);
}

.lead-form h2,
.lead-form h3 {
  font-size: 20px;
}

.lead-form .note {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: 400 16px/1.4 var(--font);
  color: var(--text-bold);
  background: #fff;
}

.lead-form textarea {
  min-height: 88px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}

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

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

.consent a {
  color: var(--primary);
  text-decoration: underline;
}

.form-status {
  margin: 0;
  font-size: 13px;
  color: var(--primary);
}

.lead-form .btn {
  width: 100%;
}

/* -------------------------------------------------------------------------- */
/* Карточки и сетки */
/* -------------------------------------------------------------------------- */

.hero-trust {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 56px;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.trust-item {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: 22px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.trust-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
}

.trust-item strong {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-bold);
}

.trust-item span {
  font-size: 13px;
  color: var(--text-muted);
}

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

.card {
  min-width: 0;
  padding: 32px 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff 60%, rgba(191, 30, 46, 0.04) 100%);
  border: 1px solid #e1e3ec;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-hover);
}

.section-alt .card {
  background: #fff;
}

.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 30px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-light);
}

.card h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 14px;
}

.card p {
  margin: 0;
  font-size: 14px;
}

.list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-muted);
}

.list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  flex-shrink: 0;
}

.note-box {
  margin-top: 16px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 60%, rgba(43, 89, 255, 0.05) 100%);
  border: 1px solid #e1e3ec;
  box-shadow: var(--shadow);
}

.note-box h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.note-box p {
  margin: 0;
  font-size: 15px;
}

.card .btn {
  margin-top: 16px;
}

.card .btn-ghost {
  margin-top: 25px;
}

/* -------------------------------------------------------------------------- */
/* Этапы */
/* -------------------------------------------------------------------------- */

.steps {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
}

.steps::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: var(--border);
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  padding: 0 0 20px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.step:last-child {
  padding-bottom: 0;
}

.step.is-in {
  opacity: 1;
  transform: none;
}

.step:nth-child(2) { transition-delay: 0.05s; }
.step:nth-child(3) { transition-delay: 0.1s; }
.step:nth-child(4) { transition-delay: 0.15s; }
.step:nth-child(5) { transition-delay: 0.2s; }
.step:nth-child(6) { transition-delay: 0.25s; }

.step-num {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: #fff;
  border: 1px solid #e1e3ec;
  box-shadow: var(--shadow);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.step.is-in .step-num {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.step-body {
  min-width: 0;
  padding: 18px 20px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff 60%, rgba(191, 30, 46, 0.04) 100%);
  border: 1px solid #e1e3ec;
  box-shadow: var(--shadow);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.step.is-in .step-body {
  box-shadow: var(--shadow);
}

.step-body h3 {
  font-size: 20px;
}

.step-body p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------- */
/* О компании / реквизиты / контакты */
/* -------------------------------------------------------------------------- */

.about-panel {
  margin: 0;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.tab-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--btn-radius-sm);
  background: transparent;
  color: var(--text-muted);
  font: 700 14px/1 var(--font);
  cursor: pointer;
}

.tab-btn[aria-selected="true"] {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.about-facts {
  display: grid;
  gap: 16px;
}

.requisites {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

.requisites-table tr + tr {
  border-top: 1px solid var(--border);
}

.requisites-table th,
.requisites-table td {
  display: block;
  padding: 10px 16px 4px;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-muted);
}

.requisites-table td {
  padding: 0 16px 12px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text-bold);
  font-variant-numeric: tabular-nums;
}

.contacts-grid {
  display: grid;
  gap: 28px;
}

.contact-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.contact-list a,
.contact-list span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-bold);
}

.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 240px;
}

.map iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

/* -------------------------------------------------------------------------- */
/* Подвал и политика */
/* -------------------------------------------------------------------------- */

.site-footer {
  padding: 48px 0 24px;
  background: #0f172a;
  color: #94a3b8;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-logo {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 400;
  font-size: 20px;
}

.footer-copy {
  margin: 0 0 12px;
  max-width: 36ch;
}

.footer-meta {
  font-size: 13px;
  color: #64748b;
}

.footer-title {
  margin-bottom: 12px;
  color: #fff;
  font-size: 15px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #64748b;
}

.made-in-ru {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flag {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #fff 33.3%, #0039a6 33.3% 66.6%, #d52b1e 66.6%);
}

.policy {
  padding: 40px 0 64px;
}

.policy h1 {
  font-size: clamp(26px, 5vw, 34px);
  margin-bottom: 12px;
}

.policy .lead {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.policy h2 {
  font-size: 18px;
  margin: 28px 0 8px;
}

.policy p,
.policy li {
  margin: 0 0 10px;
}

.policy a {
  color: var(--primary);
}

.policy-card {
  padding: 18px 20px;
  margin: 16px 0 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.policy-table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.policy-table th,
.policy-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  background: var(--surface);
  font-weight: 600;
}

body.is-locked {
  overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/* 375 / 425 / 768 / 1024 / 1440 */
/* -------------------------------------------------------------------------- */

@media (min-width: 375px) {
  .container {
    width: min(1440px, calc(100% - 28px));
  }

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

@media (min-width: 425px) {
  .container {
    width: min(1440px, calc(100% - 32px));
  }

  .hero {
    padding: 56px 0 56px;
  }

  .trust-item {
    padding: 22px 14px;
  }
}

@media (min-width: 768px) {
  :root {
    --header-h: 80px;
  }

  .container {
    width: min(1440px, calc(100% - 48px));
  }

  .header-contacts {
    display: flex;
  }

  .nav-extra a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 64px 0 64px;
  }

  .hero-trust {
    margin-top: 56px;
  }

  .hero-actions .btn {
    flex: 0 0 auto;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

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

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

  .cards-3 > :last-child {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .steps::before {
    left: 27px;
  }

  .step {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding-bottom: 24px;
  }

  .step-num {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 18px;
  }

  .requisites-table th,
  .requisites-table td {
    display: table-cell;
    padding: 14px 18px;
    width: auto;
    vertical-align: top;
  }

  .requisites-table th {
    width: 34%;
  }

  .map iframe {
    height: 280px;
  }

  .info-blocks {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .contacts-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
  }

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

  .cards-3 > :last-child {
    grid-column: auto;
  }

  .steps {
    max-width: 840px;
  }

  .hero {
    padding: 80px 0 80px;
  }

  .hero-trust {
    margin-top: 64px;
  }

  .btn-header.is-desktop-only {
    display: inline-flex;
  }

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

@media (min-width: 1440px) {
  .burger,
  .nav-backdrop {
    display: none !important;
  }

  .header-inner {
    gap: 24px;
  }

  .logo {
    flex: 0 0 auto;
  }

  .nav {
    position: static;
    background: none;
    padding: 0;
    max-height: none;
  }

  .nav-list {
    flex-wrap: nowrap;
  }

  .container {
    width: min(1440px, calc(100% - 64px));
  }

  .section {
    padding: 96px 0;
  }

  .cards,
  .about-facts {
    gap: 48px;
  }

  .hero {
    padding: 170px 0 100px;
    min-height: 70vh;
  }

  .hero-trust {
    margin-top: 300px;
  }

  .hero-floats {
    display: block;
  }

  .hero-chips {
    display: none;
  }

  .note-box {
    margin-top: 48px;
  }
}

@media (max-width: 1439px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    display: none;
    padding: 12px 16px 24px;
    background: var(--primary);
    max-height: calc(100dvh - var(--header-h));
    overflow: auto;
  }

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

  .nav-list {
    flex-direction: column;
  }

  .nav-link {
    min-height: 48px;
    font-size: 16px;
  }

  .nav-extra {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .nav-extra a:not(.btn) {
    color: #fff;
    font-weight: 700;
  }

  .nav-extra .btn-header {
    justify-self: start;
    color: var(--primary);
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 90;
    background: rgba(15, 23, 42, 0.45);
  }

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

@media (max-width: 1023px) {
  .btn-header.is-desktop-only {
    display: none;
  }
}

@media (hover: none) {
  .btn:hover,
  .card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-card,
  .hero-glow,
  .step {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Модалки: заявка и подробности услуги */
/* -------------------------------------------------------------------------- */

.modal {
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.modal[open] {
  display: block;
}

.modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 0;
}

.modal-head h2 {
  font-size: 22px;
}

.modal-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--btn-radius-sm);
  background: var(--surface-2);
  color: var(--text-bold);
  cursor: pointer;
}

.modal .lead-form {
  box-shadow: none;
  border: 0;
}

.modal-body {
  padding: 12px 20px 24px;
  font-size: 15px;
  line-height: 1.6;
}

.modal-wide {
  width: min(760px, calc(100vw - 32px));
}

.info-rich {
  display: grid;
  gap: 30px;
}

.info-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.info-blocks {
  display: grid;
  gap: 30px;
}

.info-block {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.info-block h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.info-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.info-block li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text);
}

.info-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.info-rich .btn {
  justify-self: start;
}
