:root {
  --logos-wine: #6a211a;
  --logos-wine-soft: #8d3226;
  --logos-gold: #b8924d;
  --logos-ink: #1f1b17;
  --logos-muted: #61584e;
  --logos-paper: #f8f2e8;
  --logos-paper-soft: #f1e7d7;
  --logos-card: #fffdf8;
  --logos-line: rgba(31, 27, 23, 0.14);
  --logos-shadow: 0 18px 38px rgba(34, 23, 18, 0.11);
  --logos-shadow-strong: 0 26px 52px rgba(34, 23, 18, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  color: var(--logos-ink);
  background:
    radial-gradient(900px 360px at -8% -6%, rgba(106, 33, 26, 0.15), transparent 70%),
    radial-gradient(840px 320px at 110% 2%, rgba(184, 146, 77, 0.2), transparent 70%),
    linear-gradient(180deg, var(--logos-paper) 0%, var(--logos-paper-soft) 100%);
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 45vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(24px);
}

body::before {
  top: -22vmax;
  right: -12vmax;
  background: radial-gradient(circle, rgba(184, 146, 77, 0.26), rgba(184, 146, 77, 0));
  animation: float-blob 14s ease-in-out infinite;
}

body::after {
  bottom: -24vmax;
  left: -18vmax;
  background: radial-gradient(circle, rgba(106, 33, 26, 0.2), rgba(106, 33, 26, 0));
  animation: float-blob 18s ease-in-out infinite reverse;
}

.font-serif {
  font-family: "Libre Baskerville", Georgia, serif;
}

.text-wine {
  color: var(--logos-wine) !important;
}

.text-muted-custom {
  color: var(--logos-muted) !important;
}

.bg-card {
  background: var(--logos-card);
}

.border-soft {
  border: 1px solid var(--logos-line) !important;
}

.shadow-soft {
  box-shadow: var(--logos-shadow);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0%;
  height: 3px;
  z-index: 1055;
  background: linear-gradient(90deg, var(--logos-wine), var(--logos-gold));
  box-shadow: 0 0 14px rgba(106, 33, 26, 0.45);
  transition: width 0.08s linear;
}

.btn-brand,
.btn-brand-outline {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.btn-brand {
  color: #fff;
  background: linear-gradient(135deg, var(--logos-wine), var(--logos-wine-soft));
  border: 0;
  box-shadow: 0 10px 24px rgba(106, 33, 26, 0.25);
}

.btn-brand:hover,
.btn-brand:focus {
  color: #fff;
  transform: translateY(-2px);
  background: linear-gradient(135deg, #5d1d17, #7d2a1f);
  box-shadow: 0 16px 32px rgba(106, 33, 26, 0.3);
}

.btn-brand::after {
  content: "";
  position: absolute;
  inset: -120% auto auto -30%;
  width: 26%;
  height: 320%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  transform: rotate(25deg);
  transition: transform 0.75s ease;
}

.btn-brand:hover::after,
.btn-brand:focus::after {
  transform: translateX(360%) rotate(25deg);
}

.btn-brand-outline {
  color: var(--logos-wine);
  border: 1px solid rgba(106, 33, 26, 0.25);
  background: rgba(106, 33, 26, 0.04);
}

.btn-brand-outline:hover,
.btn-brand-outline:focus {
  color: var(--logos-wine);
  transform: translateY(-2px);
  border-color: rgba(106, 33, 26, 0.45);
  background: rgba(106, 33, 26, 0.1);
}

.navbar {
  backdrop-filter: blur(10px);
  background: rgba(250, 245, 236, 0.93) !important;
  border-bottom: 1px solid var(--logos-line);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.navbar.is-scrolled {
  background: rgba(255, 250, 243, 0.96) !important;
  box-shadow: 0 10px 28px rgba(31, 27, 23, 0.08);
  border-bottom-color: rgba(31, 27, 23, 0.2);
}

.navbar .nav-link {
  position: relative;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--logos-wine), var(--logos-gold));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus-visible::after {
  transform: scaleX(1);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--logos-wine), #913528);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 8px 16px rgba(106, 33, 26, 0.23);
}

.brand-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.hero {
  padding-top: 5rem;
  padding-bottom: 4rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(
      135deg,
      rgba(106, 33, 26, 0.03) 0,
      rgba(106, 33, 26, 0.03) 10px,
      rgba(184, 146, 77, 0.02) 10px,
      rgba(184, 146, 77, 0.02) 20px
    );
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 94%);
}

.hero-title {
  color: var(--logos-wine);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 1.45rem + 3vw, 4.3rem);
  max-width: 15ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  background: rgba(106, 33, 26, 0.08);
  color: var(--logos-wine);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.76rem;
  border: 1px solid rgba(106, 33, 26, 0.15);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.hero-panel::before {
  width: 180px;
  height: 180px;
  top: -70px;
  right: -65px;
  background: radial-gradient(circle, rgba(184, 146, 77, 0.22), rgba(184, 146, 77, 0));
  animation: pulse-float 8s ease-in-out infinite;
}

.hero-panel::after {
  width: 120px;
  height: 120px;
  bottom: -50px;
  left: -40px;
  background: radial-gradient(circle, rgba(106, 33, 26, 0.16), rgba(106, 33, 26, 0));
  animation: pulse-float 10s ease-in-out infinite reverse;
}

.hero-art {
  border: 1px solid rgba(106, 33, 26, 0.2);
  border-radius: 0.9rem;
  background: #fff;
  overflow: hidden;
}

.hero-art img {
  width: 100%;
  max-height: 170px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.hero-panel:hover .hero-art img {
  transform: scale(1.04);
}

.metric-card {
  border: 1px solid rgba(106, 33, 26, 0.16);
  border-radius: 0.85rem;
  background: #fff;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(106, 33, 26, 0.32);
  box-shadow: 0 12px 24px rgba(31, 27, 23, 0.1);
}

.metric-value {
  color: var(--logos-wine);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(106, 33, 26, 0.12);
}

.chip {
  border: 1px solid rgba(106, 33, 26, 0.2);
  background: #fff;
  color: var(--logos-wine);
  border-radius: 999px;
  padding: 0.23rem 0.56rem;
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  font-weight: 800;
  display: inline-block;
  animation: chip-bob 4.8s ease-in-out infinite;
}

.chip:nth-child(2) { animation-delay: 0.25s; }
.chip:nth-child(3) { animation-delay: 0.4s; }
.chip:nth-child(4) { animation-delay: 0.55s; }

.section-title {
  color: var(--logos-wine);
  letter-spacing: -0.01em;
}

.section {
  padding: 4rem 0;
}

#kontakt-forma {
  scroll-margin-top: 96px;
}

.card-hover {
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(106, 33, 26, 0.38) !important;
  box-shadow: var(--logos-shadow-strong);
}

.catalog-section {
  border-top: 1px solid rgba(184, 146, 77, 0.33);
  border-bottom: 1px solid rgba(184, 146, 77, 0.33);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.35) 100%),
    radial-gradient(900px 240px at 100% 50%, rgba(184, 146, 77, 0.12), transparent 70%);
}

.catalog-wrap {
  border-radius: 1.15rem;
  border: 1px solid var(--logos-line);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--logos-shadow);
  backdrop-filter: blur(5px);
}

.filter-label,
.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.form-control,
.form-select {
  border-color: rgba(31, 27, 23, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: rgba(106, 33, 26, 0.5);
  box-shadow: 0 0 0 0.22rem rgba(106, 33, 26, 0.14);
}

.form-check-input:checked {
  background-color: var(--logos-wine);
  border-color: var(--logos-wine);
}

.book-type {
  border-radius: 999px;
  background: rgba(106, 33, 26, 0.1);
  color: var(--logos-wine);
  padding: 0.2rem 0.52rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 800;
  display: inline-block;
  align-self: flex-start;
}

.book-cover {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid rgba(31, 27, 23, 0.1);
  margin-bottom: 0.6rem;
  transition: transform 0.35s ease, filter 0.35s ease;
}

#catalog-grid .card:hover .book-cover {
  transform: scale(1.03);
  filter: saturate(1.06);
}

.catalog-enter {
  animation: catalog-enter 0.42s ease both;
}

.book-card-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.04rem;
  line-height: 1.34;
  margin: 0.5rem 0 0.25rem;
}

.book-meta {
  color: var(--logos-muted);
  font-size: 0.84rem;
  margin-bottom: 0.15rem;
}

.book-meta strong {
  color: var(--logos-ink);
}

.legacy-gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--logos-line);
  transition: transform 0.45s ease;
}

.card-hover:hover .legacy-gallery-img {
  transform: scale(1.03);
}

.map-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.spotlight {
  background:
    linear-gradient(155deg, #5f1d17, #7a2a20),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 10px,
      rgba(255, 255, 255, 0.03) 10px,
      rgba(255, 255, 255, 0.03) 20px
    );
  color: #fff7ef;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.interactive-panel {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

.interactive-panel:hover {
  box-shadow: var(--logos-shadow-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  filter: blur(2px);
  transition: opacity 0.58s ease, transform 0.58s ease, filter 0.58s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@keyframes float-blob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 28px, 0); }
}

@keyframes pulse-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(8px) scale(1.06); }
}

@keyframes chip-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes catalog-enter {
  0% { opacity: 0; transform: translateY(12px) scale(0.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 992px) {
  .hero {
    padding-top: 3rem;
  }

  .hero-title {
    max-width: none;
  }

  .chip {
    animation: none;
  }
}

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

  .scroll-progress {
    display: none;
  }
}
