:root {
  --bg: #eff2f2;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --surface-dark: #102129;
  --text: #112028;
  --muted: #51636c;
  --line: rgba(17, 32, 40, 0.12);
  --accent: #c56f3a;
  --accent-soft: rgba(197, 111, 58, 0.14);
  --teal: #194854;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 28px 80px rgba(16, 33, 41, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(25, 72, 84, 0.18), transparent 34%),
    radial-gradient(circle at right 20%, rgba(197, 111, 58, 0.18), transparent 24%),
    linear-gradient(180deg, #f7f8f6 0%, var(--bg) 100%);
  overflow-x: clip;
}

body.menu-open {
  overflow-x: clip;
}

body[data-page="home"] {
  --bg: #f3eee9;
  --surface: rgba(255, 250, 246, 0.88);
  --surface-strong: #fffaf6;
  --text: #1c1f22;
  --muted: #5f666d;
  --line: rgba(28, 31, 34, 0.12);
  --accent: #b3261e;
  --accent-hover: #971f19;
  --accent-hot: #ef7a25;
  --accent-soft: rgba(179, 38, 30, 0.14);
  --teal: #232a31;
  --shadow: 0 24px 60px rgba(20, 24, 28, 0.12);
  background:
    radial-gradient(circle at 12% 10%, rgba(179, 38, 30, 0.18), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(239, 122, 37, 0.22), transparent 22%),
    radial-gradient(circle at 50% 0%, rgba(239, 122, 37, 0.08), transparent 26%),
    linear-gradient(180deg, #faf6f1 0%, var(--bg) 100%);
}

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

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

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 20px auto 40px;
}

.site-header,
.site-footer,
.section,
.hero {
  backdrop-filter: blur(18px);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.39);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

body[data-page="home"] .site-header {
  background: rgba(255, 250, 246, 0.43);
  border-color: rgba(225, 188, 166, 0.42);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  max-width: 100%;
  border-radius: 999px;
  overflow: hidden;
}

.brand-lockup-image {
  display: block;
  width: clamp(220px, 25vw, 360px);
  max-width: 100%;
  max-height: 72px;
  height: auto;
  border-radius: 0;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 0.94rem;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  font-weight: 800;
}

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

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #d79550);
  color: #fff;
  box-shadow: 0 18px 34px rgba(197, 111, 58, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--line);
  color: var(--text);
}

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

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

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

.theme-toggle {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  cursor: pointer;
}

.theme-toggle-sun,
.theme-toggle-moon {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-toggle-sun {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef7a25, #ffd067);
  box-shadow: 0 0 0 4px rgba(239, 122, 37, 0.14);
}

.theme-toggle-moon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: -5px 0 0 0 #1d2630;
  opacity: 0;
  transform: translate(-30%, -50%);
}

body.theme-dark .theme-toggle-sun {
  opacity: 0;
  transform: translate(-70%, -50%);
}

body.theme-dark .theme-toggle-moon {
  opacity: 1;
  transform: translate(-50%, -50%);
  box-shadow: -5px 0 0 0 #fff6de;
}

.hero,
.section,
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 760px;
  padding: 56px;
  align-items: center;
}

body[data-page="home"] .hero {
  background:
    linear-gradient(110deg, rgba(28, 31, 34, 0.76) 0%, rgba(28, 31, 34, 0.52) 34%, rgba(28, 31, 34, 0.2) 64%, rgba(243, 238, 233, 0.12) 100%),
    linear-gradient(135deg, rgba(239, 122, 37, 0.14), rgba(179, 38, 30, 0.1), rgba(243, 238, 233, 0.04)),
    radial-gradient(circle at 74% 28%, rgba(239, 122, 37, 0.18), transparent 20%),
    url("backgrond2.png") center/cover no-repeat,
    var(--surface);
  border-color: rgba(228, 194, 174, 0.84);
}

body[data-page="home"] .hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(180deg, #232a31 0%, #b3261e 38%, #ef7a25 76%, rgba(255,255,255,0) 100%);
}

body[data-page="home"] .hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(239, 122, 37, 0), rgba(239, 122, 37, 0.12));
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.site-footer h2 {
  margin: 0;
  font-family: "Arial Narrow", "Avenir Next Condensed", "Segoe UI", sans-serif;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 6vw, 6.4rem);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: none;
}

.hero-title span:first-child {
  font-size: clamp(2.3rem, 4.6vw, 4.3rem);
  line-height: 1;
}

.hero-title span:last-child {
  font-size: clamp(4.2rem, 8vw, 7.4rem);
  line-height: 0.9;
}

body[data-page="home"] .hero-title span:last-child {
  background: linear-gradient(180deg, #fff6ef 0%, #ffd6b2 30%, #ff8b2b 68%, #d94f1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(102, 24, 10, 0.28),
    0 0 10px rgba(255, 139, 43, 0.22),
    0 0 22px rgba(217, 79, 31, 0.12);
}

.hero-text,
.section-heading p,
.split-copy p,
.request-copy p,
.site-footer p,
.intro-panel p,
.product-details p,
.feature-stack p,
.timeline p,
.research-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 62ch;
  margin: 24px 0 0;
  font-size: 1.08rem;
}

body[data-page="home"] .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

body[data-page="home"] .hero-copy .eyebrow,
body[data-page="home"] .hero-copy h1,
body[data-page="home"] .hero-copy p {
  color: #fff7f2;
}

body[data-page="home"] .hero-copy .hero-text {
  color: rgba(255, 242, 235, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.16);
}

body[data-page="home"] .hero-copy .button-secondary {
  background: rgba(255, 250, 246, 0.18);
  border-color: rgba(239, 122, 37, 0.24);
  color: #fff7f2;
}

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

.section {
  padding: 42px;
}

body[data-page="home"] .intro-panel,
body[data-page="home"] .overview-card,
body[data-page="home"] .feature-stack article {
  background: rgba(255, 250, 246, 0.78);
  border-color: rgba(231, 198, 178, 0.82);
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

body[data-page="products"] {
  --bg: #f3eee9;
  --surface: rgba(255, 250, 246, 0.88);
  --surface-strong: #fffaf6;
  --text: #1c1f22;
  --muted: #5f666d;
  --line: rgba(28, 31, 34, 0.12);
  --accent: #b3261e;
  --accent-soft: rgba(179, 38, 30, 0.12);
  --teal: #232a31;
  --shadow: 0 24px 60px rgba(20, 24, 28, 0.12);
  background:
    radial-gradient(circle at 12% 10%, rgba(179, 38, 30, 0.14), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(239, 122, 37, 0.18), transparent 22%),
    linear-gradient(180deg, #faf6f1 0%, var(--bg) 100%);
}

body[data-page="production"],
body[data-page="industries"],
body[data-page="research"] {
  --bg: #f3eee9;
  --surface: rgba(255, 250, 246, 0.88);
  --surface-strong: #fffaf6;
  --text: #1c1f22;
  --muted: #5f666d;
  --line: rgba(28, 31, 34, 0.12);
  --accent: #b3261e;
  --accent-soft: rgba(179, 38, 30, 0.12);
  --teal: #232a31;
  --shadow: 0 24px 60px rgba(20, 24, 28, 0.12);
  background:
    radial-gradient(circle at 12% 10%, rgba(179, 38, 30, 0.14), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(239, 122, 37, 0.18), transparent 22%),
    linear-gradient(180deg, #faf6f1 0%, var(--bg) 100%);
}

body[data-page="products"] .site-header {
  background: rgba(255, 250, 246, 0.43);
  border-color: rgba(225, 188, 166, 0.42);
}

body[data-page="production"] .site-header,
body[data-page="industries"] .site-header,
body[data-page="research"] .site-header {
  background: rgba(255, 250, 246, 0.43);
  border-color: rgba(225, 188, 166, 0.42);
}

.product-hero {
  overflow: hidden;
  min-height: 420px;
  background:
    linear-gradient(110deg, rgba(28, 31, 34, 0.7) 0%, rgba(28, 31, 34, 0.42) 34%, rgba(28, 31, 34, 0.12) 66%, rgba(243, 238, 233, 0.08) 100%),
    linear-gradient(135deg, rgba(239, 122, 37, 0.12), rgba(179, 38, 30, 0.08), rgba(243, 238, 233, 0.02)),
    url("backgrond2.png"),
    var(--surface);
  border-color: rgba(228, 194, 174, 0.84);
  background-repeat: no-repeat;
  background-size: auto, auto, 112%, auto;
  background-position:
    center,
    center,
    center calc(42% + var(--parallax-shift, 0px)),
    center;
}

.product-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(180deg, #232a31 0%, #b3261e 38%, #ef7a25 76%, rgba(255,255,255,0) 100%);
}

.product-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(239, 122, 37, 0), rgba(239, 122, 37, 0.12));
  pointer-events: none;
}

.product-hero .eyebrow,
.product-hero h1,
.product-hero p {
  position: relative;
  z-index: 1;
  color: #fff7f2;
}

.product-hero p:not(.eyebrow) {
  color: rgba(255, 242, 235, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.16);
}

.research-hero {
  overflow: hidden;
  min-height: 420px;
  background:
    linear-gradient(110deg, rgba(24, 28, 32, 0.8) 0%, rgba(24, 28, 32, 0.58) 34%, rgba(24, 28, 32, 0.18) 64%, rgba(243, 238, 233, 0.08) 100%),
    linear-gradient(135deg, rgba(239, 122, 37, 0.08), rgba(35, 42, 49, 0.18), rgba(243, 238, 233, 0.02)),
    url("background.jpg"),
    var(--surface);
  border-color: rgba(217, 209, 199, 0.78);
  background-repeat: no-repeat;
  background-size: auto, auto, 112%, auto;
  background-position:
    center,
    center,
    center calc(40% + var(--parallax-shift, 0px)),
    center;
}

.research-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(180deg, #232a31 0%, #8e949b 42%, #ef7a25 100%);
}

.research-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(239, 122, 37, 0), rgba(239, 122, 37, 0.08));
  pointer-events: none;
}

.research-hero .eyebrow,
.research-hero h1,
.research-hero p {
  position: relative;
  z-index: 1;
  color: #fff7f2;
}

.research-hero p:not(.eyebrow) {
  color: rgba(244, 242, 238, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.16);
}

.research-hero-deep {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: end;
}

.research-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.research-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.research-metrics article {
  min-height: 132px;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 247, 242, 0.16), rgba(255, 247, 242, 0.06));
  border: 1px solid rgba(255, 247, 242, 0.2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.research-metrics strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.9;
  color: #ffd4a8;
}

.research-metrics span {
  color: rgba(255, 247, 242, 0.78);
  font-weight: 700;
  line-height: 1.35;
}

.research-hero .button {
  background: linear-gradient(135deg, var(--accent), #d79550);
  color: #fff;
  box-shadow: 0 18px 34px rgba(197, 111, 58, 0.28);
}

.research-hero .button-secondary {
  background: rgba(255, 247, 242, 0.14);
  border-color: rgba(255, 247, 242, 0.24);
  color: #fff7f2;
  box-shadow: none;
}

.contact-map-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: 20px;
  align-items: stretch;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.72)),
    url("contacts-bg.jpg") center/cover no-repeat;
}

.contact-map-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.contact-map-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
}

.contact-map-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
}

.contact-map-copy p:not(.eyebrow) {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.75;
}

.map-open-button {
  align-self: flex-start;
}

.contact-map-frame {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 40px rgba(20, 24, 28, 0.12);
  z-index: 1;
}

.contact-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
  display: block;
}

.intro-section {
  display: grid;
  gap: 18px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.intro-panel-lead {
  background: linear-gradient(145deg, rgba(25, 72, 84, 0.08), rgba(255, 255, 255, 0.55));
}

.intro-panel-wide {
  min-height: 0;
}

.intro-panel h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.intro-panel h3 {
  margin: 10px 0 12px;
  font-size: 1.18rem;
}

.panel-number {
  color: var(--accent);
  font-weight: 800;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2,
.split-copy h2,
.request-copy h2,
.site-footer h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.product-card-wide {
  grid-column: 1 / -1;
}

body[data-page="products"] .product-card {
  background: rgba(255, 250, 246, 0.8);
  border-color: rgba(231, 198, 178, 0.82);
}

body[data-page="products"] .content-card {
  background: rgba(255, 250, 246, 0.8);
  border-color: rgba(231, 198, 178, 0.82);
}

body[data-page="production"] .content-card,
body[data-page="production"] .timeline article,
body[data-page="industries"] .content-card,
body[data-page="industries"] .industry-grid article {
  background: rgba(255, 250, 246, 0.8);
  border-color: rgba(231, 198, 178, 0.82);
}

body[data-page="research"] .content-card,
body[data-page="research"] .research-card {
  background: rgba(255, 250, 246, 0.8);
  border-color: rgba(231, 198, 178, 0.82);
}

body[data-page="research"] .research-card-large {
  color: var(--text);
}

body[data-page="research"] .research-card-large p {
  color: var(--muted);
}

.product-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.toggle-sign {
  font-size: 1.4rem;
  color: var(--accent);
}

.product-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms ease;
}

.product-card.is-active .product-details {
  grid-template-rows: 1fr;
}

.product-details > * {
  overflow: hidden;
  margin: 0;
  padding: 0 24px 24px;
}

.product-details ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.product-subtitle {
  margin: 18px 0 8px;
  color: var(--text);
  font-weight: 800;
}

.product-spec-lines {
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.product-spec-lines p {
  margin: 0;
}

.product-spec-lines p:first-child,
.product-spec-lines p:nth-child(2) {
  color: var(--text);
  font-weight: 800;
}

.product-media-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.product-media-card {
  border-radius: 18px;
}

.product-media-card img {
  height: 168px;
  object-fit: cover;
}

.split-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.feature-stack {
  display: grid;
  gap: 16px;
}

.feature-stack article,
.industry-card,
.overview-card,
.content-card,
.research-card,
.timeline article {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.feature-stack h3,
.industry-card h3,
.overview-card h3,
.content-card h2,
.timeline h3,
.research-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.cards-overview .overview-grid,
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.patent-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.overview-card {
  display: block;
  transition: transform 180ms ease, border-color 180ms ease;
}

.overview-card p,
.industry-card p,
.content-card p,
.detail-list {
  color: var(--muted);
  line-height: 1.7;
}

.medicine-article {
  display: grid;
  gap: 24px;
}

.medicine-lead,
.medicine-use-card,
.medicine-feature-grid article {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.74);
}

.medicine-lead {
  display: grid;
  gap: 16px;
}

.medicine-lead p,
.medicine-use-card p,
.medicine-feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.medicine-section-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.medicine-use-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.medicine-use-card-wide {
  grid-column: 1 / -1;
}

.medicine-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.medicine-use-card-wide .medicine-feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.medicine-use-card h3,
.medicine-feature-grid h3,
.medicine-feature-grid h4 {
  margin: 0;
  color: var(--text);
}

.medicine-use-card h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.medicine-use-card h4,
.medicine-feature-grid h3,
.medicine-feature-grid h4 {
  font-size: 1.02rem;
}

.medicine-use-card .detail-list {
  margin: 0;
}

.industry-card {
  display: block;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.industry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 111, 58, 0.3);
  box-shadow: 0 18px 34px rgba(16, 33, 41, 0.12);
}

.contact-link {
  color: var(--accent);
  font-weight: 700;
}

.contact-list li + li {
  margin-top: 6px;
}

.route-block h3 {
  margin: 16px 0 8px;
  font-size: 1.02rem;
}

.route-block h3:first-child {
  margin-top: 0;
}

.route-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.overview-card:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 111, 58, 0.3);
}

.patent-card {
  display: grid;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.patent-card:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 111, 58, 0.3);
  box-shadow: 0 18px 34px rgba(16, 33, 41, 0.12);
}

.patent-card img {
  width: 100%;
  height: 260px;
  display: block;
  object-fit: contain;
  object-position: center;
  background: rgba(15, 18, 22, 0.05);
  transition: transform 180ms ease;
  padding: 14px;
}

.patent-card:hover img {
  transform: scale(1.02);
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.media-card {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.media-card:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 111, 58, 0.3);
  box-shadow: 0 18px 34px rgba(16, 33, 41, 0.12);
}

.media-card img {
  width: 100%;
  height: 320px;
  display: block;
  object-fit: cover;
}

.production-strip {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
}

.production-strip img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 44px rgba(16, 33, 41, 0.1);
}

.admin-gallery-section .section-heading p:last-child {
  margin-bottom: 0;
}

.admin-ui {
  position: fixed;
  inset: 0;
  z-index: 160;
  pointer-events: none;
}

.admin-login-modal[hidden],
.admin-panel[hidden],
.admin-export-modal[hidden] {
  display: none;
}

.admin-login-modal {
  position: fixed;
  inset: 0;
  pointer-events: auto;
}

.admin-export-modal {
  position: fixed;
  inset: 0;
  pointer-events: auto;
}

.admin-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 18, 0.46);
  backdrop-filter: blur(8px);
}

.admin-login-window {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 440px);
  padding: 28px;
  transform: translate(-50%, -50%);
  border-radius: 28px;
  background: rgba(255, 250, 246, 0.98);
  border: 1px solid rgba(32, 37, 44, 0.1);
  box-shadow: 0 30px 80px rgba(9, 16, 22, 0.24);
}

.admin-export-window {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 920px);
  max-height: 84vh;
  padding: 28px;
  transform: translate(-50%, -50%);
  border-radius: 28px;
  background: rgba(255, 250, 246, 0.98);
  border: 1px solid rgba(32, 37, 44, 0.1);
  box-shadow: 0 30px 80px rgba(9, 16, 22, 0.24);
  overflow: auto;
}

.admin-login-eyebrow,
.admin-panel-eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent);
}

.admin-login-window h2,
.admin-panel h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.admin-login-text,
.admin-panel-text,
.admin-panel-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.admin-login-form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.admin-login-form label {
  display: grid;
  gap: 10px;
  font-weight: 700;
}

.admin-login-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
}

.admin-login-actions,
.admin-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-error {
  margin: 0;
  color: #b3261e;
  font-weight: 700;
}

.admin-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(92vw, 440px);
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 250, 246, 0.98);
  border: 1px solid rgba(32, 37, 44, 0.1);
  box-shadow: 0 30px 80px rgba(9, 16, 22, 0.24);
  pointer-events: auto;
}

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

.admin-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.admin-help {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(32, 37, 44, 0.08);
}

.admin-help summary {
  cursor: pointer;
  font-weight: 800;
}

.admin-help ol {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.72;
}

.admin-password-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.admin-password-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.admin-password-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
}

.admin-email-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.admin-email-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.admin-email-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
}

.admin-export-field {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  font-weight: 700;
}

.admin-export-code {
  width: 100%;
  min-height: 320px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  font: 0.88rem/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  resize: vertical;
}

.admin-export-note {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.admin-password-result {
  margin: 0;
  font-weight: 700;
}

.admin-password-result.is-error {
  color: #b3261e;
}

.admin-password-result.is-success {
  color: #2f6b57;
}

.admin-panel-note {
  margin-top: 14px;
}

.admin-footer-trigger {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(197, 111, 58, 0.18);
  box-shadow: 0 0 0 1px rgba(197, 111, 58, 0.18);
  opacity: 0.18;
  cursor: pointer;
  z-index: 5;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.admin-footer-trigger::after {
  content: "admin";
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(10, 14, 18, 0.82);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-footer.has-admin-trigger:hover .admin-footer-trigger,
.admin-footer-trigger:focus-visible {
  opacity: 0.72;
  background: linear-gradient(135deg, rgba(197, 111, 58, 0.9), rgba(215, 149, 80, 0.9));
  box-shadow: 0 0 0 6px rgba(197, 111, 58, 0.12);
  transform: translateX(-50%) scale(1.08);
}

.site-footer.has-admin-trigger:hover .admin-footer-trigger::after,
.admin-footer-trigger:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.admin-editable-text {
  outline: 2px dashed rgba(197, 111, 58, 0.48);
  outline-offset: 6px;
  border-radius: 10px;
  cursor: text;
}

.admin-editable-text:focus {
  outline-color: rgba(179, 38, 30, 0.72);
  background: rgba(255, 248, 238, 0.68);
}

.admin-active .admin-image-target,
.admin-active [data-admin-image-trigger] {
  cursor: pointer;
}

.admin-active .media-card,
.admin-active .patent-card {
  position: relative;
}

.admin-image-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 14, 18, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.admin-remove-image {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 14, 18, 0.74);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 180ms ease;
}

.admin-active .media-card:hover .admin-image-badge,
.admin-active .patent-card:hover .admin-image-badge,
.admin-active .media-card:hover .admin-remove-image,
.admin-active .patent-card:hover .admin-remove-image {
  opacity: 1;
  transform: translateY(0);
}

.detail-list {
  margin: 0;
  padding-left: 18px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.industry-grid article {
  min-height: 140px;
  display: flex;
  align-items: end;
  padding: 22px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(25, 72, 84, 0.08), rgba(16, 33, 41, 0.12)),
    rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.74);
  font-size: 1.15rem;
  font-weight: 700;
}

.research-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
}

.research-card-large {
  background: linear-gradient(155deg, rgba(16, 33, 41, 0.96), rgba(24, 72, 84, 0.82));
  color: #fff;
}

.research-card-large p {
  color: rgba(255, 255, 255, 0.72);
}

.research-directions,
.patent-proof-grid,
.publication-grid,
.research-bridge {
  display: grid;
  gap: 18px;
}

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

.research-directions article,
.patent-proof-grid article,
.publication-grid article,
.research-bridge article,
.research-geography,
.research-cta,
.publication-more {
  border: 1px solid rgba(231, 198, 178, 0.82);
  background: rgba(255, 250, 246, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.research-directions article {
  min-height: 250px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.research-directions span {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(239, 122, 37, 0.12);
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.research-directions h3,
.patent-proof-grid h3,
.publication-grid h3,
.research-bridge span {
  margin: 18px 0 10px;
  font-size: 1.1rem;
}

.research-directions p,
.patent-proof-grid p,
.publication-grid p,
.research-bridge p,
.publication-more p,
.research-cta p {
  color: var(--muted);
  line-height: 1.7;
}

.research-timeline {
  position: relative;
  display: grid;
  gap: 16px;
}

.research-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 118px;
  width: 2px;
  background: linear-gradient(180deg, rgba(239, 122, 37, 0), rgba(239, 122, 37, 0.78), rgba(239, 122, 37, 0));
}

.research-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.research-timeline time {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #242b31;
  color: #ffd4a8;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(36, 43, 49, 0.18);
}

.research-timeline article > div {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 246, 0.82);
  border: 1px solid rgba(231, 198, 178, 0.82);
}

.research-timeline h3 {
  margin: 0 0 8px;
}

.research-timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.patent-proof-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.patent-proof-grid article,
.publication-grid article,
.research-bridge article {
  padding: 22px;
}

.patent-proof-grid span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(36, 43, 49, 0.08);
  color: var(--accent);
  font-weight: 900;
}

.research-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.research-filter-chips span {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.84);
  border: 1px solid rgba(231, 198, 178, 0.82);
  color: var(--muted);
  font-weight: 800;
}

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

.publication-grid article {
  min-height: 210px;
}

.publication-grid h3 {
  margin-top: 0;
}

.publication-grid a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 900;
}

.publication-more {
  margin-top: 16px;
  padding: 18px 22px;
}

.publication-more summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.research-geography {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(36, 43, 49, 0.88), rgba(23, 31, 38, 0.82)),
    radial-gradient(circle at 18% 12%, rgba(239, 122, 37, 0.28), transparent 28%),
    linear-gradient(135deg, #232a31, #141b21);
  color: #fff7f2;
}

.research-geography::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -2;
  background: url("research-geography-map.jpg") center/cover no-repeat;
  filter: blur(14px) saturate(0.9) contrast(1.06);
  transform: scale(1.06);
  opacity: 0.8;
}

.research-geography::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 10%, rgba(239, 122, 37, 0.26), transparent 30%),
    linear-gradient(135deg, rgba(20, 27, 33, 0.62), rgba(20, 27, 33, 0.42));
}

.research-geography > * {
  position: relative;
  z-index: 1;
}

.research-geography h2 {
  max-width: 820px;
  color: #fff7f2;
}

.research-city-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.research-city-line span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 247, 242, 0.1);
  border: 1px solid rgba(255, 247, 242, 0.18);
  color: rgba(255, 247, 242, 0.86);
  font-weight: 800;
}

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

.research-bridge span {
  display: block;
  margin-top: 0;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.research-cta {
  padding: clamp(30px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(255, 250, 246, 0.9), rgba(255, 238, 224, 0.82)),
    radial-gradient(circle at 100% 0%, rgba(239, 122, 37, 0.18), transparent 34%);
}

.research-cta h2 {
  max-width: 820px;
}

.research-cta p:not(.eyebrow) {
  max-width: 820px;
}

.request-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.request-form label {
  display: grid;
  gap: 10px;
  font-weight: 700;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.request-form textarea {
  resize: vertical;
}

.full-width,
.form-footer {
  grid-column: 1 / -1;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.form-note {
  margin: 0;
  color: var(--muted);
}

.admin-recipient-hint {
  display: none;
  margin: 0;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}

body.admin-active .admin-recipient-hint {
  display: block;
}

.form-result {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(25, 72, 84, 0.08);
  color: var(--teal);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 42px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}

.footer-brand-compact {
  margin-bottom: 14px;
  border-radius: 18px;
  overflow: hidden;
}

.footer-brand h2 {
  margin: 0;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

[data-admin-trigger="true"] {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

[data-admin-trigger="true"] .footer-lockup-image {
  pointer-events: none;
  -webkit-user-drag: none;
}

.media-modal[hidden] {
  display: none;
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 16, 20, 0.42);
}

.media-modal-window {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(66vw, 960px);
  max-height: 66vh;
  transform: translate(-50%, -50%);
  padding: 22px 22px 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 32, 40, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.media-modal-media {
  display: grid;
  place-items: center;
  max-height: calc(66vh - 76px);
  overflow: hidden;
}

.media-modal-image {
  max-width: 100%;
  max-height: calc(66vh - 76px);
  display: block;
  object-fit: contain;
}

.media-modal-title {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.media-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.footer-lockup-image {
  display: block;
  width: clamp(210px, 24vw, 300px);
  max-width: 100%;
  height: auto;
  border-radius: inherit;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: start;
}

body.theme-dark {
  --bg: #161b20;
  --surface: rgba(28, 35, 42, 0.9);
  --surface-strong: #202932;
  --surface-dark: #10171d;
  --text: #f1f5f7;
  --muted: #aebbc4;
  --line: rgba(173, 196, 209, 0.18);
  --accent: #ef6a4f;
  --accent-soft: rgba(239, 106, 79, 0.14);
  --teal: #7a1f18;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  background:
    radial-gradient(circle at 10% 10%, rgba(170, 42, 23, 0.18), transparent 22%),
    radial-gradient(circle at 85% 10%, rgba(239, 122, 37, 0.14), transparent 20%),
    linear-gradient(180deg, #161b20 0%, #1b2229 100%);
}

body.theme-dark .site-header {
  background: rgba(29, 37, 44, 0.43);
  border-color: rgba(143, 163, 175, 0.14);
}

body.theme-dark .menu-toggle,
body.theme-dark .theme-toggle {
  background: rgba(31, 39, 46, 0.96);
  border-color: rgba(173, 196, 209, 0.18);
}

body.theme-dark .menu-toggle span {
  background: #edf2f5;
}

body.theme-dark .button-secondary {
  background: rgba(38, 47, 56, 0.92);
  color: var(--text);
}

body.theme-dark .hero-metrics li,
body.theme-dark .intro-panel,
body.theme-dark .overview-card,
body.theme-dark .patent-card,
body.theme-dark .media-card,
body.theme-dark .feature-stack article,
body.theme-dark .industry-card,
body.theme-dark .research-card,
body.theme-dark .timeline article,
body.theme-dark .product-card,
body.theme-dark .content-card,
body.theme-dark .medicine-lead,
body.theme-dark .medicine-use-card,
body.theme-dark .medicine-feature-grid article,
body.theme-dark .research-directions article,
body.theme-dark .patent-proof-grid article,
body.theme-dark .publication-grid article,
body.theme-dark .research-bridge article,
body.theme-dark .publication-more,
body.theme-dark .research-timeline article > div {
  background: rgba(34, 43, 51, 0.9);
  border-color: rgba(143, 163, 175, 0.18);
}

body.theme-dark .research-filter-chips span {
  background: rgba(34, 43, 51, 0.9);
  border-color: rgba(143, 163, 175, 0.18);
}

body.theme-dark .research-cta {
  background:
    linear-gradient(135deg, rgba(34, 43, 51, 0.94), rgba(45, 54, 62, 0.88)),
    radial-gradient(circle at 100% 0%, rgba(239, 122, 37, 0.16), transparent 34%);
}

body.theme-dark .request-form input,
body.theme-dark .request-form select,
body.theme-dark .request-form textarea {
  background: rgba(26, 33, 39, 0.98);
  color: var(--text);
}

body.theme-dark .media-modal-window {
  background: rgba(31, 39, 46, 0.98);
  border-color: rgba(173, 196, 209, 0.12);
}

body.theme-dark .media-modal-close {
  background: rgba(31, 39, 46, 0.96);
  border-color: rgba(173, 196, 209, 0.18);
  color: var(--text);
}

body.theme-dark .admin-login-window,
body.theme-dark .admin-panel,
body.theme-dark .admin-export-window {
  background: rgba(28, 35, 42, 0.98);
  border-color: rgba(173, 196, 209, 0.14);
}

body.theme-dark .admin-close,
body.theme-dark .admin-login-form input,
body.theme-dark .admin-password-form input,
body.theme-dark .admin-email-form input {
  background: rgba(22, 28, 34, 0.92);
  border-color: rgba(173, 196, 209, 0.16);
  color: var(--text);
}

body.theme-dark .admin-export-code {
  background: rgba(22, 28, 34, 0.92);
  border-color: rgba(173, 196, 209, 0.16);
  color: var(--text);
}

body.theme-dark .admin-help {
  border-top-color: rgba(173, 196, 209, 0.12);
}

body.theme-dark .admin-editable-text:focus {
  background: rgba(44, 52, 60, 0.82);
}

body.theme-dark .contact-map-frame iframe {
  filter: grayscale(0.15) invert(0.92) hue-rotate(180deg) saturate(0.7) brightness(0.78) contrast(1.05);
}

body.theme-dark .contact-map-section {
  background:
    linear-gradient(135deg, rgba(22, 28, 34, 0.84), rgba(22, 28, 34, 0.72)),
    url("contacts-bg.jpg") center/cover no-repeat;
}

body.theme-dark .contact-map-section::before {
  background: linear-gradient(180deg, rgba(10, 14, 18, 0.26), rgba(10, 14, 18, 0.14));
}

body.theme-dark .production-strip img {
  border-color: rgba(143, 163, 175, 0.18);
  background: rgba(34, 43, 51, 0.9);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.3);
}

body.theme-dark .form-result {
  background: rgba(239, 106, 79, 0.12);
  color: #ffb7a7;
}

@media (max-width: 1120px) {
  .hero,
  .split-section,
  .request-section,
  .contact-map-section,
  .research-layout,
  .research-hero-deep,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .timeline,
  .industry-grid,
  .intro-grid,
  .research-directions,
  .patent-proof-grid,
  .publication-grid,
  .research-bridge {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .medicine-section-list {
    grid-template-columns: 1fr;
  }

  .medicine-feature-grid,
  .product-media-gallery,
  .medicine-use-card-wide .medicine-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    max-width: 14ch;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(1280px, calc(100% - 20px));
  }

  .site-header {
    position: sticky;
    top: 10px;
    grid-template-columns: minmax(0, 124px) auto auto;
    grid-template-areas: "brand actions menu";
    gap: 10px;
    padding: 12px;
    border-radius: 30px;
    overflow: visible;
  }

  .site-header::after {
    content: "";
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    bottom: auto;
    left: 0;
    height: var(--mobile-menu-height, 0);
    background: rgba(12, 16, 20, 0.42);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 24;
  }

  .site-header.is-open::after {
    opacity: 1;
    pointer-events: auto;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
    width: 124px;
    max-width: 124px;
    border-radius: 16px;
    clip-path: inset(0 round 16px);
    gap: 0;
  }

  .menu-toggle {
    display: block;
    grid-area: menu;
    justify-self: end;
    width: 40px;
    height: 40px;
  }

  .site-nav {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(84vw, 320px);
    max-width: 320px;
    max-height: min(70vh, 420px);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px 22px 18px;
    overflow-y: auto;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: -20px 0 40px rgba(16, 33, 41, 0.16);
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: transform 220ms ease, opacity 180ms ease;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 12px 2px;
    border-bottom: 1px solid rgba(17, 32, 40, 0.08);
  }

  .header-actions-bar {
    grid-area: actions;
    justify-self: end;
    gap: 8px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    min-height: 40px;
    flex-basis: 40px;
  }

  .hero,
  .section,
  .site-footer {
    padding: 26px;
  }

  .hero {
    min-height: auto;
  }

  .product-grid,
  .timeline,
  .industry-grid,
  .intro-grid,
  .overview-grid,
  .patent-gallery,
  .research-directions,
  .patent-proof-grid,
  .publication-grid,
  .research-bridge,
  .product-media-gallery,
  .medicine-feature-grid,
  .medicine-use-card-wide .medicine-feature-grid,
  .request-form {
    grid-template-columns: 1fr;
  }

  .research-metrics {
    grid-template-columns: 1fr;
  }

  .research-timeline::before {
    display: none;
  }

  .research-timeline article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .research-hero .hero-actions .button {
    width: 100%;
  }

  .research-metrics article {
    min-height: 104px;
    padding: 18px;
  }

  .media-modal-window {
    width: min(92vw, 960px);
    max-height: 74vh;
  }

  .media-modal-media,
  .media-modal-image {
    max-height: calc(74vh - 76px);
  }

  .footer-brand {
    align-items: flex-start;
  }

  .brand-lockup-image {
    display: block;
    width: 124px;
    max-width: 124px;
    height: auto;
    max-height: 34px;
    border-radius: 0;
    object-fit: contain;
  }

  .footer-lockup-image {
    width: min(240px, 100%);
  }

  .admin-panel {
    right: 14px;
    left: 14px;
    bottom: 14px;
    width: auto;
  }

  body.theme-dark .site-nav {
    background: rgba(29, 37, 44, 0.96);
    border-color: rgba(143, 163, 175, 0.18);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.3);
  }

  body.theme-dark .site-nav a {
    border-bottom-color: rgba(173, 196, 209, 0.12);
  }
}
