:root {
  --bg: #f4f1ea;
  --surface: #fdfbf7;
  --surface-strong: #ffffff;
  --ink: #1f2621;
  --muted: #5f675f;
  --line: #d6d0c4;
  --brand: #244d3c;
  --brand-strong: #19392c;
  --accent: #a56d2d;
  --accent-soft: #efe2cf;
  --success: #2f6f55;
  --shadow: 0 18px 48px rgba(25, 39, 33, 0.12);
  --radius: 8px;
  --content: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(253, 251, 247, 0.94);
  border-bottom: 1px solid rgba(214, 208, 196, 0.85);
}

.header-inner,
.footer-inner,
.section-inner,
.hero-inner,
.page-hero-inner {
  width: var(--content);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--brand);
  transition: transform 0.22s ease;
}

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

.nav-link.active,
.nav-link:hover {
  color: var(--ink);
}

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

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: var(--surface-strong);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  min-width: 54px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--brand);
  color: #fff;
}

.menu-toggle,
.menu-close {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn,
.tab-btn,
.news-tag,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px rgba(36, 77, 60, 0.18);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.danger-btn:hover,
.tab-btn:hover,
.news-tag:hover,
.filter-chip:hover,
.product-card:hover,
.news-card:hover,
.advantage-card:hover,
.gallery-card:hover,
.contact-card:hover,
.stat-card:hover,
.detail-sidebar:hover {
  transform: translateY(-2px);
}

.secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ghost-btn,
.danger-btn,
.tab-btn,
.news-tag,
.filter-chip {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
}

.danger-btn {
  border: 1px solid #d8b4ad;
  background: #fff4f2;
  color: #9e4638;
}

.tab-btn.active,
.news-tag.active,
.filter-chip.active {
  border-color: var(--brand);
  background: rgba(36, 77, 60, 0.08);
  color: var(--brand);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(rgba(17, 27, 23, 0.46), rgba(17, 27, 23, 0.62)),
    url("./assets/images/hero-manufacturing.svg") center/cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -6%;
  background: inherit;
  z-index: 0;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 96px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  gap: 40px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 16px;
  font-size: 13px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
}

.page-hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.14;
}

.hero-copy p,
.page-hero-copy p {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.75;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
}

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

.hero-panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 24px;
  backdrop-filter: blur(12px);
}

.hero-panel h2,
.section-head h2,
.cta-band h2,
.detail-main h2,
.detail-sidebar h3,
.contact-map h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 16px;
}

.metric-card strong,
.stat-card strong {
  display: block;
  font-size: 26px;
  margin-bottom: 8px;
}

.metric-card span,
.stat-card span {
  color: rgba(255, 255, 255, 0.84);
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.42);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head p,
.intro-copy p,
.page-hero-copy p,
.detail-main p,
.cta-band p,
.contact-card p,
.footer-copy p,
.timeline-copy p,
.rich-copy p,
.rich-copy li,
.spec-grid li,
.contact-list li,
.news-card p {
  color: var(--muted);
  line-height: 1.75;
}

.grid-4,
.grid-3,
.grid-2,
.stats-grid,
.gallery-grid,
.news-grid,
.contact-grid,
.detail-layout {
  display: grid;
  gap: 20px;
}

.grid-4,
.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.grid-2,
.contact-grid,
.detail-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card,
.advantage-card,
.news-card,
.job-card,
.gallery-card,
.contact-card,
.stat-card,
.detail-sidebar,
.hero-form,
.timeline-card,
.map-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-card {
  overflow: visible;
}

.product-card,
.news-card,
.job-card {
  display: flex;
  flex-direction: column;
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-media img,
.gallery-card img,
.detail-image img {
  height: 100%;
  object-fit: cover;
}

.card-body,
.advantage-card,
.news-card,
.gallery-card,
.contact-card,
.stat-card,
.detail-sidebar,
.timeline-card,
.map-card {
  padding: 22px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.job-requirements,
.message-list {
  display: grid;
  gap: 12px;
}

.job-requirements {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.product-meta,
.news-meta,
.contact-list,
.spec-grid,
.detail-tags,
.footer-nav,
.footer-contacts,
.timeline-row,
.hero-form-grid,
.summary-list,
.footer-grid {
  display: grid;
  gap: 12px;
}

.card-kicker,
.news-date,
.timeline-year,
.detail-label,
.map-kicker {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.card-title,
.news-card h3,
.advantage-card h3,
.gallery-card h3,
.contact-card h3,
.timeline-card h3,
.detail-main h1 {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.28;
}

.product-spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(214, 208, 196, 0.8);
  font-size: 14px;
  color: var(--muted);
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 24px;
}

.intro-layout,
.page-hero-inner,
.footer-grid,
.contact-layout,
.list-head,
.detail-layout,
.cta-band,
.news-cta,
.summary-band {
  display: grid;
  gap: 28px;
}

.admin-panel {
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.admin-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.admin-head h3 {
  margin: 8px 0 0;
  font-size: 22px;
}

.admin-form {
  margin-top: 20px;
}

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

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.message-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.message-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.message-meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.message-card p {
  margin: 12px 0 0;
  color: var(--ink);
  line-height: 1.75;
}

.admin-auth-wrap {
  display: grid;
  justify-items: center;
}

.admin-auth-card {
  width: min(720px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.admin-auth-card h2 {
  margin: 8px 0 0;
  font-size: 28px;
}

.intro-layout,
.contact-layout,
.page-hero-inner,
.cta-band,
.summary-band {
  grid-template-columns: 1.1fr 0.9fr;
}

.intro-visual {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.intro-visual img,
.gallery-card img {
  border-radius: 8px;
}

.gallery-card img {
  margin-bottom: 18px;
}

.gallery-card h3,
.gallery-card p {
  position: relative;
  z-index: 1;
}

.stacked-visual {
  display: grid;
  gap: 16px;
}

.stats-grid {
  margin-top: 32px;
}

.stat-card {
  background: var(--brand);
  color: #fff;
}

.page-hero {
  padding: 66px 0 40px;
  background: var(--surface);
}

.page-hero-inner {
  align-items: end;
}

.page-hero-copy p {
  color: var(--muted);
}

.summary-band {
  margin-top: 28px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.about-intro-block {
  margin-top: 16px;
  padding: 8px 0;
}

.about-intro-block h2 {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 1.2;
  color: var(--ink);
}

.about-intro-copy {
  max-width: 1120px;
}

.about-intro-copy p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.about-intro-copy p:last-child {
  margin-bottom: 0;
}

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

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filter-row,
.news-filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.detail-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.detail-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-main h1 {
  font-size: 36px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(36, 77, 60, 0.08);
  color: var(--brand);
  font-size: 13px;
}

.spec-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.spec-grid li {
  padding: 14px 16px;
  background: var(--surface-strong);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.detail-sidebar {
  position: sticky;
  top: 100px;
}

.detail-sidebar dl {
  margin: 20px 0;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
}

.detail-sidebar dt {
  color: var(--muted);
}

.detail-sidebar dd {
  margin: 0;
}

.hero-form {
  padding: 24px;
}

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

.field,
.field-full {
  display: grid;
  gap: 8px;
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
}

.field-full {
  grid-column: 1 / -1;
}

label {
  font-size: 14px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 12px 14px;
  color: var(--ink);
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(36, 77, 60, 0.18);
  border-color: var(--brand);
}

.error-text,
.form-status {
  font-size: 13px;
}

.error-text {
  color: #a23d2e;
}

.form-status {
  color: var(--success);
}

.contact-grid {
  align-items: start;
}

.map-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background:
    linear-gradient(rgba(22, 34, 29, 0.24), rgba(22, 34, 29, 0.24)),
    url("./assets/images/map-location.svg") center/cover;
  color: #fff;
}

.map-card p,
.map-card li {
  color: rgba(255, 255, 255, 0.88);
}

.map-card .ghost-btn {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cta-band {
  border-radius: 8px;
  padding: 30px;
  background: var(--brand);
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
}

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

.site-footer {
  padding: 52px 0 36px;
  background: #1b221e;
  color: #eef1ed;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.footer-copy p,
.footer-nav a,
.footer-contacts span {
  color: rgba(238, 241, 237, 0.72);
}

.footer-nav a,
.footer-contacts span {
  padding-bottom: 6px;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(238, 241, 237, 0.56);
  font-size: 13px;
}

.mobile-panel {
  position: fixed;
  inset: 0;
  background: rgba(18, 22, 20, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 30;
}

.mobile-panel.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  width: min(88vw, 360px);
  height: 100%;
  margin-left: auto;
  background: var(--surface-strong);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.22s ease;
}

.mobile-panel.open .mobile-drawer {
  transform: translateX(0);
}

.mobile-drawer-header,
.mobile-nav,
.mobile-contact {
  display: grid;
  gap: 16px;
}

.mobile-drawer-header {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 20px;
}

.mobile-nav a {
  padding: 14px 0;
  border-bottom: 1px solid rgba(214, 208, 196, 0.8);
  color: var(--ink);
}

.empty-state {
  padding: 28px;
  background: var(--surface-strong);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .hero-inner,
  .page-hero-inner,
  .intro-layout,
  .contact-layout,
  .summary-band,
  .grid-2,
  .contact-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .stats-grid,
  .grid-3,
  .news-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 780px) {
  :root {
    --content: min(100% - 32px, 1000px);
  }

  .header-inner {
    min-height: 72px;
  }

  .nav-desktop,
  .header-actions .primary-btn {
    display: none;
  }

  .menu-toggle,
  .menu-close {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    min-height: 620px;
  }

  .hero-inner,
  .page-hero-inner {
    padding-top: 72px;
  }

  .hero-copy h1,
  .detail-main h1,
  .about-intro-block h2 {
    font-size: 34px;
  }

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

  .grid-4,
  .grid-3,
  .stats-grid,
  .news-grid,
  .gallery-grid,
  .hero-form-grid,
  .form-grid,
  .summary-list,
  .spec-grid,
  .timeline-card {
    grid-template-columns: 1fr;
  }

  .timeline-card {
    gap: 8px;
  }

  .section {
    padding: 68px 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .admin-head {
    flex-direction: column;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-security-grid {
    grid-template-columns: 1fr;
  }
}
