/* ============================================================
   GABIBIS — design tokens (from BRIEF-GABIBIS.md)
   ============================================================ */
:root{
  --bg:            #FBFAF8;
  --bg-alt:        #F4F1EB;
  --bg-card:       #FFFFFF;
  --bg-photo:      #F2EEE7;
  --text:          #23282C;
  --text-muted:    #6C757C;
  --text-muted-2:  #4B5257;
  --text-faint:    #8A8378;
  --line:          #E4E0D8;
  --line-strong:   #DFDACE;
  --accent:        #3F5F7D;
  --accent-tint:   #7E9CB8;
  --promo:         #B4552F;
  --dark:          #23282C;
  --dark-2:        #2B3135;
  --dark-line:     #3A4045;
  --dark-text:     #F4F1EB;
  --dark-text-2:   #C3CBD0;
  --dark-text-3:   #9BA6AD;

  --font-display: 'Newsreader', serif;
  --font-body:    'DM Sans', Helvetica, Arial, sans-serif;
  --font-mono:    'DM Mono', 'SFMono-Regular', Consolas, monospace;

  --container: 1320px;
  --gap: clamp(20px, 4vw, 56px);
}

*, *::before, *::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }
html{
  scroll-behavior:smooth;
  background:var(--bg-alt);
}
body{
  margin:0 auto;
  max-width:1440px;
  background:var(--bg);
  box-shadow:0 0 60px rgba(35,40,44,.05);
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3{ font-family:var(--font-display); font-weight:300; margin:0; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
input, textarea, select{ font-family:inherit; font-size:14px; }

.eyebrow{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--text-muted);
}
.wrap{
  max-width:var(--container);
  margin:0 auto;
  padding:0 clamp(20px, 4vw, 56px);
}
.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap;
}

/* focus visibility, kept even though components are flat/borderless by default */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid var(--text);
  background:transparent;
  color:var(--text);
  padding:14px 26px;
  font-size:15px;
  line-height:1;
  transition:background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn:hover{ background:var(--text); color:var(--bg); }
.btn-primary{ background:var(--text); color:var(--bg); border-color:var(--text); }
.btn-primary:hover{ background:var(--accent); border-color:var(--accent); }
.btn-accent{ background:var(--accent); color:var(--dark-text); border-color:var(--accent); }
.btn-accent:hover{ background:#33506B; border-color:#33506B; }
.btn-ghost{ border-color:var(--dark-text-3); color:var(--dark-text); }
.btn-ghost:hover{ background:rgba(244,241,235,.1); }
.btn-link{
  border:0; background:none; padding:0; border-bottom:1px solid var(--text);
  padding-bottom:2px; font-size:15px; border-radius:0;
}
.btn-link:hover{ color:var(--accent); border-color:var(--accent); background:none; }
.btn-sm{ padding:9px 14px; font-size:13px; }
.btn:disabled{ opacity:.45; cursor:not-allowed; }
.btn:disabled:hover{ background:inherit; color:inherit; }

/* chip / segmented control (category, fabric group, status, filters) */
.chip{
  border:1px solid var(--line-strong);
  background:transparent;
  color:var(--text-muted-2);
  padding:9px 14px;
  font-size:13px;
  white-space:nowrap;
}
.chip[aria-pressed="true"], .chip.is-active{
  border-color:var(--text);
  background:var(--text);
  color:var(--bg);
}

/* ============================================================
   Header / nav
   ============================================================ */
.topbar{
  background:var(--dark);
  color:var(--dark-text-2);
  font-size:13px;
  font-family:var(--font-mono);
  text-align:center;
  padding:11px 20px;
  letter-spacing:.02em;
}
.topbar a{ color:inherit; border-bottom:1px solid rgba(244,241,235,.4); }

.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:22px clamp(20px,4vw,56px);
  border-bottom:1px solid var(--line);
  background:var(--bg);
  position:relative;
}
.logo{
  height:34px;
  width:auto;
  display:block;
}
.mobile-nav .logo{ height:26px; }
.main-nav{
  display:flex;
  gap:28px;
  font-size:15px;
  color:var(--text-muted-2);
}
.main-nav a{ padding-bottom:4px; border-bottom:2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"]{
  color:var(--text);
  border-bottom-color:var(--text);
}
.header-actions{ display:flex; align-items:center; gap:18px; font-size:14px; color:var(--text-muted); }
.header-actions .btn{ padding:10px 18px; }
.nav-toggle{
  display:none;
  border:1px solid var(--text);
  background:none;
  width:40px; height:40px;
  align-items:center; justify-content:center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width:18px; height:1px; background:var(--text); position:relative;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer{
  background:var(--dark);
  color:var(--dark-text-3);
  font-size:14px;
  line-height:1.9;
}
.site-footer .wrap{
  padding-top:56px; padding-bottom:56px;
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:36px;
}
.site-footer .logo{ height:52px; margin-bottom:16px; }
.site-footer h4{ color:var(--dark-text); font-family:var(--font-body); font-weight:500; font-size:14px; margin-bottom:8px; }
.footer-bottom{
  border-top:1px solid var(--dark-line);
  font-size:13px;
  padding:20px clamp(20px,4vw,56px);
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.footer-bottom ul{ display:flex; gap:20px; flex-wrap:wrap; }

/* ============================================================
   Sections / layout helpers
   ============================================================ */
.section{ padding:80px clamp(20px,4vw,56px); }
.section-alt{ background:var(--bg-alt); }
.section-dark{ background:var(--dark); color:var(--dark-text); }
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:24px; margin-bottom:32px; flex-wrap:wrap;
}
.section-head h2{ font-size:clamp(28px,3.4vw,38px); }

.grid{ display:grid; gap:20px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }

/* ============================================================
   Photo tiles
   ============================================================ */
.photo{
  background-color:var(--bg-photo);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  position:relative;
  overflow:hidden;
}
.photo-tint{
  position:absolute; inset:0;
  mix-blend-mode:multiply;
  transition:background 240ms ease;
  pointer-events:none;
}
.photo-label{
  position:absolute; left:14px; bottom:14px;
  font-family:var(--font-mono); font-size:11px; color:#3B3B36;
  background:rgba(251,250,248,.9); padding:6px 10px;
}
.badge{
  position:absolute; top:12px; left:12px;
  background:var(--accent); color:var(--dark-text);
  font-family:var(--font-mono); font-size:11px; padding:5px 9px;
}
.badge-promo{ background:var(--promo); color:#FBF7F2; }

/* ============================================================
   Hero (home, editorial)
   ============================================================ */
.hero{ display:grid; grid-template-columns:1.05fr 1fr; min-height:600px; }
.hero-copy{ padding:clamp(40px,6vw,88px) clamp(20px,4vw,56px) 56px; display:flex; flex-direction:column; justify-content:center; gap:26px; }
.hero-copy h1{ font-size:clamp(38px,5.2vw,64px); line-height:1.05; letter-spacing:-.01em; text-wrap:pretty; }
.hero-copy p{ font-size:18px; line-height:1.6; color:var(--text-muted-2); max-width:480px; }
.hero-cta{ display:flex; gap:14px; align-items:center; flex-wrap:wrap; padding-top:4px; }
.hero-stats{ display:flex; gap:36px; flex-wrap:wrap; padding-top:22px; border-top:1px solid var(--line); margin-top:10px; }
.hero-stats .num{ font-family:var(--font-display); font-size:28px; }
.hero-stats .lbl{ font-size:13px; color:var(--text-muted); }
.hero-photo{ min-height:340px; }

/* ============================================================
   Cards: category / product
   ============================================================ */
.cat-card{ display:flex; flex-direction:column; gap:14px; }
.cat-card .photo{ height:280px; }
.cat-card .name{ font-family:var(--font-display); font-size:22px; }
.cat-card .row{ display:flex; justify-content:space-between; align-items:baseline; }
.cat-card .count{ font-size:13px; color:var(--text-muted); }
.cat-card .desc{ font-size:14px; color:var(--text-muted-2); line-height:1.5; }
.cat-card a{ display:contents; }

.product-card{
  background:var(--bg-card);
  border:1px solid #E9E5DD;
  display:flex; flex-direction:column;
}
.product-card .photo{ height:230px; }
.product-card .body{ padding:16px; display:flex; flex-direction:column; gap:9px; }
.product-card .name{ font-family:var(--font-display); font-size:21px; }
.product-card .type{ font-size:12px; color:var(--text-muted); }
.product-card .spec{ font-size:13px; color:var(--text-muted); line-height:1.5; }
.product-card .dots{ display:flex; gap:6px; padding:2px 0; }
.dot{ display:inline-block; width:14px; height:14px; border-radius:50%; outline:1px solid rgba(35,40,44,.12); }
.product-card .price-row{ display:flex; justify-content:space-between; align-items:flex-end; }
.product-card .price{ font-size:19px; }
.product-card .old-price{ font-size:13px; color:var(--text-faint); text-decoration:line-through; }
.product-card .rata{ font-size:12px; color:var(--text-muted); }
.product-card .details-link{ font-size:13px; border-bottom:1px solid var(--text); padding-bottom:2px; align-self:flex-end; }
.product-card:hover .photo img{ transform:scale(1.03); }
.product-card .photo img{ transition:transform 400ms ease; }

/* ============================================================
   Fabric configurator
   ============================================================ */
.fabric-groups{ display:flex; gap:10px; flex-wrap:wrap; }
.fabric-swatches{ display:flex; flex-wrap:wrap; gap:12px; }
.swatch{
  display:flex; flex-direction:column; gap:7px; cursor:pointer;
  width:84px; border:0; background:none; padding:0; text-align:left;
}
.swatch .chip-color{ height:56px; outline:1px solid rgba(35,40,44,.12); outline-offset:0; transition:outline-offset 120ms ease; }
.swatch[aria-pressed="true"] .chip-color{ outline-offset:3px; }
.swatch .chip-label{ font-size:12px; color:var(--text-muted-2); }

/* ============================================================
   Materials strip (dark)
   ============================================================ */
.materials-row{ display:grid; grid-template-columns:34px 200px 1fr; gap:20px; padding:22px 0; border-top:1px solid var(--dark-line); align-items:baseline; }
.materials-row .no{ font-family:var(--font-mono); font-size:12px; color:var(--accent-tint); }
.materials-row .name{ font-family:var(--font-display); font-size:21px; }
.materials-row .desc{ font-size:15px; line-height:1.55; color:var(--dark-text-2); }
.factory-photo{
  height:220px;
  background:repeating-linear-gradient(135deg,#33393E 0 9px,#2B3135 9px 18px);
  display:flex; align-items:flex-end; padding:14px; margin-top:8px;
}
.factory-photo span{ font-family:var(--font-mono); font-size:11px; color:var(--dark-text-3); background:var(--dark); padding:5px 9px; }

/* ============================================================
   Reviews / guarantees
   ============================================================ */
.review-card{ border:1px solid var(--line); padding:28px; display:flex; flex-direction:column; gap:16px; background:var(--bg-card); }
.review-card .stars{ font-family:var(--font-mono); font-size:12px; color:var(--accent-tint); }
.review-card blockquote{ font-family:var(--font-display); font-size:19px; line-height:1.5; margin:0; color:#2C3237; }
.review-card cite{ font-style:normal; font-size:13px; color:var(--text-muted); margin-top:auto; }

.guarantees{ display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--line); }
.guarantee{ padding:28px 24px 0; border-right:1px solid var(--line); display:flex; flex-direction:column; gap:10px; }
.guarantee .head{ font-family:var(--font-display); font-size:28px; }
.guarantee .desc{ font-size:14px; line-height:1.55; color:var(--text-muted-2); }

/* ============================================================
   Forms (real, functional)
   ============================================================ */
.field{ display:flex; flex-direction:column; gap:8px; }
.field .field-label{ font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--text-muted); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="password"],
.field textarea,
.field select{
  background:var(--bg-card);
  border:1px solid var(--line-strong);
  padding:13px 15px;
  font-size:14px;
  color:var(--text);
  width:100%;
}
.field select{ appearance:none; -webkit-appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,var(--text-muted) 50%),linear-gradient(135deg,var(--text-muted) 50%,transparent 50%);
  background-position:calc(100% - 20px) center, calc(100% - 15px) center;
  background-size:5px 5px, 5px 5px; background-repeat:no-repeat;
}
.field input::placeholder, .field textarea::placeholder{ color:var(--text-faint); }
.field textarea{ resize:vertical; min-height:90px; font-family:inherit; }
.form-row{ display:grid; gap:14px; }
.form-row-2{ grid-template-columns:1fr 1fr; }
.form-row-3{ grid-template-columns:1fr 1fr 1fr; }
.form-note{ font-size:13px; color:var(--text-muted); }
.form-success{
  border:1px solid var(--accent);
  background:rgba(63,95,125,.07);
  color:var(--text);
  padding:16px 18px;
  font-size:14px;
  display:none;
}
.form-success.is-visible{ display:block; }
.form-success strong{ display:block; margin-bottom:4px; }

/* FAQ */
.faq-item{ border-top:1px solid var(--line); padding:18px 0; cursor:pointer; }
.faq-item .q{ display:flex; justify-content:space-between; gap:16px; align-items:baseline; background:none; border:0; width:100%; text-align:left; padding:0; color:inherit; font-size:16px; }
.faq-item .q .sign{ font-family:var(--font-mono); color:var(--accent-tint); font-size:16px; }
.faq-item .a{ font-size:14px; line-height:1.6; color:var(--text-muted-2); margin-top:10px; max-width:560px; display:none; }
.faq-item[data-open="true"] .a{ display:block; }

/* Salons */
.salon-row{ display:grid; grid-template-columns:1fr auto; gap:16px; padding:16px 0; border-top:1px solid var(--line); }
.salon-row .city{ font-size:16px; }
.salon-row .addr{ font-size:13px; color:var(--text-muted); }
.salon-row .hours{ text-align:right; font-size:13px; color:var(--text-muted); }

/* Breadcrumb */
.breadcrumb{ padding:24px clamp(20px,4vw,56px) 0; font-size:13px; color:var(--text-muted); }
.breadcrumb a:hover{ color:var(--accent); }
.breadcrumb .current{ color:var(--text); }

/* ============================================================
   Category page: filters + grid
   ============================================================ */
.category-layout{ display:grid; grid-template-columns:260px 1fr; gap:32px; padding:0 clamp(20px,4vw,56px) 64px; }
.filters aside{ display:flex; flex-direction:column; gap:26px; font-size:14px; }
.filter-group{ border-top:1px solid var(--line); padding-top:20px; }
.filter-group:first-child{ border-top:0; padding-top:0; }
.filter-group .filter-label{ font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--text-muted); margin-bottom:12px; }
.filter-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.results-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:16px; font-size:14px; color:var(--text-muted); flex-wrap:wrap; gap:8px; }
.pagination{ display:flex; justify-content:center; gap:10px; padding:36px 0 0; font-size:14px; }
.pagination button{ border:1px solid var(--line-strong); background:none; padding:9px 14px; color:var(--text-muted-2); }
.pagination button[aria-current="true"]{ border-color:var(--text); color:var(--text); }
.pagination button:disabled{ opacity:.35; cursor:not-allowed; }
.empty-state{ padding:64px 24px; text-align:center; color:var(--text-muted); border:1px dashed var(--line-strong); }

/* ============================================================
   Product page
   ============================================================ */
.product-layout{ display:grid; grid-template-columns:1fr 460px; gap:40px; padding:24px clamp(20px,4vw,56px) 56px; }
.product-gallery-main{ height:500px; }
.product-thumbs{ display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-top:14px; }
.product-thumb{ height:96px; border:0; padding:0; }
.product-thumb .photo{ height:100%; }
.product-thumb[aria-pressed="true"] .photo{ outline:2px solid var(--text); outline-offset:-2px; }
.variant-group, .fabric-group-block{ display:flex; flex-direction:column; gap:10px; }
.spec-mini{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:18px 0; display:flex; flex-direction:column; gap:10px; font-size:14px; color:var(--text-muted-2); }
.spec-mini .row{ display:flex; justify-content:space-between; }
.spec-mini .row span:last-child{ color:var(--text); }
.price-block{ display:flex; align-items:flex-end; justify-content:space-between; }
.price-block .price-main{ font-family:var(--font-display); font-size:38px; line-height:1; }
.price-block .price-sub{ font-size:13px; color:var(--text-muted); }
.price-block .price-old{ font-size:13px; color:var(--text-faint); text-decoration:line-through; }
.actions-stack{ display:flex; flex-direction:column; gap:10px; }
.actions-2{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }

.tabs{ display:flex; gap:28px; border-bottom:1px solid var(--line); overflow-x:auto; }
.tab-btn{ padding:14px 0; font-size:16px; color:var(--text-muted); border:0; background:none; border-bottom:2px solid transparent; margin-bottom:-1px; white-space:nowrap; }
.tab-btn[aria-selected="true"]{ color:var(--text); border-bottom-color:var(--text); }
.tab-panel{ display:none; }
.tab-panel.is-active{ display:block; }
.spec-table{ display:flex; flex-direction:column; }
.spec-table .r{ display:grid; grid-template-columns:230px 1fr; gap:24px; padding:16px 0; border-top:1px solid var(--line); }
.spec-table .r span:first-child{ font-size:14px; color:var(--text-muted); }
.spec-table .r span:last-child{ font-size:15px; line-height:1.55; }
.product-support{ background:var(--bg-alt); padding:28px; display:flex; flex-direction:column; gap:14px; height:fit-content; }

/* ============================================================
   Admin panel
   ============================================================ */
.admin-shell{ background:var(--bg); }
.admin-topbar{ display:flex; justify-content:space-between; align-items:center; padding:9px clamp(20px,4vw,56px); background:var(--bg-alt); color:var(--text-muted); font-size:13px; border-bottom:1px solid var(--line); }
.admin-topbar .who{ display:flex; gap:22px; }
.admin-header{ display:flex; align-items:center; justify-content:space-between; padding:20px clamp(20px,4vw,56px); border-bottom:1px solid var(--line); }
.admin-header .left{ display:flex; align-items:center; gap:40px; }
.admin-avatar{ width:32px; height:32px; background:var(--accent); color:var(--dark-text); display:flex; align-items:center; justify-content:center; font-size:12px; font-family:var(--font-mono); flex:none; }
.admin-page-head{ display:flex; justify-content:space-between; align-items:flex-end; padding:32px clamp(20px,4vw,56px) 20px; gap:16px; flex-wrap:wrap; }
.admin-toolbar{ display:flex; justify-content:space-between; align-items:center; padding:0 clamp(20px,4vw,56px) 20px; gap:16px; flex-wrap:wrap; }
.admin-search{ border:1px solid var(--line-strong); background:var(--bg-card); padding:10px 16px; font-size:14px; width:260px; }
.admin-table-wrap{ padding:0 clamp(20px,4vw,56px) 48px; overflow-x:auto; }
.admin-table{ width:100%; border-collapse:collapse; min-width:760px; }
.admin-table thead th{
  text-align:left; font-family:var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--text-muted); border-bottom:1px solid var(--text); padding:0 12px 12px;
}
.admin-table tbody td{ padding:14px 12px; border-bottom:1px solid var(--line); vertical-align:middle; font-size:14px; }
.admin-table tbody tr:hover{ background:var(--bg-alt); }
.admin-thumb{ width:60px; height:46px; }
.admin-table .p-name{ font-family:var(--font-display); font-size:18px; }
.status-pill{ display:inline-flex; align-items:center; gap:8px; font-size:13px; }
.status-pill .dot{ width:7px; height:7px; }
.row-actions button{ border:0; background:none; font-size:13px; border-bottom:1px solid var(--text); padding-bottom:2px; color:inherit; }
.row-actions{ display:flex; gap:14px; }

.admin-form-head{ padding:44px clamp(20px,4vw,56px) 0; border-top:1px solid var(--line); }
.admin-form-head p{ font-size:14px; color:var(--text-muted); margin-top:6px; }
.admin-form-layout{ padding:32px clamp(20px,4vw,56px) 80px; display:grid; grid-template-columns:380px 1fr; gap:48px; }
.dropzone{
  height:240px; border:1px dashed #C7C0B2; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px; color:var(--text-faint); font-size:14px; text-align:center; cursor:pointer; background:none; width:100%;
}
.dropzone:hover{ border-color:var(--accent); color:var(--accent); }
.dropzone .plus{ font-size:26px; color:#B9BCB8; }
.dropzone:hover .plus{ color:var(--accent); }
.upload-thumbs{ display:flex; flex-wrap:wrap; gap:10px; }
.upload-thumb{ width:76px; height:60px; position:relative; }
.upload-thumb button{
  position:absolute; top:3px; right:3px; background:rgba(35,40,44,.7); color:#FBFAF8;
  width:16px; height:16px; border:0; display:flex; align-items:center; justify-content:center; font-size:11px; padding:0;
}
.upload-add{ width:76px; height:60px; border:1px dashed #C7C0B2; display:flex; align-items:center; justify-content:center; color:#B9BCB8; font-size:18px; background:none; }
.status-toggle-row{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.status-preview{ font-size:13px; }
.admin-footer{ border-top:1px solid var(--line); padding:24px clamp(20px,4vw,56px); font-size:13px; color:var(--text-muted); }
.admin-toast{
  position:fixed; left:50%; bottom:28px; transform:translateX(-50%) translateY(20px);
  background:var(--dark); color:var(--dark-text); padding:14px 22px; font-size:14px;
  opacity:0; pointer-events:none; transition:opacity 200ms ease, transform 200ms ease; z-index:50;
}
.admin-toast.is-visible{ opacity:1; transform:translateX(-50%) translateY(0); }

/* modal (np. formularz dodawania/edycji kategorii) */
.modal-backdrop{
  position:fixed; inset:0; background:rgba(35,40,44,.55);
  display:flex; align-items:flex-start; justify-content:center;
  padding:48px 20px; overflow-y:auto; z-index:100;
}
.modal-panel{
  background:var(--bg); width:100%; max-width:900px;
  position:relative; margin:auto 0;
  box-shadow:0 30px 80px rgba(35,40,44,.28);
}
.modal-close{
  position:absolute; top:16px; right:16px; z-index:1;
  width:36px; height:36px; border:1px solid var(--line-strong); background:var(--bg-card);
  font-size:18px; line-height:1; cursor:pointer; color:var(--text-muted-2);
}
.modal-close:hover{ border-color:var(--text); color:var(--text); }
.modal-panel .admin-form-head{ padding:36px 60px 0 32px; border-top:0; }
.modal-panel .admin-form-layout{ padding:24px 32px 32px; grid-template-columns:320px 1fr; }
@media (max-width: 720px){
  .modal-panel .admin-form-layout{ grid-template-columns:1fr; }
  .modal-panel .admin-form-head{ padding:32px 48px 0 20px; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px){
  .hero{ grid-template-columns:1fr; }
  .hero-photo{ min-height:280px; order:-1; }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .guarantees{ grid-template-columns:repeat(2,1fr); }
  .guarantee:nth-child(2n){ border-right:0; }
  .site-footer .wrap{ grid-template-columns:1fr 1fr; }
  .category-layout{ grid-template-columns:1fr; }
  .filters aside{ flex-direction:row; flex-wrap:wrap; gap:16px; }
  .filter-group{ border-top:0; padding-top:0; }
  .product-layout{ grid-template-columns:1fr; }
  .admin-form-layout{ grid-template-columns:1fr; }
  .materials-row{ grid-template-columns:28px 1fr; }
  .materials-row .name{ grid-column:2; }
}
@media (max-width: 720px){
  .main-nav{ display:none; }
  .nav-toggle{ display:flex; }
  .grid-4, .grid-3, .grid-2{ grid-template-columns:1fr; }
  .guarantees{ grid-template-columns:1fr; }
  .guarantee{ border-right:0; border-top:1px solid var(--line); padding-top:20px; }
  .guarantee:first-child{ border-top:0; }
  .site-footer .wrap{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; }
  .hero-stats{ gap:24px; }
  .form-row-2, .form-row-3{ grid-template-columns:1fr; }
  .admin-table{ min-width:640px; }
}

/* Mobile nav panel */
.mobile-nav{
  position:fixed; inset:0 0 0 auto; width:min(320px,86vw); background:var(--bg);
  transform:translateX(100%); transition:transform 220ms ease; z-index:60;
  box-shadow:-24px 0 60px rgba(35,40,44,.15); padding:24px; overflow-y:auto;
}
.mobile-nav.is-open{ transform:translateX(0); }
.mobile-nav-scrim{
  position:fixed; inset:0; background:rgba(35,40,44,.4); opacity:0; pointer-events:none;
  transition:opacity 220ms ease; z-index:55;
}
.mobile-nav-scrim.is-visible{ opacity:1; pointer-events:auto; }
.mobile-nav ul{ display:flex; flex-direction:column; gap:4px; margin-top:32px; }
.mobile-nav a{ display:block; padding:14px 4px; font-size:17px; border-bottom:1px solid var(--line); }
.mobile-nav-close{ border:1px solid var(--text); background:none; width:38px; height:38px; }

/* ============================================================
   Preview gate ("strona w budowie")
   ============================================================ */
.gate-overlay{
  position:fixed; inset:0; z-index:200;
  background:var(--dark); color:var(--dark-text);
  display:flex; align-items:center; justify-content:center;
  padding:24px;
}
.gate-box{ width:100%; max-width:400px; display:flex; flex-direction:column; align-items:center; gap:14px; text-align:center; }
.gate-logo{ height:30px; width:auto; margin:0 auto; }
.gate-eyebrow{ font-family:var(--font-mono); font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--dark-text-3); }
.gate-box h1{ font-size:clamp(24px,4vw,32px); line-height:1.15; color:var(--dark-text); margin:0; }
.gate-box p{ font-size:14px; line-height:1.6; color:var(--dark-text-2); }
#gate-form{ display:flex; flex-direction:column; gap:10px; margin-top:8px; width:100%; }
#gate-form input{
  background:transparent; border:1px solid var(--dark-line); color:var(--dark-text);
  padding:13px 15px; font-size:14px; text-align:center; width:100%;
}
#gate-form input::placeholder{ color:var(--dark-text-3); }
.gate-error{ color:#D98866; font-size:13px; margin:0; }
.gate-note{ font-size:12px; color:var(--dark-text-3); margin:4px 0 0; }
