:root {
  --bg: #0a0f12;
  --surface: #101817;
  --surface-2: #17231f;
  --text: #f4f7fb;
  --muted: #9eb0aa;
  --accent: #1D9E75;
  --accent-2: #5ee0b3;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-body {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 138, 31, 0.11), transparent 30%),
    var(--bg);
}

.chat-page {
  background:
    radial-gradient(circle at 82% 8%, rgba(52, 212, 255, 0.1), transparent 32%),
    radial-gradient(circle at 8% 18%, rgba(255, 138, 31, 0.11), transparent 28%),
    var(--bg);
}

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

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

.is-hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(8, 11, 16, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--accent-2);
  font-size: 24px;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.nav form {
  margin: 0;
}

.lang-switch {
  min-width: 42px;
  padding: 8px 10px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.lang-switch.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(255, 138, 31, 0.3);
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  overflow: hidden;
  padding: 88px clamp(18px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(10, 15, 18, 0.96), rgba(10, 15, 18, 0.76)),
    radial-gradient(circle at 75% 42%, rgba(29, 158, 117, 0.22), transparent 28%),
    linear-gradient(135deg, #1a1a1a, #07100d);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 14% 6% auto auto;
  width: min(520px, 70vw);
  aspect-ratio: 1.15;
  border: 1px solid rgba(29, 158, 117, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(94, 224, 179, 0.08) 18px 19px);
  filter: drop-shadow(0 0 42px rgba(29, 158, 117, 0.22));
  transform: perspective(900px) rotateY(-18deg) rotateX(8deg);
  opacity: 0.5;
}

.particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 138, 31, 0.42) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(52, 212, 255, 0.3) 1px, transparent 1.5px);
  background-position: 0 0, 36px 52px;
  background-size: 92px 92px, 120px 120px;
  animation: drift 18s linear infinite;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 88px);
  line-height: 0.95;
}

.hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-weight: 700;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #04130e;
  box-shadow: 0 0 30px rgba(29, 158, 117, 0.32);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
}

.section {
  padding: 76px clamp(18px, 5vw, 64px);
}

.section-title {
  max-width: 1120px;
  margin: 0 auto 24px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.service-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.order-section {
  background:
    radial-gradient(circle at 18% 16%, rgba(52, 212, 255, 0.11), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.section-title p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.order-form {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 23, 34, 0.94), rgba(12, 17, 25, 0.94));
  box-shadow: var(--shadow);
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.12);
}

.dropzone {
  min-height: 170px;
  place-items: center;
  padding: 22px;
  text-align: center;
  border: 1px dashed rgba(255, 138, 31, 0.55);
  border-radius: 8px;
  background: rgba(255, 138, 31, 0.06);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dropzone strong {
  color: var(--text);
  font-size: 18px;
}

.dropzone span,
.dropzone small {
  color: var(--muted);
  font-weight: 600;
}

.dropzone small {
  min-height: 20px;
  color: var(--accent-2);
}

.dropzone.is-dragging {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  background: rgba(52, 212, 255, 0.08);
}

.submit-button {
  width: fit-content;
}

.form-result {
  min-height: 24px;
  color: var(--muted);
  font-weight: 700;
}

.form-result[data-type="success"] {
  color: #69f0a5;
}

.form-result[data-type="error"] {
  color: #ff7676;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-main {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 76px;
}

.admin-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-toolbar h1,
.admin-card h1,
.admin-card h2,
.service-admin-item h3 {
  margin: 0;
}

.admin-toolbar p,
.admin-card p {
  color: var(--muted);
}

.admin-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 23, 34, 0.96), rgba(12, 17, 25, 0.96));
  box-shadow: var(--shadow);
  padding: 22px;
}

.login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 18px;
}

.flash {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 118, 118, 0.12);
  color: #ffb2b2;
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.admin-table th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.admin-table a,
.details-list a {
  color: var(--accent-2);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(52, 212, 255, 0.35);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(52, 212, 255, 0.08);
  font-weight: 700;
}

.status-new {
  color: #34d4ff;
  border-color: rgba(52, 212, 255, 0.35);
  background: rgba(52, 212, 255, 0.08);
}

.status-accepted {
  color: #b7f36a;
  border-color: rgba(183, 243, 106, 0.35);
  background: rgba(183, 243, 106, 0.08);
}

.status-printing,
.status-postprocessing {
  color: #ffbf69;
  border-color: rgba(255, 191, 105, 0.38);
  background: rgba(255, 191, 105, 0.08);
}

.status-ready,
.status-delivered {
  color: #69f0a5;
  border-color: rgba(105, 240, 165, 0.38);
  background: rgba(105, 240, 165, 0.08);
}

.status-canceled {
  color: #ff7676;
  border-color: rgba(255, 118, 118, 0.38);
  background: rgba(255, 118, 118, 0.08);
}

.message-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.message-badge.has-new {
  color: #1b0d00;
  border-color: var(--accent);
  background: var(--accent);
}

.status-filter {
  min-width: 220px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.admin-stack {
  display: grid;
  gap: 18px;
}

.chat-shell {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: 52px 0 80px;
}

.client-login-card {
  width: min(560px, 100%);
  margin: 0 auto;
}

.client-login-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.order-view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.order-view-header h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 900;
}

.order-badges {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.details-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  margin: 18px 0 0;
}

.details-list dt {
  color: var(--muted);
  font-weight: 800;
}

.details-list dd {
  margin: 0;
}

.chat-card,
.admin-message-form,
.service-editor {
  display: grid;
  gap: 16px;
}

.ai-card {
  display: grid;
  gap: 16px;
}

.ai-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ai-card-header p {
  margin-bottom: 0;
}

.ai-details {
  grid-template-columns: 150px 1fr;
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.chat-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.loading-dot {
  color: var(--muted);
  font-size: 14px;
}

.admin-chat {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.client-chat {
  min-height: 360px;
}

.chat-message {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.chat-message.admin {
  border-color: rgba(255, 138, 31, 0.32);
  background: rgba(255, 138, 31, 0.07);
  margin-right: 14%;
}

.chat-message.client {
  border-color: rgba(52, 212, 255, 0.3);
  background: rgba(52, 212, 255, 0.07);
  margin-left: 14%;
}

.chat-message p {
  margin: 8px 0;
  color: var(--text);
}

.chat-message small {
  color: var(--muted);
}

.service-admin-list {
  display: grid;
  gap: 14px;
}

.service-admin-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.service-admin-item small {
  color: var(--accent);
  font-weight: 800;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

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

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}

.toast {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(16, 23, 34, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
}

.toast.success {
  border-color: rgba(105, 240, 165, 0.42);
}

.toast.error {
  border-color: rgba(255, 118, 118, 0.5);
}

.service-card,
.skeleton {
  min-height: 240px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow);
}

.service-card {
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 138, 31, 0.52);
  box-shadow: 0 18px 70px rgba(255, 138, 31, 0.15);
}

.service-card h3 {
  margin: 0 0 12px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.55;
}

.price {
  margin-top: 24px;
  color: var(--accent);
  font-weight: 800;
}

.skeleton {
  background: linear-gradient(90deg, var(--surface), #1d2a3a, var(--surface));
  background-size: 220% 100%;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  to {
    background-position: -220% 0;
  }
}

@keyframes drift {
  to {
    background-position: 92px 92px, 156px 172px;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }

  .hero {
    min-height: 560px;
  }

  .hero::after {
    opacity: 0.45;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

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

  .submit-button {
    width: 100%;
  }

  .admin-toolbar,
  .order-view-header,
  .service-admin-item {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .ai-card-header {
    flex-direction: column;
  }

  .details-list {
    grid-template-columns: 1fr;
  }

  .chat-message.admin,
  .chat-message.client {
    margin-left: 0;
    margin-right: 0;
  }

  .order-badges {
    align-items: stretch;
    flex-direction: column;
  }
}


/* 3DX landing page additions */
.telegram-link {
  padding: 8px 12px;
  border: 1px solid rgba(29, 158, 117, 0.38);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(29, 158, 117, 0.08);
  font-weight: 800;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-top: 34px;
}

.hero-metrics div,
.step-card,
.material-card,
.calculator-card,
.portfolio-card,
.faq-list details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 24, 23, 0.88), rgba(10, 15, 18, 0.88));
  box-shadow: var(--shadow);
}

.hero-metrics div {
  padding: 16px;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--text);
  font-size: 20px;
}

.hero-metrics span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.printer-frame {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(94, 224, 179, 0.34);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 34%),
    rgba(255,255,255,0.035);
  box-shadow: 0 0 80px rgba(29, 158, 117, 0.18), inset 0 0 42px rgba(94, 224, 179, 0.08);
}

.printer-head {
  position: absolute;
  top: 22%;
  left: 50%;
  width: 120px;
  height: 64px;
  transform: translateX(-50%);
  border-radius: 16px;
  background: #202927;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 30px rgba(0,0,0,0.35);
}

.printed-part {
  position: absolute;
  left: 50%;
  bottom: 24%;
  width: 150px;
  height: 92px;
  transform: translateX(-50%) skewX(-8deg);
  border-radius: 18px 18px 8px 8px;
  background: repeating-linear-gradient(180deg, #1D9E75 0 5px, #23bd8c 5px 8px);
  box-shadow: 0 16px 34px rgba(29, 158, 117, 0.25);
}

.build-plate {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 16%;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2b3331, #101817);
}

.section-tight {
  padding-top: 64px;
}

.split-section,
.portfolio-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent);
}

.steps-grid,
.materials-grid,
.portfolio-grid,
.faq-list {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.steps-grid,
.materials-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

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

.step-card,
.material-card,
.portfolio-card {
  padding: 22px;
}

.step-card span,
.portfolio-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.step-card h3,
.material-card h3,
.portfolio-card h3 {
  margin: 0 0 10px;
}

.step-card p,
.material-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.material-card span {
  display: inline-flex;
  margin-top: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(29, 158, 117, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.calculator-card {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
}

.calc-result {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid rgba(94, 224, 179, 0.34);
  border-radius: 12px;
  color: var(--accent-2);
  background: rgba(29, 158, 117, 0.09);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
}

.calculator-card small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.portfolio-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(145deg, rgba(29, 158, 117, 0.18), rgba(16, 24, 23, 0.88)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 12px);
}

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

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--border);
  background: #080c0b;
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: var(--accent-2);
  font-weight: 800;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .materials-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-metrics,
  .steps-grid,
  .materials-grid,
  .portfolio-grid,
  .calculator-card {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}


/* service icon patch */
.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--accent-2);
  background: rgba(29, 158, 117, 0.1);
  border: 1px solid rgba(94, 224, 179, 0.24);
  font-size: 22px;
  font-weight: 900;
}

/* graphics redesign */
img {
  max-width: 100%;
  display: block;
}

.hero-visual {
  align-content: center;
  gap: 12px;
}

.hero-visual img {
  width: min(560px, 100%);
  border: 1px solid rgba(94, 224, 179, 0.28);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(29, 158, 117, 0.18);
}

.visual-note {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.benefits-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 22px clamp(18px, 5vw, 64px);
  background: linear-gradient(90deg, rgba(29, 158, 117, 0.08), rgba(255, 255, 255, 0.02));
  border-block: 1px solid var(--border);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid rgba(94, 224, 179, 0.18);
  border-radius: 16px;
  background: rgba(16, 24, 23, 0.82);
}

.benefit-item span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  color: #04130e;
  background: var(--accent-2);
  font-weight: 900;
}

.product-grid,
.catalog-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.visual-card,
.catalog-card,
.equipment-card,
.calculator-visual {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 24, 23, 0.9), rgba(10, 15, 18, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-card {
  display: grid;
}

.visual-card img,
.catalog-card img,
.material-card img,
.step-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #101817;
}

.visual-card > div,
.catalog-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.visual-card h3,
.catalog-card h3 {
  margin: 0;
}

.visual-card p,
.catalog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.visual-card strong,
.catalog-meta {
  color: var(--accent-2);
  font-weight: 900;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.button.small {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
}

.print-catalog-section,
.equipment-section {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent);
}

.gallery-trigger {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  font-size: 14px;
}

.equipment-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 26px;
  align-items: center;
  padding: 24px;
}

.equipment-card img {
  border-radius: 18px;
}

.equipment-card h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 34px);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  line-height: 1.45;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-2);
  font-weight: 900;
}

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

.visual-materials-grid .material-card {
  overflow: hidden;
  padding: 0;
}

.visual-materials-grid .material-card h3,
.visual-materials-grid .material-card p,
.visual-materials-grid .material-card ul {
  margin-left: 20px;
  margin-right: 20px;
}

.visual-materials-grid .material-card ul {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 22px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

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

.process-grid .step-card {
  overflow: hidden;
  padding: 0;
}

.process-grid .step-card span,
.process-grid .step-card h3,
.process-grid .step-card p {
  margin-left: 20px;
  margin-right: 20px;
}

.process-grid .step-card span {
  margin-top: 18px;
}

.process-grid .step-card p {
  margin-bottom: 22px;
}

.calculator-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
}

.calculator-layout .calculator-card {
  width: 100%;
}

.calculator-visual {
  display: grid;
  place-items: center;
  grid-template-columns: repeat(5, auto);
  gap: 10px;
  padding: 24px;
  color: var(--accent-2);
  font-size: 22px;
  font-weight: 900;
}

.calculator-visual span {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(94, 224, 179, 0.24);
  border-radius: 14px;
  background: rgba(29, 158, 117, 0.08);
}

.floating-telegram {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  color: #04130e;
  background: var(--accent-2);
  box-shadow: 0 14px 44px rgba(29, 158, 117, 0.34);
  font-weight: 900;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  width: min(860px, 92vw);
  max-height: 76vh;
  border: 1px solid rgba(94, 224, 179, 0.28);
  border-radius: 18px;
  background: #101817;
}

.lightbox p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  font-size: 30px;
  cursor: pointer;
}

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

.service-card .service-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #101817;
}

.service-card-body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.service-card-body .price {
  margin-top: 0;
}

@media (max-width: 1080px) {
  .benefits-strip,
  .product-grid,
  .catalog-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator-layout,
  .equipment-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .benefits-strip,
  .product-grid,
  .catalog-grid,
  .visual-materials-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .floating-telegram {
    right: 12px;
    bottom: 12px;
  }
}
