:root {
  --bg: #070506;
  --surface: #141012;
  --surface-soft: #1d1518;
  --surface-warm: #2a1a1d;
  --text: #fff7ed;
  --muted: #b8aaa3;
  --primary: #e2375b;
  --primary-dark: #9d1737;
  --accent: #8cae67;
  --gold: #d7a85d;
  --border: #322428;
  --shadow: 0 20px 42px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 76px 0;
}

.hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 5, 6, 0.9);
  backdrop-filter: blur(16px);
}

.top-line {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0809;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.top-line-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.logo strong,
.logo small {
  display: block;
}

.logo strong {
  font-size: 18px;
  line-height: 1.1;
}

.logo small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
  background: rgba(226, 55, 91, 0.14);
}

.cart-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  margin-left: 4px;
  background: var(--primary-dark);
  color: #fff;
  font-size: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.hero-cover {
  min-height: calc(100svh - 112px);
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  background: #070506;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 4, 5, 0.92) 0%, rgba(5, 4, 5, 0.64) 45%, rgba(5, 4, 5, 0.22) 100%),
    linear-gradient(180deg, rgba(5, 4, 5, 0.18) 0%, rgba(5, 4, 5, 0.86) 100%);
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cover-inner {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 0 54px;
}

.hero-cover h1 {
  margin: 12px 0 18px;
  font-size: clamp(58px, 10vw, 118px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-text {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.hero-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.hero-cover .eyebrow {
  color: #f8dcc5;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary,
.btn-small {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 28px rgba(226, 55, 91, 0.18);
}

.btn-primary:hover,
.btn-small:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  color: var(--primary-dark);
  background: var(--surface);
  border: 1px solid var(--border);
}

.hero-cover .btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
}

.btn-small {
  padding: 10px 14px;
  font-size: 14px;
}

.full-width {
  width: 100%;
}

.section-title {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-title h2,
.visit-grid h2,
.cart-panel h2,
.order-panel h2 {
  margin: 8px 0 0;
  font-size: clamp(29px, 4vw, 45px);
  line-height: 1.08;
  letter-spacing: 0;
}

.row-title {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.text-link,
.text-button {
  color: var(--primary);
  font-weight: 900;
}

.text-link:hover,
.text-button:hover {
  color: var(--primary-dark);
}

.text-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.category-section,
.visit-section {
  background: var(--surface);
}

.category-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-card {
  min-height: 320px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  background: #070506;
  box-shadow: var(--shadow);
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(5, 4, 5, 0.82) 100%);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card span {
  position: relative;
  z-index: 1;
  padding: 22px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.today-section {
  background: var(--bg);
}

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

.featured-menu .product-card:nth-child(2n) {
  transform: translateY(16px);
}

.product-card,
.service-item,
.contact-card,
.cart-panel,
.order-panel,
.feedback-form,
.visit-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.38);
}

.featured-menu .product-card:nth-child(2n):hover {
  transform: translateY(10px);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-soft);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(143, 24, 56, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.product-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-category {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.product-card h3,
.service-item h3,
.contact-card strong {
  margin: 12px 0 8px;
  font-size: 21px;
  line-height: 1.18;
}

.product-card p,
.service-item p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

.product-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-footer strong {
  white-space: nowrap;
}

.service-section {
  background: var(--surface-soft);
  border-block: 1px solid var(--border);
}

.visit-grid,
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 44px;
  align-items: start;
}

.visit-grid p,
.panel-note {
  max-width: 660px;
  color: var(--muted);
  font-size: 17px;
}

.page-hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-item {
  padding: 22px;
}

.service-item span {
  color: var(--gold);
  font-weight: 900;
}

.visit-panel {
  padding: 26px;
  background: var(--surface);
}

.panel-label {
  display: block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.visit-panel strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.2;
}

.visit-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.visit-list li {
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-bottom: 1px solid var(--border);
  background: #070506;
}

.page-hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
}

.page-hero::before {
  background: var(--page-hero-image) center / cover no-repeat;
}

.page-hero::after {
  background:
    linear-gradient(90deg, rgba(5, 4, 5, 0.88) 0%, rgba(5, 4, 5, 0.64) 52%, rgba(5, 4, 5, 0.32) 100%),
    linear-gradient(180deg, rgba(5, 4, 5, 0.22) 0%, rgba(5, 4, 5, 0.64) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

body[data-page="catalog"] .page-hero {
  --page-hero-image: url('../images/photos/macarons.jpg');
}

body[data-page="cart"] .page-hero {
  --page-hero-image: url('../images/photos/chocolate-cake.jpg');
}

body[data-page="contacts"] .page-hero {
  --page-hero-image: url('../images/photos/cappuccino.jpg');
}

.page-hero .eyebrow {
  color: #f8dcc5;
}

.page-hero h1 {
  max-width: 840px;
  margin: 10px 0 16px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1;
  letter-spacing: 0;
}

.compact-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  padding: 58px 0;
}

.catalog-section {
  padding-top: 44px;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  margin-bottom: 18px;
}

.search-box,
.sort-box,
.order-form label,
.feedback-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(85, 123, 85, 0.16);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.tab-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tab-btn.active,
.tab-btn:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.catalog-info,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.catalog-info p {
  margin: 0;
  color: var(--muted);
}

.empty-state {
  padding: 34px;
  text-align: center;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0 0 16px;
  color: var(--muted);
}

.cart-layout {
  grid-template-columns: minmax(0, 1fr) 370px;
}

.cart-panel,
.order-panel,
.feedback-form {
  padding: 24px;
}

.panel-header h2,
.order-panel h2 {
  font-size: 28px;
}

.panel-note {
  margin: 8px 0 18px;
  font-size: 15px;
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.cart-item img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.cart-item-info span,
.cart-item-info p {
  color: var(--muted);
}

.cart-item-info h3,
.cart-item-info p {
  margin: 0;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.quantity-control button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  font-weight: 900;
}

.cart-item-total {
  min-width: 92px;
  text-align: right;
}

.remove-btn {
  border: 0;
  background: transparent;
  color: #a34835;
  cursor: pointer;
  font-weight: 900;
}

.summary-box {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.summary-box div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.summary-box span {
  color: var(--muted);
}

.order-form,
.feedback-form {
  display: grid;
  gap: 14px;
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-weight: 900;
}

.form-message.success {
  color: #2f6f3d;
}

.form-message.error {
  color: #a34835;
}

.contact-page-section {
  background: var(--bg);
}

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

.contact-cards-row {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 24px;
}

.contact-card {
  padding: 24px;
}

.contact-card span {
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.contact-card strong {
  display: block;
}

.contact-window {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-form-panel {
  padding: 30px;
}

.contact-form-panel h2 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
}

.contact-window-text {
  margin: 0 0 22px;
  color: var(--muted);
}

.contact-window .feedback-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-window .map-card {
  min-height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.map-card {
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 86px;
  z-index: 50;
  padding: 14px 18px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--primary-dark);
  box-shadow: var(--shadow);
  animation: toastIn 0.25s ease;
}

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  box-shadow: var(--shadow);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top.is-visible:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

@keyframes toastIn {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top {
    transition: opacity 0.01s linear, visibility 0.01s linear, background 0.2s ease;
    transform: none;
  }

  .scroll-top.is-visible,
  .scroll-top.is-visible:hover {
    transform: none;
  }
}

@media (max-width: 1080px) {
  .product-grid,
  .category-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .visit-grid,
  .cart-layout,
  .contact-window {
    grid-template-columns: 1fr;
  }

  .contact-cards-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding: 54px 0;
  }

  .top-line {
    display: none;
  }

  .header-inner {
    min-height: 70px;
  }

  .logo-mark {
    width: 42px;
    height: 42px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 12px 12px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(7, 5, 6, 0.98);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.42);
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    padding: 13px 4px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link:hover,
  .nav-link.active {
    background: transparent;
  }

  .hero-cover {
    min-height: calc(100svh - 70px);
  }

  .hero-backdrop::after {
    background: linear-gradient(180deg, rgba(5, 4, 5, 0.64) 0%, rgba(33, 15, 19, 0.88) 100%);
  }

  .hero-cover-inner {
    justify-content: flex-end;
    padding: 58px 0 34px;
  }

  .hero-cover h1 {
    font-size: clamp(46px, 15vw, 70px);
  }

  .hero-text,
  .page-hero p,
  .visit-grid p {
    font-size: 16px;
  }

  .category-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-card {
    min-height: 136px;
    flex-direction: row-reverse;
    align-items: stretch;
  }

  .product-image {
    width: 118px;
    min-width: 118px;
    aspect-ratio: auto;
  }

  .product-content {
    min-width: 0;
    padding: 12px;
  }

  .product-meta {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 5px 8px;
    font-size: 10px;
    line-height: 1.2;
  }

  .product-category {
    letter-spacing: 0.08em;
  }

  .product-card h3 {
    margin: 8px 0 5px;
    font-size: 16px;
    line-height: 1.15;
  }

  .product-card p {
    overflow: hidden;
    max-height: 2.7em;
    font-size: 13px;
    line-height: 1.35;
  }

  .product-footer {
    gap: 8px;
    padding-top: 10px;
  }

  .product-footer strong {
    font-size: 14px;
  }

  .product-footer .btn-small {
    padding: 8px 10px;
    white-space: nowrap;
    font-size: 12px;
  }

  .product-badge {
    left: auto;
    right: 8px;
    top: 8px;
    max-width: calc(100% - 16px);
    overflow: hidden;
    padding: 4px 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
  }

  .category-card {
    min-height: 150px;
  }

  .category-card span {
    padding: 14px;
    font-size: 18px;
  }

  .featured-menu .product-card:nth-child(2n),
  .featured-menu .product-card:nth-child(2n):hover {
    transform: none;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .row-title,
  .catalog-info,
  .panel-header,
  .footer-inner,
  .panel-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;
  }

  .cart-item img {
    width: 72px;
    height: 72px;
  }

  .map-card,
  .map-card iframe {
    min-height: 320px;
  }

  .contact-form-panel {
    padding: 22px;
  }

  .compact-hero {
    min-height: 260px;
    padding: 44px 0;
  }

  .quantity-control,
  .cart-item-total,
  .remove-btn {
    grid-column: 2;
    justify-self: start;
  }

  .toast {
    left: 16px;
    right: 74px;
    bottom: 16px;
    text-align: center;
  }
}

/* Dark cinematic redesign */
body {
  background:
    linear-gradient(180deg, rgba(7, 5, 6, 0.84), rgba(7, 5, 6, 0.98)),
    url('../images/photos/cherry-cake.jpg') center 18% / cover fixed no-repeat,
    #070506;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 5, 6, 0.82), rgba(7, 5, 6, 0.97)),
    url('../images/photos/cherry-cake.jpg') center 18% / cover no-repeat;
  opacity: 0.28;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

.site-header {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.logo-mark {
  background: transparent;
}

.logo strong {
  color: #fff7ed;
}

.logo small {
  color: #c8b9b0;
}

.nav-link:hover,
.nav-link.active {
  color: #fff7ed;
}

.hero-cover {
  min-height: calc(100svh - 112px);
  overflow: visible;
  background: #070506;
}

.hero-cover::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -220px;
  height: 82%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 5, 6, 0) 0%, rgba(7, 5, 6, 0.34) 30%, rgba(7, 5, 6, 0.78) 58%, #070506 82%, rgba(7, 5, 6, 0) 100%);
  pointer-events: none;
}

.hero-backdrop {
  inset: 0 0 -220px;
}

.hero-backdrop img {
  filter: saturate(1.12) contrast(1.08);
}

.hero-backdrop::after {
  background:
    linear-gradient(90deg, rgba(7, 5, 6, 0.96) 0%, rgba(7, 5, 6, 0.72) 45%, rgba(7, 5, 6, 0.18) 100%),
    linear-gradient(180deg, rgba(7, 5, 6, 0.18) 0%, rgba(7, 5, 6, 0.96) 100%);
}

.hero-cover-inner {
  z-index: 2;
  gap: 0;
}

.hero-cover h1 {
  max-width: 900px;
  text-transform: uppercase;
}

.hero-text {
  max-width: 720px;
  color: rgba(255, 247, 237, 0.84);
}

.hero-stills {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 42px;
}

.hero-stills img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.34);
  filter: saturate(1.08) contrast(1.05);
}

.btn {
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn-primary,
.btn-small {
  background-color: #b4143c;
  background-image: linear-gradient(180deg, #ef4167, #b4143c);
}

.btn-primary:hover,
.btn-small:hover {
  background-color: #d21b48;
  background-image: linear-gradient(180deg, #ff5a7b, #d21b48);
}

.btn-secondary {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.16);
}

.section {
  position: relative;
}

.category-section,
.today-section,
.service-section,
.visit-section,
.catalog-section,
.contact-page-section {
  background: transparent;
}

.category-section {
  padding-top: 34px;
}

.category-section::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -180px;
  height: 430px;
  z-index: 0;
  background: linear-gradient(180deg, rgba(7, 5, 6, 0) 0%, rgba(7, 5, 6, 0.54) 34%, #070506 68%, rgba(7, 5, 6, 0) 100%);
  pointer-events: none;
}

.category-section > .container {
  position: relative;
  z-index: 1;
}

.section-title h2,
.visit-grid h2,
.cart-panel h2,
.order-panel h2,
.contact-form-panel h2,
.page-hero h1 {
  color: #fff7ed;
}

.category-card,
.product-card,
.service-item,
.contact-card,
.cart-panel,
.order-panel,
.feedback-form,
.visit-panel,
.contact-window,
.empty-state {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.34);
}

.category-showcase {
  gap: 12px;
}

.category-card {
  min-height: 250px;
}

.category-card::after {
  background: linear-gradient(180deg, rgba(7, 5, 6, 0.04) 0%, rgba(7, 5, 6, 0.88) 100%);
}

.category-card span {
  width: 100%;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 5, 6, 0.28);
  backdrop-filter: blur(8px);
}

.product-card {
  overflow: hidden;
}

.product-content {
  background: linear-gradient(180deg, rgba(20, 16, 18, 0.94), rgba(9, 7, 8, 0.98));
}

.product-image {
  background: #0e0a0b;
}

.product-badge {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(226, 55, 91, 0.9);
  backdrop-filter: blur(8px);
}

.featured-menu .product-card:nth-child(2n),
.featured-menu .product-card:nth-child(2n):hover {
  transform: none;
}

.service-section {
  border-block-color: rgba(255, 255, 255, 0.08);
}

.service-item span,
.panel-label,
.product-category,
.contact-card span,
.eyebrow,
.text-link,
.text-button {
  color: #ff5a7b;
}

.visit-list li {
  border-left-color: #8cae67;
}

.page-hero {
  overflow: visible;
  background: #070506;
  border-bottom-color: transparent;
}

.page-hero::before,
.page-hero::after {
  inset: 0 0 -190px;
  pointer-events: none;
}

.page-hero::before {
  background-position: center top;
  filter: saturate(1.08) contrast(1.06);
}

.page-hero::after {
  background:
    linear-gradient(90deg, rgba(7, 5, 6, 0.94) 0%, rgba(7, 5, 6, 0.7) 52%, rgba(7, 5, 6, 0.36) 100%),
    linear-gradient(180deg, rgba(7, 5, 6, 0.18) 0%, rgba(7, 5, 6, 0.48) 46%, rgba(7, 5, 6, 0.88) 72%, #070506 92%, rgba(7, 5, 6, 0) 100%);
}

.page-hero .container {
  z-index: 2;
}

input,
select,
textarea {
  color: #fff7ed;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 247, 237, 0.42);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(226, 55, 91, 0.72);
  box-shadow: 0 0 0 4px rgba(226, 55, 91, 0.14);
}

.tab-btn,
.quantity-control,
.summary-box div,
.quantity-control button {
  color: #fff7ed;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.tab-btn.active,
.tab-btn:hover {
  border-color: #e2375b;
  background: #e2375b;
}

.cart-item {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
}

.cart-item img {
  background: #0e0a0b;
}

.map-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: #111;
}

.toast,
.scroll-top {
  background: #e2375b;
}

.site-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(7, 5, 6, 0.96);
}

@media (max-width: 760px) {
  .hero-stills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }

  .hero-backdrop::after {
    background: linear-gradient(180deg, rgba(7, 5, 6, 0.46) 0%, rgba(7, 5, 6, 0.96) 100%);
  }

  .nav {
    background: rgba(7, 5, 6, 0.98);
  }
}
.page-hero + .section::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -150px;
  height: 340px;
  z-index: 0;
  background: linear-gradient(180deg, rgba(7, 5, 6, 0) 0%, rgba(7, 5, 6, 0.62) 36%, #070506 78%, rgba(7, 5, 6, 0) 100%);
  pointer-events: none;
}

.page-hero + .section > .container {
  position: relative;
  z-index: 1;
}
/* Stable in-section hero fade */
.hero-cover {
  overflow: hidden;
}

.hero-backdrop {
  inset: 0;
  pointer-events: none;
}

.hero-cover::before {
  left: 0;
  right: 0;
  bottom: 0;
  height: 64%;
  background: linear-gradient(180deg, rgba(7, 5, 6, 0) 0%, rgba(7, 5, 6, 0.42) 36%, rgba(7, 5, 6, 0.82) 70%, #070506 100%);
}

.category-section::before,
.page-hero + .section::before {
  display: none;
}

.page-hero {
  overflow: hidden;
  border-bottom-color: transparent;
}

.page-hero::before,
.page-hero::after {
  inset: 0;
}

.page-hero::before {
  background-position: center;
}

.page-hero::after {
  background:
    linear-gradient(90deg, rgba(7, 5, 6, 0.92) 0%, rgba(7, 5, 6, 0.66) 54%, rgba(7, 5, 6, 0.34) 100%),
    linear-gradient(180deg, rgba(7, 5, 6, 0.12) 0%, rgba(7, 5, 6, 0.42) 45%, rgba(7, 5, 6, 0.82) 76%, #070506 100%);
}

.compact-hero {
  min-height: 380px;
  padding: 64px 0 104px;
}
/* No hero fade */
.hero-cover {
  overflow: hidden;
}

.hero-backdrop {
  inset: 0;
  pointer-events: none;
}

.hero-cover::before,
.category-section::before,
.page-hero + .section::before {
  display: none;
}

.hero-backdrop::after {
  background: linear-gradient(90deg, rgba(7, 5, 6, 0.9) 0%, rgba(7, 5, 6, 0.64) 45%, rgba(7, 5, 6, 0.24) 100%);
}

.page-hero {
  overflow: hidden;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.page-hero::before,
.page-hero::after {
  inset: 0;
}

.page-hero::after {
  background: linear-gradient(90deg, rgba(7, 5, 6, 0.9) 0%, rgba(7, 5, 6, 0.64) 54%, rgba(7, 5, 6, 0.28) 100%);
}

.compact-hero {
  min-height: 320px;
  padding: 58px 0;
}
/* Darker hero photos */
.hero-backdrop::after {
  background: linear-gradient(90deg, rgba(7, 5, 6, 0.96) 0%, rgba(7, 5, 6, 0.78) 48%, rgba(7, 5, 6, 0.46) 100%);
}

.page-hero::after {
  background: linear-gradient(90deg, rgba(7, 5, 6, 0.96) 0%, rgba(7, 5, 6, 0.78) 56%, rgba(7, 5, 6, 0.5) 100%);
}
/* Refined order section */
.service-heading {
  max-width: 820px;
  margin-bottom: 26px;
}

.service-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.service-list-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-list-row .service-item {
  min-height: 210px;
}

@media (max-width: 1080px) {
  .service-list-row {
    grid-template-columns: 1fr;
  }

  .service-list-row .service-item {
    min-height: 0;
  }
}
/* Touch devices cleanup */
.menu-toggle {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.menu-toggle:active {
  background: rgba(226, 55, 91, 0.22);
}

@media (hover: none) {
  .category-card:hover img,
  .product-card:hover .product-image img {
    transform: none;
  }

  .product-card:hover,
  .featured-menu .product-card:nth-child(2n):hover {
    transform: none;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.34);
  }

  .btn:hover,
  .scroll-top.is-visible:hover {
    transform: none;
  }

  .tab-btn:hover {
    color: var(--muted);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
  }

  .tab-btn.active {
    color: #fff;
    border-color: #e2375b;
    background: #e2375b;
  }
}
/* Dark Google map */
.map-card iframe {
  filter: invert(0.9) hue-rotate(180deg) saturate(0.75) contrast(0.92) brightness(0.82);
}

.map-card {
  background: #070506;
}
