: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: 4px;
}

.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 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 180ms ease, background 180ms ease;
}

.get-started:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.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%);
}

.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;
}

.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: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

.product-grid {
  display: grid;
  gap: 10px;
  align-content: start;
}

.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 {
  display: grid;
  min-height: 340px;
  place-items: center;
  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(10deg) rotateY(-12deg);
  transition: color 220ms ease, text-shadow 220ms ease;
}

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

.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;
  }

  .calculator-layout,
  .config-panel {
    grid-template-columns: 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;
  }
}
