:root {
  color-scheme: light;
  --bg: #fbfcfb;
  --surface: #ffffff;
  --surface-strong: #f0f6f3;
  --text: #15231f;
  --muted: #66746f;
  --line: #dce6e1;
  --accent: #0f6b55;
  --accent-dark: #0a493d;
  --gold: #c99434;
  --shadow: 0 24px 70px rgba(21, 35, 31, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(251, 252, 251, 0.92);
  border-bottom: 1px solid rgba(220, 230, 225, 0.84);
  backdrop-filter: blur(16px);
}

.brand,
.top-nav,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 13px;
}

.top-nav {
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.top-nav a:hover {
  color: var(--accent);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
  min-height: calc(100vh - 75px);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.hero-copy {
  max-width: 740px;
}

.section-label,
.product-model {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.97;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy p:not(.section-label),
.detail-copy p,
.contact-section p,
.product-body p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy > p:not(.section-label) {
  max-width: 650px;
  margin-bottom: 30px;
  font-size: 18px;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: white;
}

.button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--accent-dark);
}

.button.compact {
  min-height: 40px;
}

.hero-media {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.hero-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 4px;
  max-width: 260px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(21, 35, 31, 0.12);
}

.hero-note span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.menu-section,
.products-section,
.detail-section,
.contact-section {
  padding: clamp(46px, 7vw, 86px) clamp(20px, 5vw, 72px);
}

.menu-section {
  background: var(--surface-strong);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.category-menu {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(21, 35, 31, 0.06);
}

.category-root,
.category-children {
  padding: 0;
  margin: 0;
  list-style: none;
}

.category-root {
  display: flex;
  min-height: 66px;
}

.category-item {
  position: relative;
}

.category-button {
  width: 100%;
  min-width: 170px;
  min-height: 64px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.category-button:hover,
.category-button:focus-visible {
  color: var(--accent);
  outline: none;
}

.category-children {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 15;
  display: none;
  min-width: 220px;
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.category-children .category-children {
  top: -1px;
  left: 100%;
}

.category-item:hover > .category-children,
.category-item:focus-within > .category-children {
  display: block;
}

.category-children .category-button {
  min-height: 48px;
  border-bottom: 1px solid #eef3f0;
}

.active-filter {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(21, 35, 31, 0.06);
}

.product-image {
  display: block;
  background: #f2f6f4;
}

.product-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 180ms ease;
}

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

.product-body {
  padding: 22px;
}

.product-body h3 a:hover {
  color: var(--accent);
}

.product-body span,
.detail-path {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 66px);
  align-items: center;
  background: #f4f8f6;
}

.detail-section[hidden] {
  display: none;
}

.detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-copy table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.detail-copy th,
.detail-copy td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.detail-copy th {
  width: 34%;
  color: var(--accent-dark);
  font-size: 13px;
}

.detail-copy td {
  color: var(--muted);
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--accent-dark);
  color: white;
}

.contact-section .section-label,
.contact-section p {
  color: #b9dfd0;
}

.contact-section .button.primary {
  background: white;
  color: var(--accent-dark);
}

.contact-section .button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.34);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 13px;
}

.load-error {
  padding: 18px;
  border: 1px solid #efb8b8;
  border-radius: 8px;
  background: #fff5f5;
  color: #9d2727;
}

@media (max-width: 860px) {
  .site-header,
  .hero,
  .section-heading.split,
  .contact-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .detail-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .category-root {
    display: block;
  }

  .category-children,
  .category-children .category-children {
    position: static;
    display: block;
    max-height: none;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }

  .category-button {
    min-width: 100%;
  }

  .category-item[data-level="2"] .category-button {
    padding-left: 34px;
  }

  .category-item[data-level="3"] .category-button {
    padding-left: 50px;
  }

  .category-item[data-level="4"] .category-button {
    padding-left: 66px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 40px;
  }

  .hero-note {
    position: static;
    margin-top: 14px;
    max-width: none;
  }

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

  .button {
    width: 100%;
  }
}
