/* ATG Technologie — wspólne style (poza tym co daje Tailwind CDN) */

:root {
  --cream:    #FAF5EC;
  --cream2:   #F1E7D6;
  --wood:     #8B5A2B;
  --woodd:    #5A3A20;
  --woodx:    #3A2716;
  --atg:      #CC2E26;
  --atgd:     #A11F18;
  --amber:    #F39200;
  --graphite: #211E1B;
  --graphite2:#2C2825;
  --olive:    #6E7A4F;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--graphite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Sora', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

/* ===== Akcent-linijka 60×3px (czerwień ATG) ===== */
.accent-bar {
  display: inline-block;
  width: 60px;
  height: 3px;
  background: var(--atg);
  margin-bottom: 1rem;
  vertical-align: middle;
  border-radius: 2px;
}
.accent-bar--amber { background: var(--amber); }
.accent-bar--cream { background: var(--cream); }

/* ===== Grain overlay (do hero/ciemnych sekcji) ===== */
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.35;
  mix-blend-mode: overlay;
  z-index: 1;
}

/* ===== Gradient drewna (hero — ciemny, sekcje CTA) ===== */
.bg-wood-hero {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(243,146,0,0.18), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(204,46,38,0.20), transparent 55%),
    linear-gradient(135deg, #2A1A0F 0%, #3A2716 35%, #5A3A20 70%, #3A2716 100%);
}

/* ===== Hero v2 — mid-tone z PNG produktu ===== */
.hero-v2 {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  max-width: 100vw;
}
@media (min-width: 1024px) {
  .hero-v2 { min-height: 92vh; }
}
@media (max-width: 640px) {
  .hero-v2 { min-height: auto; }
}

/* Globalne: nie pozwalaj nigdy na horyzontalny scroll */
html, body {
  overflow-x: clip;
  max-width: 100vw;
}
.hero-v2__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    /* spotlight bursztynowy z prawej (za produktem) */
    radial-gradient(ellipse 55% 70% at 78% 55%, rgba(243,146,0,0.32), transparent 65%),
    /* drugi spotlight czerwonawy niżej */
    radial-gradient(ellipse 40% 50% at 88% 80%, rgba(204,46,38,0.18), transparent 70%),
    /* poziomy gradient: jasny krem po lewej → drewno po prawej */
    linear-gradient(95deg, #F4EBDC 0%, #ECDEC7 28%, #B68A5A 60%, #6B4828 88%, #4A3320 100%);
  transform: scale(1.05);
  animation: slowZoom 18s ease-in-out infinite alternate;
}
@keyframes slowZoom { to { transform: scale(1.12); } }
.hero-v2__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* delikatne słoje drewna jako SVG turbulence */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='0.012 0.6' numOctaves='3' seed='4'/><feColorMatrix values='0 0 0 0 0.36  0 0 0 0 0.23  0 0 0 0 0.13  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23w)' opacity='0.4'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
  background-blend-mode: overlay, normal;
  opacity: .22;
  mix-blend-mode: multiply;
}
.hero-v2__product {
  filter: drop-shadow(0 35px 45px rgba(0,0,0,.5)) drop-shadow(0 12px 18px rgba(106,72,40,.4));
  animation: heroFloat 5s ease-in-out infinite;
  height: auto;
  width: auto;
  max-height: 78vh;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  display: block;
}
@media (min-width: 1024px) {
  .hero-v2__product {
    max-height: 88vh;
    width: 100%;
    max-width: 100%;
  }
}

/* Ukryj paginację Swipera w hero */
.hero-product-swiper .swiper-pagination,
.hero-text-swiper .swiper-pagination,
.hero-pagination { display: none !important; }

/* Constraint szerokości slajdów swipera w hero (zapobiega overflow na mobile) */
.hero-product-swiper,
.hero-text-swiper {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  position: relative;
}
.hero-product-swiper .swiper-wrapper,
.hero-text-swiper .swiper-wrapper {
  max-width: 100% !important;
  width: 100% !important;
}
.hero-product-swiper .swiper-slide,
.hero-text-swiper .swiper-slide {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* ===== Hero v3 — wodny znak marki w tle ===== */
.hero-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}
.hero-watermark span {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(4rem, 18vw, 22rem);
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--woodd);
  opacity: 0.085;
  white-space: nowrap;
  user-select: none;
  text-transform: uppercase;
  transition: opacity .5s ease;
  max-width: 100%;
}
.hero-watermark {
  overflow: hidden;
}
@media (max-width: 640px) {
  .hero-watermark span { font-size: clamp(3rem, 15vw, 6rem); opacity: 0.08; }
}

/* ===== Hero v3 — zakręcona strzałka SVG ===== */
.hero-arrow {
  position: absolute;
  pointer-events: none;
  z-index: 3;
}
.hero-arrow svg path {
  fill: none;
  stroke: var(--graphite);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: drawArrow 1.6s ease-out forwards;
  animation-delay: 0.4s;
}
.hero-arrow.is-amber svg path { stroke: var(--amber); }
.hero-arrow__label {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--graphite);
  background: rgba(250,245,236,0.85);
  backdrop-filter: blur(4px);
  padding: .3rem .65rem;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  animation: fadeIn .6s ease-out forwards;
  animation-delay: 1.4s;
}
@keyframes drawArrow {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ===== Hero v3 — glass pigułki info ===== */
.info-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .9rem;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  box-shadow: 0 12px 28px -10px rgba(58,39,22,.25), 0 2px 6px rgba(0,0,0,.06);
  font-size: .8rem;
  font-weight: 600;
  color: var(--graphite);
  white-space: nowrap;
  z-index: 4;
  opacity: 0;
  animation: pillIn .6s cubic-bezier(.2,.8,.2,1) forwards;
}
.info-pill .pill-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(243,146,0,.6);
  flex-shrink: 0;
}
@keyframes pillIn {
  from { opacity: 0; transform: translateY(8px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.info-pill.pos-tl { top: 10%;  left: -2%; animation-delay: .8s; }
.info-pill.pos-tr { top: 18%;  right: -2%; animation-delay: 1.0s; }
.info-pill.pos-br { bottom: 18%; right: 0%; animation-delay: 1.2s; }
@media (max-width: 1023px) {
  .info-pill { font-size: .7rem; padding: .35rem .65rem; }
  .info-pill.pos-tl { top: 4%; left: 2%; }
  .info-pill.pos-tr { top: 8%; right: 2%; }
  .info-pill.pos-br { bottom: 8%; right: 2%; }
}

/* ===== Hero v3 — pasek statystyk z separatorami ===== */
.stats-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 1.2rem 1.6rem;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(58,39,22,0.08);
  border-radius: 18px;
  box-shadow: 0 18px 40px -22px rgba(58,39,22,.35);
  max-width: 640px;
}
.stats-bar__item {
  flex: 1;
  padding: 0 1.2rem;
  border-right: 1px solid rgba(58,39,22,0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.stats-bar__item:first-child { padding-left: 0; }
.stats-bar__item:last-child  { border-right: 0; padding-right: 0; }
.stats-bar__num {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--atg);
  letter-spacing: -0.03em;
}
.stats-bar__lbl {
  font-size: .82rem;
  color: rgba(33,30,27,.7);
  margin-top: .35rem;
  line-height: 1.3;
}
.stats-bar__sub {
  font-size: .7rem;
  color: rgba(33,30,27,.55);
  margin-top: .25rem;
  letter-spacing: 0.04em;
  font-weight: 500;
}
@media (max-width: 640px) {
  .stats-bar { flex-direction: column; gap: .8rem; padding: 1.1rem; max-width: 100%; }
  .stats-bar__item { padding: .7rem 0; border-right: 0; border-bottom: 1px solid rgba(58,39,22,0.10); min-width: 100%; text-align: left; }
  .stats-bar__item:first-child { padding-top: 0; }
  .stats-bar__item:last-child { border-bottom: 0; padding-bottom: 0; }
  .stats-bar__num { font-size: 2.6rem; }
}

/* ===== Karta asortymentu IRIS — z numerem/badgem ===== */
.assort-card {
  position: relative;
  background:
    radial-gradient(ellipse 50% 35% at 0% 0%, rgba(243,146,0,0.10), transparent 60%),
    linear-gradient(160deg, #FFFFFF 0%, #FAF5EC 100%);
  border-radius: 18px;
  padding: 1.8rem 1.8rem 1.8rem 5.5rem;
  border: 1px solid rgba(58,39,22,0.06);
  box-shadow: 0 20px 50px -30px rgba(58,39,22,.45);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
}
.assort-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -25px rgba(58,39,22,.55);
  border-color: rgba(204,46,38,0.18);
}
.assort-card__num {
  position: absolute;
  top: 1.5rem;
  left: 1.7rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  color: var(--cream);
  background: linear-gradient(135deg, var(--atg) 0%, var(--atgd) 100%);
  border-radius: 10px;
  box-shadow: 0 10px 20px -8px rgba(204,46,38,.45);
}
.assort-card__icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--amber);
  opacity: .55;
}
.assort-card__strip {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--atg) 0%, var(--amber) 100%);
  opacity: .8;
}
.assort-card__list {
  list-style: none;
  margin: .9rem 0 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.assort-card__list li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  color: rgba(33,30,27,.82);
  font-size: .95rem;
  line-height: 1.55;
}
.assort-card__list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--atg);
  flex-shrink: 0;
  margin-top: .55rem;
}

/* ===== Karta usługi IRIS / serwisu (spójna z assort-card) ===== */
.service-card {
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(243,146,0,0.08), transparent 60%),
    linear-gradient(160deg, #FFFFFF 0%, #FAF5EC 100%);
  border-radius: 18px;
  padding: 2rem 1.8rem 1.8rem 5.5rem;
  border: 1px solid rgba(58,39,22,0.06);
  box-shadow: 0 20px 50px -30px rgba(58,39,22,.45);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -25px rgba(58,39,22,.55);
  border-color: rgba(204,46,38,0.16);
}
.service-card__strip {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--atg) 0%, var(--amber) 100%);
  opacity: .8;
}
.service-card__icon {
  position: absolute;
  top: 1.7rem;
  left: 1.7rem;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(204,46,38,0.10);
  color: var(--atg);
  transition: transform .35s ease;
}
.service-card:hover .service-card__icon { transform: scale(1.08) rotate(-3deg); }
.service-card--amber .service-card__icon { background: rgba(243,146,0,0.15); color: var(--amber); }
.service-card--olive .service-card__icon { background: rgba(110,122,79,0.15); color: var(--olive); }
.service-card--wood  .service-card__icon { background: rgba(139,90,43,0.15);  color: var(--wood);  }
.service-card__dot {
  position: absolute;
  top: 2.2rem;
  right: 1.8rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(243,146,0,.55);
}

/* ===== Ikony otworów (SVG circles) ===== */
.hole-icon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: .6rem .55rem;
  border-radius: 10px;
  background: rgba(250,245,236,0.7);
  border: 1px solid rgba(58,39,22,0.08);
  transition: background .2s ease, border-color .2s ease;
}
.hole-icon:hover {
  background: var(--cream);
  border-color: rgba(204,46,38,0.25);
}
.hole-icon svg { display: block; }
.hole-icon__label {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  color: var(--graphite);
}

/* ===== Accordion specyfikacji (materiały ścierne) ===== */
.spec-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .9rem 1.1rem;
  background: var(--cream);
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--graphite);
  transition: background .2s ease, color .2s ease;
}
.spec-accordion summary::-webkit-details-marker { display: none; }
.spec-accordion summary:hover { background: var(--cream2); color: var(--atg); }
.spec-accordion[open] summary { background: var(--cream2); color: var(--atg); border-radius: 12px 12px 0 0; }
.spec-accordion summary .acc-caret {
  display: inline-block;
  transition: transform .25s ease;
}
.spec-accordion[open] summary .acc-caret { transform: rotate(180deg); }
.spec-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background: #fff;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  display: block;
}
@media (max-width: 640px) {
  .spec-table { overflow-x: auto; }
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid rgba(58,39,22,0.08);
  vertical-align: top;
  font-size: .92rem;
  line-height: 1.5;
}
.spec-table th {
  width: 32%;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--graphite);
  background: rgba(250,245,236,0.45);
}
.spec-table td { color: rgba(33,30,27,.82); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.hero-v2__shadow {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 60%;
  height: 35px;
  background: radial-gradient(ellipse 50% 50% at center, rgba(0,0,0,0.45), transparent 65%);
  transform: translateX(-50%);
  filter: blur(8px);
  z-index: -1;
  animation: heroShadow 5s ease-in-out infinite;
}
@keyframes heroShadow {
  0%, 100% { transform: translateX(-50%) scaleX(1) scaleY(1); opacity: .85; }
  50%      { transform: translateX(-50%) scaleX(.85) scaleY(.7); opacity: .55; }
}

/* ===== Karta kategorii v2 (z PNG produktem na ciepłym tle) ===== */
.card-cat2 {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 80%, rgba(243,146,0,0.25), transparent 70%),
    linear-gradient(160deg, #FAF5EC 0%, #F1E7D6 60%, #E5D2B0 100%);
  box-shadow: 0 20px 50px -30px rgba(58,39,22,.5);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.6rem 1.8rem;
  min-height: 380px;
}
.card-cat2:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px -25px rgba(58,39,22,.6);
}
.card-cat2__img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 0 1.2rem;
  position: relative;
}
.card-cat2__img-wrap::after {
  content: '';
  position: absolute;
  bottom: .5rem;
  left: 20%;
  right: 20%;
  height: 14px;
  background: radial-gradient(ellipse 50% 50% at center, rgba(58,39,22,0.35), transparent 70%);
  filter: blur(5px);
  z-index: 0;
}
.card-cat2__img {
  max-height: 200px;
  max-width: 92%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.18));
}
.card-cat2:hover .card-cat2__img { transform: scale(1.08) translateY(-4px); }
.card-cat2__arrow {
  display: inline-block;
  transition: transform .35s ease;
}
.card-cat2:hover .card-cat2__arrow { transform: translateX(8px); }

/* ===== Tooltip (legenda oznaczeń) ===== */
.tt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border-bottom: 1px dashed rgba(58,39,22,.35);
  cursor: help;
}
.tt::after {
  content: attr(data-tt);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--graphite);
  color: var(--cream);
  padding: .55rem .8rem;
  border-radius: 8px;
  font-size: .8rem;
  white-space: normal;
  max-width: 280px;
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .25s ease;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.4);
  z-index: 30;
  line-height: 1.45;
  text-align: left;
  font-weight: 400;
}
.tt:hover::after, .tt:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Sticky navbar ===== */
.nav-bar {
  transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.nav-bar.is-scrolled {
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 rgba(58,39,22,0.08), 0 12px 32px -24px rgba(58,39,22,.35);
}
.nav-link {
  position: relative;
  font-weight: 500;
  transition: color .2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -6px;
  height: 2px;
  background: var(--atg);
  transition: right .25s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after { right: 0; }

/* ===== Dropdown w nawigacji (desktop) ===== */
.nav-dropdown { position: relative; }
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  background: #fff;
  border-radius: 14px;
  padding: .55rem;
  box-shadow: 0 30px 60px -20px rgba(58,39,22,.35), 0 4px 12px rgba(0,0,0,.06);
  border: 1px solid rgba(58,39,22,.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .25s cubic-bezier(.2,.8,.2,1);
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown__menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px;
  background: #fff;
  border-left: 1px solid rgba(58,39,22,.06);
  border-top: 1px solid rgba(58,39,22,.06);
}
.nav-dropdown__menu a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .85rem;
  border-radius: 9px;
  font-size: .92rem;
  color: var(--graphite);
  transition: background .15s ease, color .15s ease;
}
.nav-dropdown__menu a:hover {
  background: var(--cream2);
  color: var(--atg);
}
.nav-dropdown__menu a .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--atg);
  flex-shrink: 0;
}
.nav-dropdown__caret { transition: transform .25s ease; }
.nav-dropdown:hover .nav-dropdown__caret { transform: rotate(180deg); }

/* ===== Accordion w drawerze (mobile) ===== */
.drawer-acc {
  border-radius: 8px;
}
.drawer-acc__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}
.drawer-acc__caret { transition: transform .25s ease; }
.drawer-acc.is-open .drawer-acc__caret { transform: rotate(180deg); }
.drawer-acc__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.2,.8,.2,1);
}
.drawer-acc.is-open .drawer-acc__panel { max-height: 600px; }
.drawer-acc__panel a {
  display: block;
  padding: .55rem 0 .55rem 1.1rem;
  font-size: .95rem;
  color: rgba(250,245,236,.78);
  border-left: 2px solid rgba(243,146,0,.35);
  margin-left: .25rem;
  margin-top: .2rem;
  transition: color .15s ease, border-color .15s ease;
}
.drawer-acc__panel a:hover {
  color: var(--amber);
  border-color: var(--amber);
}

/* ===== Sticky side-nav na stronach kategorii ===== */
.side-nav a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .85rem;
  font-size: .92rem;
  border-radius: 9px;
  color: var(--graphite);
  border-left: 2px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.side-nav a:hover {
  background: rgba(250,245,236,.6);
  color: var(--atg);
}
.side-nav a.is-active {
  background: var(--cream);
  color: var(--atg);
  border-left-color: var(--atg);
  font-weight: 600;
}

/* ===== Hero podstron (pas z gradientem drewna + breadcrumb) ===== */
.subhero {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 100%, rgba(243,146,0,0.14), transparent 60%),
    linear-gradient(135deg, #2A1A0F 0%, #3A2716 45%, #5A3A20 100%);
  color: var(--cream);
  padding: 8rem 0 4rem;
  overflow: hidden;
}
.subhero::before { /* grain */ }
.breadcrumb {
  font-size: .85rem;
  color: rgba(250,245,236,.6);
}
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span.sep { margin: 0 .5rem; opacity: .5; }

/* ===== Drawer (mobile) ===== */
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  /* Drawer zamknięty: fizycznie poza viewportem (zero overflow horizontalnego) */
  right: -100%;
  width: min(86vw, 360px);
  max-width: 100vw;
  background: var(--woodx);
  color: var(--cream);
  transition: right .35s cubic-bezier(.4,0,.2,1);
  z-index: 60;
  box-shadow: -20px 0 60px rgba(0,0,0,.4);
  pointer-events: none;
}
.drawer.is-open {
  right: 0;
  pointer-events: auto;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(33,30,27,0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 55;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ===== Karty kategorii ===== */
.card-cat {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 20px 50px -30px rgba(58,39,22,.5);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
  isolation: isolate;
}
.card-cat:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px -25px rgba(58,39,22,.6);
}
.card-cat__img {
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
  transform: scale(1.02);
}
.card-cat:hover .card-cat__img { transform: scale(1.12); }
.card-cat__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33,30,27,0) 30%, rgba(33,30,27,0.85) 100%);
  z-index: 1;
}
.card-cat__arrow {
  display: inline-block;
  transition: transform .35s ease;
}
.card-cat:hover .card-cat__arrow { transform: translateX(8px); }

/* ===== Karty produktów / brandów ===== */
.card-soft {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px -30px rgba(58,39,22,.45);
  transition: transform .35s ease, box-shadow .35s ease;
}
.card-soft:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -25px rgba(58,39,22,.55);
}

/* ===== Logo ATG (CSS wektor jako fallback / drobne miejsca) ===== */
.logo-atg {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-style: italic;
  color: var(--atg);
  letter-spacing: -0.02em;
  line-height: 1;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}
.logo-atg__main {
  font-size: 2rem;
  position: relative;
}
.logo-atg__main::after {
  content: '';
  position: absolute;
  top: -.15em;
  left: .12em;
  width: .22em;
  height: .22em;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(243,146,0,.55);
}
.logo-atg__sub {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 600;
  color: var(--graphite);
  font-size: .55rem;
  letter-spacing: .28em;
  margin-top: .2em;
}
.logo-atg--light .logo-atg__sub { color: var(--cream); }

/* ===== CTA przyciski ===== */
.btn-atg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.6rem;
  min-height: 44px;
  background: var(--atg);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 14px 34px -12px rgba(204,46,38,.55);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-atg:hover {
  background: var(--atgd);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(204,46,38,.65);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.6rem;
  border: 1.5px solid rgba(250,245,236,.5);
  color: var(--cream);
  font-weight: 600;
  border-radius: 999px;
  transition: background .25s ease, border-color .25s ease;
}
.btn-ghost:hover {
  background: rgba(250,245,236,.08);
  border-color: var(--cream);
}

/* ===== Swiper ===== */
.swiper-pagination-bullet { background: var(--cream) !important; opacity: .5; }
.swiper-pagination-bullet-active { background: var(--atg) !important; opacity: 1; width: 28px; border-radius: 4px; }
.swiper-button-next, .swiper-button-prev { color: var(--cream) !important; }
.swiper-button-next:after, .swiper-button-prev:after { font-size: 1.4rem !important; font-weight: 700; }

/* Hero v2 — kropki paginacji w tle drewna */
.hero-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(33,30,27,0.35);
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.hero-dot.is-active {
  width: 28px;
  background: var(--atg);
  border-radius: 4px;
}

/* ===== Cookies banner ===== */
.cookies-banner {
  position: fixed;
  bottom: 1rem; left: 1rem; right: 1rem;
  max-width: 920px; margin: 0 auto;
  background: var(--graphite);
  color: var(--cream);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
  display: none;
  z-index: 50;
  box-sizing: border-box;
}
.cookies-banner.is-visible { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
@media (max-width: 640px) {
  .cookies-banner { padding: .9rem 1rem; bottom: .5rem; left: .5rem; right: .5rem; font-size: .85rem; }
  .cookies-banner.is-visible { gap: .7rem; }
  .cookies-banner > div:last-child { width: 100%; }
  .cookies-banner button { flex: 1; min-height: 40px; }
}

/* ===== Form ===== */
.form-input,
.form-textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid rgba(58,39,22,.15);
  border-radius: 12px;
  padding: .85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--graphite);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--atg);
  box-shadow: 0 0 0 4px rgba(204,46,38,.12);
}
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--graphite);
}

/* ===== Utility ===== */
.text-balance { text-wrap: balance; }
.divider-soft { height: 1px; background: linear-gradient(90deg, transparent, rgba(58,39,22,.18), transparent); }

/* Marquee marek (opcjonalnie) */
@keyframes slow-pan {
  0% { transform: scale(1.05) translateX(0); }
  100% { transform: scale(1.12) translateX(-30px); }
}
.hero-img-pan { animation: slow-pan 18s ease-in-out infinite alternate; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
