:root {
  color-scheme: light;
  --ink: #172015;
  --muted: #687165;
  --line: #e5e8df;
  --paper: #f7f5ed;
  --white: #ffffff;
  --green: #155638;
  --green-dark: #0d3524;
  --red: #b82822;
  --gold: #bd8434;
  --soft: #f0f4e8;
  --shadow: 0 18px 46px rgba(26, 38, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), #2c8a5a);
  transform: scaleX(0);
  transform-origin: left center;
}

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

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

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.topline {
  color: #dce8d7;
  background: var(--green-dark);
  font-size: 13px;
}

.topline-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 8px 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 clamp(18px, 5vw, 70px);
  border-bottom: 1px solid rgba(229, 232, 223, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  transition: min-height 0.18s ease, box-shadow 0.18s ease;
}

.site-header.compact {
  min-height: 64px;
  box-shadow: 0 10px 30px rgba(22, 35, 17, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  display: block;
  width: clamp(72px, 8vw, 92px);
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  color: var(--green-dark);
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  font-size: 15px;
}

.site-header nav a {
  position: relative;
  display: inline-flex;
  min-height: 78px;
  align-items: center;
  color: #2c3429;
}

.site-header.compact nav a {
  min-height: 64px;
}

.nav-item {
  position: relative;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--red);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: 0.18s ease;
}

.site-header nav a:hover {
  color: var(--red);
}

.site-header nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  min-width: 168px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: 0.18s ease;
}

.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.nav-menu a {
  display: flex;
  min-height: 36px;
  align-items: center;
  border-radius: 3px;
  padding: 0 10px;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: var(--red);
  background: rgba(184, 40, 34, 0.08);
}

.menu-toggle,
.search-button {
  display: none;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 12px;
  color: var(--green-dark);
  background: var(--white);
  cursor: pointer;
}

.search-button {
  display: inline-flex;
  align-items: center;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: calc(100vh - 112px);
  display: grid;
  align-items: center;
  padding: clamp(80px, 12vw, 140px) clamp(18px, 6vw, 88px);
  color: var(--white);
  background: var(--green-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding: clamp(80px, 12vw, 140px) clamp(18px, 6vw, 88px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  transform: scale(1.04);
  transition: transform 5s ease;
}

.hero-slide.active .hero-bg {
  transform: scale(1);
}

.hero-bg.gate {
  background:
    linear-gradient(90deg, rgba(12, 34, 24, 0.88) 0%, rgba(12, 34, 24, 0.58) 45%, rgba(12, 34, 24, 0.2) 100%),
    url("assets/company-gate.jpg") center bottom / cover no-repeat;
}

.hero-bg[style] {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-bg.product {
  background:
    linear-gradient(90deg, rgba(12, 34, 24, 0.92) 0%, rgba(12, 34, 24, 0.62) 48%, rgba(12, 34, 24, 0.24) 100%),
    url("assets/yongxin-hero.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  max-width: 760px;
  transform: translateY(18px);
  opacity: 0;
  transition: 0.45s ease 0.12s;
}

.hero-slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-content p,
.section-title p,
.contact-card p {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.28;
}

.hero-content span {
  display: block;
  max-width: 620px;
  color: #e9f0e2;
  font-size: clamp(18px, 2vw, 24px);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  padding: 0 24px;
  font-weight: 800;
}

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

.button.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.hero-controls {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: clamp(28px, 5vw, 62px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls button,
.hero-dots button {
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.16);
  font-size: 24px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 28px;
  height: 3px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.active {
  background: var(--white);
}

.quick-stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1220px;
  margin: -48px auto 0;
  padding: 0 24px;
}

.quick-stats article {
  min-height: 128px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.quick-stats article:first-child {
  border-radius: 8px 0 0 8px;
}

.quick-stats article:last-child {
  border-right: 0;
  border-radius: 0 8px 8px 0;
}

.quick-stats strong,
.quick-stats span {
  display: block;
}

.quick-stats strong {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 21px;
}

.quick-stats span,
.section-title span,
.about-text p,
.product-copy p,
.capability-grid span,
.news-grid p,
.contact-card span,
address {
  color: var(--muted);
}

.honor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.honor-list span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(184, 40, 34, 0.22);
  border-radius: 3px;
  padding: 0 12px;
  color: var(--red);
  background: rgba(184, 40, 34, 0.06);
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: clamp(72px, 9vw, 118px) clamp(18px, 5vw, 70px);
}

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

.section-title.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-title.light h2,
.section-title.light p {
  color: var(--white);
}

.about-layout {
  max-width: 1220px;
  margin: 0 auto;
}

.about-text {
  max-width: 960px;
  margin: 0 auto 34px;
  text-align: center;
}

.about-text h3 {
  font-size: clamp(26px, 3vw, 38px);
}

.about-text p {
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.about-media {
  margin: 0;
}

.about-media img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.products {
  background: var(--white);
}

.product-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.product-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 18px;
  color: #394234;
  background: var(--white);
  cursor: pointer;
}

.product-tabs button.active,
.product-tabs button:hover {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

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

.product-grid article,
.product-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-grid article.hidden,
.product-card.hidden,
.news-grid article.hidden,
.news-card.hidden {
  display: none;
}

.product-grid article:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-image {
  min-height: 250px;
  background:
    radial-gradient(circle at 28% 68%, rgba(238, 181, 83, 0.9) 0 7%, transparent 8%),
    radial-gradient(circle at 48% 58%, rgba(177, 105, 37, 0.9) 0 8%, transparent 9%),
    radial-gradient(circle at 70% 64%, rgba(232, 154, 58, 0.88) 0 7%, transparent 8%),
    linear-gradient(135deg, #f4e6bd, #d8b573);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.product-image.seeds {
  background:
    radial-gradient(ellipse at 32% 62%, #2f2114 0 5%, transparent 6%),
    radial-gradient(ellipse at 52% 55%, #4a2e19 0 5%, transparent 6%),
    radial-gradient(ellipse at 72% 64%, #342011 0 5%, transparent 6%),
    linear-gradient(135deg, #e7d4a7, #9a7240);
}

.product-image.gift {
  background:
    linear-gradient(90deg, rgba(184, 40, 34, 0.9) 0 18%, transparent 19% 81%, rgba(184, 40, 34, 0.9) 82%),
    linear-gradient(0deg, rgba(21, 86, 56, 0.86) 0 18%, transparent 19% 81%, rgba(21, 86, 56, 0.86) 82%),
    linear-gradient(135deg, #f2dfad, #d19c49);
}

.product-image[style] {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.product-copy {
  min-height: 182px;
  padding: 24px;
}

.product-copy span {
  display: inline-flex;
  margin-top: 16px;
  color: var(--red);
  font-weight: 900;
}

.product-copy span::after {
  margin-left: 8px;
  content: "›";
}

.manufacturing {
  background:
    linear-gradient(90deg, rgba(13, 53, 36, 0.98), rgba(13, 53, 36, 0.86)),
    url("assets/company-gate.jpg") center / cover no-repeat;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1220px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.capability-grid article {
  min-height: 220px;
  padding: 30px 24px;
  background: rgba(255, 255, 255, 0.08);
}

.capability-grid b,
.capability-grid span {
  display: block;
}

.capability-grid b {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 22px;
}

.capability-grid span {
  color: #dce8d5;
}

.news {
  background: var(--soft);
}

.partners {
  background: var(--white);
}

.partner-logos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto;
}

.partner-logo {
  display: grid;
  min-height: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcf8;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.partner-logo span {
  color: var(--green-dark);
  font-size: 20px;
  font-weight: 800;
}

.partner-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 0;
  background: var(--white);
}

.partner-logo:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 40, 34, 0.4);
}

.news-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -6px 0 30px;
}

.news-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 16px;
  color: var(--green-dark);
  background: var(--white);
  cursor: pointer;
}

.news-tabs button.active,
.news-tabs button:hover {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1220px;
  margin: 0 auto;
}

.news-grid article,
.news-card {
  display: block;
  overflow: hidden;
  min-height: 230px;
  padding: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--white);
}

.news-card:hover {
  border-color: rgba(184, 40, 34, 0.28);
  box-shadow: var(--shadow);
}

.news-grid img {
  width: calc(100% + 56px);
  height: 160px;
  margin: -28px -28px 22px;
  object-fit: cover;
}

.news-grid time {
  display: block;
  margin-bottom: 22px;
  color: var(--red);
  font-weight: 800;
}

.news-card > span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green);
  font-weight: 900;
}

.news-card > span::after {
  margin-left: 8px;
  content: "›";
}

.detail-header {
  position: relative;
}

.detail-page {
  background: var(--paper);
}

.detail-hero {
  padding: clamp(70px, 10vw, 120px) clamp(18px, 6vw, 88px) clamp(54px, 8vw, 90px);
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(13, 53, 36, 0.96), rgba(23, 32, 21, 0.86)),
    url("assets/company-gate.jpg") center / cover no-repeat;
}

.detail-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: #dce8d7;
  font-weight: 800;
}

.detail-back::before {
  margin-right: 8px;
  content: "‹";
}

.detail-hero p {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.detail-hero h1 {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 70px);
}

.detail-title.medium {
  font-size: clamp(30px, 4vw, 44px);
}

.detail-title.large {
  font-size: clamp(36px, 5vw, 58px);
}

.detail-title.xlarge {
  font-size: clamp(42px, 6vw, 72px);
}

.detail-title.hero {
  font-size: clamp(50px, 7vw, 86px);
}

.detail-hero time {
  color: #dce8d7;
  font-weight: 800;
}

.detail-article {
  max-width: 920px;
  margin: -38px auto 0;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 8px 8px 0 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-article img {
  width: 100%;
  max-height: 430px;
  margin-bottom: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.detail-summary {
  margin-bottom: 30px;
  padding-left: 18px;
  border-left: 4px solid var(--red);
  color: var(--green-dark);
  font-size: 20px;
  font-weight: 800;
}

.detail-body {
  color: #394234;
  font-size: 18px;
}

.detail-body p {
  margin-bottom: 18px;
}

.detail-body a {
  color: var(--red);
  font-weight: 900;
}

.detail-heading {
  margin: 34px 0 14px;
  color: var(--green-dark);
  line-height: 1.22;
}

.detail-heading.small {
  font-size: 22px;
}

.detail-heading.medium {
  font-size: 28px;
}

.detail-heading.large {
  font-size: 34px;
}

.detail-heading.xlarge {
  font-size: 42px;
}

.detail-figure {
  margin: 30px 0;
}

.detail-figure img {
  width: 100%;
  max-height: 520px;
  border-radius: 8px;
  object-fit: cover;
}

.detail-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.product-detail-hero {
  background:
    linear-gradient(120deg, rgba(13, 53, 36, 0.94), rgba(184, 40, 34, 0.54)),
    url("assets/yongxin-hero.png") center / cover no-repeat;
}

.detail-hero > span {
  display: block;
  color: #dce8d7;
  font-weight: 800;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button.light {
  color: var(--green-dark);
  border: 1px solid var(--line);
  background: var(--white);
}

.contact {
  background: var(--white);
}

.responsibility {
  color: var(--white);
  background:
    radial-gradient(circle at 18% 20%, rgba(189, 132, 52, 0.28), transparent 28%),
    radial-gradient(circle at 86% 24%, rgba(184, 40, 34, 0.24), transparent 28%),
    linear-gradient(135deg, #0d3524, #172015 64%, #2b2315);
}

.responsibility .section-title span {
  color: #dce8d5;
}

.responsibility-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto;
}

.responsibility-grid article {
  min-height: 240px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.responsibility-grid i,
.responsibility-grid b,
.responsibility-grid span {
  display: block;
}

.responsibility-grid i {
  margin-bottom: 40px;
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

.responsibility-grid b {
  margin-bottom: 12px;
  font-size: 22px;
}

.responsibility-grid span {
  color: #dce8d5;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 8px;
  background: #fbfcf8;
  box-shadow: var(--shadow);
}

address {
  display: grid;
  gap: 12px;
  font-style: normal;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 70px);
  color: #dce8d7;
  background: var(--green-dark);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  margin-bottom: 6px;
  color: var(--white);
  font-size: 20px;
}

.site-footer nav a {
  color: #dce8d7;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 53, 36, 0.78);
}

.search-overlay[hidden] {
  display: none;
}

.search-panel {
  position: relative;
  width: min(720px, 100%);
  padding: clamp(28px, 6vw, 56px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.search-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.search-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-panel input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 12px;
  font: inherit;
}

.search-panel form button {
  min-height: 46px;
  border: 0;
  border-radius: 3px;
  padding: 0 18px;
  color: var(--white);
  background: var(--red);
  cursor: pointer;
}

.search-results {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.search-results a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
}

.search-results strong {
  display: block;
  color: var(--green-dark);
}

.search-results span {
  color: var(--muted);
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.18s ease;
}

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

.magnetic-card {
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-header {
    gap: 12px;
  }

  .site-header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: visible;
    padding-bottom: 2px;
  }

  .site-header nav.open {
    display: flex;
  }

  .site-header nav a {
    min-height: 36px;
    white-space: nowrap;
  }

  .nav-item,
  .nav-menu {
    width: 100%;
  }

  .nav-menu {
    position: static;
    min-width: 0;
    padding: 4px 0 6px 12px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .quick-stats,
  .product-grid,
  .capability-grid,
  .news-grid,
  .responsibility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-stats article:nth-child(2) {
    border-radius: 0 8px 8px 0;
  }

  .quick-stats article:nth-child(3) {
    border-radius: 8px 0 0 8px;
  }

  .about-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topline-inner,
  .site-footer {
    flex-direction: column;
  }

  .topline-inner {
    gap: 4px;
  }

  .brand strong {
    white-space: normal;
  }

  .brand-mark {
    width: 72px;
  }

  .hero {
    min-height: 560px;
    padding: 0;
  }

  .hero-slide {
    padding: 70px 18px 92px;
  }

  .quick-stats,
  .product-grid,
  .capability-grid,
  .news-grid,
  .responsibility-grid {
    grid-template-columns: 1fr;
  }

  .quick-stats {
    margin-top: 0;
    padding-top: 18px;
  }

  .quick-stats article,
  .quick-stats article:first-child,
  .quick-stats article:nth-child(2),
  .quick-stats article:nth-child(3),
  .quick-stats article:last-child {
    border-right: 0;
    border-radius: 8px;
  }

  .product-image {
    min-height: 210px;
  }

  .search-panel form {
    grid-template-columns: 1fr;
  }

  .hero-controls {
    right: 18px;
    left: 18px;
    justify-content: space-between;
  }
}

.admin-body {
  background:
    radial-gradient(circle at 12% 8%, rgba(189, 132, 52, 0.18), transparent 32%),
    linear-gradient(135deg, #eff4e8, #f8f7f0 52%, #e7efe1);
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  color: var(--white);
  background: linear-gradient(180deg, var(--green-dark), #172015);
}

.admin-side .brand {
  margin-bottom: 30px;
}

.admin-side .brand-mark {
  width: 88px;
}

.admin-side .brand strong,
.admin-side .brand small {
  color: var(--white);
}

.admin-side nav {
  display: grid;
  gap: 6px;
}

.admin-side nav a {
  border-radius: 6px;
  padding: 10px 12px;
  color: #dce8d7;
}

.admin-side nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-preview {
  width: 100%;
  margin-top: 30px;
}

.admin-workspace {
  min-width: 0;
  padding: 34px clamp(18px, 4vw, 54px) 70px;
}

.admin-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -34px 0 28px;
  padding: 28px 0 18px;
  background: rgba(248, 247, 240, 0.86);
  backdrop-filter: blur(16px);
}

.admin-toolbar p,
.admin-panel-title p,
.login-card p {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.admin-toolbar h1,
.login-card h2 {
  margin: 0;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-actions span {
  color: var(--muted);
  font-size: 14px;
}

.admin-actions span[data-mode="dirty"],
.admin-actions span[data-mode="error"] {
  color: var(--red);
}

.admin-actions span[data-mode="saved"] {
  color: var(--green);
}

.admin-form {
  display: grid;
  gap: 22px;
}

.admin-panel,
.edit-card,
.login-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 38px rgba(26, 38, 20, 0.08);
}

.admin-panel {
  padding: clamp(20px, 3vw, 32px);
}

.admin-panel-title {
  margin-bottom: 18px;
}

.admin-panel-title h2 {
  margin: 0;
  font-size: 26px;
}

.admin-grid {
  display: grid;
  gap: 14px;
}

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

.admin-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--green-dark);
  font-weight: 800;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.login-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 500;
}

.admin-form select {
  min-height: 46px;
}

.edit-card {
  margin: 16px 0;
  padding: 18px;
}

.edit-card.compact {
  padding-bottom: 4px;
}

.edit-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.edit-card-head button,
.admin-add {
  min-height: 34px;
  border: 1px solid rgba(184, 40, 34, 0.24);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--red);
  background: rgba(184, 40, 34, 0.06);
  cursor: pointer;
}

.admin-add {
  color: var(--green-dark);
  border-color: rgba(21, 86, 56, 0.24);
  background: rgba(21, 86, 56, 0.08);
}

.image-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px 140px;
  gap: 12px;
  align-items: end;
}

.upload-button {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 6px;
  color: var(--green-dark);
  background: rgba(21, 86, 56, 0.08);
  cursor: pointer;
}

.upload-button input {
  display: none;
}

.image-field img,
.image-empty {
  width: 140px;
  height: 84px;
  border-radius: 6px;
  object-fit: cover;
}

.image-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--soft);
  font-size: 13px;
}

.body-editor {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcf8;
}

.body-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.body-editor-head b {
  color: var(--green-dark);
}

.body-editor-head span {
  color: var(--muted);
  font-size: 13px;
}

.body-block {
  margin: 12px 0;
  border: 1px solid rgba(21, 86, 56, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
}

.body-block-top {
  display: grid;
  grid-template-columns: minmax(0, 240px) auto;
  gap: 12px;
  align-items: end;
}

.body-block-top button {
  min-height: 46px;
  border: 1px solid rgba(184, 40, 34, 0.24);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--red);
  background: rgba(184, 40, 34, 0.06);
  cursor: pointer;
}

.admin-add-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.login-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 53, 36, 0.72);
  backdrop-filter: blur(12px);
}

.login-layer[hidden] {
  display: none;
}

.login-card {
  width: min(440px, 100%);
  padding: 30px;
}

.login-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.login-error {
  display: block;
  margin: -4px 0 14px;
  color: var(--red);
  font-size: 14px;
}

.login-error[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-side {
    position: static;
    height: auto;
  }

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

  .admin-toolbar,
  .admin-actions,
  .body-block-top,
  .image-field {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .admin-grid.two,
  .admin-grid.three {
    grid-template-columns: 1fr;
  }
}
