/* =========================================================
   MAIN.CSS — baza globalna (MM-MEBLE)
   - tokeny (kolory/typografia/odstępy)
   - reset + elementy
   - layout: container, sekcje, hero
   - komponenty: btn, card, form, gallery, quotes, legal
   ========================================================= */

/* =========================
   1) TOKENS — TUTAJ NAJWIĘCEJ ZMIENIASZ
   ========================= */
:root{
  /* Kolory */
  --bg: #f6f6f5;           /* tło strony */
  --surface: #ffffff;      /* tło kart/paneli */
  --text: #141414;         /* tekst */
  --muted: rgba(20,20,20,.62);
  --line: rgba(20,20,20,.12);
  --accent: #a6784f;       /* “drewno” jako delikatny akcent */

  /* Typografia */
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --fs-0: 14px;
  --fs-1: 16px;
  --fs-2: 18px;
  --fs-3: 22px;
  --fs-4: 30px;
  --fs-5: 44px;

  /* Linie i promienie */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;

  /* Cienie (spokojne) */
  --shadow-sm: 0 10px 22px rgba(0,0,0,.08);
  --shadow:    0 16px 40px rgba(0,0,0,.12);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(16px, 3vw, 28px);

  /* Sekcje */
  --section-y: clamp(46px, 5.5vw, 78px);

  /* Header height (domyślnie, header.css może nadpisać) */
  --header-h: 88px;

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* =========================
   2) RESET / BAZA
   ========================= */
*,
*::before,
*::after{ box-sizing: border-box; }

html{
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  color-scheme: light;
}

body{
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: var(--fs-1);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Media */
img, video{ max-width: 100%; height: auto; display: block; }
/* SVG jako ikonki (nie blok) */
svg{ display: inline-block; vertical-align: middle; }

/* Linki — bazowo nie psuj nav, underline tylko na hover */
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Tekst (fallback + color-mix jeśli wspierany) */
p{
  margin: 0 0 12px;
  color: rgba(20,20,20,.92);
  color: color-mix(in srgb, var(--text) 92%, #fff 8%);
}
ul, ol{ margin: 0 0 12px; padding-left: 18px; }
li{ margin: 6px 0; }

h1, h2, h3, h4{
  margin: 0 0 10px;
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--text);
}

h1{ font-size: clamp(34px, 4.2vw, 54px); font-weight: 860; }
h2{ font-size: clamp(26px, 3vw, 38px);  font-weight: 840; }
h3{ font-size: clamp(18px, 2.1vw, 24px); font-weight: 800; }
h4{ font-size: 16px; font-weight: 780; }

small{ font-size: 12px; color: var(--muted); }

::selection{
  background: color-mix(in srgb, var(--accent) 30%, #000 70%);
  color: #fff;
}

:focus-visible{
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, var(--text) 45%);
  outline-offset: 3px;
  border-radius: 10px;
}

/* A11y helper */
.sr-only{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Buttons / forms reset */
button, input, textarea, select{
  font: inherit;
}
button{
  cursor: pointer;
}
button:disabled{
  cursor: not-allowed;
  opacity: .6;
}

/* =========================
   3) LAYOUT
   ========================= */
.container{
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.site-main{ min-height: 60vh; }

/* Uniwersalne sekcje */
.page-section,
.home-block{
  padding: var(--section-y) 0;
}

.page-section{ background: transparent; }

/* Delikatne oddzielenie sekcji na jasnym tle */
.home-block + .home-block{
  border-top: 1px solid rgba(20,20,20,.10);
  border-top-color: color-mix(in srgb, var(--line) 70%, transparent 30%);
}

/* Kicker */
.kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =========================
   4) HERO
   ========================= */
.page-hero{
  position: relative;
  overflow: hidden;
}

/* hero proste */
.page-hero--simple{
  padding: clamp(40px, 6vw, 78px) 0 clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  background: color-mix(in srgb, var(--surface) 75%, transparent 25%);
}

.page-hero-eyebrow{
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-hero-title{ margin: 0 0 10px; }

.page-hero-lead{
  margin: 0;
  max-width: 70ch;
  font-size: var(--fs-2);
  color: var(--muted);
}

/* hero obrazkowe */
.page-hero--image{
  min-height: clamp(520px, 72vh, 820px);
  display: grid;
  align-items: stretch;
  border-bottom: 1px solid rgba(0,0,0,.10);
  background: #0f0f0f;
}

.page-hero-media{ position: absolute; inset: 0; z-index: 0; }

.page-hero-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  filter: contrast(1.02) saturate(.96);
}

/* mgła/akcent */
.hero-accent{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.18) 24%, rgba(0,0,0,.42) 100%),
    radial-gradient(circle at 50% 38%, rgba(0,0,0,.06) 0%, rgba(0,0,0,.18) 52%, rgba(0,0,0,.44) 100%);
  pointer-events: none;
}

.page-hero-layer{ position: relative; z-index: 2; padding: clamp(34px, 5vw, 70px) 0; }
.page-hero-inner{ max-width: 820px; }
.page-hero-text{ color: rgba(255,255,255,.92); }
.page-hero--home .page-hero-title{ color: #fff; }
.page-hero--home .page-hero-lead{ color: rgba(255,255,255,.78); }

.page-hero-actions{
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   5) BUTTONS
   ========================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.80);
  background: color-mix(in srgb, var(--surface) 80%, transparent 20%);
  color: var(--text);
  font-weight: 760;
  font-size: 15px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
  text-decoration: none;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(20,20,20,.22);
  border-color: color-mix(in srgb, var(--line) 40%, var(--text) 60%);
  text-decoration: none;
}

.btn:active{ transform: translateY(0); }

.btn-primary{
  background: var(--text);
  color: #fff;
  border-color: transparent;
}

.btn-primary:hover{
  background: color-mix(in srgb, var(--text) 88%, var(--accent) 12%);
}

/* =========================
   6) CARDS / GRIDS
   ========================= */
.cards-grid{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card{
  grid-column: span 6;
  padding: 20px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--line) 30%, var(--text) 70%);
}

.card p{
  margin: 6px 0 0;
  color: var(--muted);
}

@media (max-width: 900px){
  .card{ grid-column: span 12; }
}

/* =========================
   7) FEATURE LIST
   ========================= */
.feature-list{
  margin-top: 16px;
  padding-left: 18px;
  color: rgba(20,20,20,.90);
  color: color-mix(in srgb, var(--text) 90%, #fff 10%);
}

.feature-list strong{
  color: var(--text);
  font-weight: 820;
}

/* =========================
   8) QUOTES
   ========================= */
.quotes-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.quote{
  grid-column: span 4;
  padding: 20px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.quote blockquote{
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 720;
  color: rgba(20,20,20,.92);
  color: color-mix(in srgb, var(--text) 92%, #fff 8%);
}

.quote figcaption{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px){
  .quote{ grid-column: span 12; }
}

/* =========================
   9) CONTACT
   ========================= */
.contact-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  align-items: start;
}

.contact-box{
  padding: 18px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.contact-row{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(20,20,20,.10);
  border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent 30%);
}

.contact-row:last-child{ border-bottom: 0; }

.contact-row .label{
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-row a{
  color: var(--text);
  font-weight: 760;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.contact-row a:hover{ border-bottom-color: rgba(20,20,20,.25); }

.contact-form{
  padding: 18px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.form-row{
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.form-row label{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

input, textarea, select{
  width: 100%;
  font-size: 16px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

textarea{ resize: vertical; min-height: 120px; }

input:focus, textarea:focus, select:focus{
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--text) 55%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent 82%);
}

.checkbox{
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.checkbox input{
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: color-mix(in srgb, var(--text) 80%, var(--accent) 20%);
}

@media (max-width: 980px){
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-row{ grid-template-columns: 90px 1fr; }
}

/* =========================
   10) GALLERY
   ========================= */
.gallery-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.gallery-item{
  grid-column: span 3;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}

.gallery-item:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--line) 30%, var(--text) 70%);
}

.gallery-item.is-placeholder span{
  color: var(--muted);
  font-weight: 760;
  letter-spacing: .06em;
}

@media (max-width: 980px){
  .gallery-item{ grid-column: span 6; }
}
@media (max-width: 560px){
  .gallery-item{ grid-column: span 12; }
}

/* =========================
   11) LEGAL
   ========================= */
.legal-section{
  padding: var(--section-y) 0;
}

.legal-section h2{
  margin-top: 22px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 840;
}

.legal-section p,
.legal-section li{
  max-width: 78ch;
  color: rgba(20,20,20,.92);
  color: color-mix(in srgb, var(--text) 92%, #fff 8%);
}

.legal-section a{
  color: var(--text);
  font-weight: 760;
  text-decoration: none;
  border-bottom: 1px solid rgba(20,20,20,.22);
}
.legal-section a:hover{
  border-bottom-color: rgba(20,20,20,.45);
}

/* =========================
   12) ANIM (jeśli używasz data-anim)
   ========================= */
/*
  Progressive enhancement:
  - bez JS elementy są widoczne
  - JS dodaje body.has-anim i dopiero wtedy włącza się animacja
*/
body.has-anim [data-anim]{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

body.has-anim [data-anim].is-inview{
  opacity: 1;
  transform: none;
}

body.has-anim [data-anim][data-anim-delay]{
  transition-delay: var(--anim-delay, 0s);
}

@media (prefers-reduced-motion: reduce){
  body.has-anim [data-anim]{ opacity: 1; transform: none; }
}

/* =========================
   13) JS / UX HELPERS
   ========================= */

/* usuń potencjalne "offsety" zostawione w layoutach */
.site-main{ padding-top: 0; padding-bottom: 0; }

body.no-scroll{ overflow: hidden; }

/* Back-to-top */
.back-to-top{
  position: fixed;
  right: clamp(12px, 2.2vw, 22px);
  bottom: clamp(12px, 2.2vw, 22px);
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 55%, var(--text) 45%);
  background: color-mix(in srgb, var(--surface) 86%, transparent 14%);
  color: var(--text);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  z-index: 260;
}

.back-to-top.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover{ text-decoration: none; transform: translateY(-1px); }

/* =========================
   15) GLOBAL LIGHTBOX + ZOOMOWANIE ZDJĘĆ
   ========================= */
html.is-lb-open,
html.is-lb-open body{
  overflow: hidden;
}

.site-main img.js-zoomable{
  cursor: zoom-in;
  transition: filter .18s var(--ease), opacity .18s var(--ease);
}

.site-main img.js-zoomable:hover{
  filter: brightness(1.03);
}

.site-main img.js-zoomable:focus-visible{
  outline: 2px solid rgba(20,20,20,.38);
  outline-offset: 4px;
  border-radius: 14px;
}

.lb-backdrop{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.82);
  padding: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lb-backdrop.is-open{
  display: flex;
}

.lb-backdrop .lb-img{
  max-width: min(1280px, 92vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  background: #0f0f0f;
}

.lb-backdrop .lb-close,
.lb-backdrop .lb-prev,
.lb-backdrop .lb-next{
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  z-index: 10000;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lb-backdrop .lb-close{
  top: 14px;
  right: 14px;
  font-size: 28px;
  line-height: 1;
}

.lb-backdrop .lb-prev,
.lb-backdrop .lb-next{
  top: 50%;
  transform: translateY(-50%);
  font-size: 34px;
  line-height: 1;
}

.lb-backdrop .lb-prev{
  left: 14px;
}

.lb-backdrop .lb-next{
  right: 14px;
}

.lb-backdrop .lb-close:hover,
.lb-backdrop .lb-prev:hover,
.lb-backdrop .lb-next:hover{
  background: rgba(0,0,0,.58);
  border-color: rgba(255,255,255,.38);
}

.lb-backdrop .lb-counter{
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.42);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 560px){
  .lb-backdrop{
    padding: 12px;
  }

  .lb-backdrop .lb-prev,
  .lb-backdrop .lb-next,
  .lb-backdrop .lb-close{
    width: 46px;
    height: 46px;
  }

  .lb-backdrop .lb-prev,
  .lb-backdrop .lb-next{
    font-size: 30px;
  }

  .lb-backdrop .lb-close{
    font-size: 24px;
  }

  .lb-backdrop .lb-counter{
    bottom: 10px;
    font-size: 12px;
  }
}

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

/* =========================
   SUB HERO (PODSTRONY) — osobne klasy, bez wpływu na HOME
   ========================= */

.sub-hero{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,.10);
  background: #0f0f0f;
}

.sub-hero--video{
  /* “ponad pół ekranu” + możliwość nadpisania per podstrona */
  min-height: var(--subhero-h, clamp(420px, 58vh, 640px));
}

.sub-hero-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sub-hero-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  filter: contrast(1.02) saturate(.96);
  pointer-events: none;
}

.sub-hero-accent{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(1200px 520px at 20% 60%, rgba(0,0,0,.18), transparent 60%),
    radial-gradient(900px 420px at 80% 40%, rgba(0,0,0,.14), transparent 60%),
    linear-gradient(to bottom, rgba(0,0,0,.10), rgba(0,0,0,.22));
  pointer-events: none;
}

.sub-hero-layer{
  position: relative;
  z-index: 2;
  min-height: var(--subhero-h, clamp(420px, 58vh, 640px));
  padding: clamp(34px, 5vw, 70px) 0;
  display: flex;
  align-items: center;
}

.sub-hero-inner{
  width: 100%;
}

.sub-hero-text{
  max-width: 980px;        /* jak w HOME */
  margin-inline: auto;     /* jak w HOME */
  text-align: center;      /* jak w HOME */
  color: rgba(255,255,255,.92);
}

.sub-hero-title{
  margin: 0;
  color: #fff;
}

@media (prefers-reduced-motion: reduce){
  .sub-hero-video{ display: none; }
}.sub-hero-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  filter: contrast(1.02) saturate(.96);
  display: block;
}

/* =========================
   COOKIES
   ========================= */
.cookie-banner{
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1400;
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.cookie-banner.is-hidden{
  display: none;
}

.cookie-banner__inner{
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.cookie-banner__copy{
  min-width: 0;
}

.cookie-banner__copy strong{
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.cookie-banner__copy p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 72ch;
}

.cookie-banner__actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.cookie-banner__actions .btn{
  white-space: nowrap;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
}

.cookie-panel-backdrop{
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(4px);
}

.cookie-panel-backdrop[hidden]{
  display: none !important;
}

.cookie-panel{
  width: min(760px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.cookie-panel__header,
.cookie-panel__footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
}

.cookie-panel__header{
  border-bottom: 1px solid var(--line);
}

.cookie-panel__footer{
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.cookie-panel__body{
  padding: 24px;
  display: grid;
  gap: 18px;
}

.cookie-panel__eyebrow{
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.cookie-panel__header h3{
  margin: 0;
  font-size: 30px;
}

.cookie-panel__close{
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cookie-panel-section{
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.cookie-panel-section h4{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.cookie-panel-section p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cookie-row{
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-row--locked{
  align-items: center;
}

.cookie-badge{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.05);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.cookie-toggle{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.cookie-toggle input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-toggle__slider{
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #d7d0c7;
  transition: background-color .2s ease;
  flex: 0 0 auto;
}

.cookie-toggle__slider::after{
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  transition: transform .2s ease;
}

.cookie-toggle input:checked + .cookie-toggle__slider{
  background: var(--accent);
}

.cookie-toggle input:checked + .cookie-toggle__slider::after{
  transform: translateX(22px);
}

.cookie-toggle__label{
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

body.cookie-panel-open{
  overflow: hidden;
}

.btn-secondary{
  background: rgba(255,255,255,.72);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover{
  background: #fff;
}

@media (max-width: 1180px){
  .cookie-banner__inner{
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cookie-banner__actions{
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px){
  .cookie-banner{
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .cookie-banner__inner{
    padding: 16px;
    border-radius: 20px;
    gap: 16px;
  }

  .cookie-banner__copy p{
    font-size: 13px;
    line-height: 1.55;
  }

  .cookie-banner__actions{
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 10px;
  }

  .cookie-banner__actions .btn{
    width: 100%;
    justify-content: center;
  }

  .cookie-panel-backdrop{
    padding: 14px;
  }

  .cookie-panel__header,
  .cookie-panel__body,
  .cookie-panel__footer{
    padding: 18px;
  }

  .cookie-row{
    flex-direction: column;
    align-items: flex-start;
  }
}