:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --ink: #202324;
  --muted: #6d7276;
  --line: #e3e3e3;
  --dark: #313538;
  --dark-deep: #242729;
  --accent: #b38945;
  --accent-soft: #d8c39a;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(24, 26, 28, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, "Helvetica Neue", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-light {
  background: var(--white);
}

.section-dark {
  background: var(--dark-deep);
  color: var(--white);
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--accent-soft);
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h2 {
  font-size: 38px;
  font-weight: 700;
}

.lead {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

/* Header */
.topbar {
  background: var(--dark-deep);
  color: #cfd1d2;
  font-size: 13px;
}

.topbar-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 38px;
  padding: 6px 0;
}

.topbar-contacts {
  display: flex;
  gap: 24px;
}

.topbar-tagline {
  color: #aeb1b3;
}

.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.25s ease;
}

.navbar.scrolled {
  box-shadow: 0 8px 24px rgba(24, 26, 28, 0.08);
}

.nav-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 74px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

.brand-mark {
  align-items: center;
  background: var(--dark);
  border-radius: 6px;
  color: var(--white);
  display: flex;
  font-size: 22px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.brand-text small {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-top: 5px;
  text-transform: uppercase;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 38px;
}

.nav-links a {
  color: var(--ink);
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 0;
  position: relative;
  text-transform: uppercase;
}

.nav-links a::after {
  background: var(--accent);
  bottom: 2px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  width: 100%;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  background: var(--ink);
  border-radius: 2px;
  height: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  width: 24px;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  align-items: center;
  background: var(--dark);
  color: var(--white);
  display: flex;
  min-height: 620px;
  overflow: hidden;
  position: relative;
}

.hero-bg,
.hero-shade,
.motto-bg,
.motto-shade {
  inset: 0;
  position: absolute;
}

.hero-bg {
  background-image: url("../assets/hero-right.png");
  background-position: right center;
  background-size: cover;
  transform: scale(1.04);
}

.hero-shade {
  background: linear-gradient(90deg, rgba(20, 22, 24, 0.92) 0%, rgba(20, 22, 24, 0.66) 48%, rgba(20, 22, 24, 0.2) 100%);
}

.hero-content {
  max-width: 640px;
  padding: 96px 0;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 88px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-subtitle {
  color: var(--accent-soft);
  font-size: 24px;
  font-weight: 700;
  margin: 6px 0 18px;
}

.hero-copy {
  color: #d7d9da;
  font-size: 16px;
  max-width: 500px;
}

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

.btn {
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.06em;
  min-height: 46px;
  padding: 12px 24px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background: #9d7638;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--dark-deep);
}

/* About */
.about-grid {
  align-items: center;
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.about-media {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.about-media > img {
  aspect-ratio: 4 / 4.4;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.about-badge {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 6px;
  bottom: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  left: 22px;
  padding: 14px 20px;
  position: absolute;
}

.about-badge strong {
  color: var(--dark);
  font-size: 24px;
}

.about-badge span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.about-copy h2 {
  margin-bottom: 18px;
}

.about-copy > p {
  color: var(--muted);
  margin-bottom: 16px;
}

.about-copy .lead {
  color: var(--ink);
}

.stat-list {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0;
  padding: 24px 0;
}

.stat-list li {
  display: flex;
  flex-direction: column;
}

.stat-list strong {
  color: var(--accent);
  font-size: 24px;
}

.stat-list span {
  color: var(--muted);
  font-size: 13px;
}

.text-link {
  color: var(--accent);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-link:hover {
  color: var(--dark);
}

/* Section heading */
.section-heading {
  margin: 0 auto 52px;
  max-width: 720px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 16px;
}

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.product-media {
  aspect-ratio: 4 / 3;
  background: #ececeb;
  overflow: hidden;
}

.product-media img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.product-card h3 {
  font-size: 17px;
  margin: 18px 20px 4px;
}

.product-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 20px 20px;
  text-transform: uppercase;
}

.section-action {
  margin-top: 44px;
  text-align: center;
}

/* Motto */
.motto {
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.motto-bg {
  background-image: url("../assets/banner.png");
  background-position: center;
  background-size: cover;
  opacity: 0.42;
}

.motto-shade {
  background: linear-gradient(90deg, rgba(20, 22, 24, 0.92) 0%, rgba(20, 22, 24, 0.68) 100%);
}

.motto-content {
  max-width: 720px;
  padding: 96px 0;
  position: relative;
  z-index: 2;
}

.motto-content h2 {
  margin-bottom: 18px;
}

.motto-content p:not(.eyebrow) {
  color: #d3d5d6;
  font-size: 17px;
}

.motto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.motto-tags span {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: var(--accent-soft);
  font-size: 13px;
  padding: 8px 16px;
}

/* News */
.news {
  background: var(--bg);
}

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

.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.news-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.news-body {
  padding: 24px;
}

.news-body time {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-body h3 {
  font-size: 18px;
  margin: 10px 0 8px;
}

.news-body p {
  color: var(--muted);
  font-size: 14px;
}

/* Contact */
.contact-grid {
  align-items: start;
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.contact-info h2 {
  margin-bottom: 18px;
}

.contact-info > p:not(.eyebrow) {
  color: #c5c8ca;
  margin-bottom: 28px;
  max-width: 460px;
}

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

.contact-list li {
  border-left: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  padding-left: 16px;
}

.contact-list strong {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.contact-list span {
  color: #c5c8ca;
  font-size: 15px;
}

.contact-form {
  background: var(--white);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 18px;
  padding: 32px;
}

.form-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-form label > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  outline: none;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(179, 137, 69, 0.14);
}

.form-status {
  color: #2f7d4f;
  font-size: 14px;
  min-height: 20px;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #d0d2d3;
}

.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.3fr;
  padding: 64px 0 48px;
}

.brand-footer {
  margin-bottom: 18px;
}

.brand-footer .brand-mark {
  background: var(--white);
  color: var(--dark);
}

.brand-footer .brand-text {
  color: var(--white);
}

.footer-brand p,
.footer-contact p {
  color: #b7babc;
  font-size: 14px;
  max-width: 320px;
}

.footer-col h3 {
  color: var(--white);
  font-size: 15px;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: #b7babc;
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--accent-soft);
}

.footer-contact p {
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #989da0;
  font-size: 13px;
  padding: 22px 0;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1020px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: 44px;
    grid-template-columns: 1fr;
  }

  .about-media > img {
    aspect-ratio: 16 / 10;
  }

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

@media (max-width: 860px) {
  .section {
    padding: 64px 0;
  }

  h2 {
    font-size: 30px;
  }

  .topbar-tagline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(24, 26, 28, 0.1);
    display: none;
    flex-direction: column;
    gap: 4px;
    left: 0;
    padding: 16px 24px 24px;
    position: absolute;
    right: 0;
    top: 100%;
  }

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

  .nav-links a {
    width: 100%;
  }

  .hero {
    min-height: 560px;
  }

  .hero h1 {
    font-size: 64px;
  }

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

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

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

@media (max-width: 620px) {
  .container {
    width: min(1200px, calc(100% - 32px));
  }

  .topbar-contacts {
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    padding: 72px 0;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

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

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

  .motto-content {
    padding: 72px 0;
  }
}
