:root {
  --bg: #f4f1eb;
  --bg-deep: #0f1c2e;
  --surface: #ffffff;
  --ink: #142033;
  --muted: #5c6b7a;
  --line: #d9d2c5;
  --accent: #b86b2a;
  --accent-soft: #f3e4d4;
  --ok: #1f6b4a;
  --max: 1100px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 241, 235, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
  background: var(--bg-deep);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(15, 28, 46, 0.92), rgba(15, 28, 46, 0.55)),
    radial-gradient(circle at 80% 20%, rgba(184, 107, 42, 0.35), transparent 45%),
    linear-gradient(160deg, #1a2b42, #0f1c2e 60%, #24384f);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% 40%;
  height: 70%;
  background: repeating-linear-gradient(
    -18deg,
    transparent 0 14px,
    rgba(255, 255, 255, 0.03) 14px 15px
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 12ch;
}

.hero p {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  margin: 0 0 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: 4rem 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.6rem;
}

.section .lead {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.product-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

th {
  background: #efeae1;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--accent-soft);
  border-radius: 0.75rem;
  color: #6a3d14;
  font-size: 0.92rem;
}

.about-panel {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
}

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

.badge-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
}

.form {
  display: grid;
  gap: 0.9rem;
  max-width: 36rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

input,
textarea,
select {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.contact-ways {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.site-footer {
  background: var(--bg-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.site-footer strong {
  color: #fff;
  font-family: var(--font-display);
}

.site-footer p {
  margin: 0.4rem 0;
  font-size: 0.92rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.45rem 0.7rem;
}

.product-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 32, 51, 0.08);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ece7de;
}

.product-card .body {
  padding: 1rem 1.1rem 1.2rem;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}

.product-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.product-card .cn-name {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-card .body .btn {
  margin-top: auto;
  justify-self: start;
}

.product-hero {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.05fr 1fr;
  align-items: start;
}

.product-hero img {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: #fff;
}

.product-meta {
  display: grid;
  gap: 0.85rem;
}

.product-meta h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0;
}

.crumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

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

.series-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 2rem;
}

.series-nav a {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  color: var(--ink);
}

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

.series-block {
  margin-bottom: 2.5rem;
}

.series-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 860px) {
  .grid-3,
  .about-panel,
  .product-grid,
  .product-hero {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    right: 1rem;
    top: 3.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 0.8rem 1rem;
    flex-direction: column;
    min-width: 10rem;
    box-shadow: 0 10px 30px rgba(20, 32, 51, 0.08);
  }

  .nav-links.open {
    display: flex;
  }
}
