/* BRP Центр Київ — white base, black header/footer, yellow accent. Brandbook font: Arial. */
:root {
  --accent: #ffc600;           /* TODO: replace with the Pantone value from Iryna */
  --accent-ink: #111;
  --ink: #111;
  --muted: #666;
  --line: #e6e6e6;
  --bg: #fff;
  --bg-soft: #f5f5f5;
  --black: #0d0d0d;
  --header-h: 84px;
  --header-h-compact: 58px;
  --radius: 6px;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h-compact) + 16px); }
body { margin: 0; font: 16px/1.55 Arial, Helvetica, sans-serif; color: var(--ink); background: var(--bg); padding-top: var(--header-h); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(30px, 4.5vw, 52px); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: 18px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.lead { font-size: 18px; max-width: 640px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius); border: 2px solid transparent; font: 700 14px/1.2 Arial, sans-serif; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #ffd84d; }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); margin: 0 6px 8px 0; }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Header: fixed, compacts on scroll */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--black); color: #fff; height: var(--header-h); transition: height .2s, box-shadow .2s; border-bottom: 3px solid var(--accent); }
.site-header.is-compact { height: var(--header-h-compact); box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.header-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo img { height: 64px; width: auto; transition: height .2s; }
.is-compact .logo img { height: 42px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; white-space: nowrap; padding: 8px 10px; text-decoration: none; text-transform: uppercase; font-size: 13.5px; font-weight: 700; letter-spacing: .03em; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 12px; }
.header-social { display: flex; gap: 8px; }
.header-social a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #444; border-radius: 50%; color: #fff; }
.header-social a:hover { border-color: var(--accent); color: var(--accent); }
.header-social svg { width: 17px; height: 17px; fill: currentColor; }
.burger { display: none; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 9px; right: 9px; height: 2px; background: #fff; content: ''; transition: transform .2s; }
.burger span { top: 20px; } .burger span::before { top: -7px; left: 0; right: 0; } .burger span::after { top: 7px; left: 0; right: 0; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1280px) and (min-width: 1081px) { .main-nav a { padding: 8px 6px; font-size: 12.5px; } }
@media (max-width: 1080px) {
  :root { --header-h: 68px; }
  .logo img { height: 50px; }
  .burger { display: block; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0; background: var(--black); transform: translateX(100%); transition: transform .25s; overflow-y: auto; margin: 0; }
  .is-compact .main-nav { inset: var(--header-h-compact) 0 0; }
  .nav-open .main-nav { transform: none; }
  .main-nav ul { flex-direction: column; padding: 12px 20px 40px; }
  .main-nav a { font-size: 18px; padding: 14px 4px; border-bottom: 1px solid #222; }
  .header-tools { margin-left: auto; }
}

/* Home */
.home-hero { background: radial-gradient(1200px 500px at 85% 30%, #2a2a2a, var(--black)); color: #fff; padding: 44px 0 48px; position: relative; overflow: hidden; }
.home-hero::after { content: ''; position: absolute; right: -8%; top: 0; bottom: 0; width: 38%; background: var(--accent); transform: skewX(-18deg); opacity: .95; }
.home-hero .wrap { position: relative; z-index: 1; }
.home-hero h1 { max-width: 640px; margin-bottom: 6px; }
.home-hero .lead { margin: 4px 0; }
.home-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.hero-brands { display: flex; flex-direction: column; align-items: flex-end; align-self: flex-end; gap: 14px; flex: none; }
.hero-brands img { height: 20px; width: auto; filter: brightness(0); }
.section-title { margin: 56px 0 24px; text-transform: uppercase; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; margin-bottom: 64px; }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; padding: 20px; border-radius: var(--radius); background: var(--bg-soft); text-decoration: none; overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-tile img { position: absolute; inset: 10px 10px 70px; width: calc(100% - 20px); height: calc(100% - 80px); object-fit: contain; transition: transform .3s; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.12); border-color: var(--accent); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile-title { position: relative; font-size: 22px; font-weight: 700; text-transform: uppercase; }
.cat-tile-meta { position: relative; color: var(--muted); font-size: 14px; }
.cat-tile-text { background: var(--black); color: #fff; border-color: var(--black); }
.cat-tile-text .cat-tile-meta { color: #bbb; }
.cat-tile-text::before { content: ''; position: absolute; top: 0; right: 0; z-index: 1; width: 90px; height: 90px; background: var(--accent); clip-path: polygon(100% 0, 0 0, 100% 100%); }
.cat-tile-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-tile-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.1) 65%); }
.cat-tile-photo .cat-tile-title, .cat-tile-photo .cat-tile-meta { z-index: 1; }
.band-dark { background: var(--black); color: #fff; padding: 64px 0; }

/* Category */
.cat-hero { background: var(--black); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
/* сіра панель і жовтий слеш — один скошений блок, щоб між ними не було чорної щілини */
.cat-hero::before { content: ''; position: absolute; left: 52%; right: -30%; top: 0; bottom: 0; background: #262626; border-left: 14px solid var(--accent); transform: skewX(-12deg); }
.cat-hero.has-banner { background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.2)), var(--banner) center/cover; min-height: 420px; display: flex; align-items: center; }
.cat-hero.has-banner::before { display: none; }
.cat-hero-row { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px; position: relative; min-height: 340px; }
.cat-hero-row picture { display: block; }
.cat-hero-img { height: 340px; width: 100%; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.year-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.year-tabs a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 700; }
.year-tabs a:hover { border-color: var(--accent); background: var(--accent); }
.year-block { padding-top: 28px; }
.year-block > h2 { text-transform: uppercase; border-left: 6px solid var(--accent); padding-left: 12px; }
.group-title { margin: 26px 0 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; font-size: 15px; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-bottom: 18px; }
.model-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.model-card:hover { border-color: var(--accent); box-shadow: 0 14px 34px rgba(0,0,0,.12); transform: translateY(-3px); }
.model-img { position: relative; display: block; aspect-ratio: 300 / 218; margin-bottom: 12px; }
.model-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.model-card:hover .model-img img { transform: scale(1.06); }
.badge { position: absolute; top: 0; left: 0; background: var(--accent); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 3px; text-transform: uppercase; }
.model-name { font-size: 17px; margin: 0 0 4px; }
.model-price { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.model-note { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.model-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.model-actions .btn { flex: 1; justify-content: center; padding: 9px 10px; font-size: 12.5px; }
.is-sold { opacity: .6; }
.pricelist-cta { margin: 36px 0 12px; padding: 24px; background: var(--bg-soft); border-left: 6px solid var(--accent); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.pricelist-cta p { margin: 0; font-weight: 700; }
.disclaimer { font-size: 13px; color: var(--muted); margin: 24px 0 56px; }

@media (max-width: 760px) {
  .cat-hero { background: var(--black); padding: 36px 0; }
  .cat-hero::before { display: none; }
  .cat-hero-row { grid-template-columns: 1fr; }
  .cat-hero-row { min-height: 0; }
  .cat-hero-img { height: 200px; order: -1; }
  .home-hero::after { width: 36%; right: -12%; }
  .home-hero-row { gap: 12px; }
  .home-hero .lead { padding-right: 8%; }
  .hero-brands { gap: 10px; }
  .hero-brands img { height: 11px; }
  .model-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .model-card { padding: 10px; }
  .model-name { font-size: 14px; }
  .model-price { font-size: 17px; }
  .model-actions .btn { font-size: 11px; padding: 8px 6px; }
}
@media (max-width: 380px) { .model-grid { grid-template-columns: 1fr; } }

/* Generic pages */
.page-head { background: var(--black); color: #fff; padding: 48px 0; border-bottom: 6px solid var(--accent); margin-bottom: 36px; }
.page-head .lead a { color: var(--accent); }
.prose { max-width: 820px; margin-bottom: 56px; }
.prose img { margin: 16px 0; border-radius: var(--radius); }
.prose a { color: #000; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.split-form { margin-bottom: 56px; }
.form-card { position: sticky; top: calc(var(--header-h-compact) + 20px); background: var(--bg-soft); padding: 24px; border-radius: var(--radius); border-top: 6px solid var(--accent); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .form-card { position: static; } }
.military h3 { color: var(--accent); }
.band-dark .military { border: 1px solid #333; padding: 20px; border-radius: var(--radius); }

/* Accessories */
.year-acc { border-bottom: 1px solid var(--line); padding: 8px 0; }
.year-acc summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.year-acc summary::after { content: '+'; font-size: 28px; font-weight: 700; color: var(--muted); }
.year-acc[open] summary::after { content: '–'; }
.year-acc summary h2 { margin: 10px 0; font-size: 20px; }
.year-acc.is-current summary h2 { font-size: 32px; margin: 16px 0; padding-left: 14px; border-left: 6px solid var(--accent); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; padding: 8px 0 28px; }
.catalog { display: flex; flex-direction: column; gap: 8px; text-decoration: none; font-size: 14px; font-weight: 700; }
.catalog img { border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.catalog:hover img { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.catalog-ph { display: grid; place-items: center; aspect-ratio: 3/4; background: var(--bg-soft); border-radius: var(--radius); }
.catalog-ph svg { width: 48px; height: 48px; color: var(--muted); }

/* Contacts */
.c-addr { font-size: 20px; font-weight: 700; }
.c-block { margin: 0 0 22px; }
.c-block h3 { margin-bottom: 4px; text-transform: uppercase; font-size: 15px; }
.c-block p { margin: 0 0 4px; }
.c-phones a { font-size: 20px; font-weight: 700; margin-right: 12px; text-decoration: none; }
.f-hours { display: flex; gap: 12px; margin: 0; }
.f-hours span { min-width: 70px; color: inherit; opacity: .7; }
.map { position: relative; }
.map iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.3); }
.map-route { position: absolute; left: 20px; bottom: 20px; }
.empty { background: var(--bg-soft); padding: 28px; border-radius: var(--radius); max-width: 640px; margin-bottom: 56px; }

/* Forms */
.lead-form { display: grid; gap: 12px; }
.lead-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
.lead-form input, .lead-form textarea { font: 16px Arial, sans-serif; padding: 11px 12px; border: 1px solid #ccc; border-radius: var(--radius); background: #fff; width: 100%; }
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--ink); }
.lead-form .hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 700; min-height: 1.2em; }
.form-status.ok { color: #1a7f37; }
.form-status.err { color: #c62828; }
.lead-dialog { border: 0; border-top: 6px solid var(--accent); border-radius: var(--radius); padding: 28px; width: min(460px, calc(100vw - 32px)); }
.lead-dialog::backdrop { background: rgba(0,0,0,.6); }
.dialog-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 30px; cursor: pointer; }
.dialog-model { font-weight: 700; color: var(--muted); margin-top: -8px; }

/* Footer */
.site-footer { background: var(--black); color: #ddd; padding-top: 56px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.site-footer h3 { color: #fff; text-transform: uppercase; font-size: 14px; letter-spacing: .08em; border-bottom: 2px solid var(--accent); padding-bottom: 8px; display: inline-block; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.f-item { margin: 0 0 12px; }
.f-item span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #888; }
.f-note { font-size: 13px; color: #888; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #444; border-radius: 50%; }
.social a:hover { border-color: var(--accent); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.brands { border-top: 1px solid #222; border-bottom: 1px solid #222; margin-top: 40px; padding: 22px 0; }
.brands .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 48px; align-items: center; }
.brands img { height: 26px; width: auto; opacity: .8; pointer-events: none; }
.brands img[src$="spyder.png"] { height: 19px; }
.copyright { padding: 18px 20px 26px; font-size: 13px; color: #777; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.call-fab { position: fixed; right: 18px; bottom: 90px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); display: none; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.call-fab svg { width: 26px; height: 26px; }
@media (max-width: 760px) { .call-fab { display: grid; } }

/* News lists, archives, pager */
.post-list { display: grid; gap: 14px; margin-bottom: 40px; }
.post-card { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.post-card-img { aspect-ratio: 16/10; background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; display: block; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card h2 { font-size: 18px; margin: 4px 0 0; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { color: #000; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.post-card time, .page-head time { color: var(--muted); font-size: 14px; }
.page-head time { color: #bbb; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-bottom: 56px; }
.back { margin: -24px 0 56px; }
@media (max-width: 600px) { .post-card { grid-template-columns: 110px 1fr; gap: 12px; } .post-card h2 { font-size: 15px; } }

/* Mirrored content: galleries, YouTube facades, tables */
.post-image { margin-bottom: 20px; }
.prose figure { margin: 20px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.prose figure img { margin: 0; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.prose figcaption { font-size: 14px; font-weight: 700; display: grid; gap: 6px; align-content: start; }
.prose figure:has(figcaption) { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.prose a.yt { position: relative; display: block; max-width: 640px; }
.prose a.yt img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.prose a.yt::after { content: ''; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: #e00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center/32px no-repeat; }
.prose .yt-frame { width: 100%; max-width: 640px; aspect-ratio: 16/9; border: 0; display: block; }
.prose table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; vertical-align: top; }
.prose { overflow-wrap: anywhere; }
