:root {
  --outer: #d7dedb;
  --ink: #0b120f;
  --panel: #101814;
  --panel-2: #151d18;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f1f4ee;
  --muted: #96a49d;
  --lime: #c9f158;
  --lime-deep: #a8d431;
  --paper: #fafcfa;
  --paper-line: #e2e7e3;
  --paper-ink: #0f1410;
  --paper-muted: #6d7872;
  --letter-color: #c9f158;
  --letter-glow: #c9f158;
  --font-body: "Montserrat", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-display: "Montserrat", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  justify-items: center;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--ink);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
p,
blockquote,
figure {
  margin: 0;
}

/* ===== Рамка-приложение ===== */

.frame {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  min-height: 620px;
  background: var(--paper);
  overflow: hidden;
}

.frame-dark {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 14px max(30px, calc((100vw - 1660px) / 2)) 0;
  border-radius: 0 0 44px 44px;
  background:
    radial-gradient(circle at 78% 30%, rgba(201, 241, 88, 0.07), transparent 26rem),
    radial-gradient(circle at 30% 90%, rgba(201, 241, 88, 0.04), transparent 22rem),
    linear-gradient(160deg, #14211a, #0b120f 62%);
  overflow: hidden;
}

/* точечный узор справа, как на референсе */
.frame-dark::before {
  content: "";
  position: absolute;
  top: 8%;
  right: 2%;
  width: 46%;
  height: 84%;
  background: radial-gradient(rgba(255, 255, 255, 0.13) 1.2px, transparent 1.3px);
  background-size: 15px 15px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 72%);
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 72%);
  pointer-events: none;
}

/* ===== Верхняя навигация ===== */

.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}

.brand img {
  display: block;
  width: 128px;
  height: 40px;
  object-fit: contain;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 180ms ease;
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--text);
}

.nav-item.is-active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -9px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.nav-count {
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.badge-online {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.get-started {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.get-started .arrow-circle {
  width: 32px;
  height: 32px;
  background: var(--lime);
  color: var(--ink);
  transition: transform 180ms ease;
}

.get-started:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 241, 88, 0.5);
  background: rgba(201, 241, 88, 0.08);
}

.get-started:hover .arrow-circle {
  transform: translateX(2px);
}

/* ===== Меню «Позвонить» ===== */

.call-wrap {
  position: relative;
}

.call-menu[hidden] {
  display: none;
}

.call-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 15;
  display: grid;
  gap: 4px;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(16, 24, 19, 0.92);
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 60px rgba(0, 0, 0, 0.5);
  animation: callMenuIn 180ms ease;
}

@keyframes callMenuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.call-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background 160ms ease, color 160ms ease;
}

.call-item svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--lime);
}

.call-item:hover {
  background: rgba(201, 241, 88, 0.12);
}


.arrow-circle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--text);
  color: var(--ink);
}

.arrow-circle svg {
  width: 15px;
  height: 15px;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(440px, 0.92fr) minmax(420px, 1fr);
  gap: 40px;
  flex: 1;
  min-height: 0;
  align-items: center;
}

.hero-copy {
  padding: 12px 0 40px 14px;
}

/* текст приподнят, кнопка остаётся на месте */
.hero-copy .eyebrow-pill,
.hero-copy h1,
.hero-copy p {
  transform: translateY(-34px);
}

.eyebrow-pill {
  display: inline-block;
  margin-bottom: 28px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(36px, 3.9vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 .accent {
  color: var(--lime);
}

.hero-copy p {
  max-width: 560px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-copy p a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  transition: text-decoration-color 180ms ease;
}

.hero-copy p a:hover {
  text-decoration-color: var(--lime);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 9px 9px 9px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 16.5px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.cta .arrow-circle {
  width: 42px;
  height: 42px;
  background: var(--lime);
  color: var(--ink);
  transition: transform 180ms ease;
}

.cta:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 241, 88, 0.5);
  background: rgba(201, 241, 88, 0.08);
}

.cta:hover .arrow-circle {
  transform: translateX(2px);
}

/* ===== Визуал справа ===== */

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 0;
}

/* стрелки, появляющиеся при наведении на блок работ */

.stage-arrow {
  position: absolute;
  top: 44%;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(11, 18, 15, 0.82);
  color: var(--text);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 220ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.stage-arrow svg {
  width: 18px;
  height: 18px;
}

.stage-arrow--prev {
  left: 1%;
}

.stage-arrow--next {
  right: 1%;
}

.hero-visual:hover .stage-arrow,
.stage-arrow:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.stage-arrow:hover {
  background: rgba(201, 241, 88, 0.18);
  border-color: rgba(201, 241, 88, 0.55);
}

.stage-arrow:active {
  transform: translateY(-50%) scale(0.86);
}

.work-card.slot-left,
.work-card.slot-right {
  cursor: pointer;
}

/* карусель примеров работ */

.work-stage {
  position: absolute;
  inset: 0;
  z-index: 6;
}

.work-card {
  position: absolute;
  left: 55%;
  top: 44%;
  display: grid;
  gap: 14px;
  width: min(360px, 36vw);
  padding: 14px 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(16, 24, 19, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 30px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px) saturate(130%);
  transition:
    transform 750ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 450ms ease,
    filter 450ms ease;
  will-change: transform;
}

.work-card.slot-center {
  z-index: 6;
  transform: translate(-50%, -50%) scale(1);
}

.work-card.slot-left {
  z-index: 5;
  opacity: 0.55;
  filter: brightness(0.75);
  transform: translate(calc(-50% - 84%), -50%) scale(0.84);
}

.work-card.slot-right {
  z-index: 5;
  opacity: 0.55;
  filter: brightness(0.75);
  transform: translate(calc(-50% + 84%), -50%) scale(0.84);
}

.work-card.slot-hidden {
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.4);
}

.work-photo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 205px;
  border-radius: 16px;
  object-fit: cover;
  overflow: hidden;
}

.work-photo span {
  padding: 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  text-align: center;
}

.work-photo--letters {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(201, 241, 88, 0.16), transparent 11rem),
    linear-gradient(170deg, #1c211b, #0a0d0a 70%);
  background-size: 26px 26px, 26px 26px, auto, auto;
}

.work-photo--letters span {
  color: var(--lime);
  font-size: 34px;
  text-shadow:
    0 0 14px rgba(201, 241, 88, 0.85),
    0 0 40px rgba(201, 241, 88, 0.5);
}

.work-photo--banner {
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.22), transparent 6rem),
    linear-gradient(120deg, #ff9a3d, #ff5340 62%, #c22f4b);
}

.work-photo--banner span {
  color: #fff;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.work-photo--lightbox {
  background:
    radial-gradient(circle at 50% 52%, rgba(244, 246, 240, 0.16), transparent 9rem),
    linear-gradient(170deg, #191e19, #0a0d0a 70%);
}

.work-photo--lightbox span {
  padding: 16px 28px;
  border-radius: 14px;
  background: #f4f6f0;
  color: #10140f;
  font-size: 24px;
  text-transform: uppercase;
  box-shadow:
    0 0 24px rgba(244, 246, 240, 0.65),
    0 0 70px rgba(201, 241, 88, 0.3);
}

.work-photo--vinyl {
  background:
    linear-gradient(115deg, transparent 46%, rgba(255, 255, 255, 0.14) 50%, transparent 54%),
    linear-gradient(150deg, #2a3a4a, #101a24 70%);
}

.work-photo--vinyl span {
  color: #38c8ff;
  font-size: 30px;
  text-transform: uppercase;
  text-shadow:
    0 0 14px rgba(56, 200, 255, 0.8),
    0 0 40px rgba(56, 200, 255, 0.45);
}

.work-caption {
  display: grid;
  gap: 4px;
  padding: 0 4px;
}

.work-caption strong {
  font-size: 15px;
}

.work-tag {
  color: var(--lime);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ===== Белая нижняя панель ===== */

.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px max(22px, calc((100vw - 1660px) / 2));
  background: var(--paper);
  color: var(--paper-ink);
}

.chat-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.chat-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
}

.chat-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chat-text strong {
  font-size: 15.5px;
}

.chat-text small {
  color: var(--paper-muted);
  font-size: 13.5px;
}

.chat-text small a {
  color: var(--paper-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-line {
  width: 130px;
  height: 3px;
  margin-top: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--lime-deep), var(--paper-line) 70%);
}

/* ===== Онлайн-чат ===== */

button.chat-chip {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.chat-open-link {
  color: var(--paper-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-chat {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  background: var(--paper);
  color: var(--paper-ink);
  border: 1px solid var(--paper-line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(11, 18, 15, 0.45);
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 16px));
  transition: opacity 200ms ease, transform 200ms ease;
}

.site-chat.is-open {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.site-chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 59;
  background: rgba(11, 18, 15, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 200ms ease;
}

.site-chat-backdrop.is-open {
  opacity: 1;
}

.site-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--paper-line);
}

.site-chat-head .chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 18px;
}

.site-chat-title {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.site-chat-title strong {
  font-size: 14.5px;
}

.site-chat-title small {
  color: var(--paper-muted);
  font-size: 12.5px;
}

.site-chat-close {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--paper-line);
  border-radius: 50%;
  background: #fff;
  color: var(--paper-ink);
  font-size: 19px;
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-chat-close:hover {
  background: rgba(201, 241, 88, 0.35);
  border-color: var(--lime-deep);
}

.lead-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
}

.lead-form[hidden],
.lead-success[hidden] {
  display: none;
}

.lead-field {
  display: grid;
  gap: 5px;
}

.lead-field span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--paper-muted);
}

.lead-field em {
  color: #e05656;
  font-style: normal;
}

.lead-field input,
.lead-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  background: #fff;
  color: var(--paper-ink);
  font-size: 14px;
  outline: none;
  resize: none;
  font-family: inherit;
}

.lead-field input:focus,
.lead-field textarea:focus {
  border-color: var(--lime-deep);
}

.lead-field input.is-invalid {
  border-color: #e05656;
}

.lead-error {
  margin: 0;
  font-size: 12.5px;
  color: #e05656;
}

.lead-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 8px 8px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  transition: transform 180ms ease, opacity 180ms ease;
}

.lead-submit .arrow-circle {
  width: 38px;
  height: 38px;
  background: var(--lime);
  color: var(--ink);
}

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

.lead-submit:disabled {
  opacity: 0.6;
  transform: none;
  cursor: default;
}

.lead-success {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 34px 24px 28px;
  text-align: center;
}

.lead-success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
}

.lead-success-icon svg {
  width: 28px;
  height: 28px;
}

.lead-success strong {
  font-size: 18px;
  font-family: var(--font-display);
}

.lead-success p {
  color: var(--paper-muted);
  font-size: 14px;
}

.lead-done {
  margin-top: 10px;
  padding: 10px 26px;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  background: #fff;
  color: var(--paper-ink);
  font-size: 14px;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease;
}

.lead-done:hover {
  background: rgba(201, 241, 88, 0.35);
  border-color: var(--lime-deep);
}


.stat-cards {
  display: flex;
  gap: 12px;
}

.stat-card {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 20px 26px;
  border: 1px solid var(--paper-line);
  border-radius: 20px;
  background: #fff;
  white-space: nowrap;
}

.stat-card strong {
  font-family: var(--font-display);
  font-size: 22px;
}

.stat-card span {
  color: var(--paper-muted);
  font-size: 13.5px;
}

/* ===== Модалка калькулятора ===== */

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 12, 9, 0);
  backdrop-filter: blur(0);
  transition: background 220ms ease, backdrop-filter 220ms ease;
}

.modal-backdrop.is-open {
  background: rgba(7, 12, 9, 0.66);
  backdrop-filter: blur(14px);
}

.calculator-sheet {
  width: min(1120px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  background:
    radial-gradient(circle at 82% 0%, rgba(201, 241, 88, 0.08), transparent 24rem),
    linear-gradient(160deg, #181d17, #0f130f 70%);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  transform: translateY(28px) scale(0.98);
  opacity: 0;
  transition: transform 240ms ease, opacity 240ms ease;
}

.modal-backdrop.is-open .calculator-sheet {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ===== Модалка «Адрес» ===== */

.location-sheet {
  width: min(860px, 100%);
}

.location-sheet .sheet-header h2 {
  font-size: 22px;
}

.sheet-address {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.location-map {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  min-height: 400px;
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

@media (max-width: 900px) {
  .location-map,
  .location-map iframe {
    min-height: 300px;
  }
}

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

.eyebrow {
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sheet-header h2 {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease;
}

.icon-button:hover {
  background: rgba(201, 241, 88, 0.14);
  border-color: rgba(201, 241, 88, 0.5);
}

.calculator-layout {
  display: block;
}

/* ===== Шаг 1: поиск и каталог услуг ===== */

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  margin-bottom: 20px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-field:focus-within {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(201, 241, 88, 0.16);
}

.search-field svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.search-field input {
  flex: 1;
  height: 100%;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  outline: none;
}

.catalog-group {
  margin-bottom: 22px;
}

.catalog-group h3 {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.catalog-empty {
  padding: 32px 16px;
  color: var(--muted);
  text-align: center;
}

/* ===== Шаг 2: параметры услуги ===== */

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 180ms ease, background 180ms ease;
}

.back-button svg {
  width: 14px;
  height: 14px;
}

.back-button:hover {
  border-color: rgba(201, 241, 88, 0.5);
  background: rgba(201, 241, 88, 0.08);
}

.config-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-cta {
  width: 100%;
  justify-content: space-between;
  font-size: 15px;
  min-height: 56px;
}

.product-card {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  animation: cardIn 360ms ease both;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.product-card small {
  color: var(--muted);
  line-height: 1.45;
}

.product-card.is-active {
  border-color: rgba(201, 241, 88, 0.65);
  background: rgba(201, 241, 88, 0.09);
  box-shadow: 0 0 40px rgba(201, 241, 88, 0.12);
}

.product-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: rgba(201, 241, 88, 0.13);
  color: var(--lime);
  font-weight: 700;
}

.config-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  min-height: 500px;
}

.config-preview,
.settings-form,
.price-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.config-preview {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  padding: 16px;
}

.mini-stage {
  position: relative;
  display: grid;
  min-height: 340px;
  place-items: center;
  perspective: 900px;
  touch-action: none;
  border-radius: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 44%, rgba(201, 241, 88, 0.1), transparent 20rem),
    #0b0e0b;
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.mini-sign {
  max-width: 100%;
  padding: 18px;
  overflow-wrap: anywhere;
  color: var(--letter-color);
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 68px);
  font-weight: 700;
  text-align: center;
  text-shadow:
    0 0 12px var(--letter-glow),
    0 0 30px var(--letter-glow),
    0 0 70px color-mix(in srgb, var(--letter-glow), transparent 28%);
  transform: rotateX(13deg) rotateY(-15deg);
  transition: color 220ms ease, text-shadow 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

[data-glow-off] .mini-sign {
  text-shadow: 0 10px 18px rgba(0, 0, 0, 0.38);
}

.mini-sign--panel {
  padding: 28px 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(160deg, #1c2320, #0c100e 72%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 50px rgba(0, 0, 0, 0.55);
}

/* ===== Настоящее 3D букв (крутится мышкой/пальцем) ===== */

.sign3d {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  cursor: grab;
}

.sign3d:active {
  cursor: grabbing;
}

.sign3d-inner {
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.sign3d-layer {
  grid-area: 1 / 1;
  font-family: var(--font-display);
  font-size: clamp(34px, 6.4vw, 64px);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.sign3d-panel {
  padding: 30px 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(160deg, #1d2421, #0b0f0d 72%);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.55);
  color: transparent !important;
}

.stage-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  pointer-events: none;
}

.price-card {
  padding: 18px;
}

.price-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.price-card strong {
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
}

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

.field > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  padding: 0 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(201, 241, 88, 0.16);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatch {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: var(--swatch-color);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.swatch.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--swatch-color), transparent 72%);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--muted);
  cursor: pointer;
}

.toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--lime);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Адаптив ===== */

@media (max-width: 1160px) {
  .hero {
    grid-template-columns: minmax(400px, 1fr) minmax(340px, 0.9fr);
    gap: 24px;
  }

  .stat-card span {
    display: none;
  }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
    place-items: start center;
  }

  .frame {
    height: auto;
    min-height: 100dvh;
  }

  .frame-dark {
    padding: 12px 18px 0;
  }

  .topnav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    padding: 28px 4px 12px;
  }

  .hero-visual {
    height: 460px;
  }

  .work-card {
    left: 50%;
    width: min(300px, calc(100vw - 90px));
  }

  .work-card.slot-left {
    transform: translate(calc(-50% - 78%), -50%) scale(0.7);
    opacity: 0.35;
  }

  .work-card.slot-right {
    transform: translate(calc(-50% + 78%), -50%) scale(0.7);
    opacity: 0.35;
  }

  .bottom-bar {
    flex-direction: column;
    align-items: stretch;
    border-radius: 26px 26px 0 0;
  }

  .stat-cards {
    flex-wrap: wrap;
  }

  .stat-card {
    flex: 1;
    justify-content: center;
    padding: 12px 14px;
  }

  .stat-card span {
    display: inline;
  }

  .config-panel {
    grid-template-columns: 1fr;
  }

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

  .config-panel {
    min-height: 0;
  }

  .mini-stage {
    min-height: 240px;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .calculator-sheet {
    max-height: calc(100vh - 20px);
    border-radius: 26px;
  }
}

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

  h1 br {
    display: none;
  }

  .brand img {
    width: 108px;
    height: 34px;
  }

  .get-started {
    padding: 6px;
    font-size: 0;
    gap: 0;
  }

  .hero-visual {
    height: 420px;
  }

  .work-card {
    width: min(270px, calc(100vw - 80px));
  }

  .work-photo {
    height: 160px;
  }

  .cta {
    width: 100%;
    justify-content: space-between;
  }

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

/* ===== Выбор стиля объёмных букв ===== */

.style-picker-title {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--muted);
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.style-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.style-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 241, 88, 0.5);
  background: rgba(201, 241, 88, 0.06);
}

.style-card.is-active {
  border-color: var(--lime);
}

.style-card strong {
  font-size: 14.5px;
}

.style-card small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.style-sample {
  display: grid;
  place-items: center;
  height: 72px;
  border-radius: 12px;
  background: #080c09;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.01em;
  overflow: hidden;
}

.style-sample--face {
  color: #c9f158;
  text-shadow: 0 0 10px #c9f158, 0 0 28px #c9f158;
}

.style-sample--face-sides {
  color: #c9f158;
  text-shadow: 0 0 8px #c9f158, 0 0 22px #c9f158, 0 0 48px #c9f158, 0 4px 18px rgba(201, 241, 88, 0.8);
}

.style-sample--sides {
  color: #10150f;
  text-shadow: 0 0 2px rgba(201, 241, 88, 0.9), 0 0 14px #c9f158, 0 0 34px rgba(201, 241, 88, 0.85);
}

.style-sample--halo {
  color: #262c26;
  text-shadow: 0 0 26px #c9f158, 0 0 52px #c9f158;
}

.style-sample--two-layer {
  color: #c9f158;
  text-shadow: 0 2px 0 #86ab27, 0 4px 0 #5c7620, 0 0 12px #c9f158, 0 0 32px #c9f158;
}

.style-sample--plain {
  color: #a7b3aa;
  text-shadow: 0 1px 0 #59635c, 0 2px 0 #454e48, 0 3px 0 #333a35, 0 5px 8px rgba(0, 0, 0, 0.55);
}

/* выбранный стиль над формой */

.style-current {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}

.style-current .style-sample {
  flex: none;
  width: 74px;
  height: 48px;
  font-size: 19px;
  border-radius: 10px;
}

.style-current-text {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.style-current-text strong {
  font-size: 13.5px;
}

.style-current-text small {
  color: var(--muted);
  font-size: 12px;
}

.style-change {
  flex: none;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease;
}

.style-change:hover {
  border-color: rgba(201, 241, 88, 0.5);
  background: rgba(201, 241, 88, 0.1);
}
