:root {
  --ink: #25233b;
  --muted: #7b7b88;
  --green: #1c4e2a;
  --taupe: #ad8266;
  --paper: #fbfbfb;
  --soft: #f4f3f1;
  --line: rgba(28, 30, 42, 0.1);
  --header-h: 130px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

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

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

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

.section-anchor {
  scroll-margin-top: var(--header-h);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 clamp(24px, 9vw, 114px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: height 0.2s ease;
}

.brand {
  display: flex;
  align-items: center;
  width: 181px;
  transition: width 0.2s ease;
}

.site-nav {
  height: 100%;
  display: flex;
  align-items: stretch;
}

.site-nav a {
  min-width: 100px;
  display: grid;
  place-items: center;
  padding: 0 25px;
  color: #191936;
  font-size: 20px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-header.scrolled {
  height: 60px;
}

.site-header.scrolled .brand {
  width: 103px;
}

.site-header.scrolled .site-nav a {
  font-size: 18px;
}

.site-nav a:nth-child(2) {
  min-width: 160px;
}

.site-nav a:hover,
.site-nav a.active {
  color: #746b93;
  background: #f1f1f1;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: var(--green);
}

.hero {
  min-height: 750px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(40px, 1fr) minmax(280px, 430px) minmax(420px, 855px) minmax(0, 1fr);
  align-items: center;
  background: #eef2ef;
}

.hero-copy {
  grid-column: 2;
  z-index: 2;
  padding-bottom: 70px;
}

.hero-copy p {
  margin: 0 0 22px;
  color: #8a8f91;
  font-size: 17px;
  letter-spacing: 4px;
}

.hero-copy h1 {
  margin: 0 0 34px;
  color: var(--green);
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(44px, 4.3vw, 54px);
  line-height: 1.12;
  font-weight: 400;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green);
  font-size: 16px;
  transition: background 0.2s ease;
}

.hero-button:hover {
  background: #d8dcd6;
}

.hero-image {
  grid-column: 3 / 5;
  width: min(855px, 72vw);
  justify-self: start;
  align-self: end;
}

.section {
  padding: 96px clamp(24px, 7.4vw, 94px) 60px;
}

.section-heading {
  text-align: center;
}

.section-heading h2,
.about-copy h2,
.contact h2 {
  margin: 0;
  color: #201f42;
  font-size: 27px;
  line-height: 1.35;
  font-weight: 900;
}

.section-heading p {
  margin: 18px 0 52px;
  color: var(--muted);
  font-size: 22px;
  font-weight: 300;
}

.intro {
  background: var(--paper);
}

.brand-panel {
  width: min(100%, 1060px);
  min-height: 590px;
  margin: 0 auto 54px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 54px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(157, 127, 92, 0.15);
}

.brand-panel img {
  width: min(600px, 82%);
}

.brand-panel p {
  margin: 0;
  color: #9b9ba3;
  font-size: 17px;
}

.down-link {
  width: 75px;
  height: 75px;
  margin: 0 auto -38px;
  display: block;
  position: relative;
  z-index: 2;
  border-radius: 50%;
}

.about {
  position: relative;
  background: var(--soft) url("../images/about-bg.jpg") center top / cover no-repeat;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 243, 241, 0.78);
}

.about-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 24px;
  align-items: start;
}

.about-photo {
  border: 8px solid rgba(255, 255, 255, 0.62);
}

.about-copy {
  padding-top: 8px;
}

.about-copy h2 {
  color: var(--taupe);
  margin-bottom: 30px;
}

.lead {
  margin: 0 0 38px;
  color: #676579;
  font-size: 22px;
  line-height: 1.6;
  font-weight: 300;
}

.about-detail {
  grid-column: 1 / -1;
  margin: 0 0 36px;
  color: #676579;
  line-height: 1.8;
}

.products {
  background: var(--paper);
  padding-bottom: 90px;
}

.product-image {
  width: min(1080px, 100%);
  margin: 0 auto 28px;
}

.product-table-wrap {
  width: min(100%, 980px);
  margin: 0 auto;
  overflow-x: auto;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.product-table td {
  padding: 15px 30px;
  border-bottom: 1px solid rgba(173, 130, 102, 0.16);
}

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

.product-table td:first-child {
  width: 40%;
  text-align: center;
  color: #39394a;
}

.product-table td:last-child {
  color: var(--taupe);
  font-weight: 700;
}

.contact {
  min-height: 1110px;
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  background: #1e2a35 url("../images/contact-bg.jpg") center top / cover no-repeat;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 22, 32, 0.46);
}

.contact-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  margin: 0 auto;
}

.contact-logo {
  width: 244px;
  margin-bottom: 86px;
}

.contact h2 {
  margin: 0 0 62px;
  color: #fff;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(44px, 5.2vw, 72px);
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-bottom: 66px;
}

.address {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 28px;
  align-items: start;
}

.address img {
  width: 38px;
  margin-top: 4px;
}

.address p,
.contact-list a {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.77);
  font-size: 18px;
}

.address span,
.contact-list a::first-letter {
  color: var(--taupe);
}

.contact-list {
  display: grid;
  gap: 15px;
}

.contact-list a {
  display: block;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.message-form h3 {
  margin: 0 0 26px;
  color: #fff;
  font-size: 24px;
  line-height: 1.3;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

input,
textarea,
button {
  font: inherit;
  letter-spacing: 0;
}

input,
textarea {
  width: 100%;
  border: 1px solid #ebebeb;
  border-radius: 0;
  background: #fff;
  color: #626262;
  padding: 12px;
  outline: none;
}

input {
  height: 42px;
}

textarea {
  resize: vertical;
  min-height: 200px;
  margin-bottom: 26px;
}

input:focus,
textarea:focus {
  border-color: #f0c5a9;
}

button[type="submit"] {
  border: 0;
  border-radius: 5px;
  padding: 14px 22px;
  color: #fff;
  background: var(--taupe);
  cursor: pointer;
  transition: background 0.2s ease;
}

button[type="submit"]:hover {
  background: #9a7056;
}

.form-status {
  min-height: 28px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

@media (max-width: 1024px) {
  :root {
    --header-h: 96px;
  }

  .site-header {
    padding: 0 42px;
  }

  .site-nav a {
    min-width: auto;
    padding: 0 18px;
    font-size: 17px;
  }

  .site-nav a:nth-child(2) {
    min-width: auto;
  }

  .hero {
    min-height: 640px;
    grid-template-columns: 42px minmax(250px, 360px) 1fr;
  }

  .hero-image {
    grid-column: 3;
    width: 720px;
    max-width: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 62px;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    height: var(--header-h);
    padding: 0 22px;
  }

  .site-header.scrolled {
    height: var(--header-h);
  }

  .brand {
    width: 110px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    height: auto;
    display: none;
    grid-template-columns: 1fr;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    min-height: 54px;
    justify-content: start;
    padding: 0 22px;
  }

  .hero {
    min-height: 700px;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 78px 28px 0;
  }

  .hero-copy {
    grid-column: 1;
    padding: 0;
  }

  .hero-copy p {
    font-size: 14px;
  }

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

  .hero-image {
    grid-column: 1;
    width: min(680px, 138vw);
    justify-self: center;
    margin-top: 26px;
  }

  .section {
    padding: 70px 24px 52px;
  }

  .section-heading p {
    margin-bottom: 36px;
    font-size: 18px;
  }

  .brand-panel {
    min-height: 360px;
    gap: 28px;
  }

  .about-inner,
  .contact-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .lead {
    font-size: 18px;
  }

  .contact {
    min-height: auto;
  }

  .contact-logo {
    margin-bottom: 54px;
  }

  .contact h2 {
    margin-bottom: 42px;
  }

  .contact-grid {
    gap: 28px;
  }

  .product-table {
    min-width: 560px;
  }
}
