:root {
  --ink: #161616;
  --muted: #626262;
  --line: #dddddd;
  --paper: #f7f7f4;
  --panel: #ffffff;
  --accent: #c61f2b;
  --accent-dark: #8f1019;
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  width: 100%;
  max-width: 100vw;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(247,247,244,.96);
  backdrop-filter: blur(8px);
  max-width: 100vw;
  overflow: hidden;
}
.brand { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
}
.nav a, .nav span { overflow-wrap: anywhere; }

.topbar.is-bounded {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px clamp(18px, 4vw, 56px);
  background: rgba(247,247,244,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  overflow: visible;
}

.topbar.is-bounded + .wrap.product-guide {
  padding-top: 92px;
}

main.bounded > .hero,
main.bounded > .wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
}
.topbar.is-bounded > .topbar-side {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.topbar.is-bounded > .topbar-side-end {
  margin-left: auto;
  justify-content: flex-end;
}
.topbar.is-bounded .product-card-nav { flex-wrap: nowrap; }

.catalog-topbar {
  justify-content: space-between;
  min-height: 58px;
}

.catalog-topbar > .topbar-side:first-child {
  flex: 1 1 auto;
  width: 100%;
}

.catalog-topbar > .topbar-side-end {
  flex: 0 0 auto;
  margin-left: 0;
}

.catalog-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 38px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.catalog-topbar .lang-switch {
  margin-left: 0;
}

.catalog-topbar > .topbar-side-end {
  flex: 0 0 auto;
}

.catalog-nav {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 56px) 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
  border-bottom: 1px solid var(--line);
}

.catalog-nav::-webkit-scrollbar {
  display: none;
}

.catalog-nav.is-dragging {
  cursor: grabbing;
}

.catalog-nav a {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
}

.catalog-nav a:hover,
.catalog-nav a:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
  outline: none;
}

.catalog-main {
  padding-top: 78px;
}

.catalog-main .section {
  scroll-margin-top: 94px;
}

.catalog-main .hero {
  padding-top: clamp(18px, 2.5vw, 32px);
  padding-bottom: 20px;
}

.catalog-main .hero h1 {
  font-size: clamp(30px, 4vw, 50px);
}

.catalog-main .hero .hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 8px;
}

.hero-label {
  color: var(--muted);
  font-size: 16px;
}

.hero-map-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero-map-link:hover {
  border-color: var(--ink);
  background: rgba(22, 22, 22, .04);
}

.hero-map-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-about {
  margin: 0;
  max-width: 880px;
}

.hero-about[open] {
  flex-basis: 100%;
}

.hero-about > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.hero-about > summary::-webkit-details-marker { display: none; }
.hero-about-icon { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-about > summary::after { content: "▾"; margin-left: 7px; font-size: 11px; }
.hero-about[open] > summary::after { transform: rotate(180deg); }
.catalog-main .hero .hero-about > p { margin: 10px 0 0; font-size: 16px; }
.hero-qr-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; max-width: 440px; }
.hero-qr { flex: 0 0 130px; width: 130px; margin: 0; }
.hero-qr img { display: block; width: 130px; height: 130px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.hero-qr-copy { min-width: 0; }
.catalog-main .hero .hero-qr-copy > p { margin: 0; font-size: 14px; }
.catalog-main .hero .hero-qr-copy > p + p { margin-top: 6px; }

.catalog-filters { display: grid; grid-template-columns: 166px minmax(0, 1fr); gap: 12px 18px; max-width: 1080px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 56px) 18px; }
.catalog-search { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.catalog-search:focus-within { border-color: var(--ink); }
.catalog-search svg { width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.catalog-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.catalog-search input::placeholder { color: var(--muted); }
.catalog-muscle-filters { grid-column: 2; grid-row: 2; align-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.catalog-muscle-preview { grid-column: 1; grid-row: 2; align-self: start; justify-self: start; box-sizing: border-box; width: 166px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-align: center; }
.catalog-muscle-preview figcaption { min-height: 18px; margin-bottom: 3px; color: var(--muted); font-size: 12px; font-weight: 800; }
.catalog-muscle-preview .muscle-figure { width: 100%; max-width: 132px; margin: 0 auto; }
.catalog-filter-label { color: var(--muted); font-size: 13px; font-weight: 800; }
.catalog-filter-chip { min-height: 32px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.catalog-filter-chip:hover, .catalog-filter-chip:focus-visible { border-color: var(--ink); color: var(--ink); outline: none; }
.catalog-filter-chip.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.catalog-muscle-more { position: relative; }
.catalog-muscle-more > summary { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; list-style: none; }
.catalog-muscle-more > summary::-webkit-details-marker { display: none; }
.catalog-muscle-more > summary::after { content: "▾"; margin-left: 7px; font-size: 11px; }
.catalog-muscle-more[open] { flex-basis: 100%; }
.catalog-muscle-more[open] > summary { border-color: var(--ink); color: var(--ink); }
.catalog-muscle-more[open] > summary::after { transform: rotate(180deg); }
.catalog-muscle-more-options { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.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; }
.catalog-card-shell.is-search-hidden,
.grid > .card.is-search-hidden,
.section.is-search-hidden { display: none !important; }
.catalog-card-shell[hidden],
.catalog-main .section[hidden] { display: none !important; }

.catalog-main.is-availability-filtered .catalog-card-shell:not(.is-available) {
  display: none;
}

.availability-filter-toggle {
  margin-left: auto;
  white-space: nowrap;
}

.catalog-actions-fixed {
  position: fixed;
  top: 10px;
  right: max(14px, calc((100vw - 1080px) / 2 + 56px));
  z-index: 70;
  display: flex;
  gap: 8px;
  align-items: center;
}

.catalog-user-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}

.catalog-user-toggle:hover,
.catalog-user-toggle:focus-visible {
  color: var(--ink);
  border-color: var(--ink);
  outline: none;
}

.catalog-user-toggle.is-admin {
  color: #fff;
  background: #2a9d4a;
  border-color: #2a9d4a;
}

.catalog-user-toggle.is-admin:hover,
.catalog-user-toggle.is-admin:focus-visible {
  background: #228a3f;
  border-color: #228a3f;
  color: #fff;
}

.topbar-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s;
}
.topbar-home:hover,
.topbar-home:focus-visible { background: var(--paper); outline: none; }
.topbar-home svg { display: block; }

.lang-switch { position: relative; flex-shrink: 0; }
.lang-switch > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  background: var(--panel);
  user-select: none;
  white-space: nowrap;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::after {
  content: "▾";
  font-size: 10px;
  color: var(--muted);
}
.lang-switch[open] > summary { border-color: var(--ink); }
.lang-switch ul {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 160px;
  max-width: min(220px, calc(100vw - 32px));
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  z-index: 10;
  overflow: hidden;
}
.lang-switch li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink);
}
.lang-switch li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang-switch .flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  flex: 0 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(22, 22, 22, .18), 0 1px 2px rgba(22, 22, 22, .08);
}
.lang-switch > summary .lang-code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
}
.lang-switch li.is-active { font-weight: 700; background: var(--paper); }
.lang-switch li.is-disabled { color: var(--muted); cursor: not-allowed; }
.lang-switch .lang-status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.hero {
  padding: clamp(36px, 7vw, 90px) clamp(18px, 4vw, 56px) 28px;
  border-bottom: 1px solid var(--line);
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}
.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(34px, 6vw, 76px);
  line-height: .98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.hero p { width: 100%; max-width: 880px; margin: 22px 0 0; color: var(--muted); font-size: 18px; overflow-wrap: anywhere; word-break: normal; }
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.stat {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 12px 16px;
}
.stat b { display: block; font-size: 22px; }
.wrap { width: 100%; max-width: 100vw; padding: 34px clamp(18px, 4vw, 56px) 64px; overflow: hidden; }
.section { margin: 0 0 42px; }
.section h2 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  font-size: 24px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.card {
  display: grid;
  grid-template-rows: 190px auto;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  text-decoration: none;
}
.catalog-card-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}
.catalog-card-shell .card {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
}
.catalog-card-availability {
  align-self: flex-start;
  margin: 0 14px 14px;
}
.availability-toggle-compact {
  min-height: 32px;
  padding: 5px 8px;
  gap: 6px;
  font-size: 12px;
}
.availability-toggle-compact .switch {
  width: 30px;
  height: 17px;
}
.availability-toggle-compact .switch::after {
  width: 13px;
  height: 13px;
}
.availability-toggle-compact.is-available .switch::after {
  transform: translateX(13px);
}
.card img, .product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eeeeeb;
}
.card-body { padding: 14px; }
.code { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .06em; }
.card h3 { margin: 5px 0 8px; font-size: 17px; line-height: 1.25; }
.ru { color: var(--ink); font-weight: 700; }
.meta { color: var(--muted); font-size: 14px; }
.product-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 520px);
  gap: clamp(20px, 4vw, 46px);
  align-items: start;
}
.product-media {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #eeeeeb;
}
.product-info h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 58px); line-height: 1; }
.subtitle { margin: 8px 0 20px; color: var(--muted); font-size: 19px; line-height: 1.3; }
.product-guide {
  display: block;
  max-width: 1080px;
  margin: 0 auto;
  min-width: 0;
}
.product-overview {
  display: block;
  margin-top: 24px;
  min-width: 0;
}
.media-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  min-width: 0;
}
.product-hero {
  position: relative;
  min-height: 360px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #eeeeeb;
  min-width: 0;
}
.product-hero img,
.gallery-thumb img,
.muscle-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
.gallery-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-height: 560px;
  overflow-y: auto;
  align-self: start;
}
.gallery-thumb {
  display: block;
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #eeeeeb;
  cursor: pointer;
}
.gallery-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(198,31,43,.15);
}
.guide-header {
  padding-bottom: 22px;
  border-bottom: 2px solid var(--ink);
}
.product-title-block {
  max-width: none;
}
.guide-header h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.14;
}
.guide-lead {
  margin: 16px 0 0;
  width: 100%;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.quick-fact {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.quick-fact span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 13px;
}
.quick-fact strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}
.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}
.availability-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.availability-toggle.is-readonly {
  cursor: default;
}
.availability-filter-toggle:not(.is-js-ready) .switch,
.availability-filter-toggle:not(.is-js-ready) .switch::after {
  transition: none;
}
.availability-toggle.is-editable {
  border-color: #2a9d4a;
}
.availability-toggle.is-editable:hover,
.availability-toggle.is-editable:focus-visible {
  background: #ecf7ef;
  outline: none;
}
.availability-toggle:disabled {
  opacity: 1;
}
.availability-toggle .switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #b8b8b8;
  transition: background .2s ease;
}
.availability-toggle .switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.availability-toggle.is-available .switch {
  background: #1f8a4c;
}
.availability-toggle.is-available .switch::after {
  transform: translateX(16px);
}
.product-card-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.product-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.product-nav-link.is-disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: .55;
}
.product-nav-link-icon {
  min-height: 38px;
  width: 38px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}
.top-highlights {
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--ink);
}
.top-highlights li {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.guide-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.guide-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.guide-section > p,
.guide-section .guide-list,
.guide-section .steps {
  max-width: 860px;
}
.guide-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
}
.guide-section p {
  margin: 0;
  color: var(--muted);
}
.guide-list,
.steps {
  margin: 0;
  padding-left: 22px;
}
.guide-list li,
.steps li {
  margin: 8px 0;
}
.muscle-grid {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  max-width: 860px;
}
.muscle-card {
  margin: 0;
  width: min(100%, 360px);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}
.muscle-card img,
.muscle-figure {
  height: auto;
}
.muscle-figure {
  position: relative;
  display: inline-block;
  width: min(100%, 256px);
  aspect-ratio: 256 / 238;
}
.muscle-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.muscle-figure .muscle-layer {
  position: absolute;
  inset: 0;
  opacity: .5;
  pointer-events: none;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-note {
  margin: 14px 0 8px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

.catalog-card-shell > .card[id] {
  scroll-margin-top: 92px;
}

.guide-section.wide {
  grid-column: 1 / -1;
}
.guide-section.video-section {
  align-self: start;
}
.source.compact {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
.facts {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}
.fact {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.fact span:first-child { color: var(--muted); }
.source {
  margin-top: 26px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: #fff;
  overflow-wrap: anywhere;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 700;
}
.button.secondary { background: var(--accent-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.auth-form { max-width: 420px; }
.auth-form .field { margin: 0 0 16px; }
.auth-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}
.auth-form input[type="text"],
.auth-form input[type="password"] {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s;
}
.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus { border-color: var(--ink); }

.notice {
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.45;
  border: 1px solid transparent;
  border-left-width: 4px;
}
.notice strong { font-weight: 700; }
.notice-warning {
  background: #fff7e6;
  border-color: #f0c674;
  border-left-color: #d99b3a;
  color: var(--ink);
}
.notice-error {
  background: #fdecee;
  border-color: #f3b8be;
  border-left-color: var(--accent);
  color: var(--accent-dark);
}
.notice-success {
  background: #e8f6ec;
  border-color: #a8d6b2;
  border-left-color: #2f8d3f;
  color: #1d5e29;
}
footer { padding: 24px clamp(18px, 4vw, 56px); color: var(--muted); border-top: 1px solid var(--line); text-align: center; }

@media (max-width: 760px) {
  .catalog-filters { grid-template-columns: 112px minmax(0, 1fr); gap: 10px 12px; }
  .catalog-muscle-preview { width: 112px; padding: 7px; border-radius: 10px; }
  .catalog-muscle-preview figcaption { margin-bottom: 1px; font-size: 10px; }
  .catalog-muscle-preview .muscle-figure { max-width: 92px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar.is-bounded {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    max-width: 100vw;
    padding-inline: 14px;
    gap: 6px;
  }
  .topbar.is-bounded > .topbar-side { gap: 6px; }
  .topbar.is-bounded .availability-toggle {
    padding: 4px 8px;
    font-size: 12px;
    gap: 6px;
    min-height: 34px;
  }
  .topbar.is-bounded .availability-toggle [data-availability-status] { white-space: nowrap; }
  .topbar.is-bounded .availability-toggle .switch { width: 32px; height: 18px; }
  .topbar.is-bounded .availability-toggle .switch::after { width: 14px; height: 14px; top: 2px; left: 2px; }
  .topbar.is-bounded .availability-toggle.is-available .switch::after { transform: translateX(14px); }
  .topbar.is-bounded .product-card-nav { gap: 4px; }
  .topbar.is-bounded .product-nav-link-icon { width: 34px; min-height: 34px; font-size: 16px; }
  .topbar.is-bounded .topbar-home { width: 34px; height: 34px; }
  .topbar.is-bounded .lang-switch > summary { padding: 4px 8px; gap: 4px; min-height: 34px; }
  .topbar.is-bounded .lang-switch > summary .lang-code { display: none; }
  .catalog-topbar { min-height: 54px; }
  .topbar.is-bounded.catalog-topbar {
    position: fixed;
    flex-wrap: nowrap;
    gap: 6px 8px;
    left: 0;
    right: 0;
    transform: none;
    width: 100vw;
    padding-right: 64px;
  }
  .topbar.is-bounded.catalog-topbar > .topbar-side:first-child {
    flex: 1 1 auto;
    width: 100%;
  }
  .catalog-brand {
    min-height: 34px;
    max-width: 54px;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
  }
  .catalog-actions-fixed {
    top: 10px;
    right: 14px;
    gap: 6px;
  }
  .catalog-user-toggle {
    width: 34px;
    height: 34px;
  }
  .catalog-user-toggle svg {
    width: 18px;
    height: 18px;
  }
  .availability-filter-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 4px 8px;
    font-size: 12px;
    overflow: visible;
  }
  .availability-filter-toggle [data-availability-filter-status] {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .availability-filter-toggle .switch {
    width: 32px;
    height: 18px;
  }
  .availability-filter-toggle .switch::after {
    width: 14px;
    height: 14px;
  }
  .availability-filter-toggle.is-available .switch::after {
    transform: translateX(14px);
  }
  .catalog-nav {
    max-width: 100vw;
    padding: 10px 14px 14px;
  }
  .catalog-nav a {
    padding: 7px 10px;
    font-size: 11px;
  }
  .catalog-main { padding-top: 64px; }
  .catalog-main .section { scroll-margin-top: 76px; }
  .catalog-card-availability {
    margin: 0 14px 14px;
  }
  .catalog-card-availability [data-availability-status] {
    display: none;
  }
  .wrap { padding-inline: 18px 50px; }
  .guide-header h1 { max-width: 100%; }
  .guide-lead { max-width: 100%; }
  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px 12px;
  }
  .nav a, .nav span {
    min-width: 0;
    white-space: normal;
  }
  .hero h1,
  .hero p {
    max-width: 320px;
  }
  .product-layout { grid-template-columns: 1fr; }
  .product-overview,
  .guide-content { grid-template-columns: 1fr; }
  .media-stack { grid-template-columns: 1fr; }
  .product-media { min-height: 300px; }
  .product-hero { min-height: 300px; }
  .quick-facts,
  .muscle-grid { grid-template-columns: 1fr; }
  .product-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .product-nav-link-icon { width: 38px; }
  .gallery-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }
  .fact { grid-template-columns: 1fr; gap: 2px; }
  .grid { grid-template-columns: 1fr; }
}
