:root {
  --ink: #15161a;
  --muted: #626b78;
  --line: #e2e6ea;
  --paper: #ffffff;
  --soft: #f5f7f9;
  --coal: #11151b;
  --red: #d81f2a;
  --red-dark: #ac101a;
  --cyan: #11a8c9;
  --green: #14865c;
  --warn: #ad6b00;
  --shadow: 0 18px 45px rgba(17, 21, 27, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

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

button {
  cursor: pointer;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 230, 234, 0.86);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  min-height: 78px;
  padding: 0 48px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  gap: 10px;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  background: var(--red);
  color: white;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: center;
}

.main-nav a,
.ghost-link {
  color: #3a424c;
  font-size: 15px;
  font-weight: 700;
}

.main-nav a.active,
.main-nav a:hover,
.ghost-link:hover {
  color: var(--red);
}

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

.action-link,
.btn {
  align-items: center;
  background: var(--red);
  border: 1px solid var(--red);
  color: white;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  transition: 0.18s ease;
}

.action-link:hover,
.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
}

.btn.secondary {
  background: var(--coal);
  border-color: var(--coal);
}

.btn.light {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

.btn.full {
  width: 100%;
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  width: 42px;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 6px auto;
  width: 24px;
}

.hero {
  background:
    linear-gradient(90deg, rgba(10, 13, 18, 0.9) 0%, rgba(10, 13, 18, 0.76) 38%, rgba(10, 13, 18, 0.18) 100%),
    url("/assets/hero-led-wall.png") center right / cover no-repeat;
  color: white;
  min-height: calc(100vh - 78px);
  padding: 90px 48px 46px;
}

.hero-inner {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 620px) minmax(260px, 1fr);
  margin: 0 auto;
  max-width: 1240px;
}

.eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.94;
  margin: 0;
  max-width: 760px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.7;
  margin: 24px 0 30px;
  max-width: 610px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  align-self: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  margin-top: 42px;
}

.stat {
  border-left: 3px solid var(--red);
  padding: 12px 16px;
}

.stat strong {
  display: block;
  font-size: 28px;
}

.stat span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.mega-strip {
  background: var(--red);
  color: white;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.mega-strip a {
  border-right: 1px solid rgba(255, 255, 255, 0.24);
  display: block;
  min-height: 112px;
  padding: 24px;
}

.mega-strip strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.mega-strip span {
  color: rgba(255, 255, 255, 0.82);
  display: block;
  font-size: 14px;
  line-height: 1.5;
}

.section {
  padding: 82px 48px;
}

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

.section.dark {
  background: var(--coal);
  color: white;
}

.section-head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto 34px;
  max-width: 1180px;
}

.section-head h2,
.page-head h1 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  margin: 0;
}

.section-head p,
.page-head p {
  color: var(--muted);
  line-height: 1.65;
  margin: 12px 0 0;
  max-width: 640px;
}

.dark .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.grid {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1180px;
}

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

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

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.card.dark-card {
  background: #171d25;
  border-color: rgba(255, 255, 255, 0.1);
}

.card-body {
  padding: 24px;
}

.card h3 {
  font-size: 22px;
  margin: 0 0 10px;
}

.card p {
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
}

.dark .card p {
  color: rgba(255, 255, 255, 0.7);
}

.product-visual {
  background:
    radial-gradient(circle at 25% 25%, rgba(17, 168, 201, 0.35), transparent 30%),
    linear-gradient(135deg, #151a21, #333b47);
  height: 176px;
  position: relative;
}

.product-visual::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 13px 13px;
  content: "";
  inset: 24px;
  position: absolute;
}

.service-icon {
  align-items: center;
  background: #f0f3f6;
  color: var(--red);
  display: inline-flex;
  font-size: 24px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  margin-bottom: 18px;
  width: 48px;
}

.page-head {
  background: var(--soft);
  padding: 74px 48px 42px;
}

.page-head-inner {
  margin: 0 auto;
  max-width: 1180px;
}

.split {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  margin: 0 auto;
  max-width: 1180px;
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

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

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

label {
  color: #39424d;
  font-size: 13px;
  font-weight: 800;
}

.check-line {
  align-items: center;
  border: 1px solid #cfd6de;
  border-radius: 6px;
  display: flex;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
}

.check-line input {
  min-height: auto;
  width: auto;
}

input,
select,
textarea {
  background: white;
  border: 1px solid #cfd6de;
  border-radius: 6px;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(216, 31, 42, 0.14);
  outline: 0;
}

.auth-wrap {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(17, 21, 27, 0.84), rgba(17, 21, 27, 0.36)),
    url("/assets/hero-led-wall.png") center / cover no-repeat;
  display: grid;
  min-height: calc(100vh - 78px);
  padding: 48px;
}

.auth-card {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 430px;
  padding: 30px;
  width: 100%;
}

.auth-card h1 {
  font-size: 34px;
  margin: 0 0 10px;
}

.auth-note {
  background: #f7f1e6;
  border: 1px solid #ecd6ad;
  border-radius: 8px;
  color: #634000;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 18px;
  padding: 12px;
}

.workspace {
  background: #f3f5f7;
  min-height: calc(100vh - 78px);
  padding: 28px;
}

.workspace-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  margin: 0 auto;
  max-width: 1280px;
}

.workspace-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto 18px;
  max-width: 1280px;
}

.workspace-head h1 {
  margin: 0;
}

.quote-total {
  background: var(--coal);
  border-radius: 8px;
  color: white;
  padding: 24px;
}

.quote-total dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.quote-total div {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
}

.quote-total div:last-child {
  border-bottom: 0;
  color: white;
  font-size: 24px;
  font-weight: 900;
  padding-bottom: 0;
}

.admin-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 250px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1380px;
}

.admin-menu {
  align-self: start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 10px;
  position: sticky;
  top: 96px;
}

.admin-menu button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #3b4652;
  font-weight: 800;
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
}

.admin-menu button.active {
  background: var(--red);
  color: white;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #47515d;
  font-size: 12px;
  text-transform: uppercase;
}

td input,
td select {
  min-width: 120px;
}

.badge {
  background: #e8f3ef;
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 10px;
}

.badge.warn {
  background: #fff1d7;
  color: var(--warn);
}

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

.empty {
  border: 1px dashed #ccd3db;
  border-radius: 8px;
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.toast {
  background: var(--coal);
  border-radius: 8px;
  bottom: 22px;
  color: white;
  left: 50%;
  max-width: min(520px, calc(100vw - 32px));
  padding: 13px 16px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 50;
}

.contact-band {
  background: var(--red);
  color: white;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr auto;
  margin: 0 auto;
  max-width: 1180px;
  padding: 32px;
}

.contact-band h2 {
  margin: 0 0 8px;
}

.contact-band p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.footer {
  align-items: center;
  background: #090c10;
  color: white;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 34px 48px;
}

.footer p {
  color: rgba(255, 255, 255, 0.68);
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto auto;
    padding: 0 20px;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    background: white;
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
    padding-bottom: 16px;
  }

  .main-nav.open,
  .header-actions.open {
    display: flex;
    flex-wrap: wrap;
  }

  .hero,
  .section,
  .page-head,
  .auth-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-inner,
  .split,
  .workspace-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .grid.three,
  .grid.four,
  .mega-strip,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .workspace-head,
  .footer,
  .contact-band {
    align-items: start;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .admin-menu {
    position: static;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 42px;
  }

  .workspace {
    padding: 18px;
  }

  .panel,
  .auth-card {
    padding: 18px;
  }
}
