:root {
  --bg: #f8f6f3;
  --paper: #ffffff;
  --paper-soft: #f3eee7;
  --text: #231f1b;
  --muted: #6a6056;
  --line: #ddd4ca;
  --accent: #1c1b1a;
  --button: #1f1f1f;
  --button-hover: #000;
  --shadow: 0 10px 30px rgba(22, 20, 18, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #faf8f5 0%, var(--bg) 100%);
  line-height: 1.45;
}

.container {
  width: min(1180px, 93%);
  margin: 0 auto;
}

h1,
h2,
h3,
p { margin: 0; }

h1,
h2,
.brand {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 0.97;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.05;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(248, 246, 243, 0.9);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-size: clamp(1.8rem, 2vw, 2rem);
}

.nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a.staff-link {
  white-space: nowrap;
}

.nav a:hover { color: var(--text); }
.nav a.is-active {
  color: var(--text);
  border-bottom: 1px solid var(--text);
}

.nav a.nav-focus {
  color: #ffffff;
  background: #1f1f1f;
  border: 1px solid #1f1f1f;
  border-radius: 999px;
  padding: 6px 12px;
}

.nav a.nav-focus:hover {
  background: #000000;
}

.hero {
  padding: 3rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1rem;
}

.hero-copy {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.2rem, 2vw, 2rem);
  box-shadow: var(--shadow);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.74rem;
  color: #7b7064;
  margin-bottom: 1rem;
}

.lead {
  margin-top: 1rem;
  max-width: 52ch;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-note {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem;
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.note-title {
  font-size: 1rem;
  font-weight: 700;
}

.button {
  border: 1px solid var(--button);
  background: var(--button);
  color: #fff;
  padding: 0.72rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
}

.button:hover { background: var(--button-hover); }

.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.button-ghost:hover { background: #efebe5; }

.button-small {
  min-height: 38px;
  padding: 0.5rem 0.8rem;
}

.section {
  padding: 2rem 0 3rem;
}

.page-intro {
  padding-bottom: 1rem;
}

.page-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.page-link-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

.page-link-card p {
  color: var(--muted);
  min-height: 2.8em;
}

.section-contrast {
  background: linear-gradient(180deg, #f5f1eb 0%, #f7f4ef 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.counter {
  color: var(--muted);
  font-size: 0.88rem;
}

.chips {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: #4f463d;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;
}

.chip.active {
  background: #1e1d1c;
  color: #fff;
  border-color: #1e1d1c;
}

.products {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.product-card {
  display: grid;
  grid-template-rows: 190px 1fr;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
}

.product-media {
  position: relative;
  background: #ede5da;
  cursor: pointer;
}

.product-media img,
.product-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-empty {
  height: 100%;
  display: grid;
  place-content: center;
  color: #786c60;
  font-weight: 600;
}

.video-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  font-size: 0.7rem;
  background: rgba(20, 20, 20, 0.74);
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
}

.product-body {
  padding: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.42rem;
  border-radius: 99px;
  background: #ece6dd;
  color: #5a5047;
}

.tag.status {
  background: #e7f2e8;
  color: #2c6242;
}

.product-body h3 {
  font-size: 1.02rem;
  line-height: 1.2;
  cursor: pointer;
}

.description {
  color: var(--muted);
  font-size: 0.9rem;
}

.variants {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.32rem;
}

.variants li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px dashed #e4d9cc;
  padding-bottom: 0.26rem;
  font-size: 0.88rem;
}

.stock {
  font-size: 0.83rem;
  color: #51473e;
}

.card-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.card-actions .button {
  flex: 1 1 130px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.9rem;
}

.about-copy {
  margin-top: 0.8rem;
  color: var(--muted);
  max-width: 60ch;
}

.about-card,
.contacts-box,
.empty-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}

.about-card {
  display: grid;
  gap: 0.55rem;
}

.contacts-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: center;
}

.contacts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(20, 16, 13, 0.55);
  padding: 0.8rem;
}

.modal[hidden] { display: none; }

.dialog {
  width: min(700px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--paper);
  border-radius: 16px;
  border: 1px solid var(--line);
}

.details-dialog {
  width: min(920px, 100%);
}

.details-body {
  padding: 0.85rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.details-media-grid {
  width: 100%;
}

.details-media-grid .media-empty {
  width: 100%;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #efe7dc;
  display: grid;
  place-content: center;
  color: #786c60;
  font-weight: 600;
}

.details-carousel {
  position: relative;
}

.details-viewport {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #efe7dc;
}

.details-track {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
}

.details-slide {
  min-width: 100%;
}

.details-slide img,
.details-slide video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #ede3d6;
}

.details-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(20, 20, 20, 0.58);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-content: center;
  cursor: pointer;
}

.details-nav.prev { left: 8px; }
.details-nav.next { right: 8px; }
.details-nav:disabled { opacity: 0.35; cursor: default; }

.details-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.details-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: #c6b9aa;
  padding: 0;
  cursor: pointer;
}

.details-dot.active {
  background: #1f1f1f;
}

.details-info {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.details-description {
  color: var(--muted);
  white-space: pre-line;
}

.details-actions {
  margin-top: 0.35rem;
}

.dialog-head {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.reserve-form {
  padding: 0.85rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.reserve-form label {
  display: grid;
  gap: 0.33rem;
  color: #5a5048;
  font-size: 0.87rem;
}

.reserve-form input,
.reserve-form select,
.reserve-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  background: #fff;
}

.full { grid-column: 1 / -1; }
.reserve-status { min-height: 1.2rem; font-size: 0.86rem; color: #2f6243; }

@media (max-width: 980px) {
  .topbar-inner {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    gap: 8px;
  }

  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 2px;
    gap: 0.5rem;
  }

  .nav a {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
  }

  .nav a.staff-link {
    font-size: 0.86rem;
    padding: 0 10px;
  }

  .nav a.is-active {
    border-bottom: 1px solid var(--line);
    border-color: #1f1f1f;
    background: #1f1f1f;
    color: #fff;
  }

  .hero-grid,
  .about-grid,
  .contacts-box { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-links { grid-template-columns: 1fr; }
  .details-slide img,
  .details-slide video { aspect-ratio: 4 / 3; }
}

@media (max-width: 720px) {
  .hero { padding-top: 1.7rem; }
  .container { width: min(1180px, 95%); }

  .topbar-inner {
    align-items: center;
    min-height: auto;
    gap: 8px;
  }

  .brand {
    font-size: 1.6rem;
  }

  .hero-copy,
  .hero-note,
  .about-card,
  .contacts-box {
    padding: 0.9rem;
  }

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

  .product-card {
    grid-template-rows: 200px 1fr;
  }

  .details-dialog {
    width: 100%;
    max-height: 100dvh;
    border-radius: 12px;
  }

  .dialog {
    width: 100%;
    max-height: 100dvh;
    border-radius: 12px;
  }

  .reserve-form {
    gap: 0.55rem;
  }

  .details-nav {
    width: 30px;
    height: 30px;
  }

  .button,
  .button-small { min-height: 44px; }
}

@media (max-width: 420px) {
  .kicker {
    font-size: 0.67rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .contacts-actions {
    width: 100%;
  }

  .contacts-actions .button {
    width: 100%;
  }
}

@media (hover: none) and (pointer: coarse) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
