:root {
  --bg: #071018;
  --bg-soft: #0c1822;
  --panel: #101d27;
  --text: #f5f7fa;
  --muted: #b8c2cc;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #f07a24;
  --accent-2: #d8a63a;
  --light: #f4f6f8;
  --ink: #111820;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.modal-open {
  overflow: hidden;
}

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

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.88);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--text);
  transform: rotate(45deg);
}

.brand-mark span {
  display: block;
  width: 13px;
  height: 13px;
  border: 2px solid var(--text);
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #e8edf2;
  font-size: 14px;
}

.nav a:hover,
.footer a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-note {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.btn.light {
  border-color: rgba(17, 24, 32, 0.16);
  color: var(--ink);
}

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

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 120px 0 70px;
  overflow: hidden;
  background: #0a151f;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.96) 0%, rgba(7, 16, 24, 0.74) 36%, rgba(7, 16, 24, 0.2) 76%),
    linear-gradient(0deg, rgba(7, 16, 24, 0.78), rgba(7, 16, 24, 0.08)),
    url("../img/hero-reference.webp") center / cover no-repeat;
}

.hero-content {
  position: relative;
  width: min(720px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero p {
  max-width: 520px;
  color: #dbe3ea;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
}

.point {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(11, 23, 32, 0.5);
}

.point strong {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

.section {
  padding: 86px 0;
}

.section.dark {
  background:
    linear-gradient(135deg, rgba(12, 24, 34, 0.9), rgba(5, 13, 20, 1)),
    var(--bg);
}

.section.light {
  color: var(--ink);
  background: var(--light);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 42px;
}

.section h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.lead {
  color: var(--muted);
  font-size: 17px;
}

.light .lead,
.light .muted {
  color: #4c5964;
}

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

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

.card {
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--panel);
  overflow: hidden;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  isolation: isolate;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 16, 24, 0.12), rgba(7, 16, 24, 0.9)),
    url("../img/service-angary.webp") center / cover no-repeat;
  filter: saturate(0.95);
}

.service-card:nth-child(2)::before {
  background:
    linear-gradient(180deg, rgba(7, 16, 24, 0.12), rgba(7, 16, 24, 0.9)),
    url("../img/service-data-centry.webp") center / cover no-repeat;
}

.service-card:nth-child(3)::before {
  background:
    linear-gradient(180deg, rgba(7, 16, 24, 0.12), rgba(7, 16, 24, 0.9)),
    url("../img/service-sklady.webp") center / cover no-repeat;
}

.service-card:nth-child(4)::before {
  background:
    linear-gradient(180deg, rgba(7, 16, 24, 0.12), rgba(7, 16, 24, 0.9)),
    url("../img/service-production.webp") center / cover no-repeat;
}

.card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.card p {
  color: #d6dee6;
}

.arrow {
  margin-top: auto;
  font-size: 28px;
  color: var(--accent);
}

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-image {
  min-height: 430px;
  background:
    linear-gradient(0deg, rgba(7, 16, 24, 0.12), rgba(7, 16, 24, 0.12)),
    url("../img/hero-reference.webp") center / cover no-repeat;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.stat strong {
  display: block;
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: #4c5964;
  font-size: 13px;
}

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

.step {
  position: relative;
  padding-top: 54px;
}

.step::before {
  content: attr(data-step);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent-2);
  font-size: 30px;
  font-weight: 800;
}

.step h3 {
  font-size: 17px;
}

.step p {
  color: var(--muted);
  font-size: 14px;
}

.form-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 54px;
  align-items: start;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(17, 24, 32, 0.14);
  background: #fff;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: #23313d;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd7de;
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.form-status {
  min-height: 22px;
  color: #4c5964;
  font-size: 13px;
}

.service-hero {
  padding: 150px 0 70px;
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.96), rgba(7, 16, 24, 0.62)),
    url("../img/hero-reference.webp") center / cover no-repeat;
}

.visual-service {
  position: relative;
  min-height: 100vh;
  padding: 104px 0 86px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.96) 0%, rgba(7, 16, 24, 0.78) 42%, rgba(7, 16, 24, 0.34) 100%),
    linear-gradient(0deg, rgba(7, 16, 24, 0.9), rgba(7, 16, 24, 0.1)),
    url("../img/service-angary.webp") center / cover fixed no-repeat;
}

.visual-service .lead {
  color: #dbe3ea;
}

.visual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 48px;
  align-items: start;
}

.visual-content {
  max-width: 760px;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.glass-block {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 22, 32, 0.72);
  backdrop-filter: blur(14px);
}

.glass-block h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.glass-block p,
.glass-block li {
  color: #d6dee6;
  font-size: 14px;
}

.glass-block ul {
  margin: 0;
  padding-left: 18px;
}

.visual-form {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 22, 32, 0.82);
  backdrop-filter: blur(16px);
}

.visual-form h2 {
  font-size: 28px;
}

.visual-form .lead-form {
  padding: 0;
  border: 0;
  background: transparent;
}

.visual-form label {
  color: #eef3f7;
}

.visual-form .form-status {
  color: #d6dee6;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  background: rgba(10, 22, 32, 0.72);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 12px 0 0;
  color: #d6dee6;
}

.quick-panel {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(10, 22, 32, 0.68);
}

.quick-panel ul {
  margin: 0;
  padding-left: 18px;
  columns: 2;
}

.quick-panel li {
  break-inside: avoid;
  margin-bottom: 8px;
  color: #d6dee6;
}

.mobile-cta {
  display: none;
}

.lead-float {
  position: fixed;
  z-index: 28;
  right: 22px;
  bottom: 22px;
  min-height: 52px;
  padding: 0 22px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.lead-dialog[hidden] {
  display: none;
}

.lead-dialog {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 9, 14, 0.74);
  backdrop-filter: blur(12px);
}

.lead-dialog-panel {
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 35, 47, 0.98), rgba(7, 16, 24, 0.98)),
    var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.lead-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.lead-dialog h2 {
  margin-right: 46px;
  font-size: 32px;
}

.lead-dialog .lead {
  color: #d6dee6;
}

.modal-lead-form {
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
}

.modal-lead-form label {
  color: #eef3f7;
}

.modal-lead-form .form-status {
  color: #d6dee6;
}

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

.service-hero.hero-angary {
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.96), rgba(7, 16, 24, 0.58)),
    url("../img/service-angary.webp") center / cover no-repeat;
}

.service-hero.hero-data {
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.96), rgba(7, 16, 24, 0.58)),
    url("../img/service-data-centry.webp") center / cover no-repeat;
}

.service-hero.hero-sklady {
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.96), rgba(7, 16, 24, 0.58)),
    url("../img/service-sklady.webp") center / cover no-repeat;
}

.service-hero.hero-production {
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.96), rgba(7, 16, 24, 0.58)),
    url("../img/service-production.webp") center / cover no-repeat;
}

.service-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 54px;
}

.content-block {
  margin-bottom: 36px;
}

.content-block ul {
  padding-left: 20px;
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid rgba(17, 24, 32, 0.14);
  background: #fff;
}

.footer {
  padding: 54px 0;
  border-top: 1px solid var(--line);
  background: #071018;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 34px;
}

.footer h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer a,
.footer p {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.muted {
  color: var(--muted);
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 20px 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 16, 24, 0.98);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 0;
  }

  .phone-note {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

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

  .section-head,
  .about,
  .form-wrap,
  .service-layout,
  .visual-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .visual-form {
    position: static;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .brand-text small {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-points,
  .grid.cards,
  .steps,
  .stats,
  .field-grid,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 46px;
  }

  h1 {
    font-size: 40px;
  }

  .section {
    padding: 58px 0;
  }

  .card {
    min-height: 230px;
  }

  .visual-service {
    padding-bottom: 100px;
    background-attachment: scroll;
  }

  .quick-panel ul {
    columns: 1;
  }

  .mobile-cta {
    position: fixed;
    z-index: 30;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7, 16, 24, 0.92);
    backdrop-filter: blur(16px);
  }

  .mobile-cta .btn {
    min-height: 42px;
    padding: 0 12px;
  }

  .lead-float {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .lead-dialog {
    padding: 12px;
  }

  .lead-dialog-panel {
    padding: 24px 18px;
  }
}
