/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid var(--krc-gold);
  text-transform: uppercase;
}

.btn-primary {
  background: var(--krc-gold-gradient);
  color: #0c0a07;
  border: none;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.4);
  color: #000000;
}

.btn-outline {
  background: rgba(212, 175, 55, 0.05);
  color: var(--krc-gold-light);
  border-color: var(--krc-border);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--krc-gold);
  transform: translateY(-2px);
  color: #ffffff;
}

/* Luxury Hero Section */
.hero-luxury {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--krc-space-6);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-bottom: 1px solid var(--krc-border);
}

.hero-luxury::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(10, 9, 7, 0.6) 0%, rgba(10, 9, 7, 0.92) 100%),
              linear-gradient(180deg, rgba(10, 9, 7, 0.7) 0%, #0a0907 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.25rem;
  border-radius: 50px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--krc-border-glow);
  color: var(--krc-gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  color: var(--krc-text);
  margin-bottom: 1.25rem;
  font-weight: 700;
  line-height: 1.08;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--krc-muted);
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--krc-surface-card);
  border: 1px solid var(--krc-border);
  border-radius: var(--krc-radius);
  padding: 2rem 1.5rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--krc-gold-gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--krc-border-glow);
  box-shadow: var(--krc-shadow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--krc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--krc-gold);
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.feature-icon img.emoji,
.feature-icon img {
  width: 28px !important;
  height: 28px !important;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.feature-card h3 {
  font-size: 1.4rem;
  color: var(--krc-text);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--krc-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Category Filter Tabs */
.menu-tabs-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.menu-tab {
  background: var(--krc-surface);
  border: 1px solid var(--krc-border);
  color: var(--krc-muted);
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-tab:hover, .menu-tab.active {
  background: var(--krc-gold-gradient);
  color: #0c0a07;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

/* Category Sticky Navigation Bar (.menu-nav-tabs) */
.menu-nav-tabs {
  position: sticky;
  top: calc(var(--krc-nav-top, 72px) + 12px);
  z-index: 100;
  background: rgba(10, 9, 7, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  border: 1px solid var(--krc-border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  max-height: calc(100vh - var(--krc-nav-top, 72px) - 24px);
  overflow-y: auto;
}

/* Mobile & Tablet UX: Single-row horizontal scrollable navigation bar */
@media (max-width: 900px) {
  .menu-nav-tabs,
  .menu-tabs-wrap {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    padding: 0.65rem 0.85rem !important;
    border-radius: 25px !important;
    max-width: 100%;
    margin-bottom: 2rem !important;
  }

  .menu-nav-tabs::-webkit-scrollbar,
  .menu-tabs-wrap::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
  }

  .menu-nav-tabs .btn,
  .menu-tabs-wrap .menu-tab {
    flex: 0 0 auto !important;
    scroll-snap-align: start;
    white-space: nowrap !important;
    font-size: 0.85rem !important;
    padding: 0.5rem 1rem !important;
    min-height: 40px !important;
  }
}

/* Scroll-margin offset for category section anchors under sticky header & tab bar */
#pizzas, #bbq, #main, #pasta, #fish, #salads, #mezenza, #predyastiya, #soups, #desserts, #drinks, #alcohol {
  scroll-margin-top: 145px !important;
}

/* Category Menu Block & Items List */
.menu-category-block {
  margin-bottom: 4rem;
}

.menu-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--krc-border);
  padding-bottom: 0.85rem;
  margin-bottom: 2rem;
}

.menu-category-header h3 {
  font-size: 2rem;
  color: var(--krc-gold-light);
}

.menu-items-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.menu-item-row {
  background: var(--krc-surface-card);
  border: 1px solid var(--krc-border);
  border-radius: var(--krc-radius);
  padding: 1.35rem 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-item-row:hover {
  border-color: var(--krc-border-glow);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.menu-item-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.menu-item-title {
  font-family: var(--krc-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--krc-text);
}

.menu-item-dots {
  flex-grow: 1;
  border-bottom: 1px dotted rgba(212, 175, 55, 0.3);
  margin-inline: 0.5rem;
}

.menu-item-price {
  font-family: var(--krc-font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--krc-gold);
  white-space: nowrap;
}

.menu-item-desc {
  color: var(--krc-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.menu-item-meta {
  font-size: 0.8rem;
  color: rgba(212, 175, 55, 0.7);
  margin-top: 0.5rem;
}

/* Luxury Gallery Grid */
.gallery-section {
  padding-block: var(--krc-space-6);
  position: relative;
}

.gallery-grid-luxury {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--krc-radius);
  overflow: hidden;
  border: 1px solid var(--krc-border);
  aspect-ratio: 4 / 3;
  background: var(--krc-surface);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.gallery-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 9, 7, 0.85) 100%);
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.gallery-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem;
  z-index: 2;
  transform: translateY(10px);
  opacity: 0.9;
  transition: all 0.4s ease;
}

.gallery-card-title {
  font-family: var(--krc-font-display);
  font-size: 1.4rem;
  color: var(--krc-text);
}

.gallery-card:hover {
  border-color: var(--krc-gold);
  transform: translateY(-4px);
  box-shadow: var(--krc-shadow);
}

.gallery-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.gallery-card:hover .gallery-card-content {
  transform: translateY(0);
  opacity: 1;
}

/* Story / History Banner */
.story-banner {
  background: linear-gradient(135deg, rgba(20, 18, 14, 0.9) 0%, rgba(14, 12, 9, 0.95) 100%);
  border: 1px solid var(--krc-border);
  border-radius: var(--krc-radius-lg);
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-block: 3.5rem;
  position: relative;
  overflow: hidden;
}

.story-header-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .story-header-content {
    grid-template-columns: 1fr;
  }
  .story-banner {
    padding: 2.5rem 1.5rem;
  }
}

.story-gallery-horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .story-gallery-horizontal {
    grid-template-columns: 1fr;
  }
}

.story-gallery-item {
  position: relative;
  border-radius: var(--krc-radius);
  overflow: hidden;
  border: 1px solid var(--krc-border-glow);
  box-shadow: var(--krc-shadow);
  height: 220px;
}

.story-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story-gallery-item:hover img {
  transform: scale(1.07);
}

/* Stats Counter Pill */
.stats-strip {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  padding: 2.5rem 2rem;
  background: var(--krc-surface-card);
  border: 1px solid var(--krc-border);
  border-radius: var(--krc-radius);
  margin-top: 4rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--krc-font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--krc-gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--krc-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.5rem;
}

/* Interactive 360 Virtual Tour Component */
.virtual-tour-section {
  padding-block: 3.5rem;
  position: relative;
}

.virtual-tour-box {
  background: var(--krc-surface-card);
  border: 1px solid var(--krc-border-glow);
  border-radius: var(--krc-radius-lg);
  overflow: hidden;
  box-shadow: var(--krc-shadow);
  position: relative;
}

.tour-nav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
  background: rgba(14, 12, 9, 0.95);
  border-bottom: 1px solid var(--krc-border);
  flex-wrap: wrap;
}

.tour-tab-btn {
  background: var(--krc-surface);
  border: 1px solid var(--krc-border);
  color: var(--krc-muted);
  padding: 0.6rem 1.35rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tour-tab-btn:hover,
.tour-tab-btn.active {
  background: var(--krc-gold-gradient);
  color: #0c0a07;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.tour-viewport {
  position: relative;
  width: 100%;
  height: 520px;
  background: #000;
  overflow: hidden;
}

@media (max-width: 768px) {
  .tour-viewport {
    height: 360px;
  }
}

.tour-viewport-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.8s ease;
}

.tour-badge-360 {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(10, 9, 7, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--krc-gold);
  color: var(--krc-gold-light);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tour-controls {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.tour-ctrl-btn {
  width: 42px;
  height: 42px;
  border-radius: 50px;
  background: rgba(10, 9, 7, 0.85);
  border: 1px solid var(--krc-border);
  color: var(--krc-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.tour-ctrl-btn:hover {
  border-color: var(--krc-gold);
  color: var(--krc-gold);
  transform: scale(1.1);
}

/* Pulsing Hotspots on 360 Viewport */
.tour-hotspot {
  position: absolute;
  z-index: 10;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.hotspot-point {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--krc-gold);
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  animation: pulse360 1.8s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
}

@keyframes pulse360 {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.8);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 16px rgba(212, 175, 55, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

.hotspot-tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(14, 12, 9, 0.95);
  border: 1px solid var(--krc-gold);
  color: var(--krc-text);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: var(--krc-shadow);
}

.tour-hotspot:hover .hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* Centered features grid layout force */
.features-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 2rem !important;
  justify-content: center !important;
  align-items: stretch !important;
  margin-inline: auto !important;
  max-width: 1100px !important;
}

.features-grid .feature-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  justify-content: center !important;
}


/* Enforce 4 items per row on desktop for features-grid */
.features-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
  justify-content: center !important;
  align-items: stretch !important;
  margin-inline: auto !important;
  width: 100% !important;
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   MOSAIC GALLERY — "Избрани Специалитети" Responsive Fix
   Desktop (> 768px): 12-column asymmetric mosaic — UNTOUCHED
   Tablet (481px – 768px): 2 columns
   Mobile (≤ 480px): single column stack
   ========================================================================== */

/* ── Hero Split Layout ─────────────────────────────────────────────────── */
.hero-grid-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-grid-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Hero headline size reduction on mobile */
  .hero-luxury-v2 h1 {
    font-size: clamp(2rem, 7vw, 3rem) !important;
  }

  /* Hero badge — prevent 2-line break on mobile */
  .hero-luxury-v2 .hero-badge {
    font-size: 0.72rem !important;
    padding: 0.35rem 0.75rem !important;
    letter-spacing: 0.04em !important;
    white-space: normal !important;
    text-align: center !important;
  }

  /* Hero action buttons — stack vertically on mobile */
  .hero-luxury-v2 > * > div[style*="display: flex"],
  .hero-luxury-v2 div[style*="gap: 1rem"][style*="flex-wrap"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  /* Long CTA buttons — center text, proper sizing */
  .hero-luxury-v2 .btn {
    text-align: center !important;
    justify-content: center !important;
    font-size: 0.88rem !important;
    padding: 0.85rem 1.25rem !important;
    min-height: 48px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }

  /* Hero action buttons stack on very small screens */
  .hero-luxury-v2 > .container > div > div[style*="flex"] {
    flex-direction: column;
  }
}

/* ── Mosaic Grid Container ─────────────────────────────────────────────── */
/* Desktop (>768px): 12-col mosaic — the inline style handles this */

@media (max-width: 768px) {
  /* Override the inline grid-template-columns with single column */
  .mosaic-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* All cards: full width, no span needed */
  .mosaic-card {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Large cards (Сач + Маргерита): comfortable image height */
  .mosaic-img-wrap--large {
    height: 220px !important;
  }

  /* Small cards (Карбонара, Капрезе, Тирамису): slightly reduced */
  .mosaic-img-wrap--small {
    height: 185px !important;
  }

  /* Prevent badge overflow — ensure they stay within the card */
  .mosaic-card span[style*="position: absolute"] {
    max-width: calc(100% - 2rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Ensure h3 reads comfortably at full width */
  .mosaic-card h3 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }
}

/* ── Tablet: 2-column mosaic (481px – 768px) ───────────────────────────── */
@media (min-width: 481px) and (max-width: 768px) {
  .mosaic-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Large cards still span full width on tablet */
  .mosaic-card--large,
  .mosaic-card--medium {
    grid-column: 1 / -1 !important;
  }

  /* Small cards: 2-up on tablet */
  .mosaic-card--small {
    grid-column: span 1 !important;
  }

  .mosaic-img-wrap--large {
    height: 240px !important;
  }

  .mosaic-img-wrap--small {
    height: 190px !important;
  }
}

/* ── Extra small mobile (≤ 375px) — iPhone SE / 13 mini ─────────────────── */
@media (max-width: 375px) {
  .mosaic-img-wrap--large {
    height: 200px !important;
  }

  .mosaic-img-wrap--small {
    height: 165px !important;
  }

  .mosaic-card h3 {
    font-size: 1.1rem !important;
  }
}

/* ── Virtual Tour Banner & Pill Mobile UX ───────────────────────────────── */
@media (max-width: 768px) {
  .vt-banner,
  [style*="padding: 3.5rem 2rem"][style*="text-align: center"] {
    padding: 2.25rem 1.25rem !important;
    border-radius: 16px !important;
  }

  .vt-banner h2,
  [style*="font-size: 2.75rem"][style*="color: var(--krc-text)"] {
    font-size: clamp(1.5rem, 5.5vw, 2.2rem) !important;
    line-height: 1.25 !important;
    margin-block: 0.5rem 0.85rem !important;
  }

  .vt-banner p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
  }

  .vt-banner .section-tag {
    font-size: 0.7rem !important;
    letter-spacing: 0.08em !important;
    line-height: 1.3 !important;
  }

  .vt-pill,
  [style*="background: var(--krc-gold-gradient)"][style*="border-radius: 50px"] {
    font-size: 0.9rem !important;
    padding: 0.75rem 1.25rem !important;
    width: 100% !important;
    max-width: 320px !important;
    text-align: center !important;
    border-radius: 30px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

