:root {
  /* Linear/Modern — deep space with ambient blue light */
  --bg-0: #050506;   /* primary canvas */
  --bg-1: #050506;
  --bg-2: #020203;   /* deepest — footer */
  --bg-elev: #0a0a0c;

  /* glass surfaces */
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-hover: rgba(255, 255, 255, 0.13);

  /* accent = the site's blue (kept from the logo, not indigo) */
  --accent: #2e90fa;
  --accent-2: #4fb2ff;
  --accent-bright: #6ec1ff;
  --accent-glow: rgba(79, 178, 255, 0.30);
  --border-accent: rgba(79, 178, 255, 0.30);

  --text: #EDEDEF;
  --text-dim: #8A8F98;
  --text-faint: rgba(255, 255, 255, 0.42);
  --charcoal: #2d3436;

  --radius: 16px;
  --font-head: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Ambient background: layered lighting ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ambient__base {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, #0b0b12 0%, #050506 52%, #020203 100%);
}
.ambient__blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
/* primary — top-center pool of blue light */
.ambient__blob--1 {
  top: -480px; left: 50%;
  width: 1200px; height: 1200px;
  background: radial-gradient(circle, rgba(79, 178, 255, 0.22), transparent 68%);
  filter: blur(150px);
  transform: translateX(-50%);
  animation: floatCenter 10s ease-in-out infinite;
}
/* left — cool indigo mix */
.ambient__blob--2 {
  top: 14%; left: -340px;
  width: 760px; height: 860px;
  background: radial-gradient(circle, rgba(94, 106, 210, 0.16), transparent 70%);
  filter: blur(130px);
  animation: floatY 9s ease-in-out infinite;
}
/* right — deep blue */
.ambient__blob--3 {
  top: 46%; right: -320px;
  width: 660px; height: 760px;
  background: radial-gradient(circle, rgba(46, 144, 250, 0.14), transparent 70%);
  filter: blur(120px);
  animation: floatY 11s ease-in-out infinite reverse;
}
/* bottom — soft pulse */
.ambient__blob--4 {
  bottom: -300px; left: 40%;
  width: 700px; height: 500px;
  background: radial-gradient(circle, rgba(79, 178, 255, 0.10), transparent 72%);
  filter: blur(120px);
  animation: pulse 12s ease-in-out infinite;
}
.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 110% 80% at 50% -10%, #000 25%, transparent 85%);
  mask-image: radial-gradient(ellipse 110% 80% at 50% -10%, #000 25%, transparent 85%);
}
.ambient__noise {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes floatCenter {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
  50% { transform: translateX(-50%) translateY(-26px) rotate(1deg); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-28px) rotate(1deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* Site-wide glow that follows the cursor across the whole page */
.cursor-glow {
  position: absolute;
  top: 0; left: 0;
  width: 720px; height: 720px;
  margin: -360px 0 0 -360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 178, 255, 0.16), rgba(79, 178, 255, 0.06) 42%, transparent 68%);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-400px, -400px, 0);
  transition: opacity 0.4s ease, transform 0.16s ease-out;
  will-change: transform, opacity;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: padding 0.3s ease;
}

/* The blurred veil lives in a pseudo-element that is masked to fade out at
   the bottom — so both the backdrop blur and the tint dissolve smoothly
   instead of ending in a hard horizontal line. */
/* Frosted veil that dissolves toward the bottom — the mask fades both the
   tint and the backdrop blur, so scrolled content slips behind soft glass
   with no hard edge line. */
.header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: -44px;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.9) 0%, rgba(5, 5, 7, 0.5) 45%, rgba(5, 5, 7, 0) 100%);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.header.scrolled::before { opacity: 1; }

.header.scrolled { padding: 10px 0; }

.header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  position: relative;
  z-index: 2; /* keep the logo crisply above the blurred header veil */
}
.logo img {
  height: 60px;
  width: auto;
  /* Crisp, tight shadow only — no wide glow (a wide glow frosted the thin
     strokes and made the logo look like it was behind glass). */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
  transition: height 0.3s ease;
}
.header.scrolled .logo img { height: 50px; }

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 0.25s ease;
}

.nav__link:hover, .nav__link.active { color: var(--text); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.header__cta { margin-left: 8px; }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 9px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn:hover { color: var(--text); }

.lang-btn.active {
  color: #051020;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-glow);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  margin: 0 7px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-expo), box-shadow 0.25s var(--ease-expo), background 0.2s ease;
}
.btn:active { transform: scale(0.98); }

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(79, 178, 255, 0.5),
    0 4px 14px rgba(79, 178, 255, 0.30),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.25);
}
.btn--accent:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(79, 178, 255, 0.6),
    0 8px 26px rgba(79, 178, 255, 0.42),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.30);
}
/* shine sweep on hover */
.btn--accent::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.22), transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.6s var(--ease-expo);
  pointer-events: none;
}
.btn--accent:hover::after { transform: translateX(130%); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 8px 24px rgba(0, 0, 0, 0.45);
}

.btn--small { padding: 8px 16px; font-size: 13px; border-radius: 9px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 90px;
  overflow: hidden;
}

/* Decorative gears retired — ambient blobs provide the atmosphere now */
.hero__gear { display: none; }

.hero__inner {
  text-align: center;
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--accent-2);
  text-transform: uppercase;
  margin-bottom: 26px;
  padding: 7px 15px;
  border: 1px solid var(--border-accent);
  border-radius: 999px;
  background: rgba(79, 178, 255, 0.06);
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__title span {
  background: linear-gradient(90deg, var(--accent), var(--accent-bright), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.hero__text {
  color: var(--text-dim);
  font-size: 19px;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 38px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid var(--card-border);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--accent-2);
  border-radius: 2px;
  animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}
.section--alt { background: rgba(255, 255, 255, 0.012); }

.section__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-mono);
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
  text-align: center;
}
/* technical hairline brackets around the section label */
.section__eyebrow::before,
.section__eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2));
}
.section__eyebrow::after { transform: scaleX(-1); }

.section__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 50px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-align: center;
  margin-bottom: 60px;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.68) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

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

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 2px 20px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--ease-expo), box-shadow 0.3s var(--ease-expo), border-color 0.3s var(--ease-expo);
}
/* top inner-glow line */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}
/* mouse-tracking spotlight */
.card.has-spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -20%), rgba(79, 178, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(79, 178, 255, 0.08);
}
.card:hover.has-spot::after { opacity: 1; }

.card__icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(46,144,250,0.1);
  border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; }

.card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 12px;
}

.card__text { color: var(--text-dim); margin-bottom: 18px; }

.card__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.card__list li {
  color: var(--text-dim);
  font-size: 15px;
  padding-left: 22px;
  position: relative;
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border: 1.5px solid var(--accent-2);
  border-radius: 2px;
  transform: rotate(45deg);
}

.card--printer { padding-top: 44px; }
.card__badge {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(46,144,250,0.12);
  border: 1px solid var(--card-border);
  padding: 5px 12px;
  border-radius: 999px;
}

.spec-list { margin-top: 20px; border-top: 1px solid var(--card-border); padding-top: 16px; }
.spec-list__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}
.spec-list__row:last-child { border-bottom: none; }
.spec-list__row dt { color: var(--text-faint); }
.spec-list__row dd {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
  text-align: right;
}
.spec-list__row dd[data-todo] { color: var(--accent-2); font-style: italic; opacity: 0.8; }

.printers__note {
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 28px;
}

/* ---------- Gallery ---------- */
/* ---------- Portfolio coverflow carousel (Swiper) ---------- */
.portfolio-swiper {
  width: 100%;
  padding: 16px 0 54px;
}
.portfolio-slide {
  width: 340px;
  max-width: 78vw;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 14px 50px rgba(0, 0, 0, 0.5);
}
.portfolio-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portfolio-slide__ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  color: var(--accent-2);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(79, 178, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}
.portfolio-slide__ph svg { width: 88px; height: 88px; opacity: 0.5; }
.portfolio-slide__ph span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
/* pagination */
.portfolio-swiper .swiper-pagination { bottom: 10px; }
.portfolio-swiper .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: var(--text-dim);
  opacity: 0.4;
  transition: opacity 0.3s var(--ease-expo), width 0.3s var(--ease-expo);
}
.portfolio-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  width: 26px;
  border-radius: 5px;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-glow);
}
/* recolour Swiper's coverflow slide shadows to a deep neutral */
.portfolio-slide .swiper-slide-shadow-left { background-image: linear-gradient(to left, rgba(2, 2, 3, 0.75), transparent); }
.portfolio-slide .swiper-slide-shadow-right { background-image: linear-gradient(to right, rgba(2, 2, 3, 0.75), transparent); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.steps__item {
  padding: 26px 20px;
  border-left: 2px solid var(--card-border);
}
.steps__num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-2);
  opacity: 0.55;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.steps__item h3 { font-family: var(--font-head); font-size: 18px; margin-bottom: 8px; }
.steps__item p { color: var(--text-dim); font-size: 14px; }

.price {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.price span[data-todo] { opacity: 0.85; font-style: italic; }

/* ---------- Pricing table ---------- */
.pricing {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
  align-items: start;
}
.pricing__table {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.pricing__row {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 15px 22px;
  border-bottom: 1px solid var(--card-border);
  font-size: 15px;
}
.pricing__row:last-of-type { border-bottom: none; }
.pricing__row--head {
  font-family: var(--font-head);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  background: rgba(5, 7, 13, 0.35);
}
.pricing__row--head span:last-child { text-align: right; }
.pricing__name { color: var(--text); font-weight: 500; }
.pricing__unit { color: var(--text-dim); font-size: 14px; }
.pricing__val {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  color: var(--accent-2);
  text-align: right;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

/* ---------- Instrument readouts: measured data in monospace ---------- */
.estimator__meta b,
.result__row span:last-child,
.pv-field b,
.preview__layerinfo,
.preview__hint,
.order__row b,
.order__date,
.cabinet__email,
.field label b,
.card__badge {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}
.field select,
.field input[type="number"],
.pv-field input[type="number"] {
  font-family: var(--font-mono);
}
.pricing__note {
  padding: 14px 22px;
  font-size: 12px;
  color: var(--text-faint);
  border-top: 1px solid var(--card-border);
}
.pricing__aside {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: rgba(5, 7, 13, 0.4);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pricing__aside-title { font-family: var(--font-head); font-size: 18px; margin-bottom: 16px; }
.pricing__factors { display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; }
.pricing__factors li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.4;
}
.pricing__factors li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
}
.pricing__cta { margin-top: auto; align-self: flex-start; }

/* ---------- Contacts ---------- */
.contacts__lead {
  text-align: center;
  color: var(--text-dim);
  max-width: 460px;
  margin: -30px auto 44px;
}

/* ---------- Price estimator ---------- */
.estimator {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: left;
}
.estimator__title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}
.estimator__sub {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 22px;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px 20px;
  border: 1.5px dashed var(--card-border-hover);
  border-radius: var(--radius);
  background: rgba(46, 144, 250, 0.04);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dropzone:hover, .dropzone.is-over {
  border-color: var(--accent-2);
  background: rgba(46, 144, 250, 0.1);
}
.dropzone__icon { width: 34px; height: 34px; color: var(--accent-2); }
.dropzone__text { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--text); }
.dropzone__hint { font-size: 12px; color: var(--text-faint); }

.estimator__error {
  margin-top: 14px;
  color: #ff9b9b;
  font-size: 14px;
  text-align: center;
}

.estimator__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-dim);
}
.estimator__meta b { color: var(--text); font-weight: 600; }
.estimator__fname {
  color: var(--accent-2);
  font-weight: 600;
  word-break: break-all;
}

/* ---- 3D preview ---- */
.preview {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(5, 7, 13, 0.4);
}
.preview__stage {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
}
.preview__view {
  position: relative;
  background: #04060c;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.preview__canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
.preview__canvas:active { cursor: grabbing; }
.preview__canvas--slice { cursor: default; image-rendering: auto; }
.preview__hint,
.preview__layerinfo {
  position: absolute;
  left: 10px; bottom: 8px;
  font-size: 11px;
  color: var(--text-faint);
  background: rgba(4, 6, 12, 0.6);
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
}

.preview__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 22px;
  margin-top: 16px;
}
.pv-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 180px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.pv-field b { color: var(--accent-2); }
.pv-field input[type="range"] { width: 100%; accent-color: var(--accent); }
.pv-field--color { flex: 0 0 auto; }
.pv-field input[type="color"] {
  width: 48px; height: 34px;
  padding: 0;
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  cursor: pointer;
}
.preview__tools .btn { flex: 0 0 auto; }

.estimator__controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 20px;
  margin-top: 22px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field label b { color: var(--accent-2); }
.field__hint { font-size: 11px; color: var(--text-faint); text-transform: none; letter-spacing: 0; }

.field select,
.field input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  background: rgba(5, 7, 13, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
}
.field select:focus,
.field input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(46, 144, 250, 0.15);
}
.field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  margin-top: 8px;
}

.estimator__result {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
}
.result__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-dim);
}
.result__row span:last-child { color: var(--text); font-weight: 600; }
.result__row--total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed rgba(79, 178, 255, 0.25);
  font-family: var(--font-head);
  font-size: 20px;
}
.result__row--total span { color: var(--text) !important; }
.result__row--total span:last-child {
  color: var(--accent-2) !important;
  text-shadow: 0 0 16px var(--accent-glow);
}
.estimator__note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.5;
}
.estimator__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.estimator__or {
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 20px;
}

.contact-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-btn svg { width: 22px; height: 22px; color: var(--accent-2); }

.contacts__location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--text-dim);
  font-size: 15px;
}
.contacts__location svg { color: var(--accent-2); flex-shrink: 0; }
.footer__location {
  width: 100%;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
}
.contact-btn:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-3px);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.logo--footer img { height: 42px; opacity: 0.9; }
.footer__links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 14px;
  color: var(--text-dim);
}
.footer__links a:hover { color: var(--accent-2); }
.footer__copy {
  width: 100%;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 16px;
}

/* ---------- Accounts: header button, modal, cabinet ---------- */
.header__account { margin-left: 4px; }
.header__account.is-auth {
  border-color: var(--accent-2);
  color: var(--accent-2);
  box-shadow: 0 0 12px rgba(46, 144, 250, 0.25);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 5, 11, 0.75);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal__box {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, #0d0d12, #08080b);
  border: 1px solid var(--card-border-hover);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal__close {
  position: absolute;
  top: 12px; right: 14px;
  width: 34px; height: 34px;
  font-size: 26px; line-height: 1;
  color: var(--text-dim);
  background: none; border: none; cursor: pointer;
}
.modal__close:hover { color: var(--text); }

/* Wide modal (price estimator) */
.modal--wide { padding: 16px; }
.modal__box--wide {
  max-width: 920px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 30px 30px 34px;
}
.modal__box--wide .estimator { max-width: 100%; margin: 0; }
.contacts__calc { text-align: center; margin: -20px 0 44px; }

.auth__tabs { display: flex; gap: 6px; margin-bottom: 22px; }
.auth__tab {
  flex: 1;
  padding: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dim);
  background: rgba(5, 7, 13, 0.4);
  border: 1px solid var(--card-border);
  border-radius: 9px;
  cursor: pointer;
}
.auth__tab.active {
  color: #061024;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}
.auth__form { display: flex; flex-direction: column; gap: 12px; }
.auth__form input {
  padding: 12px 14px;
  background: rgba(5, 7, 13, 0.55);
  border: 1px solid var(--card-border);
  border-radius: 9px;
  color: var(--text);
  font-size: 15px;
}
.auth__form input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(46, 144, 250, 0.15);
}
.auth__form .btn { margin-top: 4px; justify-content: center; }
.auth__notice {
  margin-bottom: 16px;
  padding: 10px 12px;
  font-size: 13px;
  color: #ffd479;
  background: rgba(255, 180, 60, 0.08);
  border: 1px solid rgba(255, 180, 60, 0.25);
  border-radius: 8px;
}
.auth__msg { margin-top: 14px; font-size: 13px; min-height: 18px; }
.auth__msg.is-error { color: #ff9b9b; }
.auth__msg.is-ok { color: var(--text-dim); }

/* Cabinet overlay */
.cabinet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 5, 11, 0.8);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.cabinet.open { opacity: 1; pointer-events: auto; }
.cabinet__box {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 860px;
  height: min(620px, 86vh);
  background: linear-gradient(180deg, #0d0d12, #08080b);
  border: 1px solid var(--card-border-hover);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.cabinet__side {
  width: 220px;
  flex-shrink: 0;
  padding: 24px 18px;
  border-right: 1px solid var(--card-border);
  background: rgba(5, 7, 13, 0.35);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cabinet__user { display: flex; align-items: center; gap: 10px; }
.cabinet__avatar {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  color: #061024;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
}
.cabinet__email { font-size: 12px; color: var(--text-dim); word-break: break-all; }
.cabinet__nav { display: flex; flex-direction: column; gap: 4px; }
.cabinet__navbtn {
  text-align: left;
  padding: 10px 12px;
  font-family: var(--font-head);
  font-weight: 600; font-size: 14px;
  color: var(--text-dim);
  background: none; border: none; border-radius: 8px; cursor: pointer;
}
.cabinet__navbtn:hover { color: var(--text); background: rgba(46, 144, 250, 0.08); }
.cabinet__navbtn.active { color: var(--text); background: rgba(46, 144, 250, 0.16); }
.cabinet__logout { margin-top: auto; justify-content: center; }
.cabinet__content { flex: 1; padding: 26px 28px; overflow-y: auto; }
.cabinet__panel h3 { font-family: var(--font-head); font-size: 20px; margin-bottom: 18px; }
.cab__empty { color: var(--text-dim); font-size: 14px; }

.cab-form { display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.cab-form label { font-size: 13px; color: var(--text-dim); font-family: var(--font-head); font-weight: 600; margin-top: 8px; }
.cab-form input {
  padding: 11px 13px;
  background: rgba(5, 7, 13, 0.55);
  border: 1px solid var(--card-border);
  border-radius: 9px; color: var(--text); font-size: 15px;
}
.cab-form input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(46, 144, 250, 0.15); }
.cab-form .btn { margin-top: 14px; align-self: flex-start; }
.cab-form__msg { font-size: 13px; color: var(--text-dim); }

.orders-list { display: flex; flex-direction: column; gap: 14px; }
.order {
  padding: 16px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(5, 7, 13, 0.35);
}
.order__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.order__file { font-family: var(--font-head); font-weight: 600; color: var(--accent-2); word-break: break-all; }
.order__date { font-size: 12px; color: var(--text-faint); flex-shrink: 0; }
.order__body { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.order__row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-dim); }
.order__row b { color: var(--text); font-weight: 600; }
.order__user { margin-top: 10px; font-size: 12px; color: var(--text-faint); word-break: break-all; }
.order__status {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  font-size: 12px; font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  color: var(--text-dim);
}
.order__status--new { color: var(--accent-2); border-color: rgba(79, 178, 255, 0.4); }
.order__status--in_progress { color: #ffd479; border-color: rgba(255, 200, 90, 0.4); }
.order__status--done { color: #7ee0a0; border-color: rgba(120, 220, 150, 0.4); }
.order__status--delivered { color: var(--text-faint); }
.order__status-select {
  margin-top: 12px;
  padding: 7px 10px;
  background: rgba(5, 7, 13, 0.6);
  border: 1px solid var(--card-border);
  border-radius: 8px; color: var(--text); font-size: 13px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,7,13,0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox__content {
  width: min(60vw, 420px);
  height: min(60vw, 420px);
  color: var(--accent-2);
  opacity: 0.7;
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(14,22,48,0.6);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-expo), transform 0.6s var(--ease-expo);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: 68px; left: 16px; right: 16px;
    background: rgba(10, 10, 14, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    flex-direction: column;
    gap: 0;
    padding: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }
  .nav.open { max-height: 400px; opacity: 1; padding: 12px; }
  .nav__link { padding: 12px 10px; border-bottom: 1px solid rgba(79,178,255,0.08); }
  .nav__link:last-child { border-bottom: none; }
  .header__cta { display: none; }
  .burger { display: flex; }
  /* Push the language switcher to the right; burger sits after it */
  .lang-switch { margin-left: auto; margin-right: 10px; }
  /* Keep the (now larger) logo from crowding the switcher + burger */
  .logo img,
  .header.scrolled .logo img { height: 46px; }

  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__links { margin-left: 0; }
  .estimator__controls { grid-template-columns: 1fr 1fr; }
  .preview__stage { grid-template-columns: 1fr; }

  .pricing { grid-template-columns: 1fr; }
  .pricing__row--head { display: none; }
  .pricing__row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name val" "unit val";
    row-gap: 2px;
  }
  .pricing__name { grid-area: name; }
  .pricing__unit { grid-area: unit; }
  .pricing__val { grid-area: val; align-self: center; }

  .header__inner { gap: 12px; }
  .header__account { padding: 7px 11px; font-size: 12px; }
  .cabinet__box { flex-direction: column; height: min(88vh, 720px); }
  .cabinet__side {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 14px 16px;
    border-right: none;
    border-bottom: 1px solid var(--card-border);
  }
  .cabinet__nav { flex-direction: row; flex-wrap: wrap; }
  .cabinet__logout { margin-top: 0; margin-left: auto; }
  .order__body { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .contact-buttons { flex-direction: column; align-items: stretch; }
  .contact-btn { justify-content: center; }
  .estimator__controls { grid-template-columns: 1fr; }
  .estimator__actions .btn { flex: 1; }
  .portfolio-slide { height: 340px; }
  .portfolio-slide__ph svg { width: 70px; height: 70px; }
}
