﻿:root {
  --ink: #20231f;
  --muted: #656b61;
  --line: #deded6;
  --paper: #f8f7f1;
  --white: #ffffff;
  --sage: #7e8d73;
  --charcoal: #343735;
  --shadow: 0 18px 55px rgba(32, 35, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button {
  font: inherit;
}

.announce {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  color: var(--white);
  background: var(--charcoal);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  min-height: 74px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(32, 35, 31, 0.1);
  background: rgba(248, 247, 241, 0.94);
  backdrop-filter: blur(14px);
}

.logo {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
}

.nav-list,
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 900;
}

.nav-list {
  justify-content: center;
}

.header-actions {
  justify-content: flex-end;
}

.nav-list a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 8px 13px;
}

.nav-list a.active,
.nav-list a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.category-hero {
  padding: 74px 34px 42px;
  background: #eef0ec;
}

.hero-inner,
.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.crumb {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

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

.category-tabs a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(32, 35, 31, 0.18);
  border-radius: 3px;
  padding: 10px 18px;
  background: var(--white);
  font-weight: 900;
}

.category-tabs a.active,
.category-tabs a:hover {
  background: var(--ink);
  color: var(--white);
}

.products {
  padding: 46px 34px 76px;
  background: var(--white);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

.section-head p {
  max-width: 460px;
  margin-bottom: 4px;
  color: var(--muted);
  line-height: 1.7;
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(32, 35, 31, 0.06);
  cursor: pointer;
}

.product-image {
  aspect-ratio: 1 / 1;
  background: #f0f0ea;
}

.product-body {
  padding: 18px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.product-body h3 {
  margin-bottom: 9px;
  font-size: 20px;
}

.product-body p {
  min-height: 54px;
  margin-bottom: 17px;
  color: var(--muted);
  line-height: 1.65;
}

.btn {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 12px 18px;
  cursor: pointer;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
}

.btn:hover {
  background: transparent;
  color: var(--ink);
}

.site-footer {
  padding: 36px 34px;
  background: #242724;
  color: var(--white);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, 100%);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.75);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  border-radius: 4px;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    row-gap: 12px;
    padding: 14px 18px;
  }

  .site-header nav {
    grid-column: 1 / -1;
    order: 3;
  }

  .logo {
    order: 1;
  }

  .header-actions {
    order: 2;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-list a {
    padding: 8px 6px;
    font-size: 12px;
    text-align: center;
  }

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

@media (max-width: 640px) {
  .category-hero,
  .products {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-header {
    align-items: start;
  }

  .header-actions a:first-child {
    display: none;
  }

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

  .section-head,
  .footer-inner {
    display: grid;
  }

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