/* =========================================================
   Pasieka Złoty Nektar – wspólne style
   ZASADA: nic nie jest ukrywane przed przewinięciem strony.
   ========================================================= */
:root {
  --wosk: #FFFDF7;
  --braz: #2C1A0E;
  --miod: #D97706;
  --zloto: #F59E0B;
  --hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

html { scroll-padding-top: 96px; }
body { background: var(--wosk); color: #3B2A1C; overflow-x: clip; -webkit-font-smoothing: antialiased; }
fieldset { min-width: 0; }

/* Tło – plaster miodu */
.honeycomb-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='rgba(217,119,6,.16)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}
.honeycomb-bg-dark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='rgba(245,158,11,.10)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}

/* ---------- Heksagony ---------- */
.hex { clip-path: var(--hex); }
.hex-cell {
  position: relative; aspect-ratio: 1 / 1.1547;
  transition: transform .55s cubic-bezier(.2, .7, .3, 1.25), filter .5s ease;
  filter: drop-shadow(0 12px 18px rgba(44, 26, 14, .18));
}
.hex-cell:hover, .hex-cell:focus-within {
  transform: scale(1.08) rotate(4deg); z-index: 5;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, .8)) drop-shadow(0 14px 26px rgba(217, 119, 6, .35));
}
.hex-frame { position: absolute; inset: 0; clip-path: var(--hex); background: linear-gradient(140deg, #FCD34D, #F59E0B 45%, #B45309); }
.hex-inner { position: absolute; inset: 6px; clip-path: var(--hex); overflow: hidden; background: var(--wosk); }
.hex-inner img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .3, 1); }
.hex-cell:hover .hex-inner img { transform: scale(1.12); }
.hex-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20% 14%; }

/* Wydłużone heksagonalne odznaki */
.hex-badge {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .95rem;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
  background: #FEF3C7; color: #92400E;
}
.hex-badge.dark { background: var(--braz); color: #FCD34D; }

/* ---------- Honey Glow Hover ---------- */
.honey-hover {
  background-image: linear-gradient(90deg, rgba(252, 211, 77, .75), rgba(245, 158, 11, .6));
  background-repeat: no-repeat; background-size: 0% .36em; background-position: 0 90%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .55s cubic-bezier(.2, .7, .3, 1), text-shadow .45s ease, transform .45s ease, color .3s ease;
}
.honey-hover:hover, .glow-parent:hover .honey-hover {
  background-size: 100% .36em; text-shadow: 0 0 22px rgba(245, 158, 11, .55);
}
.lift { display: inline-block; }
.lift:hover, .glow-parent:hover .lift { transform: translateY(-3px); }

/* ---------- Pszczółki ---------- */
.bees { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.bee { position: absolute; width: 40px; height: 34px; animation: fly1 24s ease-in-out infinite; will-change: transform; }
.bee svg { display: block; width: 100%; height: 100%; animation: bob .45s ease-in-out infinite alternate; overflow: visible; }
.bee .wing { transform-box: fill-box; transform-origin: 50% 100%; animation: flap .11s linear infinite alternate; }
.bee.b2 { width: 30px; height: 26px; animation-name: fly2; animation-duration: 19s; animation-delay: -6s; }
.bee.b3 { width: 34px; height: 29px; animation-name: fly3; animation-duration: 27s; animation-delay: -12s; }
.bee.b4 { width: 26px; height: 22px; animation-name: fly2; animation-duration: 31s; animation-delay: -20s; }
@keyframes flap { to { transform: scaleY(.3); } }
@keyframes bob { to { transform: translateY(4px); } }
@keyframes fly1 {
  0%    { transform: translate(0, 0) rotate(6deg) scaleX(1); }
  25%   { transform: translate(18vw, -70px) rotate(-6deg) scaleX(1); }
  49.9% { transform: translate(38vw, 20px) rotate(8deg) scaleX(1); }
  50%   { transform: translate(38vw, 20px) rotate(-8deg) scaleX(-1); }
  75%   { transform: translate(20vw, 90px) rotate(6deg) scaleX(-1); }
  99.9% { transform: translate(0, 0) rotate(-6deg) scaleX(-1); }
  100%  { transform: translate(0, 0) rotate(6deg) scaleX(1); }
}
@keyframes fly2 {
  0%    { transform: translate(0, 0) rotate(-4deg) scaleX(-1); }
  30%   { transform: translate(-22vw, 60px) rotate(6deg) scaleX(-1); }
  49.9% { transform: translate(-34vw, -30px) rotate(-6deg) scaleX(-1); }
  50%   { transform: translate(-34vw, -30px) rotate(6deg) scaleX(1); }
  80%   { transform: translate(-12vw, -80px) rotate(-4deg) scaleX(1); }
  99.9% { transform: translate(0, 0) rotate(4deg) scaleX(1); }
  100%  { transform: translate(0, 0) rotate(-4deg) scaleX(-1); }
}
@keyframes fly3 {
  0%    { transform: translate(0, 0) rotate(4deg) scaleX(1); }
  33%   { transform: translate(14vw, 80px) rotate(-6deg) scaleX(1); }
  49.9% { transform: translate(26vw, 10px) rotate(6deg) scaleX(1); }
  50%   { transform: translate(26vw, 10px) rotate(-6deg) scaleX(-1); }
  70%   { transform: translate(12vw, -70px) rotate(6deg) scaleX(-1); }
  99.9% { transform: translate(0, 0) rotate(-4deg) scaleX(-1); }
  100%  { transform: translate(0, 0) rotate(4deg) scaleX(1); }
}

/* ---------- Przyciski ---------- */
.btn-honey, .btn-outline, .btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border-radius: 999px; padding: .95rem 1.8rem; font-weight: 700; letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn-honey { background: linear-gradient(180deg, #FBBF24, #F59E0B 55%, #D97706); color: var(--braz); box-shadow: 0 5px 0 #92400E, 0 16px 30px -12px rgba(217, 119, 6, .8), inset 0 2px 0 rgba(255, 255, 255, .5); }
.btn-honey:hover { transform: translateY(-3px); box-shadow: 0 8px 0 #92400E, 0 22px 36px -12px rgba(217, 119, 6, .9), inset 0 2px 0 rgba(255, 255, 255, .5); }
.btn-honey:active { transform: translateY(3px); box-shadow: 0 2px 0 #92400E, 0 8px 16px -10px rgba(217, 119, 6, .8); }
.btn-outline { border: 2px solid var(--braz); color: var(--braz); background: rgba(255, 253, 247, .7); }
.btn-outline:hover { background: var(--braz); color: #FCD34D; transform: translateY(-3px); }
.btn-dark { background: var(--braz); color: #FDE68A; box-shadow: 0 5px 0 #120A04; }
.btn-dark:hover { transform: translateY(-3px); box-shadow: 0 8px 0 #120A04, 0 18px 30px -14px rgba(245, 158, 11, .7); }
.btn-dark:active { transform: translateY(3px); box-shadow: 0 2px 0 #120A04; }

/* ---------- Nawigacja ---------- */
.site-header { background: rgba(255, 253, 247, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(217, 119, 6, .2); }
.nav-link { position: relative; font-weight: 600; color: var(--braz); padding: .35rem 0; transition: color .25s; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #FCD34D, #D97706); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.nav-link:hover { color: var(--miod); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--miod); }

/* ---------- Karty ---------- */
.card { background: #fff; border: 1px solid rgba(217, 119, 6, .18); border-radius: 1.75rem; transition: transform .4s cubic-bezier(.2, .7, .3, 1), box-shadow .4s ease, border-color .4s; }
.card:hover { transform: translateY(-8px); border-color: rgba(245, 158, 11, .6); box-shadow: 0 30px 60px -30px rgba(146, 64, 14, .45); }

.size-opt input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.size-opt span { display: block; padding: .5rem .9rem; border-radius: 999px; border: 1.5px solid rgba(44, 26, 14, .2); font-size: .85rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.size-opt input:checked + span { background: var(--braz); border-color: var(--braz); color: #FCD34D; }
.size-opt input:focus-visible + span { outline: 3px solid var(--zloto); outline-offset: 2px; }

.filter-btn { padding: .7rem 1.3rem; border-radius: 999px; font-weight: 700; border: 1.5px solid rgba(44, 26, 14, .18); background: #fff; color: var(--braz); transition: all .25s; }
.filter-btn:hover { border-color: var(--miod); color: var(--miod); }
.filter-btn.active { background: var(--braz); color: #FCD34D; border-color: var(--braz); }

/* ---------- Formularz ---------- */
.field { width: 100%; border-radius: 1rem; border: 1.5px solid rgba(44, 26, 14, .15); background: var(--wosk); padding: .85rem 1rem; color: var(--braz); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field:focus { outline: none; border-color: var(--zloto); background: #fff; box-shadow: 0 0 0 4px rgba(245, 158, 11, .2); }
.field.err { border-color: #DC2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.choice { display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; border-radius: 1rem; border: 1.5px solid rgba(44, 26, 14, .14); background: var(--wosk); cursor: pointer; transition: border-color .2s, background-color .2s; font-size: .92rem; font-weight: 600; }
.choice:hover { border-color: var(--zloto); }
.choice:has(input:checked) { border-color: var(--miod); background: #FEF3C7; }
.choice input { width: 1.1rem; height: 1.1rem; accent-color: #D97706; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .bee, .bee svg, .bee .wing { animation: none; }
  .hex-cell, .honey-hover, .card, .btn-honey, .btn-outline, .btn-dark, .hex-inner img { transition: none; }
}
