/* Генератори BISON — мова інтерфейсу взята з панелі самого генератора:
   чорна панель, тонкі білі рамки-зони, червоний корпус, жовті попереджувальні наліпки. */
:root {
  --concrete: #e9e6e0;
  --paper: #f5f3ef;
  --ink: #161514;
  --muted: #5d5953;
  --line: #cfcbc2;
  --panel: #1a1a1a;
  --panel-2: #262524;
  --panel-line: rgba(255, 255, 255, .72);
  --red: #b3141c;
  --red-deep: #8a0e14;
  --yellow: #f3c300;
  --ok: #2f7d4a;
  --radius: 6px;
  --wrap: 1180px;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.55 var(--sans);
  color: var(--ink);
  background: var(--concrete);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font: 600 17px/1 var(--sans); text-decoration: none;
  border: 2px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink); cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(233, 230, 224, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--red); color: #fff; border-radius: 4px; font-size: 15px;
}
.logo small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); line-height: 1.1; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.top-phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.top-phone span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
@media (max-width: 960px) { .nav { display: none; } .top-phone { margin-left: auto; } }

/* ---------- герой ---------- */
.hero { padding: 48px 0 64px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 18px;
}
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(47,125,74,.18); }
.hero h1 em { font-style: normal; color: var(--red); }
.lead { font-size: 19px; color: #34312d; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; font-size: 15px; color: var(--muted); }
.hero-facts li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 7px; }

.hero-photo { position: relative; }
.hero-photo img { width: 100%; }
.hero-photo figure { margin: 0; border-radius: 10px; overflow: hidden; background: #ddd; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.hero-photo figcaption {
  position: absolute; left: 14px; top: 14px;
  background: var(--yellow); color: #111; font-size: 13px; font-weight: 700;
  padding: 6px 10px; border-radius: 3px;
}
.hero-meter {
  position: absolute; right: -18px; bottom: -28px; width: 210px;
  background: var(--panel); border-radius: 10px; padding: 12px 12px 10px;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.6);
}
.hero-meter .zone { border: 1.5px solid var(--panel-line); border-radius: 6px; padding: 8px 10px 6px; color: #fff; }
.zone-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.75); margin-bottom: 4px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { order: -1; margin-right: 10px; }
  .hero-meter { width: 160px; right: -10px; bottom: -22px; }
}

/* ---------- стрічка-табличка ---------- */
.plate {
  background: var(--panel); color: #fff;
  border-radius: 10px; padding: 18px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.plate > div { border: 1.5px solid var(--panel-line); border-radius: 6px; padding: 12px 14px; }
.plate b { display: block; font: 600 26px/1.1 var(--mono); }
.plate span { font-size: 13px; color: rgba(255,255,255,.72); }
@media (max-width: 800px) { .plate { grid-template-columns: repeat(2, 1fr); } .plate > div:last-child { grid-column: span 2; } }

/* ---------- секції ---------- */
section { scroll-margin-top: 80px; }
.sec { padding: 88px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head p { max-width: 36em; margin: 0; color: var(--muted); }
.paper { background: var(--paper); }
.dark { background: var(--panel); color: #fff; }
.dark .muted, .dark .sec-head p { color: rgba(255,255,255,.7); }

/* ---------- картки моделей ---------- */
.models { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.model {
  background: #fff; border-radius: 10px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
}
.model-pic { position: relative; aspect-ratio: 4 / 3; background: #dedbd4; }
.model-pic img, .model-pic svg { width: 100%; height: 100%; object-fit: cover; }
.model-tag {
  position: absolute; left: 14px; top: 14px; padding: 5px 10px; border-radius: 3px;
  font-size: 13px; font-weight: 700; background: var(--yellow); color: #111;
}
.model-body { padding: 24px; display: flex; flex-direction: column; }
.model-kw { font: 600 15px var(--mono); color: var(--red); margin-bottom: 6px; }
.model-for { color: var(--muted); margin-bottom: 18px; }
.model dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0 0 22px; font-size: 15px; }
.model dt { color: var(--muted); }
.model dd { margin: 0; font-family: var(--mono); font-weight: 500; text-align: right; }
.model-buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 18px; border-top: 1px dashed var(--line); }
.price { font: 700 30px/1 var(--sans); }
.price small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 6px; }
.model-buy .actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 860px) { .models { grid-template-columns: 1fr; } }

/* ---------- калькулятор ---------- */
.calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.switch { display: inline-flex; background: var(--panel-2); border-radius: 8px; padding: 4px; margin-bottom: 22px; }
.switch button {
  border: 0; background: transparent; color: rgba(255,255,255,.7);
  font: 600 15px var(--sans); padding: 10px 16px; border-radius: 6px; cursor: pointer;
}
.switch button[aria-pressed="true"] { background: var(--red); color: #fff; }
.loads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.load {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.22); border-radius: 8px; padding: 12px 14px;
  transition: border-color .15s ease, background-color .15s ease;
}
.load:hover { border-color: rgba(255,255,255,.5); }
.load input { position: absolute; opacity: 0; pointer-events: none; }
.load .box { width: 20px; height: 20px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 4px; flex: none; display: grid; place-items: center; }
.load input:checked ~ .box { background: var(--red); border-color: var(--red); }
.load input:checked ~ .box::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.load input:focus-visible ~ .box { outline: 2px solid var(--yellow); outline-offset: 2px; }
.load:has(input:checked) { border-color: var(--panel-line); background: rgba(255,255,255,.05); }
.load-name { font-weight: 500; font-size: 15px; line-height: 1.25; }
.load-w { margin-left: auto; font: 500 13px var(--mono); color: rgba(255,255,255,.6); white-space: nowrap; }
.readout { position: sticky; top: 90px; background: var(--panel-2); border-radius: 10px; padding: 16px; }
.readout .zone { border: 1.5px solid var(--panel-line); border-radius: 6px; padding: 12px 14px; }
.readout .zone + .zone { margin-top: 12px; }
.verdict { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.verdict.ok { color: #7fd69b; } .verdict.warn { color: var(--yellow); } .verdict.bad { color: #ff7a7a; }
.readout-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.readout-nums b { display: block; font: 600 24px var(--mono); }
.readout-nums span { font-size: 12px; color: rgba(255,255,255,.65); }
.calc-note { font-size: 13px; color: rgba(255,255,255,.6); margin: 14px 0 0; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .readout { position: static; } }
@media (max-width: 560px) { .loads { grid-template-columns: 1fr; } }

/* ---------- переваги ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.feat { background: var(--paper); padding: 26px 24px; }
.feat-ico { width: 40px; height: 40px; color: var(--red); margin-bottom: 14px; }
.feat p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 900px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }

/* ---------- галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery figure { margin: 0; border-radius: 8px; overflow: hidden; background: #ddd; position: relative; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* ---------- порівняння ---------- */
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #ebe8e2; }
thead th { background: var(--panel); color: #fff; font-weight: 700; }
tbody th { font-weight: 500; color: var(--muted); width: 40%; }
td { font-family: var(--mono); font-size: 15px; }
tbody tr:last-child > * { border-bottom: 0; }
td.win { color: var(--red); font-weight: 600; }

/* ---------- як купити ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps li { border-top: 3px solid var(--ink); padding-top: 16px; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 600 14px var(--mono); color: var(--red); margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 28px var(--mono); color: var(--red); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 20px; color: #3c3934; }
.faq .a p:last-child { margin: 0; }

/* ---------- замовлення ---------- */
.order { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.order-card { background: #fff; border-radius: 10px; padding: 28px; border: 1px solid var(--line); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select {
  font: 400 17px var(--sans); min-height: 50px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); background: #fff; }
.form-msg { margin: 12px 0 0; font-size: 15px; font-weight: 600; }
.contacts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contacts a { font-weight: 700; font-size: 20px; text-decoration: none; }
.contacts span { display: block; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .order { grid-template-columns: 1fr; } }

/* ---------- підвал ---------- */
.foot { background: var(--panel); color: rgba(255,255,255,.7); padding: 40px 0 90px; font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot a { color: #fff; }
.warn-strip { display: flex; gap: 12px; align-items: flex-start; background: var(--yellow); color: #111; border-radius: 8px; padding: 14px 16px; font-size: 15px; }
.warn-strip svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }

/* ---------- мобільна панель дзвінка ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(26,26,26,.96);
  }
  .callbar .btn { min-height: 48px; font-size: 16px; }
}

/* ---------- сторінка товару ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding: 20px 0 0; }
.crumbs a { color: var(--muted); }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; padding: 24px 0 72px; align-items: start; }
.pdp-main { border-radius: 10px; overflow: hidden; background: #ddd; aspect-ratio: 4 / 3; }
.pdp-main img, .pdp-main svg { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.thumbs button { display: block; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: #ddd; }
.thumbs button[aria-current="true"] { border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(30px, 3.8vw, 44px); }
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ok); font-size: 15px; margin-bottom: 14px; }
.stock i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pdp-price { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 22px 0; padding: 20px 0; border-block: 1px solid var(--line); }
.pdp-price .price { font-size: 38px; }
.kit { padding-left: 1.1em; margin: 0; }
.kit li { margin-bottom: 4px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.specs dl { margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-family: var(--mono); font-weight: 500; text-align: right; }
.note-box { background: #fff; border-left: 4px solid var(--red); border-radius: 0 8px 8px 0; padding: 18px 20px; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } .specs { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

.order > *, .calc > *, .pdp > *, .hero-grid > * { min-width: 0; }
@media (max-width: 560px) {
  .top-phone span, .logo small { display: none; }
  .top-phone { font-size: 15px; }
}

/* перший екран: студійне фото на білому */
.hero-photo .hero-studio { background: #fff; }
.hero-studio img { padding: 4% 6% 2%; }
.hero-views { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; width: calc(100% - 200px); }
.hero-views img { background: #fff; border-radius: 8px; aspect-ratio: 4 / 3; object-fit: contain; padding: 6px; }
@media (max-width: 900px) { .hero-views { width: calc(100% - 160px); } }
@media (max-width: 600px) { .hero-views { display: none; } }

/* студійні фото на білому не обрізаємо */
.pdp-main img[src*="bs6500e"], .thumbs img[src*="bs6500e"] { object-fit: contain; background: #fff; padding: 3%; }

/* кнопка Telegram */
.btn-tg { background: #229ed9; border-color: #229ed9; color: #fff; }
.btn-tg:hover { background: #1a86ba; border-color: #1a86ba; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.top-tg { margin-left: 0; white-space: nowrap; }
@media (max-width: 960px) { .top-tg { margin-left: auto; } }
.contacts .btn-tg { font-size: 17px; width: fit-content; }
.contacts .btn-tg + span { margin-top: 8px; }
@media (max-width: 760px) { .callbar { grid-template-columns: 1fr; } }

/* наявність у Дніпрі */
.dnipro-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.dnipro-grid > * { min-width: 0; }
.stock-list { list-style: none; margin: 0; padding: 18px; background: var(--panel); border-radius: 10px; display: grid; gap: 10px; }
.stock-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; border: 1.5px solid var(--panel-line); border-radius: 6px; padding: 12px 14px; color: #fff; }
.stock-list b { font-weight: 700; }
.stock-list span { font: 500 14px var(--mono); color: rgba(255,255,255,.7); text-align: right; }
.stock-list em { grid-column: 1 / -1; font-style: normal; font-size: 14px; color: #7fd69b; }
.stock-list em::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 8px; }
@media (max-width: 860px) { .dnipro-grid { grid-template-columns: 1fr; } }
