 :root {
      --bg-dark: #0b1120;
      --bg-light: #f3f4f6;
      --text-main: #111827;
      --text-muted: #6b7280;
      --accent: #fb4040;
      --accent-alt: #1d4ed8;
      --white: #ffffff;
      --border: #e5e7eb;
      --max-width: 1140px;
      box-sizing: border-box;
    }

    * {
      box-sizing: inherit;
    }

    body {
      margin: 0;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      color: var(--text-main);
      background-color: #ffffff;
      line-height: 1.5;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    img {
      max-width: 100%;
      display: block;
    }

    .container {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 16px;
    }

    .btn {
      display: inline-block;
      padding: 12px 24px;
      border-radius: 4px;
      font-weight: 600;
      font-size: 15px;
      border: none;
      cursor: pointer;
      text-align: center;
      transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.1s ease;
    }

    .btn-primary {
      background-color: var(--accent);
      color: #ffffff;
    }

    .btn-outline {
      background-color: transparent;
      color: var(--accent);
      border: 1px solid var(--accent);
    }

    .btn-primary:hover {
      background-color: #ea580c;
      transform: translateY(-1px);
    }

    .btn-outline:hover {
      background-color: rgba(249, 115, 22, 0.08);
      transform: translateY(-1px);
    }

    header {
      position: sticky;
      top: 0;
      z-index: 50;
      background-color: rgba(15, 23, 42, 0.96);
      color: #e5e7eb;
      backdrop-filter: blur(8px);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 16px;
    }

    .logo {
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      font-size: 14px;
    }

    .logo span {
      font-weight: 400;
      font-size: 11px;
      display: block;
      color: #9ca3af;
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
    }

    .header-phone {
      font-weight: 600;
      white-space: nowrap;
    }

    section {
      padding: 48px 0;
    }

    .section-muted {
      background: #f3f4f6;
    }

    .section-dark {
      background: #0b1120;
      color: #e5e7eb;
    }

    .section-title {
      font-size: 24px;
      font-weight: 700;
      margin-bottom: 8px;
    }

    .section-subtitle {
      font-size: 14px;
      color: #6b7280;
      margin-bottom: 24px;
      max-width: 720px;
    }

    .section-dark .section-subtitle {
      color: #9ca3af;
    }

    .hero {
      padding: 56px 0 64px;
      background:
        linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4)),
        url('/img/dina007833_modern_industrial_warehouses_large_logistics_storage_0f8c84f5-3184-4931-8032-21d636648d7c.png') center/cover no-repeat;
      color: #e5e7eb;
    }

    .hero-grid {
      display: grid;
      gap: 24px;
    }

    @media (min-width: 900px) {
      .hero-grid {
        gap: 32px;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        align-items: center;
      }
    }

    .hero-title {
      font-size: 26px;
      font-weight: 700;
      margin-bottom: 12px;
    }

    @media (min-width: 768px) {
      .hero-title {
        font-size: 36px;
      }
    }

    .hero-sub {
      font-size: 15px;
      color: #d1d5db;
      max-width: 540px;
      margin-bottom: 10px;
    }

    .hero-note {
      font-size: 13px;
      color: #9ca3af;
      margin-bottom: 20px;
    }

    .hero-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 20px;
    }

    .badge {
      padding: 5px 10px;
      border-radius: 999px;
      border: 1px solid #334155;
      font-size: 12px;
      color: #e5e7eb;
      background: rgba(15, 23, 42, 0.7);
    }

    .hero-aside {
      background: rgba(15, 23, 42, 0.9);
      border-radius: 12px;
      border: 1px solid #1f2937;
      padding: 16px;
    }

    .hero-aside-title {
      font-weight: 600;
      margin-bottom: 8px;
      font-size: 15px;
    }

    .hero-aside-items {
      display: grid;
      gap: 8px;
      font-size: 13px;
    }

    .hero-aside-item span {
      display: block;
      color: #9ca3af;
      font-size: 12px;
    }

    .grid-3 {
      display: grid;
      gap: 16px;
    }

    .grid-2 {
      display: grid;
      gap: 16px;
    }

    @media (min-width: 768px) {
      .grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      .grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    .card {
      background: #ffffff;
      border-radius: 10px;
      border: 1px solid #e5e7eb;
      padding: 14px 16px;
      font-size: 14px;
    }

    .section-dark .card {
      background: #020617;
      border-color: #1f2937;
    }

    .card-title {
      font-weight: 600;
      margin-bottom: 6px;
      font-size: 15px;
    }

    .card-text {
      font-size: 13px;
      color: #6b7280;
    }

    .section-dark .card-text {
      color: #9ca3af;
    }

    .calc-section {
      background: #f9fafb;
    }

    .form-wrapper {
      background: #ffffff;
      border-radius: 12px;
      border: 1px solid #e5e7eb;
      padding: 16px;
      max-width: 520px;
    }

    .form-row {
      display: grid;
      gap: 10px;
    }

    @media (min-width: 640px) {
      .form-row-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    .form-field {
      display: flex;
      flex-direction: column;
      gap: 4px;
      font-size: 13px;
    }

    .form-field label {
      font-weight: 500;
    }

    .form-field input,
    .form-field select {
      padding: 8px 10px;
      border-radius: 4px;
      border: 1px solid #e5e7eb;
      font-size: 14px;
      font-family: inherit;
    }

    .form-note {
      font-size: 12px;
      color: #6b7280;
      margin-top: 8px;
    }

    .lead-form {
      margin-top: 16px;
      padding: 14px 16px;
      border-radius: 10px;
      border: 1px dashed #d1d5db;
      background: #ffffff;
      font-size: 13px;
    }

    .lead-form-row {
      display: grid;
      gap: 8px;
      margin-top: 10px;
    }

    @media (min-width: 640px) {
      .lead-form-row {
        grid-template-columns: 1.2fr 1.2fr auto;
      }
    }

    .lead-form input {
      width: 100%;
      padding: 8px 10px;
      border-radius: 4px;
      border: 1px solid #e5e7eb;
      font-size: 13px;
      font-family: inherit;
    }

    footer {
      background: #020617;
      color: #9ca3af;
      padding: 20px 0;
      font-size: 12px;
    }

    .footer-inner {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 8px;
      align-items: center;
    }

    @media (max-width: 640px) {
      .header-inner {
        flex-wrap: wrap;
        gap: 8px;
      }

      .header-right .btn {
        padding: 8px 14px;
        font-size: 13px;
      }

      .hero {
        padding: 40px 0 44px;
      }

      .hero-badges {
        margin-bottom: 16px;
      }

      .hero-title {
        font-size: 24px;
      }

      .hero-sub {
        font-size: 14px;
      }

      .hero-note {
        font-size: 12px;
      }

      .hero .btn {
        width: 100%;
        justify-content: center;
      }

      .hero .btn-outline {
        background-color: rgba(15, 23, 42, 0.4);
      }

      .section-title {
        font-size: 20px;
      }

      .section-subtitle {
        font-size: 13px;
      }

      section {
        padding: 36px 0;
      }

      .card {
        padding: 12px 13px;
      }

      .card-title {
        font-size: 14px;
      }

      .card-text {
        font-size: 12px;
      }

      .form-wrapper {
        padding: 14px;
      }

      .lead-form {
        padding: 12px 13px;
      }

      .lead-form-row {
        grid-template-columns: 1fr;
      }

      .lead-form button {
        width: 100%;
      }

      .footer-inner {
        flex-direction: column;
        align-items: flex-start;
      }
    }


/* =========================================================
   1. ОБЩИЕ ЭЛЕМЕНТЫ ДЛЯ ВСЕХ ФОРМ
========================================================= */

.error-text {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #f87171;
}


/* =========================================================
   2. POPUP "ОСТАВИТЬ ЗАЯВКУ"
   HTML:
   .modal-overlay
   .modal-box
   .modal-close
========================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 16, 34, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 30px 28px 26px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgb(101 111 147 / 98%), rgba(11, 17, 32, 0.98));
  border: 1px solid rgba(148,163,184,0.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  color: #e5e7eb;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-overlay.show .modal-box {
  transform: translateY(0) scale(1);
}

.modal-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
  font-size: 24px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.modal-box h3 {
  margin: 0 40px 22px 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
}

.modal-box .form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.modal-box .form-field label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
}

.modal-box .form-field input,
.modal-box .form-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,0.18);
  background: rgba(255,255,255,0.04);
  color: #f8fafc;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.modal-box .form-field input::placeholder,
.modal-box .form-field textarea::placeholder {
  color: #94a3b8;
}

.modal-box .form-field input:focus,
.modal-box .form-field textarea:focus {
  border-color: rgba(251,64,64,0.65);
  box-shadow: 0 0 0 4px rgba(251,64,64,0.12);
  background: rgba(255,255,255,0.06);
}

.modal-box .form-field textarea {
  resize: vertical;
  min-height: 96px;
}

.modal-box .checkbox-group {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
}

.modal-box .checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: #dbe4f0;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.modal-box .checkbox-group label:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(148,163,184,0.28);
}

.modal-box .checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 18px;
  accent-color: #fb4040;
}

.modal-box .btn.btn-primary {
  width: 100%;
  min-height: 54px;
  padding: 0 24px;
  border: none;
  border-radius: 12px;
  background: #fb4040;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 28px rgba(251,64,64,0.22);
}

.modal-box .btn.btn-primary:hover {
  background: #ff5757;
  transform: translateY(-1px);
}


/* =========================================================
   3. POPUP "РАССЧИТАТЬ ПРОЕКТ"
   HTML:
   .raschet-modal-overlay
   .raschet-modal-box
   .raschet-modal-close
========================================================= */

.raschet-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 34, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9999;
}

.raschet-modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.raschet-modal-box {
  position: relative;
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgb(101 111 147 / 98%), rgba(11, 17, 32, 0.98));
  border: 1px solid rgba(148,163,184,0.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  color: #e5e7eb;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.25s ease;
}

.raschet-modal-overlay.show .raschet-modal-box {
  transform: translateY(0) scale(1);
}

.raschet-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.raschet-modal-close:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.raschet-modal-head {
  margin-bottom: 26px;
  padding-right: 48px;
}

.raschet-modal-head h3 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.15;
  color: #fff;
}

.raschet-modal-head p {
  margin: 0;
  font-size: 17px;
  color: #fff;
}

.raschet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.raschet-field-full {
  grid-column: 1 / -1;
}

.raschet-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
}

.raschet-field label span,
.raschet-consents span {
  color: #fb4040;
}

.raschet-field input,
.raschet-field select,
.raschet-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  padding: 14px 16px;
  font-size: 15px;
  color: #f8fafc;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.raschet-field input::placeholder,
.raschet-field textarea::placeholder {
  color: #94a3b8;
}

.raschet-field select {
  color: #f8fafc;
}

.raschet-field option {
  color: #111827;
}

.raschet-field input:focus,
.raschet-field select:focus,
.raschet-field textarea:focus {
  border-color: rgba(251,64,64,0.65);
  box-shadow: 0 0 0 4px rgba(251,64,64,0.12);
  background: rgba(255,255,255,0.06);
}

.raschet-check-list,
.raschet-radio-list,
.raschet-consents {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.raschet-consents {
  flex-direction: column;
  gap: 10px;
}

.raschet-check-list label,
.raschet-radio-list label,
.raschet-consents label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(148,163,184,0.16);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  font-size: 14px;
  font-weight: 400;
  color: #dbe4f0;
  
}

.raschet-consents label {
    border: 0;
    background: none;
    gap: 0px;
    padding: 0px 14px;
}

.raschet-check-list input,
.raschet-radio-list input,
.raschet-consents input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 18px;
  accent-color: #fb4040;
}

.raschet-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(148,163,184,0.12);
}

.raschet-benefits {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: #94a3b8;
}

.btn-raschet-submit {
  min-width: 240px;
  min-height: 54px;
  padding: 0 28px;
  border: none;
  border-radius: 12px;
  background: #fb4040;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 28px rgba(251,64,64,0.22);
}

.btn-raschet-submit:hover {
  background: #ff5757;
  transform: translateY(-1px);
}

.form-message {
  margin-top: 14px;
  font-size: 14px;
  color: #94a3b8;
}


/* =========================================================
   4. ОБЩЕЕ ОКНО "СПАСИБО"
   HTML:
   .success-modal-overlay
   .success-modal-box
   .success-modal-close
========================================================= */

.success-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 16, 34, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.success-modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.success-modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 34px 28px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(180deg, rgb(101 111 147 / 98%), rgba(11, 17, 32, 0.98));
  border: 1px solid rgba(148,163,184,0.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  color: #e5e7eb;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.25s ease;
}

.success-modal-overlay.show .success-modal-box {
  transform: translateY(0) scale(1);
}

.success-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.success-modal-close:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.success-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 40px;
  box-shadow: 0 16px 34px rgba(37,99,235,0.28);
}

.success-modal-box h3 {
  margin: 0 0 12px;
  font-size: 28px;
  color: #fff;
}

.success-modal-box p {
  margin: 0;
  font-size: 16px;
  color: #94a3b8;
}


/* =========================================================
   5. АДАПТИВ
========================================================= */

@media (max-width: 900px) {
  .raschet-grid {
    grid-template-columns: 1fr;
  }

  .raschet-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-raschet-submit {
    width: 100%;
    min-width: 0;
  }

  .raschet-modal-box {
    padding: 24px;
  }

  .raschet-modal-head h3 {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .modal-overlay,
  .raschet-modal-overlay,
  .success-modal-overlay {
    padding: 12px;
  }

  .modal-box,
  .raschet-modal-box,
  .success-modal-box {
    border-radius: 16px;
  }

  .modal-box {
    padding: 22px 18px 18px;
  }

  .raschet-modal-box {
    padding: 18px;
  }

  .success-modal-box {
    padding: 28px 20px;
  }

  .modal-box h3,
  .success-modal-box h3 {
    font-size: 22px;
  }

  .raschet-modal-head h3 {
    font-size: 24px;
  }

  .raschet-modal-head p,
  .success-modal-box p {
    font-size: 15px;
  }

  .modal-box .btn.btn-primary,
  .btn-raschet-submit {
    min-height: 50px;
  }
}