* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #344034;
  background: #fff;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

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

.wrap {
  width: min(1170px, calc(100% - 30px));
  margin: 0 auto;
}

.top-strip {
  color: #fff;
  background: #6f913c;
  font-size: 13px;
}

.top-strip-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-row {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  color: #405c2c;
  font-size: 30px;
  font-weight: 700;
}

.logo img {
  max-height: 64px;
}

.search-box {
  width: min(330px, 100%);
  display: flex;
  border: 1px solid #d7dfd3;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.search-box input {
  min-width: 0;
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border: 0;
  outline: 0;
}

.search-box button,
button {
  min-height: 38px;
  padding: 0 18px;
  color: #fff;
  background: #6f913c;
  border: 0;
  cursor: pointer;
}

.nav-bar {
  border-top: 1px solid #e5e8e1;
  border-bottom: 1px solid #dfe4da;
  background: #f8f8f6;
}

.nav-inner {
  display: flex;
  align-items: center;
}

.nav-label {
  display: none;
  padding: 14px 18px;
  color: #fff;
  background: #6f913c;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
}

.mobile-toggle,
.mobile-nav-actions,
.mobile-search-box {
  display: none;
}

.nav a {
  padding: 17px 22px;
  color: #334033;
  font-size: 15px;
  border-right: 1px solid #e5e8e1;
}

.nav a:first-child {
  border-left: 1px solid #e5e8e1;
}

.nav a:hover {
  color: #fff;
  background: #6f913c;
}

.hero {
  background: #e7efe7;
}

.hero-slide {
  min-height: 460px;
  display: grid;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-slide + .hero-slide {
  display: none;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21, 34, 23, .58), rgba(21, 34, 23, .08) 58%, rgba(21, 34, 23, .02));
}

.hero-copy {
  position: relative;
  width: min(1170px, calc(100% - 30px));
  margin: 0 auto;
  color: #fff;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0 0 14px;
  font-size: 46px;
  line-height: 1.18;
}

.hero-copy p {
  max-width: 560px;
  margin: 0 0 24px;
  font-size: 17px;
}

.hero-btn,
.outline-btn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 24px;
  color: #fff;
  background: #6f913c;
  border: 1px solid #6f913c;
  font-size: 13px;
  font-weight: 700;
}

.outline-btn {
  background: transparent;
  border-color: #fff;
}

.section {
  padding: 58px 0;
}

.section-head {
  margin-bottom: 32px;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  color: #2f3b2f;
  font-size: 30px;
  line-height: 1.2;
}

.section-head span {
  display: block;
  width: 54px;
  height: 3px;
  margin: 14px auto 0;
  background: #c9a861;
}

.section-head-inner {
  margin-top: 42px;
}

.product-section {
  background: #fff;
}

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

.product-card {
  display: block;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e2e6dc;
  background: #fff;
  text-align: center;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #aac18c;
  box-shadow: 0 10px 24px rgba(72, 96, 58, .13);
}

.product-card img,
.image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e6eee2 url("/static/default/hero-default.jpg") center / cover no-repeat;
}

.product-card strong {
  display: block;
  min-height: 48px;
  padding: 13px 8px 4px;
  color: #2f3b2f;
  font-size: 15px;
  line-height: 1.45;
}

.product-card p {
  margin: 0;
  padding: 0 8px 8px;
  color: #73806d;
  font-size: 13px;
}

.product-card em,
.news-card em,
.news-row em {
  display: block;
  color: #8b967f;
  font-size: 13px;
  font-style: normal;
}

.about-band {
  padding: 66px 0;
  color: #fff;
  background: #72923f;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.about-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, .24);
}

.about-copy h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.28;
}

.about-copy p {
  margin: 0 0 14px;
  font-size: 17px;
}

.about-text {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, .86);
}

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

.news-card {
  display: block;
  border: 1px solid #e3e7dd;
  background: #fff;
}

.news-card img,
.news-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e7eee2 url("/static/default/hero-default.jpg") center / cover no-repeat;
}

.news-card strong {
  display: block;
  padding: 16px 18px 6px;
  color: #2f3b2f;
  font-size: 17px;
  line-height: 1.45;
}

.news-card p {
  margin: 0;
  padding: 0 18px 8px;
  color: #6b7568;
  font-size: 14px;
}

.news-card em {
  padding: 0 18px 18px;
}

.cases-section {
  background: #f7f8f4;
}

.case-placeholder {
  background-position: 65% center;
}

.page-head {
  padding: 58px 0;
  color: #fff;
  background: linear-gradient(90deg, rgba(50, 76, 42, .92), rgba(98, 130, 57, .8)), url("/static/default/hero-default.jpg") center / cover;
}

.page-head h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.25;
}

.page-head p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .86);
}

.news-list {
  display: grid;
  gap: 18px;
}

.news-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 14px;
  border: 1px solid #e3e7dd;
  background: #fff;
}

.news-row img,
.news-row-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e7eee2 url("/static/default/hero-default.jpg") center / cover no-repeat;
}

.news-row strong {
  display: block;
  color: #2f3b2f;
  font-size: 20px;
  line-height: 1.35;
}

.news-row p {
  margin: 8px 0;
  color: #687464;
}

.product-detail,
.page-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.detail-media img,
.detail-media .image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #e3e7dd;
}

.detail-summary {
  padding: 24px;
  border: 1px solid #e3e7dd;
  background: #fbfcf8;
}

.detail-summary h2 {
  margin: 0 0 12px;
}

.content-body {
  color: #485447;
  font-size: 16px;
}

.content-body img {
  height: auto;
}

.article-detail,
.page-layout .content-body {
  max-width: 900px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #e3e7dd;
}

.side-box,
.contact-card,
.message-form {
  padding: 24px;
  border: 1px solid #e3e7dd;
  background: #fbfcf8;
}

.side-box strong {
  display: block;
  margin-bottom: 10px;
  color: #2f3b2f;
  font-size: 20px;
}

.form-row {
  margin-bottom: 14px;
}

input,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccd5c7;
  outline: 0;
  font: inherit;
}

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

.alert {
  margin-bottom: 14px;
  padding: 10px 12px;
}

.alert-success {
  color: #275c36;
  background: #e4f1df;
}

.alert-error {
  color: #8a2e2e;
  background: #fae4e1;
}

.pager {
  margin-top: 28px;
}

.empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  color: #788370;
  text-align: center;
  border: 1px dashed #cfd8c8;
  background: #fbfcf8;
}

.site-footer {
  padding: 44px 0 36px;
  color: #cfd8c8;
  background: #222922;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.site-footer strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 18px;
}

.site-footer p {
  margin: 0 0 8px;
}

.footer-menu {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-menu a:hover,
.link-strip a:hover {
  color: #fff;
}

.link-strip {
  padding: 12px 0;
  color: #dce4d5;
  background: #181e18;
  font-size: 13px;
}

.link-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.link-strip span {
  color: #fff;
  font-weight: 700;
}

.link-strip em {
  font-style: normal;
}

.mobile-foot {
  display: none;
}

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

  .news-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-detail,
  .page-layout,
  .contact-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 58px;
  }

  .top-strip {
    display: none;
  }

  .brand-row {
    min-height: auto;
    display: flex;
    justify-content: center;
    padding: 14px 0 18px;
  }

  .logo {
    min-height: 48px;
    justify-content: center;
    color: #248840;
    font-size: 32px;
    font-style: italic;
    line-height: 1.2;
    text-align: center;
  }

  .logo img {
    max-height: 58px;
  }

  .brand-row .search-box {
    display: none;
  }

  .nav-bar {
    border: 0;
    background: #248840;
  }

  .nav-inner {
    width: 100%;
    min-height: 44px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0;
    padding: 0;
  }

  .nav-label {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    color: #fff;
    background: transparent;
    font-size: 15px;
    font-weight: 400;
  }

  .mobile-nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 44px;
    padding-right: 8px;
    gap: 8px;
  }

  .mobile-search-btn,
  .mobile-menu-btn {
    width: 36px;
    height: 34px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .mobile-menu-btn {
    background: #444;
    border-radius: 4px;
  }

  .mobile-menu-btn span {
    position: absolute;
    left: 8px;
    width: 20px;
    height: 2px;
    background: #fff;
  }

  .mobile-menu-btn span:nth-child(1) {
    top: 9px;
  }

  .mobile-menu-btn span:nth-child(2) {
    top: 16px;
  }

  .mobile-menu-btn span:nth-child(3) {
    top: 23px;
  }

  .mobile-search-btn::before {
    content: "";
    width: 13px;
    height: 13px;
    border: 3px solid #fff;
    border-radius: 50%;
    transform: translate(-2px, -2px);
  }

  .mobile-search-btn::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 3px;
    background: #fff;
    transform: translate(8px, 8px) rotate(45deg);
    border-radius: 2px;
  }

  .mobile-search-box {
    grid-column: 1 / -1;
    padding: 10px;
    background: #248840;
  }

  .mobile-search-box input {
    min-width: 0;
    flex: 1;
    height: 38px;
    padding: 0 10px;
    border: 0;
  }

  .mobile-search-box button {
    min-height: 38px;
    padding: 0 14px;
    background: #444;
  }

  #mobile-search-toggle:checked ~ .nav-bar .mobile-search-box {
    display: flex;
  }

  .nav {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: 1fr;
    background: #248840;
    border-top: 1px solid rgba(255, 255, 255, .18);
  }

  #mobile-nav-toggle:checked ~ .nav-bar .nav {
    display: grid;
  }

  .nav a,
  .nav a:first-child {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
    padding: 11px 15px;
    color: #fff;
    background: #248840;
  }

  .nav a:hover {
    background: #444;
  }

  .hero-slide {
    min-height: 370px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .section {
    padding: 42px 0;
  }

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

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

  .mobile-foot {
    position: fixed;
    z-index: 20;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    color: #fff;
    background: #6f913c;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .16);
  }

  .mobile-foot a {
    display: grid;
    place-items: center;
    font-size: 13px;
    border-right: 1px solid rgba(255, 255, 255, .24);
  }
}
