@font-face {
  font-family: "QG Uyghur";
  src: url("/admin/assets/uy.TTF") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-soft: #eef2ea;
  --ink: #14221b;
  --muted: #617067;
  --subtle: #87948c;
  --line: rgba(20, 34, 27, 0.12);
  --green: #1f6a4a;
  --green-dark: #0e3125;
  --gold: #c9973d;
  --gold-soft: #f3dfad;
  --blue-gray: #566b78;
  --shadow: 0 22px 70px rgba(26, 45, 36, 0.13);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(243, 223, 173, 0.45), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(31, 106, 74, 0.12), transparent 30%),
    var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  min-height: 64px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(20, 34, 27, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 46px rgba(20, 34, 27, 0.09);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(31, 106, 74, 0.18);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 58px rgba(20, 34, 27, 0.13);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  font-weight: 900;
}

.brand img,
.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(20, 34, 27, 0.12);
}

.brand span {
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius);
  background: rgba(238, 242, 234, 0.82);
}

.site-nav a {
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--green-dark);
  background: var(--surface);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.language-switcher button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.language-switcher button:hover {
  color: var(--green-dark);
  background: rgba(238, 242, 234, 0.94);
}

.language-switcher button.is-active,
.language-switcher button[aria-pressed="true"] {
  color: #fff;
  background: var(--green-dark);
  box-shadow: 0 8px 18px rgba(14, 49, 37, 0.18);
}

.header-link,
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-link,
.primary-link {
  padding: 0 18px;
  color: #fff;
  background: var(--green-dark);
}

.secondary-link {
  padding: 0 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.header-link:hover,
.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
}

.menu-toggle::before {
  content: "";
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(430px, 1.07fr);
  align-items: center;
  gap: 58px;
  width: min(1240px, calc(100% - 44px));
  min-height: 92vh;
  margin: 0 auto;
  padding: 128px 0 54px;
}

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

.eyebrow,
.section-heading span {
  display: inline-flex;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero h1 {
  max-width: 720px;
  margin: 18px 0 18px;
  font-size: 76px;
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

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

.hero-media,
.factory-main,
.factory-side figure,
.team-layout figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-media {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.24 / 1;
}

.hero-media img,
.factory-main img,
.factory-side img,
.team-layout img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(14, 49, 37, 0.78);
  backdrop-filter: blur(14px);
}

.hero-media figcaption strong,
.hero-media figcaption span {
  min-width: 0;
}

.hero-media figcaption span {
  color: rgba(255, 255, 255, 0.76);
  text-align: end;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.proof-band div {
  min-width: 0;
  min-height: 126px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.proof-band span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.proof-band strong {
  display: block;
  font-size: 19px;
  line-height: 1.38;
}

.section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 12px 0 12px;
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: 18px;
}

.about-copy {
  padding: 34px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    var(--green-dark);
}

.about-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.95;
}

.about-copy p + p {
  margin-top: 18px;
}

.about-principles,
.business-grid,
.team-roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-principles article,
.business-grid article,
.team-roles article,
.factory-list div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.about-principles article {
  min-height: 246px;
  padding: 24px;
}

.about-principles .fe,
.business-grid .fe {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  color: var(--green);
  background: var(--surface-soft);
}

.about-principles strong,
.business-grid h3,
.team-roles strong,
.factory-list strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.about-principles p,
.business-grid p,
.team-roles p,
.factory-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.business-section,
.factory-section,
.team-section {
  border-top: 1px solid rgba(20, 34, 27, 0.08);
}

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

.business-grid article {
  min-height: 286px;
  padding: 24px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.business-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 106, 74, 0.2);
  box-shadow: 0 18px 50px rgba(31, 106, 74, 0.1);
}

.business-grid h3 {
  margin: 0;
}

.factory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 18px;
}

.factory-main {
  min-height: 620px;
}

.factory-main,
.factory-side figure {
  position: relative;
}

.factory-main figcaption,
.factory-side figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #fff;
  background: rgba(14, 49, 37, 0.76);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.factory-side {
  display: grid;
  grid-template-rows: 280px minmax(0, 1fr);
  gap: 18px;
}

.factory-list {
  display: grid;
  gap: 12px;
}

.factory-list div {
  padding: 22px;
}

.factory-list span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(400px, 0.96fr) minmax(0, 1.04fr);
  gap: 18px;
  align-items: stretch;
}

.team-layout figure {
  min-height: 460px;
}

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

.team-roles article {
  display: grid;
  align-content: start;
  min-height: 218px;
  padding: 24px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  width: min(1180px, calc(100% - 44px));
  margin: 20px auto 74px;
  padding: 42px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(243, 223, 173, 0.16), transparent 46%),
    var(--green-dark);
  box-shadow: var(--shadow);
}

.contact-section .eyebrow {
  color: var(--gold-soft);
}

.contact-section h2 {
  max-width: 760px;
  margin: 12px 0;
  font-size: 38px;
  line-height: 1.22;
}

.contact-section p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.82;
}

.contact-section .primary-link {
  min-width: 128px;
  color: var(--green-dark);
  background: var(--gold-soft);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 44px));
  min-height: 116px;
  margin: 0 auto;
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
}

.site-footer .site-registration {
  display: inline-block;
  color: var(--muted-soft, var(--muted));
  font-size: 12px;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

.site-footer .site-registration:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .site-registration:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 4px;
  border-radius: 2px;
}

html[dir="rtl"] body {
  font-family:
    "QG Uyghur", "Noto Naskh Arabic", "Noto Sans Arabic", "Geeza Pro", Tahoma, Arial,
    ui-sans-serif, system-ui, sans-serif;
}

html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  font-family:
    "QG Uyghur", "Noto Naskh Arabic", "Noto Sans Arabic", "Geeza Pro", Tahoma, Arial,
    ui-sans-serif, system-ui, sans-serif;
}

html[dir="rtl"] .header-actions {
  justify-content: flex-start;
}

html[dir="rtl"] .eyebrow,
html[dir="rtl"] .section-heading span {
  letter-spacing: 0;
}

html[dir="rtl"] .hero p,
html[dir="rtl"] .section-heading p,
html[dir="rtl"] .about-copy p,
html[dir="rtl"] .about-principles p,
html[dir="rtl"] .business-grid p,
html[dir="rtl"] .team-roles p,
html[dir="rtl"] .factory-list p,
html[dir="rtl"] .contact-section p {
  line-height: 2;
}

html[dir="rtl"] .factory-main figcaption,
html[dir="rtl"] .factory-side figcaption {
  right: 16px;
  left: auto;
}

[data-reveal] {
  transform: translateY(18px);
  opacity: 0;
  transition: transform 520ms ease, opacity 520ms ease;
}

[data-reveal].is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    text-align: center;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu-toggle::before {
    content: "☰";
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
  }

  .menu-toggle .fe {
    display: none;
  }

  .hero,
  .about-layout,
  .factory-layout,
  .team-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 124px;
  }

  .business-grid,
  .proof-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factory-main {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 10px;
    width: calc(100% - 24px);
    min-height: 58px;
    padding: 8px 9px 8px 12px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand span {
    font-size: 15px;
  }

  .header-link {
    display: none;
  }

  .language-switcher {
    gap: 1px;
    padding: 3px;
  }

  .language-switcher button {
    min-width: 31px;
    height: 30px;
    padding: 0 7px;
    font-size: 12px;
  }

  .menu-toggle {
    color: #fff;
    border-color: var(--green-dark);
    background: var(--green-dark);
  }

  .site-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    width: calc(100% - 32px);
    min-height: auto;
    gap: 30px;
    padding: 108px 0 38px;
  }

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

  .hero p {
    font-size: 16px;
    line-height: 1.82;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .hero-media {
    aspect-ratio: 0.96 / 1;
  }

  .hero-media figcaption {
    display: grid;
    justify-items: start;
  }

  .hero-media figcaption span {
    text-align: start;
  }

  .proof-band,
  .business-grid,
  .about-principles,
  .team-roles {
    grid-template-columns: minmax(0, 1fr);
  }

  .section,
  .proof-band,
  .contact-section,
  .site-footer {
    width: calc(100% - 32px);
  }

  .section {
    padding: 62px 0;
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: 30px;
  }

  .about-copy,
  .contact-section {
    padding: 26px;
  }

  .factory-main {
    min-height: 430px;
  }

  .factory-side {
    grid-template-rows: 260px auto;
  }

  .team-layout figure {
    min-height: 360px;
  }

  .contact-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer p {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 420px) {
  .brand span {
    max-width: 142px;
  }

  .header-actions {
    gap: 7px;
  }

  .language-switcher button {
    min-width: 29px;
    padding: 0 6px;
  }

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

  .hero-media,
  .factory-main,
  .factory-side figure,
  .team-layout figure {
    box-shadow: 0 16px 42px rgba(26, 45, 36, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
