:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --dark: #111827;
  --dark-2: #1f2937;
  --green: #10b981;
  --green-2: #22c55e;
  --green-dark: #047857;
  --blue: #2563eb;
  --amber: #f59e0b;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 42%, #f1f5f9 100%);
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

.shell {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.nav-shell {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.34);
}

.brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--green-dark);
  background: #ecfdf5;
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border 0.2s ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.28);
}

.button-dark {
  color: #fff;
  background: var(--dark);
}

.button-ghost {
  color: var(--ink-soft);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.button-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.button-wide {
  width: 100%;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle span {
  flex: 0 0 auto;
  width: 20px;
  height: 2px;
  display: block;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-media,
.page-hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after,
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 14, 24, 0.96) 0%, rgba(9, 14, 24, 0.82) 48%, rgba(9, 14, 24, 0.08) 100%);
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  color: #fff;
  padding: 80px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.36);
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.15;
  font-weight: 800;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.accent {
  color: #34d399;
}

.hero p,
.page-hero p {
  width: 100%;
  max-width: 650px;
  color: #cbd5e1;
  font-size: clamp(18px, 2vw, 22px);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.stats-band {
  background: var(--dark-2);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 42px 0;
  text-align: center;
}

.stat-value {
  color: #34d399;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 800;
}

.stat-label {
  color: #cbd5e1;
}

.section {
  padding: 88px 0;
}

.section-dark {
  color: #fff;
  background: var(--dark);
}

.section-steel {
  color: #fff;
  background: var(--dark-2);
}

.section-soft {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.section-green {
  color: #052e16;
  background: linear-gradient(135deg, #34d399, #22c55e);
}

.section-head {
  width: min(720px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.section-dark .section-head p,
.section-steel .section-head p {
  color: #cbd5e1;
}

.section-head p,
.lead {
  color: var(--muted);
  font-size: 18px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

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

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

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

.card,
.tool-panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.card {
  padding: 24px;
}

.card-dark {
  color: #fff;
  border-color: rgba(148, 163, 184, 0.22);
  background: #1f2937;
  box-shadow: none;
}

.card-dark p,
.card-dark li {
  color: #cbd5e1;
}

.step-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.12);
  border-radius: var(--radius);
  font-weight: 900;
}

.feature-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.feature-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
  font-weight: 900;
}

.image-frame {
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card {
  overflow: hidden;
  padding: 0;
}

.product-image {
  height: 196px;
  overflow: hidden;
  background: #e2e8f0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-body {
  padding: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #047857;
  border-radius: var(--radius);
  background: #d1fae5;
  font-size: 12px;
  font-weight: 800;
}

.spec-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 18px;
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.spec-list strong {
  color: var(--ink);
  text-align: right;
}

.section-dark .spec-list strong,
.section-steel .spec-list strong {
  color: #fff;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
}

.filters {
  position: sticky;
  top: 108px;
  align-self: start;
}

.filter-group {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.26);
}

.filter-group:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: #cbd5e1;
  font-size: 14px;
  cursor: pointer;
}

.choice input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.mobile-filter-button {
  display: none;
  margin-bottom: 18px;
}

.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius);
}

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

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  text-align: left;
}

th {
  color: #94a3b8;
  font-size: 13px;
  text-transform: uppercase;
}

td {
  color: #fff;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius);
  background: #1f2937;
}

.tabs button {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: #cbd5e1;
  background: transparent;
  font-weight: 700;
}

.tabs button.active {
  color: #052e16;
  background: #34d399;
}

.config-hero {
  padding: 72px 0 24px;
  text-align: center;
}

.config-hero h1 {
  background: linear-gradient(90deg, var(--ink), #064e3b, var(--ink));
  background-clip: text;
  color: transparent;
}

.progress-rail {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe4ef;
}

.progress-fill {
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--green-2));
  transition: width 0.3s ease;
}

.step-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 26px 0 36px;
}

.step-chip {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.step-chip span:first-child {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--muted);
  border: 2px solid #cbd5e1;
  background: #fff;
}

.step-chip.active span:first-child,
.step-chip.done span:first-child {
  color: #fff;
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.config-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
}

.tool-panel {
  padding: 28px;
}

.option-grid {
  display: grid;
  gap: 16px;
}

.option-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-card {
  display: block;
  min-height: 112px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.option-card:hover {
  transform: translateY(-2px);
  border-color: #86efac;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.option-card input {
  margin-right: 10px;
  accent-color: var(--green);
}

.option-card.selected {
  border-color: var(--green);
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  box-shadow: 0 16px 32px rgba(16, 185, 129, 0.18);
}

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

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

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

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

label {
  font-weight: 700;
  color: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  outline: 0;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.form-panel {
  padding: 28px;
}

.section-dark input,
.section-dark select,
.section-dark textarea,
.section-steel input,
.section-steel select,
.section-steel textarea {
  color: #fff;
  border-color: rgba(148, 163, 184, 0.32);
  background: #111827;
}

.section-dark input::placeholder,
.section-dark textarea::placeholder,
.section-steel input::placeholder,
.section-steel textarea::placeholder {
  color: #94a3b8;
}

.upload-box {
  min-height: 124px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 2px dashed rgba(148, 163, 184, 0.35);
  border-radius: var(--radius);
  color: #cbd5e1;
  text-align: center;
  cursor: pointer;
}

.upload-box:hover {
  border-color: var(--green);
}

.hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.form-message {
  display: none;
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  font-weight: 700;
}

.form-message.ok {
  display: block;
  color: #065f46;
  background: #d1fae5;
}

.form-message.error {
  display: block;
  color: #991b1b;
  background: #fee2e2;
}

.contact-sidebar {
  display: grid;
  gap: 18px;
}

.summary-list {
  display: grid;
  gap: 12px;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d1fae5;
}

.preview-card {
  position: sticky;
  top: 108px;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.screw-scene {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(16, 185, 129, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 35% 25%, #ffffff 0%, #ecfdf5 36%, #dbeafe 100%);
  background-size: 22px 22px, 22px 22px, auto;
}

.screw-scene canvas {
  width: 100%;
  height: 100%;
}

.preview-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.mini-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.mini-specs div {
  padding: 12px;
  border-radius: var(--radius);
  background: #f8fafc;
}

.mini-specs span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mini-specs strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
}

.cta-center {
  text-align: center;
}

.cta-center .action-row {
  justify-content: center;
}

.site-footer {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding: 54px 0 34px;
}

.footer-grid h3 {
  font-size: 16px;
}

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

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

.footer-brand {
  margin-bottom: 16px;
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-row a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 900;
}

.check-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--green);
}

.footer-bottom {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .site-nav,
  .nav-actions {
    display: none;
  }

  .icon-button {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex !important;
    position: fixed;
    right: 16px;
    top: 14px;
    z-index: 2;
    flex-direction: column;
    gap: 4px;
  }

  .site-nav.open {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    display: grid;
    gap: 8px;
    padding: 18px 16px 26px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
  }

  .site-nav.open a {
    width: 100%;
    justify-content: flex-start;
  }

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

  .grid-3,
  .catalog-layout,
  .config-layout,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .filters,
  .preview-card {
    position: static;
  }

  .mobile-filter-button {
    display: inline-flex;
  }

  .filters.collapsed {
    display: none;
  }

  .form-grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    width: calc(100% - 24px);
    max-width: 1180px;
  }

  .nav-shell {
    min-height: 72px;
  }

  .site-nav.open {
    top: 72px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    max-width: 190px;
    font-size: 13px;
  }

  .brand small {
    font-size: 10px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content,
  .page-hero-content {
    padding: 56px 0;
    max-width: 300px;
  }

  .hero h1,
  .page-hero h1,
  .config-hero h1 {
    font-size: 26px;
    line-height: 1.12;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
    max-width: 280px;
  }

  .hero .action-row {
    flex-direction: column;
    align-items: stretch;
    max-width: 230px;
  }

  .hero .action-row .button {
    width: 100%;
  }

  .hero-media::after,
  .page-hero-media::after {
    background: rgba(9, 14, 24, 0.82);
  }

  .stats-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid,
  .form-grid,
  .option-grid.two {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .step-row {
    grid-template-columns: repeat(5, minmax(46px, 1fr));
    gap: 6px;
  }

  .step-chip span:last-child {
    display: none;
  }

  .tabs {
    overflow-x: auto;
  }

  .tabs button {
    min-width: 160px;
  }

  .form-panel,
  .tool-panel {
    padding: 20px;
  }
}
