:root {
  --purple: #6f46f5;
  --orange: #ff8f12;
  --ink: #17191f;
  --text: #5d6673;
  --line: #eceef3;
  --soft: #f6f7fb;
  --shadow: 0 16px 40px rgba(32, 27, 61, 0.07);
  --font: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

img, svg { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, p { margin: 0; }

::selection { background: #e4dcff; }

:focus-visible {
  outline: 3px solid rgba(111, 70, 245, 0.45);
  outline-offset: 3px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.logo img {
  display: block;
  height: 46px;
  width: auto;
  max-width: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: #3a4150;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--purple); }

.header-contacts {
  display: grid;
  gap: 2px;
  justify-items: end;
}

.header-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.header-contacts svg {
  width: 16px;
  height: 16px;
  color: var(--purple);
}

.header-contacts a:hover { color: var(--purple); }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--soft);
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
}

.search {
  position: relative;
  flex: 1 1 240px;
  max-width: 320px;
  margin-left: auto;
}

.search-field {
  position: relative;
}

.search input {
  display: block;
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px 0 40px;
  background: #fff;
}

.search input:focus {
  border-color: #d9d0fb;
  outline: none;
  box-shadow: 0 0 0 4px rgba(111, 70, 245, 0.14);
}

.search-icon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14px;
  width: 18px;
  height: 18px;
  margin: auto 0;
  color: var(--purple);
  pointer-events: none;
}

.search-toggle {
  display: none;
}

.search-toggle .icon-close { display: none; }

.search-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, calc(100vw - 32px));
  max-height: min(420px, 70vh);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(32, 27, 61, 0.12);
}

.search-panel[hidden] { display: none; }

.search-group {
  margin: 4px 8px 6px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-option {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  text-decoration: none;
}

.search-option.is-active,
.search-option:hover { background: #f3efff; }

.search-option strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.search-option span {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.search-status {
  margin: 8px 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero { padding: 42px 0 24px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
  min-height: 540px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 15px;
  font-weight: 800;
}

.eyebrow span { color: var(--purple); margin-right: 6px; }

h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 480px;
  margin-top: 18px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(180deg, #ffb13d 0%, #ff8f12 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(255, 145, 20, 0.32);
}

.btn:hover { filter: brightness(1.04); }

.btn:disabled { cursor: wait; opacity: 0.65; }

.btn-sm {
  padding: 10px 14px;
  font-size: 14px;
  box-shadow: 0 8px 16px rgba(255, 145, 20, 0.26);
}

.hero-art {
  position: relative;
  height: 520px;
}

.hero-scene {
  width: 74%;
  height: 86%;
  margin-top: 2%;
}

.hero-person {
  position: absolute;
  right: -4%;
  bottom: -2%;
  height: 108%;
  width: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 18px 16px rgba(32, 27, 61, 0.14));
}

.section { padding: 28px 0 84px; }

.band {
  background: linear-gradient(180deg, #fff 0%, #f7f8fc 10%, #f7f8fc 90%, #fff 100%);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.count {
  color: var(--text);
  font-weight: 700;
}

.count strong { color: var(--ink); }

.spheres {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-bottom: 28px;
}

.sphere-btn {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: auto;
  min-width: 92px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #2a3140;
  font-size: 13px;
  font-weight: 700;
  max-width: 124px;
  text-align: center;
  line-height: 1.25;
}

.sphere-btn > span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  box-shadow: 0 12px 22px rgba(111, 70, 245, 0.28);
}

.sphere-btn svg { width: 28px; height: 28px; }

.sphere-btn[aria-pressed="true"] > span {
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--orange);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 16px;
  border: 1px solid #f0f1f6;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.card[hidden] { display: none; }

.card.is-hit {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--orange);
}

.card { cursor: pointer; }

.card:hover { transform: translateY(-4px); }

.cover {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  height: auto;
  border-radius: 18px;
}

html[data-card-shape="wide"] .cover { aspect-ratio: 2 / 1; }
html[data-card-shape="tall"] .cover { aspect-ratio: 3 / 4; }

.cover.has-photo {
  position: relative;
  display: block;
  overflow: hidden;
}

.cover.has-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.catalog-status { margin: 0 0 16px; color: var(--text); font-weight: 700; }

.cover-scan { background: linear-gradient(160deg, #f3edff, #e7f0ff); color: #6f46f5; }
.cover-gate { background: linear-gradient(160deg, #e7fbf3, #efeaff); color: #14a36a; }
.cover-kiosk { background: linear-gradient(160deg, #fff0df, #ffe4f2); color: #ff8f12; }
.cover-print { background: linear-gradient(160deg, #e7f3ff, #efeaff); color: #3b6fd8; }
.cover-soft { background: linear-gradient(160deg, #efeaff, #e7f3ff); color: #6f46f5; }
.cover-more { background: linear-gradient(160deg, #fff4e8, #efeaff); color: #ff8f12; }
.cover-call { background: linear-gradient(160deg, #e7fff4, #e7f3ff); color: #0f766e; }

.mock {
  display: grid;
  gap: 8px;
  width: 132px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mock i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #ece8ff;
}

.mock i:first-child {
  width: 48%;
  height: 10px;
  background: currentColor;
}

.tag {
  margin: 14px 8px 0;
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
}

.card h3 {
  margin: 4px 8px 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.card h3 a,
.card h3 button {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.card h3 a:focus-visible,
.card h3 button:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.card > p:last-of-type,
.card > p.lead,
.card h3 + p {
  margin: 0 8px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 18px 8px 0;
}

.price {
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.price-ask {
  color: var(--purple);
  font-size: 15px;
}

.request-panel,
.contacts-panel {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 36px;
  align-items: start;
  padding: 36px;
  border: 1px solid #f0eefe;
  border-radius: 32px;
  background: linear-gradient(180deg, #fbfaff 0%, #fff 42%);
  box-shadow: 0 24px 60px rgba(80, 60, 160, 0.06);
}

.contacts-panel { align-items: center; }

.steps {
  display: grid;
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.steps li > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
}

.steps strong { display: block; margin-bottom: 2px; }

.steps p { color: var(--text); font-size: 14px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { display: grid; gap: 8px; }

.field span {
  color: #3e4654;
  font-size: 14px;
  font-weight: 800;
}

.req {
  color: var(--orange);
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #e4e7ee;
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
  font-weight: 600;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a0a7b4;
  font-weight: 600;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--purple);
  outline: none;
  box-shadow: 0 0 0 4px rgba(111, 70, 245, 0.12);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.2 6 6.2 11 1.2' fill='none' stroke='%236f46f5' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field-wide { grid-column: 1 / -1; }

.captcha-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.captcha-image {
  width: 210px;
  height: 64px;
  overflow: hidden;
  border: 1px solid #e4e7ee;
  border-radius: 14px;
  background: #f4f1ff;
}

.captcha-image svg { display: block; width: 100%; height: 100%; }

.captcha-refresh {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #e4e7ee;
  border-radius: 14px;
  background: #fff;
  color: var(--purple);
}

.captcha-refresh svg { width: 22px; height: 22px; }

.captcha-refresh:hover { border-color: var(--purple); }

.form-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f3efff;
  color: #3b2d86;
  font-size: 14px;
  font-weight: 700;
}

.form-note[hidden] { display: none; }

.form-note.is-error { background: #fff1e8; color: #8a3d12; }

.success-dialog {
  flex-direction: column;
  align-items: center;
  width: min(440px, calc(100% - 32px));
  margin: auto;
  padding: 36px 32px 28px;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(32, 27, 61, 0.2);
  text-align: center;
}

.success-dialog::backdrop {
  background: rgba(23, 25, 31, 0);
  backdrop-filter: blur(0);
}

.success-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.28);
}

.success-mark svg { width: 36px; height: 36px; }

.success-dialog h2 { font-size: clamp(28px, 4vw, 36px); }

.success-dialog p {
  max-width: 36ch;
  margin-top: 12px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

.success-dialog .btn { margin-top: 22px; min-width: 148px; }

.product-dialog {
  flex-direction: column;
  width: min(var(--modal-width, 720px), calc(100% - 28px));
  max-height: min(var(--modal-height, 900px), calc(100vh - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(32, 27, 61, 0.2);
}

.product-scroll {
  min-height: 0;
  margin-block: 30px;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 28px 22px 0;
}

.product-dialog,
.success-dialog {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition:
    opacity 0.32s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    overlay 0.32s ease allow-discrete,
    display 0.32s ease allow-discrete;
}

.product-dialog[open],
.success-dialog[open] {
  display: flex;
  opacity: 1;
  transform: none;
}

.product-dialog:not([open]),
.success-dialog:not([open]) {
  display: none;
  pointer-events: none;
}

@starting-style {
  .product-dialog[open],
  .success-dialog[open] {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

.product-dialog::backdrop {
  background: rgba(23, 25, 31, 0);
  backdrop-filter: blur(0);
}

.product-dialog::backdrop,
.success-dialog::backdrop {
  transition:
    background 0.32s ease,
    backdrop-filter 0.32s ease,
    overlay 0.32s ease allow-discrete,
    display 0.32s ease allow-discrete;
}

.product-dialog[open]::backdrop,
.success-dialog[open]::backdrop {
  background: rgba(23, 25, 31, 0.46);
  backdrop-filter: blur(6px);
}

@starting-style {
  .product-dialog[open]::backdrop,
  .success-dialog[open]::backdrop {
    background: rgba(23, 25, 31, 0);
    backdrop-filter: blur(0);
  }
}

.product-close {
  position: absolute;
  top: 12px;
  right: 22px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f4f1ff;
  color: var(--purple);
}

.product-close svg { width: 16px; height: 16px; }

.product-gallery {
  position: relative;
  width: min(100%, var(--modal-image-width, 620px));
  height: var(--modal-image-height, 620px);
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 22px;
  background: #f6f4fb;
  touch-action: pan-y;
}

.product-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.product-gallery.is-empty { background: linear-gradient(160deg, #f3edff, #e7f0ff); }

.product-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  box-shadow: var(--shadow);
  transform: translateY(-50%);
}

.product-nav.prev { left: 12px; }
.product-nav.next { right: 12px; }

.product-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.product-dots button {
  flex: none;
  box-sizing: content-box;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 25, 31, 0.28);
}

.product-dots button[aria-current="true"] { background: var(--purple); }

.product-dialog .tag { margin: 0; }

.product-dialog h2 {
  margin-top: 4px;
  font-size: clamp(28px, 4vw, 40px);
}

.product-dialog .price { margin-top: 8px; }

.product-detail {
  margin-top: 14px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.product-detail p + p,
.product-detail ul,
.product-detail ol { margin-top: 10px; }

.product-detail ul,
.product-detail ol { padding-left: 1.2em; }

.product-detail table,
.detail-editor table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  table-layout: fixed;
}

.product-detail td,
.product-detail th,
.detail-editor td,
.detail-editor th {
  border: 1px solid #d7dde8;
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.product-detail th,
.detail-editor th { font-weight: 800; color: var(--col-light, var(--ink)); }

.product-detail td,
.detail-editor td { color: var(--col-light, inherit); }

.product-detail td:first-child,
.product-detail th:first-child,
.detail-editor td:first-child,
.detail-editor th:first-child { width: 58%; }

.detail-editor td:has(> br:only-child)::before {
  content: "Параметр";
  color: #98a0ae;
  pointer-events: none;
}

.detail-editor td + td:has(> br:only-child)::before { content: "Значение"; }

.product-detail .text-sm { font-size: 0.92em; }
.product-detail .text-lg { font-size: 1.28em; }
.product-detail .text-xl { font-size: 1.55em; }
.product-detail .font-grotesk,
.detail-editor .font-grotesk { font-family: "Golos Text", var(--font); font-weight: 500; }
.product-detail .font-display,
.detail-editor .font-display { font-family: "Unbounded", var(--font); font-weight: 500; }
.product-detail .font-narrow,
.detail-editor .font-narrow { font-family: "Oswald", var(--font); font-weight: 500; }
.product-detail .font-serif,
.detail-editor .font-serif { font-family: "Literata", "Times New Roman", serif; font-weight: 500; }
.product-detail .font-antique,
.detail-editor .font-antique { font-family: "Cormorant Garamond", "Times New Roman", serif; font-weight: 500; }
.product-detail .font-round,
.detail-editor .font-round { font-family: "Nunito", var(--font); font-weight: 500; }
.product-detail .font-script,
.detail-editor .font-script { font-family: "Caveat", cursive; font-weight: 500; }
.product-detail .font-display strong,
.product-detail .font-display b,
.product-detail strong .font-display,
.product-detail b .font-display,
.product-detail .font-narrow strong,
.product-detail .font-narrow b,
.product-detail strong .font-narrow,
.product-detail b .font-narrow,
.product-detail .font-serif strong,
.product-detail .font-serif b,
.product-detail strong .font-serif,
.product-detail b .font-serif,
.product-detail .font-antique strong,
.product-detail .font-antique b,
.product-detail strong .font-antique,
.product-detail b .font-antique,
.product-detail .font-script strong,
.product-detail .font-script b,
.product-detail strong .font-script,
.product-detail b .font-script,
.detail-editor .font-display strong,
.detail-editor .font-display b,
.detail-editor .font-narrow strong,
.detail-editor .font-narrow b,
.detail-editor .font-serif strong,
.detail-editor .font-serif b,
.detail-editor .font-antique strong,
.detail-editor .font-antique b,
.detail-editor .font-script strong,
.detail-editor .font-script b { font-weight: 700; }
.product-detail strong,
.product-detail b { color: var(--ink); font-weight: 800; }

.product-actions {
  --action-size: calc(28px + 1lh);
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 22px;
}

.product-dialog .product-actions .btn {
  margin-top: 0;
  box-sizing: border-box;
  min-height: var(--action-size);
  box-shadow: none;
}

.share {
  position: relative;
  display: flex;
  flex: none;
}

.share[hidden] { display: none; }

.share-toggle {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: var(--action-size);
  height: var(--action-size);
  padding: 0;
  border: 2px solid var(--purple);
  border-radius: 50%;
  background: #f4f1ff;
  color: var(--purple);
}

.share-toggle svg { width: 22px; height: 22px; }

.share-toggle:hover { background: #ebe4ff; }

.share-toggle[aria-expanded="true"] {
  background: var(--purple);
  color: #fff;
}

.share-menu {
  position: absolute;
  z-index: 5;
  top: 0;
  left: calc(100% + 12px);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: max-content;
  height: 100%;
  padding: 4px;
  border: 2px solid var(--purple);
  border-radius: 999px;
  background: #fff;
  transform-origin: left center;
  animation: share-slide 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.share-menu[hidden] { display: none; }

.share-menu.is-up {
  display: block;
  top: auto;
  right: 0;
  bottom: calc(100% + 10px);
  left: auto;
  width: 232px;
  height: auto;
  padding: 8px;
  border-radius: 18px;
  transform-origin: right bottom;
  animation-name: share-rise;
}

.share-menu.is-closing {
  pointer-events: none;
  animation: share-slide-out 0.32s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.share-menu.is-up.is-closing { animation-name: share-rise-out; }

@keyframes share-slide {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: none; }
}

@keyframes share-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes share-item {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: none; }
}

@keyframes share-slide-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateX(-28px); }
}

@keyframes share-rise-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(8px); }
}

.share-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.share-menu.is-up .share-title {
  position: static;
  width: auto;
  height: auto;
  margin: 4px 10px 6px;
  overflow: visible;
  clip: auto;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.share-menu button,
.share-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: 100%;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  animation: share-item 0.46s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.share-menu > :nth-child(2) { animation-delay: 0.06s; }
.share-menu > :nth-child(3) { animation-delay: 0.12s; }
.share-menu > :nth-child(4) { animation-delay: 0.18s; }
.share-menu > :nth-child(5) { animation-delay: 0.24s; }
.share-menu > :nth-child(6) { animation-delay: 0.3s; }

.share-menu.is-up button,
.share-menu.is-up a {
  width: 100%;
  height: auto;
  padding: 10px;
  border-radius: 12px;
  font-size: 15px;
  white-space: normal;
}

.share-menu button:hover,
.share-menu a:hover { background: #f4f1ff; }

.share-menu svg { width: 18px; height: 18px; flex: none; }

.share-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.share-menu .is-copied { color: #0f7a45; }

.consents {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #3e4654;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--purple);
}

.consent a {
  color: var(--purple);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-actions { margin-top: 18px; }

.form-hint {
  max-width: 460px;
  margin-top: 12px;
  color: #8b919c;
  font-size: 13px;
}

.contact-grid { display: grid; gap: 14px; }

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1.5px solid #f3c27a;
  border-radius: 18px;
  background: #fff;
}

.contact-card:hover { border-color: var(--orange); }

.contact-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
}

.contact-ico svg { width: 24px; height: 24px; }

.contact-card b {
  display: block;
  margin-bottom: 2px;
  color: #8b919c;
  font-size: 13px;
}

.contact-card > span:last-child {
  color: #1290d8;
  font-weight: 800;
}

.contact-card b { font-weight: 700; }

.footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 28px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer p {
  max-width: 460px;
  color: var(--text);
  font-size: 14px;
}

.footer .footer-offer {
  max-width: none;
  margin: 18px auto 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.footer .footer-keywords {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.footer-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}

.footer-docs a {
  color: var(--purple);
  font-size: 14px;
  font-weight: 800;
}

.legal {
  width: min(760px, calc(100% - 40px));
  margin: 28px auto 72px;
}

.legal h1 { margin-bottom: 8px; font-size: clamp(32px, 4vw, 48px); }

.legal .updated { color: var(--text); font-weight: 700; }

.legal h2 { margin: 28px 0 8px; font-size: 24px; }

.legal p,
.legal li { color: var(--text); }

.legal ul { margin: 8px 0 0; padding-left: 18px; }

.legal a { color: var(--purple); font-weight: 800; }

.nav.nav-static { margin-left: 0; }

@media (max-width: 860px) {
  .nav.nav-static {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-left: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav.nav-static a { padding: 0; }
}

.footer-link {
  flex: none;
  color: var(--purple);
  font-weight: 800;
}

.tabbar { display: none; }

@media (max-width: 980px) {
  .hero-grid,
  .request-panel,
  .contacts-panel { grid-template-columns: 1fr; }

  .grid { grid-template-columns: 1fr 1fr; }

  .hero-grid { min-height: 0; }

  .request-panel,
  .contacts-panel { grid-template-columns: 1fr; }

  .hero-art { height: 420px; }

  .hero-person { right: 0; height: 100%; }
}

@media (max-width: 860px) {
  .header {
    z-index: 40;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: 14px;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .header.is-hidden {
    transform: translateY(calc(-100% - 8px));
    pointer-events: none;
  }

  .menu-btn { display: flex; margin-left: 0; }

  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-height: 0;
  }

  .header .logo {
    order: 1;
    min-width: 0;
    max-width: calc(100% - 168px);
  }

  .header .logo img {
    height: auto;
    max-height: 40px;
    max-width: 100%;
  }

  .header .theme-toggle {
    order: 3;
    margin-left: 0;
  }

  .menu-btn { order: 4; }

  .nav { order: 6; }

  .nav.nav-static {
    flex: 1 1 100%;
    margin-top: 2px;
  }

  .header-inner:has(.search.is-open) .theme-toggle { margin-left: auto; }

  .search {
    order: 2;
    flex: none;
    width: 42px;
    max-width: 42px;
    margin-left: auto;
  }

  .search-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
    color: var(--ink);
  }

  .search-toggle svg { width: 20px; height: 20px; }

  .search:not(.is-open) .search-field { display: none; }

  .search.is-open {
    order: 5;
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .search.is-open .search-icon { display: block; }

  .search.is-open input { padding-right: 42px; }

  .search.is-open .search-toggle {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
  }

  .search.is-open .search-toggle .icon-search { display: none; }
  .search.is-open .search-toggle .icon-close { display: block; }

  .search.is-open .search-panel {
    left: 0;
    right: 0;
    width: auto;
  }

  .header-contacts { display: none; }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 22px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav.is-open { display: flex; }

  .nav a { padding: 12px 12px; }
}

@media (max-width: 720px) {
  .container { width: min(1120px, calc(100% - 32px)); }

  .grid,
  .form-grid { grid-template-columns: 1fr; }

  .captcha-row { grid-template-columns: minmax(0, 1fr) auto; }
  .captcha-image { width: 100%; }
  .captcha-row input { grid-column: 1 / -1; }

  .section-head { align-items: flex-start; flex-direction: column; }

  .footer { padding: 28px 0 12px; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
  }

  .footer .logo { max-width: none; }

  .footer .logo img {
    height: 36px;
    max-width: none;
    max-height: none;
  }

  .footer p {
    max-width: 32em;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
  }

  .footer .footer-offer {
    max-width: none;
    margin: 16px auto 0;
    text-align: center;
  }

  .footer-docs {
    justify-content: center;
    gap: 4px 18px;
    margin-top: 0;
  }

  .footer-docs a,
  .footer .footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 4px;
  }

  .request-panel,
  .contacts-panel { padding: 22px; }

  .card-foot { align-items: flex-start; flex-direction: column; }

  .hero { padding-top: 28px; }

  #catalog,
  #request,
  #contacts { scroll-margin-top: 84px; }

  .spheres {
    justify-content: center;
    gap: 14px 8px;
  }

  .card h3 + p { font-size: 15px; line-height: 1.5; }

  .card-foot .btn { min-height: 44px; }

  #order-form .btn { width: 100%; }

  .product-dialog,
  .success-dialog {
    width: min(var(--modal-width, 720px), calc(100% - 40px));
    max-height: min(var(--modal-height, 900px), calc(100vh - 96px));
    max-height: min(var(--modal-height, 900px), calc(100dvh - 96px));
  }

  .success-dialog { width: min(440px, calc(100% - 40px)); }

  .product-scroll { padding: 34px 16px 0; }

  .product-close {
    top: 10px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .product-gallery {
    height: min(var(--modal-image-height, 620px), 240px);
  }

  .nav.nav-static {
    flex: 1 1 100%;
    gap: 4px 14px;
  }

  .nav.nav-static a { padding: 8px 0; }

  .hero-art { height: 250px; }

  .hero-scene { width: 70%; height: 100%; margin-top: 0; }

  .hero-person { right: 0; bottom: 0; height: 100%; }

  .tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
  }

  .tab {
    display: grid;
    justify-items: center;
    gap: 3px;
    color: #4b5568;
    font-size: 11px;
    font-weight: 700;
  }

  .tab svg { width: 22px; height: 22px; }

  .tab-current { color: var(--purple); }

  body:has(.tabbar) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card,
  .header,
  .product-dialog,
  .success-dialog,
  .product-dialog::backdrop,
  .success-dialog::backdrop { transition: none; }

  .product-dialog,
  .success-dialog {
    opacity: 1;
    transform: none;
  }

  .share-menu,
  .share-menu > button,
  .share-menu > a { animation: none; }
}

.analytics-consent {
  position: fixed;
  z-index: 70;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 460px;
  margin-right: auto;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #ececf3;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.analytics-consent p { margin: 0; }

.analytics-consent a { color: var(--purple); font-weight: 800; }

.analytics-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.analytics-consent .btn-quiet {
  background: #fff;
  color: var(--purple);
  border: 1px solid var(--purple);
  box-shadow: none;
}

html[data-theme="dark"] .analytics-consent {
  background: var(--surface);
  border-color: var(--line);
}
