:root {
  --bg: #f5f9fd;
  --bg-alt: #eaf2fa;
  --surface: #ffffff;
  --surface-2: #f0f6fc;
  --text: #152238;
  --muted: #5a6f8a;
  --primary: #1d5fbf;
  --primary-dark: #164a96;
  --accent: #2b7fd4;
  --blueprint: rgba(29, 95, 191, 0.08);
  --border: rgba(29, 95, 191, 0.14);
  --shadow: 0 16px 48px rgba(29, 95, 191, 0.1);
  --radius: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.blueprint-page {
  background-color: var(--bg);
  background-image: url('images/blueprint-grid.svg');
  background-size: 400px 400px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 88px 0;
}

.section--alt {
  background: var(--bg-alt);
  background-image: url('images/blueprint-grid.svg');
  background-size: 400px 400px;
}

.section--alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/blueprint-detail.svg') no-repeat right -40px top 50%;
  background-size: min(45vw, 420px);
  opacity: 0.55;
  pointer-events: none;
}

.section > .container {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; color: #0f1f38; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; color: #0f1f38; }
h3 { font-size: 1.2rem; }

.section__lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}

.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(29, 95, 191, 0.28);
}
.btn--outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(29, 95, 191, 0.06);
}
.btn--white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.btn--sm { padding: 10px 16px; font-size: 0.9rem; }
.btn--lg { padding: 14px 24px; font-size: 1rem; }

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.85rem;
}

.logo__text span { color: var(--primary); }

.nav { display: flex; gap: 24px; }

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover { color: var(--primary); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__phone {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  position: relative;
  padding: 140px 0 88px;
  overflow: hidden;
  background: linear-gradient(180deg, #e8f2fc 0%, var(--bg) 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background: url('images/blueprint-grid.svg');
  background-size: 400px 400px;
  opacity: 0.7;
}

.hero__blueprint {
  position: absolute;
  opacity: 0.22;
  object-fit: contain;
  filter: saturate(0.9);
}

.hero__blueprint--1 {
  width: min(52vw, 580px);
  right: -4%;
  top: 12%;
  transform: rotate(-4deg);
}

.hero__blueprint--2 {
  width: min(38vw, 400px);
  left: -6%;
  bottom: 4%;
  transform: rotate(6deg);
  opacity: 0.16;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.hero__badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(29, 95, 191, 0.1);
  color: var(--primary);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero__lead {
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 620px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero__note {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero__cards { display: grid; gap: 16px; }

.hero-card {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-card__icon { font-size: 1.8rem; margin-bottom: 10px; }
.hero-card p { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }

.about {
  background: #fff;
}

.about::after {
  content: '';
  position: absolute;
  left: -80px;
  bottom: -40px;
  width: min(40vw, 360px);
  height: 280px;
  background: url('images/blueprint-plan.svg') no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.about__text p + p { margin-top: 14px; color: var(--muted); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.service-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(29, 95, 191, 0.06);
}

.service-card--accent {
  background: linear-gradient(135deg, #1d5fbf, #2b8fd4);
  border: none;
  color: #fff;
}

.service-card--accent h3,
.service-card--accent .price-list strong { color: #fff; }

.service-card--accent .price-list li {
  border-bottom-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.service-card--accent .tag {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.service-card--accent p { margin: 12px 0 18px; opacity: 0.95; }

.service-card__head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 16px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blueprint);
  color: var(--primary);
  white-space: nowrap;
}

.price-list { list-style: none; }
.price-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.price-list strong { color: var(--text); }

.benefits {
  background: #fff;
}

.benefits::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(35vw, 320px);
  height: 260px;
  background: url('images/blueprint-detail.svg') no-repeat center / contain;
  opacity: 0.1;
  pointer-events: none;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.benefit {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(29, 95, 191, 0.05);
}

.benefit span { font-size: 1.6rem; }
.benefit h4 { margin: 12px 0 6px; }
.benefit p { color: var(--muted); font-size: 0.95rem; }

.tabs {
  display: flex;
  gap: 8px;
  margin: 28px 0 16px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.table-wrap {
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(29, 95, 191, 0.06);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.price-table.hidden { display: none; }

.price-table th,
.price-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.price-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
}

.price-table tr.group td {
  background: rgba(29, 95, 191, 0.08);
  color: var(--primary);
  font-weight: 700;
}

.disclaimer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.lead-form__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(29, 95, 191, 0.08), rgba(43, 143, 212, 0.06));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form { display: grid; gap: 12px; }

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font: inherit;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid rgba(29, 95, 191, 0.25);
  border-color: var(--primary);
}

.form--card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(29, 95, 191, 0.06);
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox input { margin-top: 4px; }

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.step {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(29, 95, 191, 0.05);
}

.step__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.step p { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.review {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(29, 95, 191, 0.05);
}

.review p { color: var(--muted); }
.review footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.9rem;
}

.clients__logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.client-logo {
  padding: 24px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.contact {
  background: #fff;
}

.contact::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(30vw, 280px);
  height: 220px;
  background: url('images/blueprint-plan.svg') no-repeat left bottom / contain;
  opacity: 0.1;
  pointer-events: none;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact__info {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cookie.hidden { display: none; }
.cookie p { color: var(--muted); font-size: 0.9rem; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.open { display: grid; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 34, 56, 0.45);
}

.modal__dialog {
  position: relative;
  width: min(100%, 480px);
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.modal__dialog--wide { width: min(100%, 760px); }

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 12px;
}

.field { display: grid; gap: 6px; }
.field span { font-size: 0.9rem; color: var(--muted); }

.upload input { display: none; }

.upload__box {
  display: grid;
  gap: 6px;
  padding: 28px;
  border: 2px dashed var(--border);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  background: var(--surface-2);
}

.upload__box:hover { border-color: var(--primary); }

.order-summary {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.order-summary ul {
  list-style: none;
  margin-top: 10px;
  color: var(--muted);
}

.requirements {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.requirements p { margin-top: 8px; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  padding: 14px 18px;
  border-radius: 12px;
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
  opacity: 0;
  transform: translateY(12px);
  transition: .25s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero__inner,
  .about__grid,
  .lead-form__inner,
  .contact__grid,
  .order-grid { grid-template-columns: 1fr; }

  .services__grid,
  .benefits__grid,
  .process__steps,
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }

  .clients__logos { grid-template-columns: repeat(3, 1fr); }

  .hero__blueprint--1 {
    width: 70vw;
    right: -20%;
    opacity: 0.14;
  }

  .hero__blueprint--2 { display: none; }

  .section--alt::before,
  .about::after,
  .benefits::before,
  .contact::before { display: none; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: 76px 16px auto;
    display: none;
    flex-direction: column;
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.open { display: flex; }
  .burger { display: block; }
  .header__phone { display: none; }

  .services__grid,
  .benefits__grid,
  .process__steps,
  .reviews__grid,
  .clients__logos { grid-template-columns: 1fr; }

  .cookie { flex-direction: column; align-items: stretch; }

  .hero__blueprint--1 { display: none; }
}
