/* МерчКиров — публичный сайт (шрифты подключены в header.php) */

:root {
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --ink-3: #2a2a2a;
  --paper: #f7f7f4;
  --paper-2: #efefe8;
  --white: #ffffff;
  --yellow: #ffcc00;
  --yellow-dim: #e6b800;
  --yellow-soft: #fff3b0;
  --cyan: #ffcc00;
  --cyan-dim: #c9a000;
  --magenta: #0a0a0a;
  --magenta-dim: #1a1a1a;
  --lime: #ffcc00;
  --muted: #6b6b63;
  --line: rgba(10, 10, 10, 0.1);
  --shadow: 0 18px 44px rgba(10, 10, 10, 0.12);
  --radius: 18px;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: rgba(243, 246, 250, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  column-gap: clamp(0.4rem, 1.1vw, 0.9rem);
  width: min(1180px, calc(100% - clamp(1rem, 3vw, 2rem)));
  margin-inline: auto;
  min-height: 64px;
  padding-block: 0.3rem;
}
.header-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 420px;
}
.header-search-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 36px;
  padding: 0 0.75rem 0 0.65rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.header-search-label:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.28);
}
.header-search-ico {
  width: 16px; height: 16px;
  color: var(--muted);
  flex-shrink: 0;
  display: grid; place-items: center;
}
.header-search-ico svg { width: 16px; height: 16px; display: block; }
.header-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 550;
  padding: 0;
}
.header-search-input::placeholder { color: var(--muted); font-weight: 500; }
.header-search-input::-webkit-search-decoration,
.header-search-input::-webkit-search-cancel-button { appearance: none; }
.header-search-results {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 6px);
  z-index: 120;
  max-height: min(320px, 50vh);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 16px 36px rgba(10, 10, 10, 0.12);
  padding: 0.35rem;
}
.header-search-item {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: var(--ink);
  transition: background 0.15s var(--ease);
}
.header-search-item:hover,
.header-search-item.is-active {
  background: var(--paper-2);
}
.header-search-item strong {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.header-search-item span {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.35;
}
.header-search-empty {
  padding: 0.75rem 0.7rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.header-vk {
  color: #0077ff;
}
.header-vk:hover {
  border-color: #0077ff;
  background: #f0f7ff;
  color: #0077ff;
}
.header-vk svg { width: 18px; height: 18px; display: block; }
.header-profile.is-named {
  width: auto;
  min-width: 36px;
  height: 36px;
  padding: 0 0.7rem;
  border-radius: 999px;
}
.header-profile-name {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.82rem, 0.3vw + 0.74rem, 0.98rem);
  letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 0.4rem;
  flex-shrink: 1;
  min-width: 0;
  max-width: none;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
}
.logo-brand { line-height: 1.12; white-space: nowrap; }
/* Мелкая строка под названием: чем занимается компания */
.logo-sub {
  font-family: var(--font-body, inherit);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--yellow);
  display: grid; place-items: center; color: var(--ink); font-size: 0.76rem;
  box-shadow: 0 6px 16px rgba(255, 204, 0, 0.4);
  font-weight: 800;
  flex-shrink: 0;
}
.logo-img {
  width: 30px; height: 30px; border-radius: 9px; object-fit: cover;
  flex-shrink: 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  padding-inline: 0.15rem;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: 0 1 auto;
  padding: 0.32rem clamp(0.28rem, 0.55vw, 0.52rem);
  border-radius: 999px;
  font-weight: 650;
  font-size: clamp(0.68rem, 0.22vw + 0.62rem, 0.78rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--ink-2);
  transition: background 0.2s var(--ease), color 0.2s, transform 0.18s var(--ease);
}
.nav a:hover, .nav a.is-active {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}
/* Пункт «Чат с менеджером» — только в мобильном меню */
.nav-chat { display: none; }
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.22rem, 0.5vw, 0.4rem);
  flex-shrink: 0;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.header-actions .btn {
  white-space: nowrap;
  padding: 0.48rem clamp(0.55rem, 0.9vw, 0.9rem);
  font-size: clamp(0.74rem, 0.25vw + 0.66rem, 0.84rem);
}
.header-actions .header-phone {
  max-width: 9.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-inline: 0.65rem;
  font-size: 0.78rem;
  font-weight: 650;
}
.header-icon {
  position: relative;
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  flex-shrink: 0;
  transition: border-color 0.2s var(--ease), background 0.2s, transform 0.2s var(--ease);
}
.header-icon:hover { border-color: var(--ink); background: var(--paper-2); }
.header-icon:active { transform: scale(0.96); }
.header-icon svg { width: 18px; height: 18px; }
.header-icon-glyph {
  width: 18px; height: 18px; display: block;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.header-icon-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.76rem; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(255, 204, 0, 0.45);
  line-height: 1;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.75rem 1.25rem; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 0.95rem; transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--yellow);
  color: var(--ink); box-shadow: 0 12px 28px rgba(255, 204, 0, 0.35);
}
.btn-primary:hover { box-shadow: 0 16px 36px rgba(255, 204, 0, 0.5); filter: brightness(1.03); }
.btn-dark { background: var(--ink); color: var(--yellow); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.menu-toggle {
  display: none;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
}

/* Hero — legacy (other pages) */
.hero {
  position: relative; min-height: calc(100svh - var(--header-h));
  display: grid; align-items: end;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(255, 204, 0, 0.55), transparent 58%),
    linear-gradient(160deg, #0a0a0a 0%, #141414 50%, #1c1c1c 100%);
  color: #fff;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-media {
  position: absolute; inset: 0;
  background:
    url('../img/hero-print.svg') right 8% center / min(52vw, 620px) no-repeat;
  opacity: 0.95; pointer-events: none;
  animation: floatY 8s var(--ease) infinite alternate;
}
.hero-content {
  position: relative; z-index: 2;
  width: min(1180px, calc(100% - 2rem)); margin: 0 auto;
  padding: 4rem 0 5rem;
  max-width: 640px; margin-left: max(1rem, calc((100% - 1180px) / 2 + 1rem));
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 0.95; letter-spacing: -0.04em; margin: 0 0 1.25rem;
  animation: riseIn 0.9s var(--ease) both;
}
.hero-brand span {
  display: block;
  color: var(--yellow);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500; line-height: 1.35; margin: 0 0 0.85rem;
  max-width: 22ch; color: rgba(255,255,255,0.92);
  animation: riseIn 0.9s 0.1s var(--ease) both;
}
.hero p {
  margin: 0 0 1.75rem; color: rgba(255,255,255,0.68); max-width: 36ch; font-size: 1.05rem;
  animation: riseIn 0.9s 0.18s var(--ease) both;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; animation: riseIn 0.9s 0.26s var(--ease) both; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes floatY {
  from { transform: translateY(0); }
  to { transform: translateY(-14px); }
}

/* Sections */
.section { padding: 5rem 0; }
.section-head { margin-bottom: 2rem; max-width: 40rem; }
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em; margin: 0 0 0.6rem; line-height: 1.15;
}
.section-head p { margin: 0; color: var(--muted); }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.service-tile {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.35rem 1.35rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  min-height: 180px; display: flex; flex-direction: column; justify-content: space-between;
}
.service-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-tile .tag {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--cyan-dim);
}
.service-tile h3 {
  font-family: var(--font-display); font-size: 1.15rem; margin: 0.5rem 0 0.35rem; letter-spacing: -0.02em;
}
.service-tile p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.service-tile .from { margin-top: 1rem; font-weight: 800; color: var(--ink); }
.service-tile::after {
  content: ''; position: absolute; right: -20px; bottom: -20px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,204,0,0.22), transparent 70%);
}

.why-strip {
  background: var(--ink); color: #fff; border-radius: 28px; padding: 2.5rem;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center;
}
.why-strip h2 { font-family: var(--font-display); margin: 0 0 0.75rem; font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.why-strip p { margin: 0; color: rgba(255,255,255,0.65); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.why-list li {
  display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 600;
}
.why-list li::before {
  content: ''; width: 10px; height: 10px; margin-top: 0.45rem; flex-shrink: 0;
  border-radius: 50%; background: var(--yellow);
}

/* Calculator */
.calc-shell {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.calc-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.calc-tab {
  padding: 0.55rem 0.95rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); font-weight: 700; cursor: pointer; font-size: 0.88rem;
}
.calc-tab.is-active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.field { margin-bottom: 0.9rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-bottom: 0.35rem; }
.field input, .field select {
  width: 100%; padding: 0.7rem 0.85rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper); outline: none;
}
.field input:focus, .field select:focus { border-color: var(--cyan); background: #fff; }
.calc-result {
  background: linear-gradient(160deg, var(--ink) 0%, #16304f 100%);
  color: #fff; border-radius: 20px; padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.calc-result .price {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.03em;
}
.calc-result .meta { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.sra3-canvas {
  background: #0d1828; border-radius: 14px; padding: 12px; aspect-ratio: 320/450;
  max-height: 320px; margin: 0 auto; width: 100%; position: relative; overflow: hidden;
}
.sra3-sheet {
  position: absolute; inset: 12px; background: #f7f9fc; border-radius: 4px;
  box-shadow: inset 0 0 0 1px #cfd8e6;
}
.sra3-item {
  position: absolute; background: linear-gradient(135deg, rgba(226,24,122,0.25), rgba(0,194,216,0.25));
  border: 1px dashed rgba(226,24,122,0.7); box-sizing: border-box;
}

/* Форма заказа + превью макетов */
.order-panel {
  margin-top: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.35rem 1.5rem 1.5rem;
}
.order-panel h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.order-panel > .meta { margin: 0 0 1rem; color: var(--muted); }
.layout-upload {
  border: 1.5px dashed rgba(10,18,32,0.18);
  border-radius: 18px;
  padding: 1.4rem 1rem;
  text-align: center;
  cursor: pointer;
  background: var(--paper);
  transition: border-color 0.2s, background 0.2s;
  display: grid; gap: 0.25rem; justify-items: center;
}
.layout-upload:hover, .layout-upload.is-drag {
  border-color: var(--cyan);
  background: rgba(0,194,216,0.06);
}
.layout-upload strong { font-size: 1rem; }
.layout-upload span { color: var(--muted); font-size: 0.86rem; }
.layout-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.layout-card {
  display: grid; grid-template-columns: 72px 1fr; gap: 0.7rem;
  align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 0.55rem;
}
.layout-thumb {
  width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
  background: var(--ink); display: grid; place-items: center; color: #fff;
  position: relative;
}
.layout-thumb img { width: 100%; height: 100%; object-fit: cover; }
.layout-ext { font-weight: 800; font-size: 0.75rem; letter-spacing: 0.04em; }
.layout-badge {
  position: absolute; left: 4px; bottom: 4px;
  padding: 0.1rem 0.35rem; border-radius: 6px;
  font-size: 0.62rem; font-weight: 700; color: #fff; background: #2a6f9c;
}
.layout-badge--manual { background: #c45c26; }
.layout-badge--pdf { background: #2a6f9c; }
.layout-card.is-manual { border-color: rgba(196, 92, 38, 0.4); background: #fffaf6; }
.layout-meta { display: grid; gap: 0.15rem; }
.layout-meta b { font-size: 0.88rem; line-height: 1.25; word-break: break-word; }
.layout-meta span { color: var(--muted); font-size: 0.78rem; }

.calc-mock-block {
  margin: 1rem 0 1.25rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffef8 0%, #f7f6f2 100%);
}
.calc-mock-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.calc-mock-hold {
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(45deg, #e8e6e0 25%, transparent 25%) -8px 0 / 16px 16px,
    linear-gradient(-45deg, #e8e6e0 25%, transparent 25%) -8px 0 / 16px 16px,
    #f0eee8;
  border-radius: 12px;
  padding: 0.55rem;
  overflow: auto;
}
.calc-mock-hold canvas {
  max-width: 100%;
  height: auto;
  cursor: grab;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}
.calc-mock-tune {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.4rem;
}
.calc-mock-tune label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.86rem;
}
.calc-safe-warn {
  margin: 0.55rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(196, 92, 38, 0.45);
  background: #fff4eb;
  color: #8a3d12;
  font-size: 0.82rem;
  line-height: 1.35;
}

.order-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; margin-bottom: 1rem;
}
.order-fields textarea {
  width: 100%; padding: 0.7rem 0.85rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper); resize: vertical;
}
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
@media (max-width: 720px) {
  .calc-shell { grid-template-columns: 1fr; }
  .order-fields { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-list { display: grid; gap: 0.65rem; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.2rem; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--magenta); }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body { padding: 0 1.2rem 1.1rem; color: var(--muted); }

/* Knowledge / specs */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.spec-block {
  background: var(--white); border-radius: var(--radius); padding: 1.4rem; border: 1px solid var(--line);
}
.spec-block h3 { margin: 0 0 0.5rem; font-family: var(--font-display); font-size: 1.05rem; }

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  clear: both;
  background: #000;
  color: rgba(255,255,255,0.72);
  padding: 3.75rem 0 1.75rem;
  margin-top: 3.5rem;
  border-top: 0;
}
.site-footer--pro .container { max-width: 1240px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(var(--footer-cols, 6), minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(var(--footer-cols, 4), minmax(0, 1fr));
  gap: 2.25rem 2rem;
  margin-bottom: 2.25rem;
  align-items: start;
}
.footer-col { min-width: 0; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.85rem;
}
.footer-logo:hover { color: inherit; padding-left: 0; }
.footer-sub {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}
.footer-logo--sm { margin-bottom: 0.75rem; }
.footer-logo--sm .footer-logo-img,
.footer-logo--sm .footer-logo-mark {
  width: 36px;
  height: 36px;
  font-size: 0.75rem;
}
.footer-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.footer-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--yellow, #ffcc00);
  color: var(--ink, #0a0a0a);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.footer-brand {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 800;
  text-transform: uppercase;
}
.footer-tagline,
.footer-hours {
  margin: 0 0 0.45rem;
  max-width: 28rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.62);
  font-size: 0.95rem;
}
.footer-hours { color: rgba(255,255,255,0.5); font-size: 0.88rem; }
.footer-requisites {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.48);
}
.footer-requisites p { margin: 0 0 0.25rem; }
.footer-cols h4,
.footer-grid h4 {
  color: #fff;
  margin: 0 0 0.95rem;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  font-weight: 700;
  text-transform: none;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.footer-cols a,
.footer-grid a,
.footer-links a {
  display: block;
  padding: 0.28rem 0;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}
.footer-cols a:hover,
.footer-grid a:hover,
.footer-links a:hover {
  color: #fff;
  padding-left: 0;
}
.footer-contact {
  display: block !important;
  padding: 0.35rem 0 !important;
  color: rgba(255,255,255,0.85) !important;
  font-weight: 600;
}
.footer-contact--muted { color: rgba(255,255,255,0.55) !important; font-weight: 500; }
.footer-contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.42);
  font-weight: 700;
}
.footer-contact--static { color: rgba(255,255,255,0.72); }
.footer-city {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0.15rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.78);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.footer-city:hover { color: #fff; }
.footer-projects a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.footer-ext { opacity: 0.55; flex-shrink: 0; }

/* CTA-карточки */
.footer-cards {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.9fr;
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.footer-card {
  background: #1a1a1a;
  border-radius: 18px;
  padding: 1.45rem 1.5rem 1.35rem;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.65rem;
  border: 1px solid rgba(255,255,255,0.04);
}
.footer-card-title {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.footer-card-text {
  margin: 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 34ch;
}
.footer-card-btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: #111;
  color: #fff !important;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,0.08);
}
.footer-card-btn:hover { background: #000; color: #fff !important; }
.footer-card--map {
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
  background:
    linear-gradient(180deg, rgba(20,20,20,0.15), rgba(8,8,8,0.72)),
    var(--footer-map-img, none),
    radial-gradient(circle at 30% 40%, #2a3340 0%, #12161c 55%, #0a0a0a 100%);
  background-size: cover;
  background-position: center;
  min-height: 168px;
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(255,255,255,0.04);
}
.footer-card-map-title {
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

/* Картинка-подсказка в плитке: календарь, футболка. Стиль плитки прежний,
   изображение стоит справа сверху и не сдвигает текст. */
.footer-card--art {
  position: relative;
  overflow: hidden;
  padding-right: 7.2rem;
}
.footer-card-art {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 6.2rem;
  height: 6.2rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  padding: 3px;
}
.footer-card-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 11px;
}
@media (max-width: 720px) {
  .footer-card--art {
    padding-right: 1.5rem;
    padding-bottom: 5.4rem;
  }
  .footer-card-art {
    top: auto;
    bottom: 0.9rem;
    right: 0.9rem;
    width: 4.4rem;
    height: 4.4rem;
  }
}

.footer-bottom,
.footer-bottom--pro {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.48);
}
.footer-bottom-brand {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 36rem;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: #fff !important;
  text-decoration: none !important;
  padding: 0 !important;
}
.footer-social-btn:hover { background: rgba(255,255,255,0.16); color: #fff !important; }
.footer-social-btn svg { width: 16px; height: 16px; }
.footer-disclaimer {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.35);
  max-width: 34rem;
}
.footer-bottom-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  text-align: right;
}
.footer-copy { color: rgba(255,255,255,0.5); }
.footer-bottom-note { color: rgba(255,255,255,0.38); }
.footer-dev {
  color: rgba(255,255,255,0.72) !important;
  text-decoration: none !important;
  font-weight: 600;
  padding: 0 !important;
}
.footer-dev:hover { color: #fff !important; }
.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 42rem;
}
.footer-consent {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.4);
}

/* Плашка согласия в потоке (не поверх контента) */
.cookie-banner.is-inline {
  position: static;
  inset: auto;
  margin: 0 0 0;
  max-width: none;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
}

/* Cookie banner (все страницы) */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1150;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background: rgba(12,12,12,0.96);
  color: #fff;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 1.15rem;
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
  font-size: 0.9rem;
  line-height: 1.45;
}
.cookie-banner-text { margin: 0; flex: 1; min-width: 0; }
.cookie-banner a { color: var(--yellow, #ffcc00); text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.cookie-banner-more {
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.cookie-banner-more:hover { color: #fff !important; }
.cookie-banner-accept {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-weight: 800;
  font-size: 0.9rem;
  background: var(--yellow, #ffcc00);
  color: var(--ink, #0a0a0a);
  cursor: pointer;
  white-space: nowrap;
}
.cookie-banner-accept:hover { filter: brightness(1.05); }

/* Плавающие кнопки + чат */
.site-float {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  pointer-events: none;
}
.site-float > * { pointer-events: auto; }
.site-float-top {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: var(--ink-2, #1a1a1a);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.site-float-top:hover { background: var(--ink, #0a0a0a); }
.mk-chat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  font-family: var(--font-body);
}
.mk-chat-fab {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 2px solid var(--ink, #0a0a0a);
  background: var(--yellow, #ffcc00);
  color: var(--ink, #0a0a0a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(10, 10, 10, 0.18);
  overflow: hidden;
  padding: 0;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}
.mk-chat-fab:hover { filter: brightness(1.04); transform: translateY(-1px); }
.mk-chat.is-open .mk-chat-fab {
  background: var(--ink, #0a0a0a);
  color: var(--yellow, #ffcc00);
  border-color: var(--ink, #0a0a0a);
}
.mk-chat-fab-cat {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mk-chat-fab-open,
.mk-chat-fab-close {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.mk-chat-fab-open[hidden],
.mk-chat-fab-close[hidden] { display: none !important; }
.mk-chat-bubble {
  width: min(320px, calc(100vw - 5.5rem));
  background: var(--white, #fff);
  color: var(--ink, #0a0a0a);
  border-radius: var(--radius, 18px);
  border: 1.5px solid var(--line);
  padding: 0.95rem 1.1rem 0.95rem 0.9rem;
  box-shadow: var(--shadow);
  position: relative;
  cursor: pointer;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.mk-chat-bubble[hidden] { display: none !important; }
/* Приветственный пузырь закрывал карточки каталога — чат открывается кнопкой */
.mk-chat-bubble { display: none !important; }
.mk-chat-bubble-x {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.mk-chat-bubble-x:hover { color: var(--ink); }
.mk-chat-bubble-inner { display: flex; gap: 0.7rem; align-items: flex-start; }
.mk-chat-bubble strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.mk-chat-bubble p { margin: 0; font-size: 0.84rem; line-height: 1.4; color: var(--muted); }
.mk-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--yellow, #ffcc00);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}
.mk-chat-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-chat-avatar--sm { width: 34px; height: 34px; font-size: 0.85rem; }

/* Панель: скрыта по умолчанию, видна только с .is-open */
.mk-chat-panel,
.mk-chat-panel[hidden],
.mk-chat:not(.is-open) .mk-chat-panel {
  display: none !important;
}
.mk-chat.is-open .mk-chat-panel {
  display: flex !important;
  width: min(380px, calc(100vw - 2rem));
  height: min(520px, calc(100vh - 7rem));
  background: var(--white, #fff);
  color: var(--ink, #0a0a0a);
  border-radius: var(--radius, 18px);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
  flex-direction: column;
  overflow: hidden;
}
.mk-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  background: var(--yellow, #ffcc00);
  border-bottom: 1.5px solid rgba(10, 10, 10, 0.08);
}
.mk-chat-head-info { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.mk-chat-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
}
.mk-chat-status { font-size: 0.75rem; color: #2f7a3e; font-weight: 600; }
.mk-chat-status.is-human { color: var(--ink); }
.mk-chat-head-actions { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }
.mk-chat-min,
.mk-chat-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.08);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}
.mk-chat-min:hover,
.mk-chat-close:hover { background: rgba(10, 10, 10, 0.16); }
.mk-chat-msgs {
  flex: 1;
  overflow: auto;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--paper, #f7f7f4);
}
.mk-chat-msg { max-width: 88%; }
.mk-chat-msg.is-me { align-self: flex-end; }
.mk-chat-msg.is-bot,
.mk-chat-msg.is-human,
.mk-chat-msg.is-sys { align-self: flex-start; }
.mk-chat-msg-body {
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
  background: var(--white, #fff);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(10, 10, 10, 0.04);
}
.mk-chat-msg.is-bot .mk-chat-msg-body {
  border-bottom-left-radius: 4px;
}
.mk-chat-msg.is-me .mk-chat-msg-body {
  background: var(--yellow, #ffcc00);
  color: var(--ink);
  border-color: transparent;
  border-bottom-right-radius: 4px;
}
.mk-chat-msg.is-human .mk-chat-msg-body {
  background: var(--yellow-soft, #fff3b0);
  border-color: transparent;
}
.mk-chat-msg.is-sys .mk-chat-msg-body {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0.2rem 0;
  text-align: center;
}
.mk-chat-msg.is-sys { max-width: 100%; align-self: center; }
.mk-chat-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.7rem;
  border-top: 1.5px solid var(--line);
  background: var(--white, #fff);
}
.mk-chat-form input {
  flex: 1;
  border: 1.5px solid var(--line);
  background: var(--paper, #f7f7f4);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}
.mk-chat-form input:focus {
  border-color: var(--yellow-dim, #e6b800);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.28);
}
.mk-chat-form button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow, #ffcc00);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: filter 0.15s var(--ease);
}
.mk-chat-form button:hover { filter: brightness(1.05); }

@media (max-width: 1100px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-cards { grid-template-columns: 1fr 1fr; }
  .footer-card--map { grid-column: 1 / -1; min-height: 140px; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cards { grid-template-columns: 1fr; }
  .footer-bottom--pro,
  .footer-bottom-meta { align-items: flex-start; text-align: left; }
  .footer-bottom-note { text-align: left; }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .cookie-banner-actions { justify-content: flex-end; }
  .site-float { right: 0.75rem; bottom: 0.75rem; }
  /* На телефоне кнопка «наверх» закрывает карточки каталога — жест прокрутки есть, убираем её */
  .site-float-top { display: none; }
  /* Чат открывается пунктом меню — плавающая кнопка закрывала карточки */
  .site-float .mk-chat-fab { display: none; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Page head */
.page-hero {
  padding: 3rem 0 2rem;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(0,194,216,0.15), transparent 40%),
    radial-gradient(ellipse at 0% 100%, rgba(226,24,122,0.1), transparent 40%),
    var(--paper);
}
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 0.5rem; letter-spacing: -0.03em;
}
.page-hero p { margin: 0; color: var(--muted); max-width: 40ch; }

/* Account / tiles */
.auth-box {
  max-width: 440px; margin: 2rem auto; background: #fff; border-radius: 20px;
  padding: 1.75rem; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.auth-box--wide { max-width: 480px; }
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem;
  margin: -0.35rem -0.35rem 1.35rem; padding: 0.35rem;
  background: var(--paper-2, #f3f1ec); border-radius: 14px;
}
.auth-tab {
  appearance: none; border: 0; cursor: pointer;
  padding: 0.7rem 0.85rem; border-radius: 11px;
  font: inherit; font-size: 0.92rem; font-weight: 700;
  color: var(--muted); background: transparent;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.is-active {
  color: var(--ink); background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.auth-tab:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px;
}
.auth-box-head {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
}
.auth-box-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); flex-shrink: 0;
}
.auth-box-ico svg { width: 20px; height: 20px; }
.auth-box h2 { font-family: var(--font-display); margin: 0 0 1rem; font-size: 1.35rem; }
.auth-box-head h2 { margin: 0; }
.auth-hr {
  border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0;
}
.auth-hint {
  margin: 0 0 1rem; font-size: 0.9rem; color: var(--muted); line-height: 1.45;
}
.auth-links {
  margin: 0.85rem 0 0; text-align: center;
}
.auth-link {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--cyan-ink, #0a7a8a); font-size: 0.88rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}
a.auth-link { display: inline; }
.auth-link:hover { color: var(--ink); }
.auth-footer-links {
  margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
.req { color: var(--magenta); font-weight: 700; }
.check-row {
  display: flex; align-items: flex-start; gap: 0.55rem;
  margin: 0.55rem 0; font-size: 0.82rem; line-height: 1.4; color: var(--ink);
  cursor: pointer;
}
.check-row input[type="checkbox"] {
  margin-top: 0.15rem; width: 1.05rem; height: 1.05rem; flex-shrink: 0;
  accent-color: var(--cyan);
}
.check-row a { color: var(--cyan-ink, #0a7a8a); font-weight: 600; }
.layout-tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 0.85rem;
}
.layout-tile {
  border-radius: 14px; border: 1.5px dashed var(--line);
  background: var(--paper-2); display: flex; flex-direction: column;
  gap: 0.45rem; text-align: center;
  padding: 0.55rem; font-size: 0.78rem; font-weight: 600; position: relative;
  min-height: 0;
}
.layout-tile.has-file {
  border-style: solid; background: #fff;
  border-color: rgba(0,194,216,0.35);
}
.layout-tile.has-file.is-manual {
  border-color: rgba(196, 92, 38, 0.4);
  background: #fffaf6;
}
.layout-tile-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  display: grid;
  place-items: center;
}
.layout-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.layout-tile .ext {
  font-family: var(--font-display); font-size: 1.05rem; color: #fff;
  letter-spacing: 0.04em;
}
.layout-tile-name {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  padding: 0 0.15rem 0.15rem;
}
.layout-tile-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  background: rgba(20, 20, 20, 0.72);
  letter-spacing: 0.03em;
}
.layout-tile-badge--pdf { background: #2a6f9c; }
.layout-tile-badge--manual { background: #c45c26; }
.lk-tiles-empty {
  grid-column: 1 / -1;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.dash-stats {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem;
}
.stat {
  background: #fff; border-radius: 16px; padding: 1.1rem; border: 1px solid var(--line);
}
.stat b { display: block; font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.82rem; font-weight: 600; }

.table-wrap { overflow-x: auto; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data th, table.data td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.badge {
  display: inline-flex; padding: 0.2rem 0.55rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; background: var(--paper-2);
}
.badge-ready { background: rgba(184, 242, 74, 0.35); color: #3a5a00; }
.badge-print { background: rgba(0,194,216,0.2); color: #006878; }
.badge-new { background: rgba(255,204,0,0.28); color: var(--ink); }

.upload-zone {
  border: 2px dashed rgba(0,194,216,0.45); border-radius: 16px; padding: 2rem;
  text-align: center; background: rgba(0,194,216,0.04); cursor: pointer;
}
.upload-zone.drag { background: rgba(255,204,0,0.14); border-color: var(--yellow); }

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.info-card, .info-card-static {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s;
}
a.info-card:hover {
  border-color: var(--ink);
  box-shadow: 0 10px 28px rgba(10, 10, 10, 0.06);
}
.info-card-ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 204, 0, 0.22);
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.info-card-ico svg { width: 20px; height: 20px; }
.info-card strong { font-family: var(--font-display); font-size: 1.05rem; }
.info-card span:last-child, .info-card-static span:last-child { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

.branch-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}
.branch-item {
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.branch-item strong { font-weight: 700; }
.branch-item span { color: var(--muted); font-size: 0.92rem; }

.cart-empty {
  padding: 2rem 1.5rem;
  border: 1.5px dashed var(--line);
  border-radius: 16px;
  background: var(--white);
  text-align: center;
}
.cart-summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--white);
}
.cart-summary strong { display: block; font-family: var(--font-display); font-size: 1.45rem; margin-top: 0.15rem; }

/* Header: hide phone before links get crowded */
@media (max-width: 1280px) {
  .header-actions .header-phone { display: none; }
}

/* Mid desktop: slightly tighter nav before burger */
@media (max-width: 1120px) and (min-width: 1025px) {
  .logo { max-width: min(196px, 26vw); }
  .nav a {
    padding-inline: clamp(0.22rem, 0.4vw, 0.4rem);
    font-size: 0.7rem;
  }
  .header-actions .btn-primary {
    padding-inline: 0.7rem;
  }
}

/* Compact / mobile header */
@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
  }
  .header-search { max-width: none; }
  .header-profile-name { max-width: 5.5rem; }
  .logo {
    flex: 0 0 auto;
    max-width: none;
  }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    width: auto;
    max-height: min(72vh, calc(100svh - var(--header-h)));
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.85rem clamp(0.85rem, 3vw, 1.25rem) 1.1rem;
    background: #f7f7f4;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(10, 10, 10, 0.1);
    transform: translateY(calc(-100% - 8px));
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      transform 0.32s var(--ease),
      opacity 0.28s var(--ease),
      visibility 0.28s;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
  .nav a {
    width: 100%;
    flex: none;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    letter-spacing: 0;
    border-radius: 14px;
    transform: none;
  }
  .nav a:hover, .nav a.is-active { transform: none; }
  .menu-toggle { display: grid; }
  /* Пункт «Чат с менеджером» — только в мобильном меню */
  .nav-chat {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--yellow);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
  }
  .header-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }
  .header-actions .btn-primary {
    padding-inline: 0.85rem;
  }
}

body.mk-embed {
  --header-h: 0px;
}
body.mk-embed .site-header,
body.mk-embed .site-footer,
body.mk-embed .site-float,
body.mk-embed .cookie-banner,
body.mk-embed .mk-chat {
  display: none !important;
}
body.mk-embed main {
  min-height: 100%;
  padding-bottom: 1rem;
}
body.mk-embed .page-hero {
  padding: 1.25rem 0 0.85rem;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 204, 0, 0.22), transparent 55%),
    var(--paper);
}
body.mk-embed .page-hero h1 {
  font-size: clamp(1.35rem, 5vw, 1.75rem);
}
body.mk-embed .cat-page-hero {
  padding: 1rem 0 0.5rem;
}
body.mk-embed .section {
  padding-top: 0.5rem;
}
body.nav-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .services-grid, .spec-grid, .calc-shell, .why-strip, .dash-stats {
    grid-template-columns: 1fr;
  }
  .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-media { opacity: 0.35; background-position: center bottom; background-size: 90vw; }
  .hero-content { max-width: none; margin-left: auto; padding-bottom: 3.5rem; }
}
@media (max-width: 600px) {
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { width: 100%; }
  .cookie-banner { left: 0.75rem; right: 0.75rem; padding: 0.6rem 0.75rem; font-size: 0.78rem; line-height: 1.3; gap: 0.5rem; border-radius: 14px; }
  .cookie-banner-actions { gap: 0.45rem; }
  .cookie-banner-accept { padding: 0.45rem 0.8rem; font-size: 0.82rem; }
  .cookie-banner-more { font-size: 0.8rem; }
  /* Кнопка «наверх» на телефоне закрывает текст в карточках страницы */
  body.page-photoprint .mk-chat-fab { width: 44px; height: 44px; }
  .site-float-top { width: 38px; height: 38px; }
  .header-actions .btn-primary { display: none; }
  .logo { max-width: none; }
}
/* Совсем узкий телефон: название и иконки должны поместиться в одну строку */
@media (max-width: 340px) {
  .logo-sub { display: none; }
  .logo-brand { font-size: 0.84rem; }
  .logo { gap: 0.22rem; }
  .header-icon { width: 26px; height: 26px; }
  .header-actions { gap: 0.16rem; }
}

/* Узкие телефоны: бренд в шапке не должен обрезаться */
@media (max-width: 480px) {
  .header-inner { gap: 0.35rem; }
  /* подпись «МаурисПринт» длиннее прежней — даём место, чтобы не обрезалась */
  .logo { max-width: none; gap: 0.28rem; min-width: 0; }
  .logo-sub { font-size: 0.55rem; }
  .logo-brand { font-size: 0.88rem; letter-spacing: -0.03em; }
  .header-actions { padding-left: 0.25rem; }
  .logo-mark { width: 27px; height: 27px; font-size: 0.76rem; }
  .header-actions { gap: 0.3rem; }
  /* иконки чуть уже, чтобы значок с числом на корзине не касался соседней */
  .header-icon { width: 28px; height: 28px; }
  .header-icon svg { width: 17px; height: 17px; }
  .header-icon-badge { min-width: 16px; height: 16px; font-size: 0.72rem; top: -3px; right: -3px; }
}

/* База знаний / контакты / оформление */
.kb-intro .info-card {
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.kb-intro .info-card:hover {
  border-color: var(--ink);
  box-shadow: 0 10px 28px rgba(10, 10, 10, 0.06);
  transform: translateY(-2px);
}
.kb-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.kb-filter {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 600; font-size: 0.9rem;
  color: inherit;
  text-decoration: none;
}
.kb-filter.is-on,
.kb-filter:hover {
  border-color: var(--ink);
  background: var(--yellow);
}
.kb-section { margin-bottom: 0.5rem; }
.kb-empty {
  color: var(--muted);
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.kb-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.contacts-unit {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: 0 10px 28px rgba(10, 10, 10, 0.04);
}
.contacts-unit-cards { margin-bottom: 1.75rem; }
.contacts-site-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.contacts-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
}
.contacts-cta {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.contacts-jobs-unit { margin-top: 0; }
.contacts-jobs-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
  align-items: start;
}
.contacts-jobs-ad {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffcc00;
  box-shadow: 0 14px 32px rgba(10, 10, 10, 0.08);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.contacts-jobs-ad:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.12);
}
.contacts-jobs-ad img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.contacts-jobs-info h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.55rem;
}
.contacts-jobs-info h3:not(:first-child) { margin-top: 1.15rem; }
.contacts-jobs-info ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-2);
}
.contacts-jobs-info li { margin: 0.28rem 0; }
.contacts-jobs-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}
@media (max-width: 820px) {
  .contacts-jobs-grid { grid-template-columns: 1fr; }
  .contacts-jobs-ad { max-width: 420px; }
}
.checkout-box {
  margin-top: 1.5rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.45rem;
}
.checkout-box h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}
.checkout-actions {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
  margin-top: 0.85rem;
}
.cart-block-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 0.4rem;
  text-transform: none;
}
.cart-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cart-seg-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.2;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cart-seg-item input[type="radio"] {
  accent-color: var(--cyan, #06b6d4);
  margin: 0;
}
.cart-seg-item:hover { border-color: var(--cyan, #06b6d4); }
.cart-seg-item:has(input:checked) {
  border-color: var(--cyan, #06b6d4);
  background: #ecfeff;
}
.cart-seg-item.is-disabled,
.cart-seg-item input:disabled + span {
  opacity: 0.5;
  cursor: not-allowed;
}
.cart-select,
.cart-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: #fafafa;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cart-select:focus,
.cart-input:focus { border-color: var(--cyan, #06b6d4); background: #fff; outline: none; }
.cart-requisites {
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px dashed var(--line);
}
.cart-req-head { margin: 0 0 .75rem; }
.cart-req-title {
  margin: 0 0 .25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.cart-req-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .75rem;
  margin: 0 0 .85rem;
}
.cart-req-file-btn {
  cursor: pointer;
  margin: 0;
}
.cart-req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem .75rem;
}
.cart-req-field {
  display: grid;
  gap: .3rem;
  min-width: 0;
}
.cart-req-field > span {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
}
.cart-req-span-2 { grid-column: span 2; }
@media (max-width: 640px) {
  .cart-req-grid { grid-template-columns: 1fr; }
  .cart-req-span-2 { grid-column: span 1; }
}
.btn.is-disabled,
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.meta { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }

@media (max-width: 900px) {
  .contacts-split { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
}

/* SRA3 crop marks */
.sra3-item.has-marks {
  background:
    linear-gradient(#222,#222) top left / 10px 1px no-repeat,
    linear-gradient(#222,#222) top left / 1px 10px no-repeat,
    linear-gradient(#222,#222) top right / 10px 1px no-repeat,
    linear-gradient(#222,#222) top right / 1px 10px no-repeat,
    linear-gradient(#222,#222) bottom left / 10px 1px no-repeat,
    linear-gradient(#222,#222) bottom left / 1px 10px no-repeat,
    linear-gradient(#222,#222) bottom right / 10px 1px no-repeat,
    linear-gradient(#222,#222) bottom right / 1px 10px no-repeat,
    linear-gradient(135deg, rgba(226,24,122,0.18), rgba(0,194,216,0.18));
  box-shadow: inset 0 0 0 1px rgba(34,160,74,.55);
}
.sra3-item.has-marks::after {
  content: "";
  position: absolute;
  left: var(--trim-inset-x, 4%);
  top: var(--trim-inset-y, 4%);
  right: var(--trim-inset-x, 4%);
  bottom: var(--trim-inset-y, 4%);
  border: 1px dashed rgba(34,160,74,.85);
  pointer-events: none;
  box-sizing: border-box;
}
.mm-sra3-canvas { max-height: 280px; margin-top: .5rem; }
.mm-eyelet-row { display: grid; gap: .5rem; margin-top: .5rem; }
.mm-photo-list { display: grid; gap: .5rem; margin-top: .75rem; }
.mm-photo-item {
  display: flex; gap: .5rem; align-items: center;
  padding: .5rem .65rem; border: 1px solid var(--line, #ddd); border-radius: 12px;
  background: var(--paper, #f7f5f0);
}
.mm-photo-item.is-active { border-color: #e2187a; box-shadow: 0 0 0 1px rgba(226,24,122,.25); }
.mm-photo-thumb {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line,#ccc);
  background: #fff; cursor: pointer;
}
.mm-photo-meta { flex: 1; display: grid; gap: .25rem; font-size: .88rem; }
.mm-photo-meta label { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.mm-photo-meta select, .mm-photo-meta input[type=number] {
  padding: .2rem .4rem; border-radius: 8px; border: 1px solid var(--line,#ccc);
}
.lk-flash {
  padding: .75rem 1rem; border-radius: 12px; margin-bottom: 1rem;
  background: #e8f7ee; color: #14532d; border: 1px solid #86efac;
}
.lk-flash.lk-flash-warn {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fdba74;
}
.lk-ready-warn,
.lk-ready-diff {
  color: #c2410c;
  font-weight: 600;
}

/* ——— Личный кабинет: деловой профиль + слайдер ——— */
.lk-section { overflow-x: clip; }
.lk-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.lk-userchip {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}
.lk-userchip > div {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.lk-userchip-ava {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: linear-gradient(145deg, #ffe566, #ffcc00) center/cover no-repeat;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.lk-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
  max-width: 100%;
}
.lk-nav .btn {
  padding: .45rem .85rem;
  font-size: .86rem;
  white-space: nowrap;
}

.lk-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 1.5rem 1.75rem;
  align-items: start;
  margin-bottom: 2.25rem;
}

/* ── Карта клуба привилегий: белый блок, данные рядом с картинкой карты ── */
.lk-loycard-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.25rem; align-items: start; }
.lk-loycard-card {
  background: #fff; border: 1px solid rgba(10, 10, 10, .1); border-radius: 20px;
  padding: 1.1rem 1.2rem 1.25rem; display: grid; gap: 1rem;
  box-shadow: 0 14px 34px -26px rgba(10, 10, 10, .35);
}
.lk-loycard-shot { position: relative; }
.lk-loycard-face { width: 100%; height: auto; display: block; border-radius: 16px; }
.lk-loycard-onto {
  position: absolute; inset: 0; z-index: 2;
  padding: 5.5% 6%;
  display: grid; grid-template-columns: 1fr auto; align-content: space-between;
  gap: .35rem 1rem;
}
.lk-loycard-onto-num {
  grid-column: 2; grid-row: 1;
  align-self: start; text-align: right;
  color: #fff; font-weight: 700; letter-spacing: .16em;
  font-size: clamp(.6rem, 1.35vw, .95rem); font-variant-numeric: tabular-nums;
}
.lk-loycard-onto-pts {
  grid-column: 2; grid-row: 2;
  align-self: center; text-align: right; color: #fff; line-height: 1;
}
.lk-loycard-onto-pts b { display: block; font-size: clamp(1.3rem, 3.6vw, 2.3rem); font-weight: 800; }
.lk-loycard-onto-pts span { display: block; font-size: clamp(.48rem, 1vw, .68rem); color: rgba(255, 255, 255, .75); margin-top: .2rem; }
.lk-loycard-onto-meta {
  grid-column: 2; grid-row: 3;
  display: flex; gap: .85rem; justify-content: flex-end; text-align: right;
}
.lk-loycard-onto-meta i { font-style: normal; display: block; font-size: clamp(.45rem, .95vw, .62rem); color: rgba(255, 255, 255, .7); }
.lk-loycard-onto-meta b { display: block; font-size: clamp(.55rem, 1.2vw, .8rem); color: #fff; font-weight: 800; }
.lk-loycard-scan { border-top: 1px dashed rgba(10, 10, 10, .18); padding-top: .85rem; }
.lk-loycard-scan-t { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted, #6b6b63); margin-bottom: .5rem; font-weight: 700; }
.lk-loycard-scan-box { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.lk-loycard-scan-box img { border: 1px solid rgba(10, 10, 10, .12); border-radius: 12px; background: #fff; padding: 6px; }
.lk-loycard-scan-bar { display: flex; flex-direction: column; gap: .35rem; }
.lk-loycard-scan-bar svg { max-width: 260px; height: 40px; }
.lk-loycard-scan-num { font-size: .86rem; font-weight: 800; letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.lk-loycard-data { display: grid; gap: .45rem; margin-top: 18px; }
.lk-loycard-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .45rem 0; border-bottom: 1px dotted rgba(10, 10, 10, .18);
}
.lk-loycard-k { font-size: .82rem; color: var(--muted, #6b6b63); }
.lk-loycard-v { font-size: .95rem; font-weight: 700; color: var(--ink, #0a0a0a); text-align: right; }
.lk-loycard-mono { letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.lk-loycard-big { font-size: 1.25rem; }
.lk-loycard-big::after { content: ''; }
.lk-loycard-progress { margin-top: .5rem; }
.lk-loycard-progress-top { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted, #6b6b63); margin-bottom: .25rem; }
.lk-loycard-bar { height: 8px; border-radius: 999px; background: #efece4; overflow: hidden; }
.lk-loycard-bar i { display: block; height: 8px; border-radius: 999px; background: #ffcc00; }
.lk-loycard-note { font-size: .8rem; color: var(--muted, #6b6b63); margin-top: .45rem; line-height: 1.5; }
.lk-loycard-side .checkout-box { height: 100%; }
.lk-loycard-list { margin: .5rem 0 1rem 1.1rem; padding: 0; font-size: .86rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) {
  .lk-loycard-wrap { grid-template-columns: 1fr; }
  .lk-loycard-face { width: 100%; }
}
.lk-profile-card {
  display: grid;
  gap: 1rem;
  margin: 0;
}
.lk-avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.lk-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f3f3f3, #e8e8e8) center/cover no-repeat;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}
.lk-avatar.has-img .lk-avatar-fallback { display: none; }
.lk-avatar-fallback {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
}
.lk-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.lk-avatar-btn { cursor: pointer; margin: 0; }
.lk-subhead {
  margin: .35rem 0 0;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -.01em;
}
.lk-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem .75rem;
}
.lk-field {
  display: grid;
  gap: .3rem;
  min-width: 0;
}
.lk-field > span {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .02em;
}
.lk-field .mm-inp,
.lk-profile-card .mm-inp,
.lk-cart-actions select {
  width: 100%;
  padding: .55rem .75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  box-sizing: border-box;
}
.lk-field .mm-inp[readonly] {
  background: var(--paper-2, #f6f6f6);
  color: var(--muted);
}
.lk-span-2 { grid-column: span 2; }
.lk-form-actions {
  display: flex;
  gap: .65rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: .25rem;
}

.lk-col-samples {
  position: sticky;
  top: 5.5rem;
  min-width: 0;
}
.lk-samples-slider {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  gap: 0;
}
.lk-slider-viewport {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #111;
}
.lk-slider-track {
  display: flex;
  height: 100%;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.lk-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}
.lk-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.lk-slide:hover img { transform: scale(1.04); }
.lk-slide-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.15rem 1rem;
  display: grid;
  gap: .2rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.78));
}
.lk-slide-meta strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
}
.lk-slide-meta em {
  font-style: normal;
  font-size: .86rem;
  opacity: .85;
}
.lk-slide-meta b {
  font-size: .9rem;
  color: var(--yellow, #ffcc00);
}
.lk-slide-cta {
  margin-top: .35rem;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
}
.lk-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .65rem .75rem;
  border-top: 1px solid var(--line);
}
.lk-slider-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
  border-radius: 12px;
}
.lk-slider-dots {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  justify-content: center;
}
.lk-slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--line);
  cursor: pointer;
}
.lk-slider-dots button.is-on {
  background: var(--ink);
  transform: scale(1.2);
}
.lk-samples-all {
  display: block;
  padding: 0 .9rem .85rem;
  text-align: right;
}

.lk-svc-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color .15s ease, color .15s ease;
}
.lk-svc-link:hover {
  color: var(--magenta, #e2187a);
  border-bottom-color: currentColor;
}
.lk-mini {
  padding: .35rem .7rem !important;
  font-size: .8rem !important;
}
.lk-danger { color: var(--magenta) !important; }
.lk-row-actions {
  white-space: nowrap;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: flex-end;
}
.lk-cart-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.lk-cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.lk-cart-actions select {
  width: auto;
  min-width: 10rem;
}
.lk-cart-line {
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
}
.lk-cart-line-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.lk-cart-line-row a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.lk-cart-line-row a:hover { color: var(--magenta); }
.lk-detail-head,
.lk-detail-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.lk-detail-actions { margin-top: .75rem; justify-content: flex-start; }
.lk-tile-del {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 6px rgba(10, 10, 10, 0.18);
  cursor: pointer;
  color: #c2185b;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.lk-tile-del:hover {
  background: #c2185b;
  color: #fff;
  transform: scale(1.06);
}
.lk-tile-del:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}
.lk-faq { max-width: 820px; }

@media (max-width: 980px) {
  .lk-main-grid {
    grid-template-columns: 1fr;
  }
  .lk-col-samples {
    position: static;
    order: -1;
  }
  .lk-slider-viewport {
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 720px) {
  .lk-hero .container { padding-bottom: .25rem; }
  .lk-topbar { gap: .75rem; }
  .lk-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: .25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .lk-nav .btn { flex: 0 0 auto; }
  .dash-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .dash-stats .stat:last-child:nth-child(odd) {
    grid-column: span 2;
  }
  .lk-form-grid {
    grid-template-columns: 1fr;
  }
  .lk-span-2 { grid-column: span 1; }
  .lk-avatar { width: 76px; height: 76px; }
  .lk-table-wrap {
    border-radius: 14px;
    margin-left: -.15rem;
    margin-right: -.15rem;
  }
  .lk-table-wrap table.data {
    font-size: .84rem;
  }
  .lk-table-wrap table.data th,
  .lk-table-wrap table.data td {
    padding: .65rem .7rem;
  }
  .lk-row-actions {
    white-space: normal;
    justify-content: flex-start;
  }
  .lk-cart-bar { align-items: stretch; }
  .lk-cart-actions {
    width: 100%;
  }
  .lk-cart-actions select,
  .lk-cart-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
  }
  .upload-zone { padding: 1.35rem 1rem; }
  .layout-tiles {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}
@media (max-width: 420px) {
  .lk-userchip-ava { width: 44px; height: 44px; }
  .lk-slider-viewport { aspect-ratio: 5 / 4; }
  .lk-slide-meta { padding: .85rem .9rem .75rem; }
  .lk-slide-meta strong { font-size: .95rem; }
}
.cart-ready-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 1200;
  max-width: min(92vw, 28rem);
  padding: .85rem 1.15rem;
  border-radius: 14px;
  background: #9a3412;
  color: #fff;
  font-weight: 650;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s ease, opacity .28s ease;
}
.cart-ready-toast.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.admin-order-card {
  margin-top: 1rem; padding: 1rem; border: 1px solid var(--line,#ddd);
  border-radius: 14px; background: var(--panel, #fff); color: inherit;
}
.admin-order-card pre {
  white-space: pre-wrap; word-break: break-word; font-size: .82rem;
  max-height: 220px; overflow: auto; background: rgba(0,0,0,.04); padding: .75rem; border-radius: 8px;
}
.admin-order-files { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.admin-order-files a {
  display: inline-block; padding: .35rem .6rem; border-radius: 8px;
  border: 1px solid var(--line,#ccc); text-decoration: none; font-size: .85rem;
}
