:root {
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --soft: #f7f8fa;
  --red: #ed1c24;
  --white: #fff;
  --placeholder: #98a2b3;
  --danger: #8b1e1e;
  --ok: #1f6b45;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 8px 28px rgba(17, 24, 39, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--ink);
  background: var(--white);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.site-header {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.header-inner, .footer-inner, .wrap {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand-mark {
  width: 176px;
  height: auto;
}
.brand-text { display: none; }

.header-search {
  display: flex;
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 420px;
  gap: 8px;
  align-items: center;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.header-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
}
.header-search input::placeholder { color: var(--placeholder); }
.header-search button {
  appearance: none;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font: 800 13px/1 var(--font);
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a:focus,
.nav a[aria-current="page"] {
  border-color: var(--red);
  outline: none;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
}
.lang-switch button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 700 12px/1 var(--font);
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.lang-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.12);
}
.lang-switch button[aria-pressed="true"] .lang-flag,
.admin-tabs button.is-active .lang-flag {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}
html[data-lang="cs"] .pl,
html[data-lang="cs"] .en,
html[data-lang="pl"] .cs,
html[data-lang="pl"] .en,
html[data-lang="en"] .cs,
html[data-lang="en"] .pl { display: none !important; }
.notice-download { margin-top: 28px; }
.btn svg { width: 16px; height: 16px; }
.notice-page {
  padding: 48px 0 64px;
}
.notice-page h1 {
  max-width: none;
  width: 100%;
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.03em;
}
.notice-page .lead {
  max-width: none;
  margin: 16px 0 22px;
}
.notice-body {
  max-width: none;
}
.notice-body .notice-lede {
  margin: 0 0 0;
  max-width: none;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}
.notice-body > p + p {
  margin-top: 0.7rem;
}
.notice-body > p + h2,
.notice-body > table + h2,
.notice-body > ol + h2,
.notice-body > ul + h2 {
  margin-top: 2rem;
}
.notice-body > h2 {
  margin-top: 2rem;
  margin-bottom: 0.9rem;
}
.notice-body > table,
.notice-body > ol,
.notice-body > ul {
  margin: 0;
}
.notice-body table {
  min-width: 0;
}
.notice-body th,
.notice-body td:first-child {
  width: 22%;
  max-width: 240px;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 10px;
  font: 700 13px/1 var(--font);
}

.hero {
  padding: 72px 0 40px;
  background: var(--white);
  color: var(--ink);
}
.hero h1,
h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero p.lead,
.lead {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}
.hero-split {
  display: flex;
  align-items: flex-start;
  gap: 18px 36px;
  flex-wrap: wrap;
}
.hero-title {
  flex: 0 0 auto;
}
.hero-title .kicker {
  margin-bottom: 12px;
}
.hero .hero-split > .lead {
  margin: 0;
  padding-top: 0;
  flex: 1 1 280px;
  max-width: 42rem;
}
.kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-bar { padding: 26px 0 8px; }
.search-panel {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 760px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
  margin: 0;
}
.search-panel input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
}
.search-panel input::placeholder { color: var(--placeholder); }
.search-hint {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.search-panel button,
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font: 800 14px/1 var(--font);
  cursor: pointer;
}
.search-panel button {
  flex: 0 0 auto;
  min-height: 42px;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.search-panel button:hover,
.search-panel button:focus { opacity: 0.9; outline: none; }
.btn:hover, .btn:focus { background: var(--ink); color: #fff; outline: none; }
.btn-gold,
.btn-light,
.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn-gold:hover, .btn-light:hover, .btn-primary:hover,
.btn-gold:focus, .btn-light:focus, .btn-primary:focus {
  filter: brightness(0.93);
  background: var(--red);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.section {
  padding: 34px 0 54px;
  scroll-margin-top: 24px;
}
.section + .section,
.section.lined { border-top: 1px solid var(--line); }
.section h2 {
  margin: 0 0 24px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }

.grid-3, .grid-2, .cards {
  display: grid;
  gap: 16px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card p, .card li { color: var(--muted); }
.muted { color: var(--muted); }
.gold-line { border-top: 0; }

.icon-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 10px;
  background: var(--soft);
  font-weight: 900;
  font-size: 12px;
}

.product-list { display: grid; gap: 16px; }
a.product-card.pdf-list-card {
  grid-template-columns: 1fr;
}
a.product-card {
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
a.product-card:hover,
a.product-card:focus {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  outline: none;
}
a.product-card h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 32px);
}
.prose h2 { margin: 2rem 0 0.9rem; }
.prose ol, .prose ul { color: var(--muted); padding-left: 1.2rem; margin: 0; }
.product-card {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 46px;
  align-items: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft);
}
.product-media {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 4 / 3;
}
.product-media-multi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  aspect-ratio: auto;
}
.product-media-multi img {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.product-card .codes { font-weight: 700; color: var(--ink); }
.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
}
.spec {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.spec b { display: block; margin-bottom: 2px; font-size: 13px; }
.spec span { color: var(--muted); font-size: 14px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.badge-warn {
  border-color: #f3c4c4;
  background: #fff5f5;
  color: var(--red);
}

.prose { max-width: none; }
.prose h2, .prose h3 {
  margin: 2rem 0 0.9rem;
  max-width: none;
}
.prose p { margin: 0 0 1rem; color: var(--muted); max-width: none; }
.prose p:last-child { margin-bottom: 0; }
.table-wrap,
.prose .table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 0 0 18px;
}
.prose table,
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 14px;
}
.prose th, .prose td,
.table-wrap th, .table-wrap td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.prose th, .table-wrap th { background: var(--soft); font-size: 13px; }
.prose td:first-child,
.table-wrap td:first-child { width: 27%; font-weight: 700; color: var(--ink); }
.prose td:not(:first-child),
.table-wrap td:not(:first-child) { color: var(--muted); }

.note {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--red);
  background: var(--soft);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  font-size: 14px;
}
.note a { font-weight: 800; color: var(--ink); }

.steps { display: grid; gap: 12px; counter-reset: wgstep; }
.step {
  position: relative;
  padding: 18px 18px 18px 62px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.step::before {
  counter-increment: wgstep;
  content: counter(wgstep);
  position: absolute;
  left: 18px;
  top: 17px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.step b { display: block; margin-bottom: 2px; }
.step span, .step p { color: var(--muted); font-size: 14px; margin: 0; }

.empty {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 14px;
}
.empty a { font-weight: 800; }
.empty h2, .empty h1 { font-size: 18px; margin: 0 0 8px; }

.support {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
}
.support h2 { margin: 0 0 8px; color: #fff; font-size: clamp(22px, 3vw, 32px); }
.support p { color: #cfd4dc; margin: 0; }
.support a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer {
  margin-top: 0;
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 12px;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.site-footer a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer-brand,
.footer-brand.brand {
  display: block;
  margin: 0 0 12px;
}
.footer-brand .brand-mark { width: 148px; display: block; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--ink);
}
.legal { font-size: 12px; color: var(--muted); text-align: center; }
.footer-legal-rule {
  width: 100%;
  margin: 0 0 16px;
  border: 0;
  border-top: 1px solid var(--line);
}

.cookie-bar {
  position: sticky;
  bottom: 0;
  background: var(--ink);
  color: #cfd4dc;
  padding: 0.9rem 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  z-index: 20;
  font-size: 13px;
}
.cookie-bar a { color: #fff; font-weight: 800; }
.cookie-bar[hidden] { display: none !important; }
[data-tab-panel][hidden] { display: none !important; }

.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--soft); }
.admin-nav {
  background: var(--ink);
  color: #ddd;
  padding: 1.2rem 1rem;
}
.admin-nav .brand {
  color: #fff;
  margin-bottom: 1rem;
  display: inline-block;
  background: #fff;
  padding: 10px 12px;
  border-radius: 10px;
}
.admin-nav .brand-mark { width: 140px; }
.admin-nav a {
  display: block;
  color: #ddd;
  text-decoration: none;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 0;
}
.admin-nav a:hover:not(.brand),
.admin-nav a[aria-current="page"] { background: #1f2937; color: #fff; }
.admin-nav .brand:hover,
.admin-nav .brand:focus {
  background: #fff;
  color: inherit;
}
.admin-main { padding: 1.4rem; }
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.table th, .table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; }
.form-grid { display: grid; gap: 0.8rem; }
[hidden] { display: none !important; }
label { font-weight: 700; font-size: 0.88rem; display: block; margin-bottom: 0.25rem; }
input:not([type]),
input[type=text], input[type=password], input[type=email], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid #c5c9d1;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
  pointer-events: auto;
  color: var(--ink);
}
.search-panel input[type=search] { width: auto; }
.header-search input[type=search] {
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
textarea { min-height: 110px; }
.flash { padding: 0.8rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.flash-success { background: #e7f6ee; }
.flash-danger { background: #fff5f5; color: var(--danger); }
.login-box { max-width: 420px; margin: 12vh auto; }
.login-box > img {
  display: block;
  width: 120px;
  margin: 0 auto 1.5rem;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.admin-head h1 { margin: 0 0 0.35rem; }
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 1rem;
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--soft);
  padding: 10px 0;
}
.admin-tabs button {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.admin-tabs button.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-danger {
  background: #9b1c1c;
  border: 1px solid #9b1c1c;
  color: #fff;
}
.btn-danger:hover, .btn-danger:focus {
  filter: brightness(1.08);
  color: #fff;
}
.table-actions, .code-row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.table-actions form, .admin-head form { margin: 0; }
.code-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.code-row > input[type=hidden] { position: absolute; width: 0; height: 0; overflow: hidden; }
.code-row-actions { flex-direction: column; align-items: flex-start; padding-bottom: 8px; }
.danger-label { color: var(--danger); font-weight: 600; }
.inline-edit { display: grid; gap: 8px; }
.inline-edit input, .inline-edit select { min-width: 0; }
textarea.admin-html {
  min-height: 480px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
}
.form-grid > .btn,
.form-grid > button.btn,
.form-grid > p .btn,
.inline-edit .btn {
  justify-self: start;
  width: auto;
}
.file-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.file-pick input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.file-pick .btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 16px;
  pointer-events: none;
}
.file-pick-name { font-weight: 600; }
input[type=checkbox], input[type=radio] { width: auto; margin-right: 0.35rem; }

.pe-head-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.pe-form { max-width: 1120px; }
.pe-toolbar {
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--soft);
  padding: 8px 0 12px;
  margin: 0 0 8px;
  border-bottom: 1px solid var(--line);
}
.pe-form .admin-tabs {
  position: static;
  margin: 0;
  padding: 0;
  background: transparent;
}
.pe-toolbar-meta {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.pe-toolbar-meta label { margin: 0; font-size: 12px; color: var(--muted); }
.pe-toolbar-meta select { min-width: 160px; padding: 0.45rem 0.6rem; }

.pe-page {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.pe-hero, .pe-section { padding: 28px 32px 36px; }
.pe-section { border-top: 1px solid var(--line); }
.pe-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pe-kicker-input {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 2px 8px;
  border: 1px dashed transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pe-kicker-input:hover,
.pe-kicker-input:focus {
  border-color: #c5c9d1;
  background: #fff;
}
.pe-h1, .pe-h2, .pe-h3, .pe-summary, .pe-lead, .pe-intro, .pe-static-h2 {
  width: 100%;
  border: 1px dashed transparent;
  background: transparent;
  border-radius: 8px;
  padding: 4px 8px;
}
.pe-h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  min-height: 0;
}
.pe-h2, .pe-static-h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}
.pe-static-h2 { padding-left: 0; }
.pe-h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.pe-summary { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.pe-lead { min-height: 72px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.pe-intro { min-height: 72px; color: var(--muted); }
.pe-h1:hover, .pe-h2:hover, .pe-h3:hover, .pe-summary:hover, .pe-lead:hover, .pe-intro:hover,
.pe-h1:focus, .pe-h2:focus, .pe-h3:focus, .pe-summary:focus, .pe-lead:focus, .pe-intro:focus {
  border-color: #c5c9d1;
  background: #fff;
}
.pe-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.pe-pill, .pe-pill-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}
.pe-pill input[type=text] {
  width: 150px;
  border: 0;
  background: transparent;
  font-weight: 700;
  padding: 0;
}

.pe-product {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}
.pe-media img {
  width: 100%;
  border-radius: 12px;
  background: #fff;
  display: block;
  margin-bottom: 10px;
}
.pe-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  margin-top: 12px;
}
.pe-spec {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  font-size: 13px;
}
.pe-spec-title {
  display: block;
  font-weight: 800;
  margin-bottom: 2px;
}
.pe-spec-line { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; margin-bottom: 6px; }
.pe-spec-prefix { margin-top: 8px; }
.pe-spec-actions { display: flex; gap: 12px; font-size: 12px; margin-top: 6px; }
.pe-row-del {
  margin-top: 8px;
  font-size: 12px;
  min-height: 32px;
  padding: 4px 10px;
}
.pe-links { display: grid; gap: 8px; margin-top: 14px; }
.pe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; counter-reset: pecat; }
.pe-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.pe-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--soft);
  font-weight: 900;
  font-size: 12px;
}
.pe-card[data-cat-row] .pe-icon::before {
  counter-increment: pecat;
  content: counter(pecat, decimal-leading-zero);
}
.pe-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--red);
  background: var(--soft);
  border-radius: 0 12px 12px 0;
}
.pe-table { width: 100%; border-collapse: collapse; }
.pe-table th, .pe-table td { border-bottom: 1px solid var(--line); padding: 12px; vertical-align: top; text-align: left; }
.pe-table th { background: var(--soft); font-size: 13px; }
.pe-table td:first-child { width: 28%; font-weight: 700; }
.pe-table th:last-child,
.pe-table td:last-child { width: 88px; font-weight: 400; }
.pe-steps { display: grid; gap: 10px; counter-reset: pestep; }
.pe-step {
  position: relative;
  padding: 14px 14px 14px 56px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pe-step::before {
  counter-increment: pestep;
  content: counter(pestep);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.pe-url { display: block; margin-top: 14px; }
.pe-support {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
}
.pe-support h2,
.pe-support-title { margin: 0 0 8px; color: #fff; font-size: 22px; font-weight: 800; width: 100%; border: 1px dashed rgba(255,255,255,.35); background: transparent; border-radius: 8px; padding: 4px 8px; }
.pe-support-title:hover,
.pe-support-title:focus { border-color: rgba(255,255,255,.7); background: transparent; color: #fff; }
.pe-support textarea { min-height: 64px; }
.pe-support span,
.pe-support-mail {
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
  background: transparent;
  border: 1px dashed rgba(255,255,255,.35);
  border-radius: 8px;
  padding: 6px 10px;
}
.pe-footer-note { padding: 16px 32px 28px; text-align: center; }
.pe-footer-note textarea { text-align: center; min-height: 64px; }
.pe-extra { margin: 0; padding: 16px 32px 28px; border-top: 1px solid var(--line); }
.pe-extra summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.pe-extra-grid { display: grid; gap: 12px; margin-top: 14px; }
.pe-save {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 12px 0;
  background: linear-gradient(transparent, var(--soft) 30%);
}
.pe-hint { color: var(--muted); font-size: 13px; margin: 0 0 12px; }

.da-stage {
  background: #e9eaed;
  padding: 20px 16px 56px;
}
.da-toolbar {
  width: min(920px, 100%);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.da-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}
.da-crumbs a { color: #374151; text-decoration: none; }
.da-crumbs a:hover { text-decoration: underline; }
.da-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.da-toolbar-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 8px;
}
.da-toolbar-actions .btn svg { width: 16px; height: 16px; }

.da-doc {
  width: min(920px, 100%);
  margin: 0 auto;
  background: #fff;
  color: #111;
  font: 13.5px/1.45 Arial, Helvetica, sans-serif;
  padding: 0 36px 28px;
  border: 1px solid #d7d7d7;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}
.da-doc-rule {
  height: 3px;
  background: #ed1c24;
  margin: 0 -36px 18px;
}
.da-doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 18px;
}
.da-doc-logo { width: 148px; height: auto; }
.da-doc-co {
  text-align: right;
  font-size: 11.5px;
  line-height: 1.45;
  color: #444;
}
.da-doc-co strong { color: #111; font-size: 12.5px; }
.da-doc-co a { color: inherit; text-decoration: none; }
.da-doc-hero {
  display: grid;
  gap: 20px;
  margin-bottom: 16px;
  align-items: start;
}
.da-doc-hero.has-photo { grid-template-columns: minmax(0, 1fr) 220px; }
.da-doc-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: .04em;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
}
.da-doc-title h1 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.da-doc-mark {
  width: 11px;
  height: 11px;
  margin-top: 8px;
  background: #ed1c24;
  flex: 0 0 auto;
}
.da-doc-sub {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}
.da-doc-profile {
  margin: 0;
  color: #555;
  font-size: 13px;
}
.da-doc-ids {
  margin: 6px 0 0;
  color: #222;
  font-size: 13px;
}
.da-doc-photos {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.da-doc-photos figure { margin: 0; flex: 1; }
.da-doc-photos img {
  width: 100%;
  height: auto;
  border: 1px solid #eee;
  background: #fafafa;
  object-fit: contain;
}
.da-doc-photos figcaption {
  margin-top: 4px;
  font-size: 11px;
  color: #6b7280;
  text-align: center;
}
.da-doc-lead,
.da-doc-intro {
  margin: 0 0 12px;
  text-align: justify;
}
.da-doc-note-line {
  margin: 0 0 12px;
  font-weight: 700;
}
.da-doc-sec { margin-top: 22px; }
.da-doc-sec h2 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 800;
}
.da-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.da-table th,
.da-table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  vertical-align: top;
  text-align: left;
}
.da-table thead th {
  background: #f2f2f2;
  font-weight: 700;
  font-size: 12px;
}
.da-table tbody th {
  width: 28%;
  font-weight: 700;
  background: #fff;
}
.da-table-3 tbody th { width: 22%; }
.da-note {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #111;
  font-size: 12.5px;
}
.da-alert {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #ed1c24;
  background: #fff8f8;
  color: #9b1c1c;
  font-size: 12.5px;
}
.da-legal {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1e3a5f;
  font-size: 12.5px;
}
.da-doc-foot {
  margin-top: 24px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  font-size: 11px;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 900px) {
  .da-doc { padding: 0 18px 22px; }
  .da-doc-rule { margin: 0 -18px 16px; }
  .da-doc-hero.has-photo,
  .da-doc-head,
  .da-doc-foot { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .da-doc-co { text-align: left; }
  .da-doc-photos { justify-content: flex-start; max-width: 260px; }
  .header-inner, .footer-inner, .wrap { width: min(var(--max), calc(100% - 32px)); }
  .grid-3, .grid-2, .footer-grid, .product-card, .support { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 4px;
    padding: 8px 0 12px;
  }
  .hero { padding-top: 48px; }
  .search-panel { flex-direction: column; align-items: stretch; }
  .search-panel button { width: 100%; }
  .admin-shell { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; padding: 18px 0; gap: 12px; }
  .header-search { max-width: none; flex: 1 1 100%; }
  .pe-product, .pe-grid, .pe-specs, .pe-support { grid-template-columns: 1fr; }
  .pe-hero, .pe-section { padding: 20px 16px 28px; }
}
