@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-cyrillic-500.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-cyrillic-600.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-cyrillic-700.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/montserrat-cyrillic-800.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/montserrat-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/montserrat-cyrillic-900.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/montserrat-latin-900.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #6B8CFF;
  --blue-light: #EEF1FF;
  --pink: #FF4D7A;
  --pink-dark: #e43764;
  --pink-light: #FFF0F4;
  --bg: #F7F8FF;
  --surface: #FFFFFF;
  --border: #E8EAFF;
  --text: #1A1A2E;
  --text-muted: #6B7399;
  --shadow-sm: 0 2px 8px rgba(107, 140, 255, .08);
  --shadow-md: 0 4px 24px rgba(107, 140, 255, .12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100%;
  padding-top: 72px;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }

.container { width: min(960px, calc(100% - 32px)); margin: 0 auto; }
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header--scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header .container { width: min(1200px, 100%); max-width: 1200px; padding: 0 24px; }
.header__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; color: var(--text); }
.logo__text { font-family: Montserrat, sans-serif; font-weight: 900; font-size: 18px; letter-spacing: -0.03em; color: var(--text); line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; min-width: 0; }
.nav__link {
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--text); background: var(--bg); }
.header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.header .btn--cta { background: var(--pink); color: #fff; }
.header .btn--cta:hover { background: #e6345f; transform: translateY(-2px); box-shadow: 0 8px 24px #ff4d7a59; }
.header .btn--sm { padding: 10px 20px; font-size: 14px; }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  background: #fff;
  gap: 4px;
}
.mobile-nav--open { display: flex; }
.mobile-nav__link {
  font-weight: 500;
  font-size: 16px;
  color: var(--text-muted);
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.mobile-nav__link:hover { background: var(--bg); color: var(--text); }
.mobile-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 14px;
  background: var(--pink);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 15px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.mobile-nav__cta:hover { background: #e6345f; }
/* Mobile menu: vertical list, one link per row, thin dividers, ~48px tap targets. */
#cmsMobileNav {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.mobile-nav__link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 12px 4px;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-nav__link:last-child { border-bottom: none; }
.mobile-nav__link:hover { background: transparent; color: var(--pink); }
html.is-framed body { padding-top: 0; }
html.is-framed .header { display: none; }
.main { padding: 24px 0 48px; }
.footer { border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; padding: 18px 0 28px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; }
.footer__links a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__links a:hover { color: var(--blue); }
.legal { line-height: 1.55; }
.legal p { margin: 0 0 14px; overflow-wrap: break-word; }
.legal p:last-child { margin-bottom: 0; }

h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 0; }
.lead { color: var(--text-muted); margin: 0 0 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.crumbs button { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; }

.grid { display: grid; gap: 14px; }
.grid.cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid.groups { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
}
.card.pad { padding: 18px; }
.cat-card, .group-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat-card:hover, .group-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-card { gap: 14px; padding: 16px 16px 20px; }
.cat-card__art {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #f4f6ff;
  object-fit: cover;
}
.cat-card strong { font-size: 22px; }
.cat-card span { font-size: 15px; line-height: 1.45; }
.cat-card span, .muted { color: var(--text-muted); }
.cat-card:focus-visible { outline: 3px solid rgba(255, 77, 122, .45); outline-offset: 3px; }
.group-card { align-items: center; text-align: center; min-height: 148px; justify-content: center; }
.group-card img, .ph {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--blue-light);
}
.ph { display: grid; place-items: center; font-weight: 700; color: var(--blue); }

.search {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 16px;
  margin: 8px 0 16px;
  outline: none;
  font-size: 16px;
}
.search:focus, .field input:focus, .field select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 77, 122, .15); }

.hero-card { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; padding: 16px; margin-bottom: 16px; }
.hero-card img { width: 88px; height: 88px; border-radius: 18px; object-fit: cover; background: var(--blue-light); }
.modes { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.modes button, .product, .btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px 14px;
  cursor: pointer;
}
.modes button.active { background: var(--pink-light); border-color: var(--pink); color: var(--pink-dark); font-weight: 600; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  font-size: 16px;
}
.products { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; padding-right: 2px; }
.product {
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  align-items: center;
}
.product.active { border-color: var(--pink); background: var(--pink-light); }
.product:disabled { opacity: .55; cursor: default; }
.product b { font-weight: 600; }
.price { color: var(--text); white-space: nowrap; font-weight: 700; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 8px 0 16px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--pink); }

.btn-primary {
  background: var(--pink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
}
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-ghost { display: inline-flex; justify-content: center; width: 100%; margin-top: 8px; text-decoration: none; color: var(--text); }

.banner, .error {
  background: var(--pink-light);
  color: var(--pink-dark);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.summary { display: flex; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 700; margin: 8px 0 14px; }
.qr-wrap { display: grid; place-items: center; background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.dl { display: grid; gap: 8px; margin: 12px 0; }
.dl div { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.dl dt { color: var(--text-muted); font-size: 12px; }
.dl dd { margin: 2px 0 0; font-weight: 650; word-break: break-word; }
pre.instruction {
  white-space: pre-wrap;
  font-family: inherit;
  background: var(--bg);
  border-radius: 12px;
  padding: 12px;
  margin: 0;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 14px;
}
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-actions .btn { text-decoration: none; }

@media (max-width: 1180px) {
  .header__inner { gap: 16px; }
  .nav__link { padding: 8px 8px; font-size: 14px; }
}
@media (max-width: 1024px) {
  .nav, .header__actions { display: none; }
  .menu-toggle { display: flex; }
  .header .container { padding: 0 20px; }
}
@media (max-width: 640px) {
  h1 { font-size: 24px; }
  .grid.cats { grid-template-columns: 1fr; }
  .hero-card { grid-template-columns: 64px 1fr; }
  .hero-card img { width: 64px; height: 64px; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skeleton {
  min-height: 148px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #eef1ff 25%, #f7f8ff 37%, #eef1ff 63%);
  background-size: 400% 100%;
  animation: skeleton 1.2s ease-in-out infinite;
}
.skeleton.hero { min-height: 120px; margin-bottom: 16px; }
.skeleton.line { min-height: 48px; margin-bottom: 12px; }
@keyframes skeleton {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}
