:root {
  --pink: #c94b7b;
  --pink-deep: #9d355c;
  --pink-soft: #f8e8ef;
  --blue: #2f6f8f;
  --blue-deep: #214f66;
  --blue-soft: #e7f1f6;
  --green: #2e8b6a;
  --green-soft: #e5f4ee;
  --anthracite: #2a3036;
  --ink: #243038;
  --muted: #5e6a72;
  --line: #e3e6e8;
  --bg: #f5f6f7;
  --white: #ffffff;
  --warn: #8a5a12;
  --danger: #8d3030;
  --shadow: 0 10px 30px rgba(36, 48, 56, 0.06);
  --font: "Segoe UI", "Avenir Next", "Helvetica Neue", sans-serif;
  --display: "Avenir Next", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-deep); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; color: var(--anthracite); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 9; }
.topbar {
  background: var(--anthracite);
  color: #d5dde2;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  text-align: center;
}
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner, .wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.header-inner { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 0; }
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--anthracite); font-weight: 700; }
.logo img { width: 42px; height: 42px; }
.logo small { display: block; font-weight: 500; color: var(--muted); font-size: 0.75rem; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem; }
.nav { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.nav a:hover { color: var(--pink-deep); }
.search-form { margin-left: auto; display: flex; background: var(--bg); border-radius: 999px; border: 1px solid var(--line); overflow: hidden; }
.search-form input { border: 0; background: transparent; padding: 0.55rem 0.9rem; min-width: 180px; }
.search-form button, .btn, button.btn {
  border: 0; background: var(--pink); color: white; padding: 0.65rem 1rem; border-radius: 999px;
  font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn.secondary { background: var(--blue); }
.btn.ghost { background: transparent; color: var(--anthracite); border: 1px solid var(--line); }
.btn-merchant { background: var(--pink); color: #fff; border-radius: 12px; padding: 0.7rem 1rem; font-weight: 800; text-decoration: none; display: inline-block; }
.hero {
  background:
    radial-gradient(600px 200px at 10% 0%, var(--pink-soft), transparent 70%),
    radial-gradient(500px 220px at 90% 20%, var(--blue-soft), transparent 70%),
    radial-gradient(400px 180px at 70% 100%, var(--green-soft), transparent 70%),
    var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2.2rem 1.4rem;
  margin: 1.2rem auto;
  box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0.2rem 0 0.6rem; max-width: 16ch; }
.eyebrow { letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); font-size: 0.75rem; font-weight: 700; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.card, .panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.card a { text-decoration: none; color: inherit; }
.price { color: var(--green); font-weight: 800; font-size: 1.15rem; }
.muted { color: var(--muted); }
.section { margin: 1.6rem auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; color: var(--muted); font-size: 0.9rem; padding-top: 1rem; }
.product-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1.2rem; }
.product-photo { background: var(--white); border-radius: 18px; min-height: 220px; display: grid; place-items: center; border: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 1rem 0; }
.stat { background: var(--white); border-radius: 14px; padding: 0.8rem; border: 1px solid var(--line); }
.stat strong { display: block; font-size: 1.2rem; }
.table-wrap { overflow-x: auto; background: white; border-radius: 16px; border: 1px solid var(--line); }
.offer-table, .data { width: 100%; border-collapse: collapse; }
.offer-table th, .data th { text-align: left; background: var(--anthracite); color: white; padding: 0.7rem; font-weight: 600; }
.offer-table td, .data td { padding: 0.7rem; border-top: 1px solid var(--line); vertical-align: middle; }
.offer-table tr.is-best { background: var(--green-soft); }
.sorts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
.sorts a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.7rem; background: white; color: var(--ink); }
.sorts a.is-current { background: var(--blue); color: white; border-color: var(--blue); }
.chart { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: white; }
.site-footer { background: var(--anthracite); color: #d5dde2; margin-top: 2rem; padding: 2rem 0 1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer h2 { color: white; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.3rem 0; }
.legal-note { border-top: 1px solid #3c444b; margin-top: 1rem; padding-top: 0.8rem; font-size: 0.85rem; }
.ad-slot { border: 1px dashed #c9b3bd; background: #fff; border-radius: 16px; padding: 0.8rem; margin: 1rem 0; }
.ad-label { display: inline-block; background: var(--pink-soft); color: var(--pink-deep); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 0.15rem 0.5rem; }
.ad-link { display: flex; gap: 0.8rem; text-decoration: none; color: inherit; align-items: center; }
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: white;
  border-top: 1px solid var(--line);
  padding: 0.75rem 1rem;
  box-shadow: 0 -8px 24px rgba(0,0,0,.08);
}
body:has(.consent-banner) { padding-bottom: 7.5rem; }
.consent-lead { margin: 0 0 0.65rem; max-width: 62rem; }
.consent-panel { display: none; margin: 1rem auto 1.4rem; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 0.8rem 1rem; scroll-margin-top: 1rem; }
.consent-panel:target { display: block; }
.consent-panel summary { cursor: pointer; font-weight: 700; }
.consent-actions, .row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.consent-actions .btn { flex: 1 1 12rem; text-align: center; min-height: 2.75rem; }
.checks label { display: block; margin: 0.25rem 0; }
.flash { padding: 0.7rem 0.9rem; border-radius: 12px; margin: 0.6rem 0; }
.flash-success { background: var(--green-soft); }
.flash-error { background: #fdecec; color: var(--danger); }
.flash-info { background: var(--blue-soft); }
.prose { background: white; border-radius: 18px; padding: 1rem 1.2rem; border: 1px solid var(--line); }
.prose p { margin: 0 0 0.9rem; }
.prose h2, .prose h3 { margin: 1.25rem 0 0.45rem; }
.imprint-contact h2 { margin-top: 0; }
body.is-home .site-header.is-slim { background: transparent; border-bottom: 0; }
body.is-home main.home-main { min-height: calc(100vh - 3.4rem); min-height: calc(100dvh - 3.4rem); display: flex; align-items: center; justify-content: center; width: min(680px, calc(100% - 2rem)); margin-left: auto; margin-right: auto; }
.home-search { width: 100%; text-align: center; }
a.home-mark, a.home-mark:hover, a.home-mark:focus, a.home-mark:visited { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; margin: 0 0 1.6rem; text-decoration: none; color: var(--anthracite); font-weight: 700; }
.home-mark img { width: 80px; height: 80px; display: block; }
.home-mark span { font-size: 2.15rem; letter-spacing: -0.03em; line-height: 1.1; }
.home-search-form { display: flex; flex-direction: row; align-items: center; gap: 0.35rem; width: 100%; min-height: 52px; background: #fff; border: 1px solid #d8dee3; border-radius: 28px; padding: 4px 5px 4px 14px; box-shadow: 0 1px 6px rgba(32, 33, 36, 0.16), 0 1px 1px rgba(32, 33, 36, 0.06); }
.home-search-form:focus-within { border-color: #c5ced4; box-shadow: 0 1px 8px rgba(32, 33, 36, 0.22); }
.home-search-icon { flex: 0 0 auto; width: 22px; height: 22px; color: var(--muted); }
.home-search-form input { flex: 1 1 auto; min-width: 0; width: 100%; height: 44px; border: 0; margin: 0; background: transparent; font: inherit; font-size: 16px; line-height: 1.2; padding: 0 0.35rem; color: var(--ink); -webkit-appearance: none; appearance: none; border-radius: 0; }
.home-search-form input:focus { outline: none; }
.home-search-form input::-webkit-search-decoration,
.home-search-form input::-webkit-search-cancel-button,
.home-search-form input::-webkit-search-results-button,
.home-search-form input::-webkit-search-results-decoration { -webkit-appearance: none; appearance: none; display: none; }
.home-search-form button { flex: 0 0 auto; -webkit-appearance: none; appearance: none; border: 0; background: var(--pink); color: #fff; font: inherit; font-size: 16px; font-weight: 700; line-height: 1; height: 42px; padding: 0 1.1rem; border-radius: 999px; cursor: pointer; }
.home-search-form button:hover, .home-search-form button:focus-visible { background: var(--pink-deep); }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: 0.4rem; }
.product-embed { border-left: 4px solid var(--green); background: var(--green-soft); padding: 0.8rem 1rem; border-radius: 12px; display: grid; gap: 0.2rem; }
.placeholder-banner { background: #fff6e8; border: 1px solid #efd7b0; color: var(--warn); padding: 0.8rem; border-radius: 12px; }
.empty { padding: 1rem; background: white; border-radius: 16px; }
.install-body { background: linear-gradient(160deg, var(--pink-soft), var(--bg) 40%, var(--blue-soft)); min-height: 100vh; }
.install-card, .auth-card { width: min(760px, calc(100% - 2rem)); margin: 2rem auto; background: white; padding: 1.4rem; border-radius: 24px; }
.steps { padding-left: 1.1rem; }
.steps .is-current { font-weight: 800; color: var(--pink-deep); }
.steps .is-done { color: var(--green); }
.stack { display: grid; gap: 0.7rem; }
.field { display: grid; gap: 0.25rem; font-weight: 600; }
.field input, .field textarea, .field select { font: inherit; padding: 0.55rem 0.7rem; border-radius: 10px; border: 1px solid #cfd6db; font-weight: 400; width: 100%; }
.help { font-weight: 400; color: var(--muted); }
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--anthracite); color: #d7dee3; padding: 1rem 0.8rem; }
.sidebar a { color: #fff; text-decoration: none; display: block; padding: 0.4rem 0.6rem; border-radius: 8px; }
.sidebar a.is-active, .sidebar a:hover { background: #3a4249; }
.sidebar h2 { color: #9eb0bc; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 1rem 0.6rem 0.3rem; }
.admin-main { padding: 1rem 1.2rem 2rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.7rem; }
.pill { display: inline-block; border-radius: 999px; padding: 0.1rem 0.5rem; background: var(--blue-soft); font-size: 0.8rem; }
.pill-ok { background: var(--green-soft); }
.pill-warn { background: #fff1d6; }
.pill-bad { background: #fdecec; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; }
.pager { display: flex; gap: 0.3rem; margin: 1rem 0; }
.pager a { background: white; border: 1px solid var(--line); padding: 0.2rem 0.55rem; border-radius: 8px; text-decoration: none; }
.pager .is-current { background: var(--anthracite); color: white; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips a { background: white; border-radius: 999px; padding: 0.35rem 0.7rem; text-decoration: none; border: 1px solid var(--line); }
@media (max-width: 900px) {
  a.home-mark { margin-bottom: 1.35rem; }
  .home-mark img { width: 72px; height: 72px; }
  .home-mark span { font-size: 1.85rem; }
  .home-search-form { min-height: 52px; padding: 4px 4px 4px 12px; }
  .home-search-form button { height: 44px; padding: 0 0.95rem; }
  .consent-banner { padding: 0.6rem 0.75rem calc(0.7rem + env(safe-area-inset-bottom)); }
  .consent-lead { font-size: 0.9rem; margin-bottom: 0.5rem; }
  body:has(.consent-banner) { padding-bottom: 8.5rem; }
  .consent-actions .btn { flex: 1 1 8.5rem; padding: 0.65rem 0.7rem; }
  .product-layout, .footer-grid, .admin { grid-template-columns: 1fr; }
  .nav-toggle-label { display: inline-block; }
  .nav { display: none; width: 100%; }
  .nav-toggle:checked ~ .nav { display: flex; flex-direction: column; }
  .search-form { margin-left: 0; width: 100%; }
  .header-inner { flex-wrap: wrap; }
  .stats { grid-template-columns: 1fr; }
  .offer-table thead { display: none; }
  .offer-table tr { display: block; margin: 0.7rem; border: 1px solid var(--line); border-radius: 12px; }
  .offer-table td { display: flex; justify-content: space-between; gap: 1rem; }
  .offer-table td::before { content: attr(data-label); color: var(--muted); }
}
