/* ============================================================
   RESTAURACJA BIBLIOTEKA — Premium Redesign
   Editorial Luxury / Castle Heritage / Fine Dining
   ============================================================ */

/* --- @font-face --- */
@font-face {
  font-family: 'Amaline';
  src: url('../assets/fonts/AMALINE.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Futura';
  src: url('../assets/fonts/Futura-Medium-01.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Futura New';
  src: url('../assets/fonts/Futura-New-Medium-01.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* --- Google Fonts fallbacks loaded via <link> in HTML --- */

/* --- CSS Custom Properties --- */
:root {
  --burgundy: #561919;
  --cream: #FBF1DE;
  --gold: #CEA044;
  --red: #D90000;
  --wine-dark: #3D0C14;
  --charcoal: #1E1E1E;
  --white: #FFFFFF;
  --hero-overlay: rgba(0, 0, 0, 0.44);

  --font-display: 'Amaline', 'Roboto Slab', serif;
  --font-body: 'Futura New', 'Roboto', sans-serif;
  --font-ui: 'Futura', 'Poppins', sans-serif;

  --max-width: 1440px;
  --section-pad: clamp(60px, 8vw, 120px);
  --gap: clamp(16px, 2vw, 32px);
  --radius: 4px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}

h2 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 0.01em;
}

h3 {
  font-size: clamp(24px, 3vw, 36px);
}

p { max-width: 68ch; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

/* --- Utility --- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.gold-line {
  display: block;
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 16px 0 24px;
}

.gold-line--center { margin-left: auto; margin-right: auto; }

.section-label {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1.5px solid var(--cream);
  color: var(--cream);
  background: transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  z-index: 0;
}

.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: var(--burgundy); }
.btn span { position: relative; z-index: 1; }

.btn--gold {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--gold::before { background: var(--gold); }
.btn--gold:hover, .btn--gold:focus-visible { color: var(--burgundy); }

.btn--filled {
  background: var(--cream);
  color: var(--burgundy);
  border-color: var(--cream);
}
.btn--filled::before { background: var(--burgundy); }
.btn--filled:hover, .btn--filled:focus-visible { color: var(--cream); }

.btn--dark {
  border-color: var(--burgundy);
  color: var(--burgundy);
}
.btn--dark::before { background: var(--burgundy); }
.btn--dark:hover, .btn--dark:focus-visible { color: var(--cream); }

/* --- Grain overlay mixin (used on dark sections) --- */
.grain-overlay { position: relative; }
.grain-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-repeat: repeat;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}
.grain-overlay > * { position: relative; z-index: 2; }

/* ============================================================
   1. NAWIGACJA
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 clamp(20px, 3vw, 48px);
  transition: background var(--transition), padding var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(61, 12, 20, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: 0;
  padding-bottom: 0;
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 72px;
  transition: height var(--transition);
}

.nav.scrolled .nav__inner { height: 60px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.nav__link {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__link:hover::after, .nav__link:focus-visible::after { width: 100%; }
.nav__link:hover { color: var(--gold); }

.nav__logo {
  justify-self: center;
}

.nav__logo img {
  height: 44px;
  width: auto;
  transition: height var(--transition);
}

.nav.scrolled .nav__logo img { height: 36px; }

.nav__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.nav__cta {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
  transition: var(--transition);
}

.nav__cta:hover, .nav__cta:focus-visible {
  background: var(--gold);
  color: var(--burgundy);
}

.nav__social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav__social a {
  color: var(--cream);
  opacity: 0.7;
  transition: opacity var(--transition), color var(--transition);
}

.nav__social a:hover { opacity: 1; color: var(--gold); }

.nav__social svg { width: 18px; height: 18px; }

/* Hours indicator (in hero) */
.hero__hours {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
  margin-bottom: 24px;
}

.hero__hours-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero__hours-dot.closed {
  background: var(--red);
  animation: none;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  position: absolute;
  right: 0;
  z-index: 1010;
}

.nav__hamburger.active {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 1010;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: var(--transition);
}

.nav__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.nav__mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--burgundy);
  z-index: 1005;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav__mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-overlay a {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--cream);
  transition: color var(--transition);
}

.nav__mobile-overlay a:hover { color: var(--gold); }

/* ============================================================
   2. HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.05);
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}

.hero__icon {
  width: 48px;
  height: auto;
  margin: 0 auto 20px;
  opacity: 0.85;
}

.hero__icon img { filter: brightness(0) invert(1); }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.hero__subtitle {
  font-family: var(--font-ui);
  font-size: clamp(12px, 1.5vw, 18px);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 36px;
}

.hero__cta {
  margin-top: 8px;
}

.hero__video-toggle {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.hero__video-toggle:hover {
  background: rgba(0,0,0,0.5);
  border-color: var(--gold);
}

.hero__video-toggle svg { width: 18px; height: 18px; }

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  opacity: 0.6;
  animation: float-down 2s ease-in-out infinite;
}

@keyframes float-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.hero__scroll-hint span {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ============================================================
   3. SEASONAL BANNER
   ============================================================ */
.banner {
  background: var(--gold);
  color: var(--burgundy);
  padding: 16px 20px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0.04em;
  position: relative;
  transition: max-height var(--transition), padding var(--transition), opacity var(--transition);
  overflow: hidden;
}

.banner.hidden {
  max-height: 0;
  padding: 0;
  opacity: 0;
}

.banner__close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--burgundy);
  opacity: 0.6;
  font-size: 20px;
  transition: opacity var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}

.banner__close:hover { opacity: 1; }

/* ============================================================
   4. O RESTAURACJI (ABOUT)
   ============================================================ */
.about {
  background: var(--cream);
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.about__image-wrapper {
  position: relative;
  overflow: hidden;
}

.about__image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.about__image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -2px; right: -2px;
  width: 50%;
  height: 50%;
  border-right: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  pointer-events: none;
}

.about__content { padding: clamp(0px, 2vw, 20px) 0; }

.about__title {
  color: var(--burgundy);
  margin-bottom: 4px;
}

.about__text {
  color: var(--burgundy);
  margin-bottom: 20px;
  opacity: 0.85;
}

.about__quote {
  font-family: var(--font-ui);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--burgundy);
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin: 32px 0;
  max-width: 56ch;
}

/* ============================================================
   5. HERITAGE (DZIEDZICTWO)
   ============================================================ */
.heritage {
  background: var(--wine-dark);
  color: var(--cream);
  padding: var(--section-pad) 0;
  position: relative;
}

.heritage__header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.heritage__title { color: var(--cream); }

.heritage__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.heritage__card {
  background: rgba(86, 25, 25, 0.4);
  border: 1px solid rgba(206, 160, 68, 0.3);
  padding: clamp(28px, 3vw, 44px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.heritage__card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.heritage__card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.heritage__card-icon img {
  width: 100%;
  height: 100%;
}

.heritage__card h3 {
  font-size: clamp(22px, 2vw, 28px);
  color: var(--cream);
  margin-bottom: 12px;
}

.heritage__card p {
  font-size: 16px;
  opacity: 0.8;
  line-height: 1.7;
}

.heritage__card-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(206, 160, 68, 0.4);
  padding: 4px 12px;
  margin-top: 20px;
}

/* ============================================================
   6. MENU
   ============================================================ */
.menu-section {
  background: var(--cream);
  position: relative;
  padding: 0 0 var(--section-pad);
  border-top: 3px solid var(--gold);
  box-shadow: 0 -20px 60px rgba(206, 160, 68, 0.10);
}

.menu-section__banner {
  position: relative;
  height: 280px;
  background: url('../assets/backgrounds/menu-bg.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-section__banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(86, 25, 25, 0.82), rgba(206, 160, 68, 0.25));
}

.menu-section__banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
}

.menu-section__banner-icon {
  width: 36px;
  height: auto;
  margin: 0 auto 12px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.menu-section__body {
  background: var(--cream) url('../assets/backgrounds/menu-texture.png') repeat;
  background-size: 400px;
  padding: clamp(40px, 5vw, 60px) 0;
}

/* Allergen legend */
.menu-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--burgundy);
}

.menu-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
}

.menu-legend__badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  background: var(--burgundy);
  color: var(--cream);
}

/* Tabs */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.menu-tab {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1.5px solid var(--burgundy);
  color: var(--burgundy);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.menu-tab:hover { border-color: var(--gold); color: var(--gold); }
.menu-tab.active {
  background: var(--burgundy);
  color: var(--cream);
  border-color: var(--burgundy);
}

/* Menu grid */
.menu-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.menu-grid.active { display: grid; }

.menu-item {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(86, 25, 25, 0.1);
  padding: 24px 28px;
  transition: var(--transition);
}

.menu-item:hover {
  box-shadow: 0 4px 20px rgba(86, 25, 25, 0.08);
  border-color: var(--gold);
}

.menu-item__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.menu-item__name {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  color: var(--burgundy);
}

.menu-item__price {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-item__desc {
  font-size: 14px;
  color: var(--burgundy);
  opacity: 0.65;
  margin-bottom: 8px;
  line-height: 1.5;
}

.menu-item__badges {
  display: flex;
  gap: 4px;
}

.menu-item__badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  background: rgba(86, 25, 25, 0.08);
  color: var(--burgundy);
  font-family: var(--font-ui);
}

/* ============================================================
   7. WINOTEKA
   ============================================================ */
.winoteka {
  background: var(--wine-dark);
  color: var(--cream);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.winoteka__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/backgrounds/winoteka-bg.png') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.winoteka__content { position: relative; z-index: 2; }

.winoteka__header {
  display: flex;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 60px);
  margin-bottom: clamp(32px, 4vw, 56px);
  flex-wrap: wrap;
}

.winoteka__title {
  font-size: clamp(44px, 6vw, 80px);
  color: var(--cream);
}

.winoteka__stat {
  font-family: var(--font-ui);
  font-size: clamp(48px, 6vw, 72px);
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
}

.winoteka__stat-label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.6;
  margin-top: 4px;
}

.winoteka__intro {
  max-width: 72ch;
  margin-bottom: clamp(32px, 4vw, 56px);
  font-size: 17px;
  opacity: 0.85;
  line-height: 1.8;
}

.winoteka__regions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.winoteka__region {
  background: rgba(86, 25, 25, 0.35);
  border: 1px solid rgba(206, 160, 68, 0.25);
  padding: clamp(28px, 3vw, 40px);
  transition: var(--transition);
}

.winoteka__region:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.winoteka__region-icon {
  margin-bottom: 16px;
}

.winoteka__region-icon img { width: 64px; height: 64px; }

.winoteka__region h3 {
  font-size: clamp(22px, 2vw, 28px);
  margin-bottom: 10px;
}

.winoteka__region p {
  font-size: 15px;
  opacity: 0.75;
  line-height: 1.6;
}

/* Pairing guide */
.winoteka__guide {
  border-top: 1px solid rgba(206, 160, 68, 0.2);
  padding-top: clamp(32px, 4vw, 56px);
}

.winoteka__guide h3 {
  margin-bottom: 24px;
}

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

.winoteka__pairing {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.winoteka__pairing-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 14px;
}

.winoteka__pairing h4 {
  font-family: var(--font-ui);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.winoteka__pairing p {
  font-size: 14px;
  opacity: 0.7;
}

.winoteka__note {
  margin-top: clamp(32px, 4vw, 48px);
  padding: 24px 28px;
  border: 1px solid rgba(206, 160, 68, 0.3);
  background: rgba(206, 160, 68, 0.08);
  font-size: 15px;
  opacity: 0.85;
}

/* ============================================================
   8. KAWIARNIA SZNAJDER
   ============================================================ */
.cafe {
  background: var(--cream);
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.cafe__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.cafe__image-wrapper {
  position: relative;
  overflow: hidden;
}

.cafe__image-wrapper img {
  width: 100%;
  object-fit: cover;
}

.cafe__image-wrapper::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px;
  width: 50%;
  height: 50%;
  border-left: 3px solid var(--gold);
  border-top: 3px solid var(--gold);
  pointer-events: none;
  z-index: 1;
}

.cafe__logo {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
}

.cafe__title { color: var(--burgundy); margin-bottom: 4px; }
.cafe__text { color: var(--burgundy); opacity: 0.85; }

/* ============================================================
   9. GALERIA
   ============================================================ */
.gallery {
  background: var(--burgundy);
  padding: var(--section-pad) 0;
  position: relative;
}

.gallery__header {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.gallery__title { color: var(--cream); }

.gallery__grid {
  columns: 4;
  column-gap: 16px;
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(61, 12, 20, 0.4);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }

.gallery__item-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 2;
  opacity: 0;
  transition: var(--transition);
  color: var(--cream);
}

.gallery__item:hover .gallery__item-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--cream);
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.lightbox__close:hover { opacity: 1; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cream);
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition);
  padding: 20px;
}

.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ============================================================
   10. DOJAZD / PARKING
   ============================================================ */
.parking {
  background: var(--cream);
  padding: var(--section-pad) 0;
}

.parking__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.parking__title { color: var(--burgundy); margin-bottom: 4px; }

.parking__highlight {
  background: rgba(206, 160, 68, 0.12);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  margin: 24px 0;
  color: var(--burgundy);
}

.parking__highlight strong {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 14px;
}

.parking__steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.parking__step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.parking__step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parking__step p {
  font-size: 15px;
  color: var(--burgundy);
  opacity: 0.85;
}

.parking__map {
  width: 100%;
  height: 400px;
  border: none;
  filter: grayscale(0.3) contrast(1.05);
}

/* ============================================================
   11. FORMULARZ REZERWACJI
   ============================================================ */
.reservation {
  background: var(--burgundy);
  color: var(--cream);
  padding: var(--section-pad) 0;
  position: relative;
}

.reservation__inner {
  max-width: 720px;
  margin: 0 auto;
}

.reservation__title {
  text-align: center;
  color: var(--cream);
  margin-bottom: 8px;
}

.reservation__subtitle {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0.05em;
  opacity: 0.7;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group--full { grid-column: 1 / -1; }

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  background: rgba(251, 241, 222, 0.08);
  border: 1px solid rgba(251, 241, 222, 0.2);
  color: var(--cream);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(251, 241, 222, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FBF1DE' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--burgundy);
  color: var(--cream);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-alert {
  grid-column: 1 / -1;
  background: rgba(206, 160, 68, 0.15);
  border: 1px solid var(--gold);
  padding: 20px 24px;
  display: none;
  gap: 8px;
  flex-direction: column;
}

.form-alert.visible { display: flex; }

.form-alert__title {
  font-family: var(--font-ui);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.form-alert__text {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.6;
}

.form-alert a { color: var(--gold); text-decoration: underline; }

.form-submit {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 8px;
}

/* ============================================================
   12. KONTAKT
   ============================================================ */
.contact {
  background: var(--cream);
  padding: var(--section-pad) 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.contact__title { color: var(--burgundy); margin-bottom: 4px; }

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.contact__info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__info-icon img { width: 44px; height: 44px; }

.contact__info-item h4 {
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  opacity: 0.6;
  margin-bottom: 2px;
}

.contact__info-item p,
.contact__info-item a {
  font-size: 16px;
  color: var(--burgundy);
}

.contact__info-item a { transition: color var(--transition); }
.contact__info-item a:hover { color: var(--gold); }

.contact__map {
  width: 100%;
  height: 400px;
  border: none;
  filter: grayscale(0.3) contrast(1.05);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--wine-dark);
  color: var(--cream);
  padding: clamp(48px, 6vw, 80px) 0 0;
  position: relative;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.footer__brand p {
  font-size: 14px;
  opacity: 0.65;
  margin-top: 16px;
  line-height: 1.7;
}

.footer__logo {
  height: 48px;
  width: auto;
}

.footer__heading {
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 14px;
  opacity: 0.65;
  transition: opacity var(--transition), color var(--transition);
}

.footer__links a:hover { opacity: 1; color: var(--gold); }

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 10px;
}

.footer__contact-item svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--gold); }
.footer__contact-icon { width: 28px; height: 28px; flex-shrink: 0; }
.footer__contact-item a { transition: color var(--transition); }
.footer__contact-item a:hover { color: var(--gold); }

.footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer__socials a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(251, 241, 222, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: var(--transition);
}

.footer__socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer__socials svg { width: 16px; height: 16px; }

.footer__bottom {
  border-top: 1px solid rgba(251, 241, 222, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 12px;
  opacity: 0.5;
}

.footer__bottom a { transition: opacity var(--transition); }
.footer__bottom a:hover { opacity: 1; }

/* ============================================================
   13. COOKIE CONSENT
   ============================================================ */
.cookie {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: var(--wine-dark);
  color: var(--cream);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  transform: translateY(0);
  transition: transform var(--transition);
}

.cookie.hidden { transform: translateY(100%); }

.cookie__text { opacity: 0.8; }
.cookie__text a { color: var(--gold); text-decoration: underline; }

.cookie__accept {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 24px;
  background: var(--gold);
  color: var(--burgundy);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cookie__accept:hover { background: var(--cream); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.35s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__image-wrapper { max-height: 420px; }
  .about__image-wrapper img { height: 420px; object-fit: cover; }

  .heritage__cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .heritage__cards .heritage__card:last-child { grid-column: 1 / -1; }

  .winoteka__regions { grid-template-columns: 1fr 1fr; }
  .winoteka__regions .winoteka__region:last-child { grid-column: 1 / -1; }
  .winoteka__pairings { grid-template-columns: 1fr; }
  .winoteka__header { flex-direction: column; align-items: flex-start; }

  .cafe__grid { grid-template-columns: 1fr; }

  .gallery__grid { columns: 3; }

  .parking__grid { grid-template-columns: 1fr; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__map { height: 300px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .heritage__cards { grid-template-columns: 1fr; }
  .heritage__cards .heritage__card:last-child { grid-column: auto; }
  .winoteka__regions { grid-template-columns: 1fr; }
  .winoteka__regions .winoteka__region:last-child { grid-column: auto; }
  .gallery__grid { columns: 2; }
}

/* Mobile */
@media (max-width: 768px) {
  body { font-size: 16px; }

  .nav__links, .nav__social, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__right { display: none; }

  .nav__inner {
    display: flex;
    justify-content: center;
  }
  .nav__logo { justify-self: center; }
  .nav__logo img { height: 50px; }

  .hero__title { font-size: clamp(32px, 8vw, 48px); }

  .menu-grid { grid-template-columns: 1fr; }
  .menu-tabs { gap: 4px; }
  .menu-tab { font-size: 11px; padding: 8px 14px; }

  .form-grid { grid-template-columns: 1fr; }

  .gallery__grid { columns: 1; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  .cookie { flex-direction: column; gap: 12px; text-align: center; }

  .parking__map, .contact__map { height: 260px; }
}

@media (max-width: 480px) {
  .hero { min-height: 500px; }
  .hero__subtitle { letter-spacing: 0.12em; }
  .btn { padding: 12px 24px; font-size: 12px; }
  .banner { font-size: 12px; padding: 12px 36px 12px 16px; }
}

/* Focus-visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: var(--burgundy);
  color: var(--cream);
}

/* Smooth image load */
img {
  opacity: 1;
  transition: opacity 0.4s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--burgundy); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--wine-dark); }
