:root {
  --bg: #050608;
  --bg-soft: #0b0d12;
  --accent: #f5b162;
  --accent-soft: rgba(245, 177, 98, 0.12);
  --text-main: #f5f5f5;
  --text-muted: #a0a4ad;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius-large: 18px;
  --radius-medium: 12px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}
html {
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font-main);
  background: radial-gradient(circle at top left, #151824, #050608 55%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
  text-decoration: none;
}
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  backdrop-filter: blur(20px);
  background: linear-gradient(to bottom, rgba(5, 6, 8, 0.95), rgba(5, 6, 8, 0.76));
  border-bottom: 1px solid var(--border-subtle);
}
.logo {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}
.v4-container {
  display: flex;
  align-items: center;
  gap: 18px;
}
.v4-circles {
  width: 40px;
  height: 40px;
  position: relative;
}
.v4-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid;
  border-radius: 50%;
  top: 0;
  left: 0;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.v4-circle:nth-child(1) {
  border-color: var(--accent);
  opacity: 1;
  transform: scale(1);
}
.v4-circle:nth-child(2) {
  border-color: rgba(245, 177, 98, 0.7);
  transition-delay: 0.1s;
}
.v4-circle:nth-child(3) {
  border-color: var(--accent);
  transition-delay: 0.2s;
}
.v4-text {
  font-family: "Syne", system-ui, sans-serif;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.header:hover .v4-circle {
  opacity: 1;
  transform: scale(1);
}
.header:hover .v4-circle:nth-child(2) {
  transform: scale(1.3);
}
.header:hover .v4-circle:nth-child(3) {
  transform: scale(1.6);
  opacity: 0.5;
}
.nav a {
  margin-left: 20px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav a:hover {
  color: var(--text-main);
}
.nav a:hover::after {
  width: 100%;
}
.main {
  max-width: 1040px;
  margin: 32px auto 40px;
  padding: 0 20px 40px;
  flex: 1 0 auto;
}
.hero {
  padding: 32px 28px 28px;
  border-radius: var(--radius-large);
  background: radial-gradient(circle at top left, rgba(200, 159, 122, 0.14), rgba(5, 6, 8, 0.98));
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: 0.03em;
}
.hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 520px;
  font-size: 15px;
}
.section {
  margin-top: 32px;
  padding: 24px 24px 22px;
  border-radius: var(--radius-large);
  background: rgba(5, 6, 8, 0.85);
  border: 1px solid var(--border-subtle);
}
.section h2 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.product-card {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 20px;
  margin-top: 14px;
  padding: 18px 18px 16px;
  border-radius: var(--radius-medium);
  background: linear-gradient(135deg, rgba(22, 16, 12, 0.96), rgba(7, 8, 12, 0.98));
  border: 1px solid var(--border-subtle);
}
.product-card {
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.7);
  border-color: rgba(245, 177, 98, 0.35);
}
.product-info h3 {
  margin: 0 0 10px;
  font-size: 17px;
}
.product-info p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 14px;
}
.product-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
}
.product-list li {
  margin-bottom: 4px;
}
.product-highlight {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  border-radius: var(--radius-medium);
  background: radial-gradient(circle at top right, var(--accent-soft), transparent 60%);
  perspective: 800px;
}
.product-label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.product-size {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 600;
}
.product-note {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  max-width: 180px;
  text-align: right;
}
.stl-product {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 5 / 3;
  border-radius: var(--radius-medium);
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(200, 159, 122, 0.22), rgba(5, 6, 8, 0.98));
}
.stl-container {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-large);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top, rgba(245, 177, 98, 0.18), rgba(5, 6, 8, 0.98));
}
.stl-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.product-visual {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 5 / 3;
  border-radius: var(--radius-medium);
  padding: 8px 10px;
  background: radial-gradient(circle at top, rgba(245, 177, 98, 0.18), transparent 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transform-style: preserve-3d;
}
.product-visual svg {
  width: 100%;
  height: auto;
  display: block;
}
.table-shadow {
  fill: rgba(0, 0, 0, 0.58);
}
.table-top {
  fill: var(--accent);
  transform-origin: center;
  transition: transform 0.35s ease-out;
}
.table-leg {
  fill: #1e2027;
}
.product-card:hover .table-top {
  transform: scaleX(1.25);
}
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 14px 24px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  background: rgba(5, 6, 8, 0.96);
}
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 30;
}
.contact-modal-overlay.contact-modal-open {
  display: flex;
}
.contact-modal {
  width: 100%;
  max-width: 440px;
  border-radius: 18px;
  background: rgba(5, 6, 8, 0.97);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 20px 22px 18px;
}
.contact-modal h2 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}
.contact-form {
  margin-top: 4px;
}
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.contact-row label {
  font-size: 12px;
  color: var(--text-muted);
}
.contact-row input,
.contact-row textarea {
  font-family: var(--font-main);
  font-size: 13px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #05060a;
  color: var(--text-main);
}
.contact-row textarea {
  resize: vertical;
  min-height: 80px;
}
.contact-captcha label {
  font-size: 12px;
}
.contact-button,
.contact-open-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #1a1208;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact-button:hover,
.contact-open-inline:hover {
  background: #ffd295;
  transform: translateY(-1px);
}
.contact-status {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.contact-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.stl-status {
  position: fixed;
  bottom: 8px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #d0d4dd;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 20;
  pointer-events: none;
}
.fade-in-up {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.7s ease-out forwards;
}
.fade-in-delay-1 {
  animation-delay: 0.08s;
}
.fade-in-delay-2 {
  animation-delay: 0.16s;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 720px) {
  .header {
    padding-inline: 18px;
  }
  .main {
    margin-top: 22px;
    padding-inline: 16px;
  }
  .section {
    padding-inline: 18px;
  }
  .product-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-highlight {
    align-items: flex-start;
  }
  .product-note {
    text-align: left;
  }
}
