:root {
  --ink: #0d2030;
  --muted: #65727d;
  --line: #d2dde5;
  --paper: #f4f7f9;
  --mist: #e8f0f4;
  --panel: #ffffff;
  --steel: #243f55;
  --deep: #071f35;
  --blue: #0a668d;
  --cyan: #3fa9c9;
  --signal: #f5b729;
  --copper: #a6672a;
  --rail: #bcc8d1;
  --green: #3f7f68;
  --danger: #b94a48;
  --shadow: 0 24px 80px rgba(7, 31, 53, .14);
  --section-width: 1360px;
  --focus: rgba(245, 183, 41, .9);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7fafb;
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.55;
}

body.admin-body {
  min-height: 100vh;
  background: #eef3f6;
}

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

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

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

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 7px;
  color: #fff;
  background: var(--deep);
  font-weight: 900;
  transform: translateY(-140%);
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(196, 209, 219, .62);
  background: rgba(248, 250, 251, .88);
  backdrop-filter: blur(20px) saturate(1.14);
  transition: box-shadow .18s ease, background .18s ease;
}

.site-header.is-scrolled {
  background: rgba(248, 250, 251, .94);
  box-shadow: 0 10px 28px rgba(7, 31, 53, .08);
}

.nav {
  width: min(1680px, calc(100% - 80px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--deep);
}

.logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.logo small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  align-items: center;
  color: var(--steel);
  font-size: 13px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 9px 0;
}

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

.nav-links a:hover {
  color: var(--blue);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-menu {
  display: none;
  width: 46px;
  height: 44px;
  padding: 0;
  place-items: center;
}

.icon-menu span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: currentColor;
}

.btn {
  border: 0;
  border-radius: 7px;
  padding: 12px 17px;
  background: var(--deep);
  color: #fff;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(10, 38, 63, .18);
}

.btn.secondary {
  color: var(--deep);
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(200, 213, 222, .96);
}

.btn.ghost {
  color: var(--deep);
  background: transparent;
  border: 1px solid var(--line);
}

.btn.signal {
  color: #281d00;
  background: var(--signal);
}

.lang-toggle {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  display: inline-flex;
  gap: 4px;
}

.lang-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  height: min(880px, calc(100vh - 68px));
  min-height: 660px;
  border-bottom: 1px solid rgba(26, 73, 101, .2);
  background: #071c30;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 0 54%, rgba(245, 183, 41, .18) 54% 54.42%, transparent 54.42% 100%),
    linear-gradient(118deg, transparent 0 68%, rgba(63, 169, 201, .14) 68% 68.48%, transparent 68.48% 100%),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -22%;
  width: 62%;
  height: 72%;
  transform: skewX(-18deg);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(63, 169, 201, .2), rgba(7, 31, 53, 0));
  opacity: .18;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1500px, calc(100% - 96px));
  height: 100%;
  min-height: inherit;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 82px 0 96px;
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(54%, 760px);
  padding-left: 24px;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .28);
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 10px;
  width: 3px;
  background: linear-gradient(180deg, var(--signal), rgba(77, 182, 214, .68));
  border-radius: 999px;
}

.eyebrow {
  color: #b8dce8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
}

h1 {
  margin-top: 18px;
  font-size: clamp(46px, 5.1vw, 76px);
  max-width: 780px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(16px, 1.16vw, 19px);
  margin-top: 22px;
}

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

.hero-actions .btn {
  min-width: 128px;
  text-align: center;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(640px, 100%);
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid rgba(210, 227, 238, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.hero-proof-item {
  min-height: 92px;
  padding: 18px 18px 16px;
  background: rgba(5, 22, 36, .28);
}

.hero-proof-item strong {
  display: block;
  color: #fff;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 950;
}

.hero-proof-item span {
  display: block;
  margin-top: 8px;
  color: rgba(219, 236, 245, .74);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.hero-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  pointer-events: none;
}

.hero-panel::before {
  display: none;
}

.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-carousel-media {
  position: absolute;
  inset: 0;
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.hero-carousel-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  background:
    linear-gradient(90deg, rgba(4, 21, 36, .94) 0%, rgba(4, 24, 40, .72) 36%, rgba(5, 27, 44, .12) 64%, rgba(5, 27, 44, 0) 100%),
    linear-gradient(180deg, rgba(2, 14, 24, 0), rgba(2, 14, 24, .14));
  clip-path: none;
  box-shadow: none;
  pointer-events: none;
}

.hero-carousel-media::after {
  display: none;
}

.hero-carousel-media img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  padding: 0;
  filter: saturate(1.08) contrast(1.02) brightness(1.18);
  opacity: 0;
  transform: scale(1.045);
  transition: opacity .55s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

.hero-carousel-media img.is-ready {
  opacity: 1;
  transform: scale(1);
}

.hero-carousel-overlay {
  display: none;
}

.hero-carousel-overlay h3 {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 26px;
}

.hero-carousel-overlay p {
  margin: 0;
  color: rgba(255,255,255,.82);
}

.hero-carousel-footer {
  position: absolute;
  right: 42px;
  top: 50%;
  bottom: auto;
  z-index: 4;
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(7, 30, 51, .12);
  color: transparent;
  transform: translateY(-50%);
  opacity: 0;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
  transition: opacity .18s ease, transform .18s ease, background .18s ease, border-color .18s ease;
  z-index: 5;
  pointer-events: auto;
}

.hero-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
}

.hero-arrow-prev {
  right: auto;
  left: 24px;
}

.hero-arrow-prev::before {
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 10px solid rgba(255, 255, 255, .82);
  margin-left: -3px;
}

.hero-arrow-next {
  right: 24px;
}

.hero-arrow-next::before {
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid rgba(255, 255, 255, .82);
  margin-left: 3px;
}

.hero-arrow:hover {
  opacity: .9;
  background: rgba(7, 30, 51, .28);
  border-color: rgba(255, 255, 255, .28);
  transform: translateY(-50%) scale(1.02);
}

.hero:hover .hero-arrow {
  opacity: .66;
}

.hero-arrow:focus-visible {
  outline: 2px solid rgba(241, 180, 52, .85);
  outline-offset: 3px;
}

.hero-carousel-dots {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 0 4px;
  pointer-events: auto;
}

.hero-carousel-dots button {
  width: 10px;
  height: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.34);
  transition: width .2s ease, background .2s ease, transform .2s ease;
}

.hero-carousel-dots button.active {
  width: 10px;
  height: 30px;
  background: var(--signal);
}

.hero-carousel-dots button:hover {
  transform: translateY(-1px);
}
.section {
  width: min(var(--section-width), calc(100% - 80px));
  margin: 0 auto;
  padding: 104px 0;
}

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

.section-head h2 {
  max-width: 720px;
  font-size: clamp(30px, 3.2vw, 48px);
  letter-spacing: 0;
}

.section-head p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
}

.stats-grid,
.solution-grid,
.case-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

#about {
  padding-top: 40px;
}

#about .section-head {
  align-items: start;
  margin-bottom: 34px;
  padding-top: 34px;
  border-top: 1px solid rgba(191, 205, 216, .72);
}

#about .section-head > div {
  max-width: 700px;
}

#about .section-head h2 {
  margin-top: 9px;
}

#about .section-head p {
  padding-top: 26px;
  line-height: 1.75;
}

.stat,
.solution-card,
.case-card,
.news-card,
.product-card,
.contact-card {
  border: 1px solid rgba(191, 205, 216, .9);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: none;
}

.stat {
  position: relative;
  min-height: 138px;
  padding: 26px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(245, 249, 251, .92));
}

.stat::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 42px;
  height: 3px;
  background: var(--signal);
}

.stat strong {
  display: block;
  font-size: 36px;
  color: var(--blue);
  font-weight: 900;
}

.stat span {
  color: var(--muted);
  font-weight: 700;
}

.cert-list {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(191, 205, 216, .86);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(245, 183, 41, .12), rgba(255, 255, 255, .9));
}

.cert-list h3 {
  font-size: 15px;
  color: var(--deep);
}

.cert-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-items span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(191, 205, 216, .72);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--steel);
  font-size: 13px;
  font-weight: 750;
}

.band {
  background: #fff;
  border-block: 1px solid rgba(196, 209, 219, .74);
}

#products .section {
  padding: 92px 0 98px;
}

#products .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .7fr);
  align-items: start;
  gap: 52px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(191, 205, 216, .72);
}

#products .section-head h2 {
  max-width: 620px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.14;
}

#products .section-head p {
  max-width: 360px;
  padding-top: 34px;
  font-size: 15px;
  line-height: 1.75;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.tab {
  border: 1px solid rgba(191, 205, 216, .9);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  padding: 9px 14px;
  color: var(--steel);
  font-weight: 800;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.tab:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
}

.tab.active {
  color: #fff;
  background: var(--deep);
  border-color: var(--deep);
}

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

.product-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 132px;
  padding: 24px;
  border: 1px dashed rgba(118, 145, 164, .75);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.product-empty h3 {
  max-width: 520px;
  font-size: 20px;
  color: var(--steel);
}

.product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--signal), var(--cyan));
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #aabcca;
  box-shadow: 0 22px 48px rgba(18, 43, 61, .12);
}

.product-card:hover::before {
  opacity: 1;
}

.product-media {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 50% 42%, #ffffff 0%, #f1f5f7 58%, #d9e5eb 100%);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px 18px;
  transition: transform .3s ease;
}

.product-card:hover img {
  transform: scale(1.045);
}

.product-body {
  padding: 22px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.product-body h3 {
  font-size: 19px;
}

.product-body p,
.solution-card p,
.case-card p,
.news-card p {
  color: var(--muted);
  margin: 0;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.solution-grid {
  grid-template-columns: repeat(3, 1fr);
}

.solution-card,
.case-card,
.news-card,
.contact-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
}

.case-card,
.news-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
}

.solution-card::after,
.case-card::after,
.news-card::after {
  display: none;
}

.content-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 14px;
  background: #edf2f5;
}

.solution-card h3,
.case-card h3,
.news-card h3 {
  margin: 12px 0 12px;
  padding-right: 0;
}

.content-card-link {
  align-self: flex-start;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--deep);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-transform: none;
  cursor: pointer;
}

.content-card-link:hover,
.content-card-link:focus-visible {
  color: var(--cyan);
  outline: none;
}

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

.contact-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 28px;
  align-items: stretch;
}

.contact-list {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(28, 69, 103, .38);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 37, 61, .98), rgba(14, 49, 78, .95));
  box-shadow: 0 20px 48px rgba(18, 43, 61, .12);
}

.contact-list .eyebrow {
  color: rgba(205, 232, 255, .74);
}

.contact-list h3 {
  margin-top: 8px;
  color: #fff;
  font-size: 24px;
}

.contact-list p {
  margin: 10px 0 0;
  color: rgba(232, 241, 248, .82);
  line-height: 1.7;
}

.contact-card {
  padding: 16px 18px 16px 54px;
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.contact-card--lead {
  border-color: rgba(241, 180, 52, .26);
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
}

.contact-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(241, 180, 52, .15);
}

.contact-card strong {
  display: block;
  margin-bottom: 4px;
  color: rgba(205, 232, 255, .8);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.contact-card span {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
}

.form {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(191, 205, 216, .95);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 20px 48px rgba(18, 43, 61, .08);
}

.form-head {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(191, 205, 216, .62);
}

.form-head .eyebrow {
  color: var(--cyan);
}

.form-head h3 {
  margin-top: 8px;
  font-size: 24px;
}

.form-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--steel);
  font-size: 13px;
  font-weight: 900;
}

.field-note {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 2px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  padding: 12px 13px;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(241, 180, 52, .9);
  box-shadow: 0 0 0 4px rgba(241, 180, 52, .16);
  background: #fff;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.form .btn.signal {
  justify-self: start;
  min-width: 190px;
}

.footer {
  color: rgba(255, 255, 255, .78);
  background: #071e33;
  padding: 42px 0;
}

.footer-inner {
  width: min(var(--section-width), calc(100% - 80px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner #socialLinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.social-link span:last-child {
  font-size: 12px;
  opacity: .72;
}

.social-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(241, 180, 52, .8);
  color: var(--signal);
}

.social-link:focus-visible {
  outline: 2px solid rgba(241, 180, 52, .8);
  outline-offset: 3px;
}

.footer a {
  color: #fff;
  font-weight: 800;
}

.float-quote {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 35;
  box-shadow: var(--shadow);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 20, 34, .58);
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(640px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}

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

#productModalPanel {
  width: min(1040px, 100%);
}

.modal.product-modal--fullscreen {
  align-items: stretch;
  padding: 16px;
}

.modal.product-modal--fullscreen #productModalPanel {
  width: min(1500px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 22px;
  border: 1px solid rgba(196, 209, 219, .9);
}

.modal.product-modal--fullscreen .modal-head {
  position: sticky;
  top: -22px;
  z-index: 5;
  margin: -22px -22px 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}

.modal.product-modal--fullscreen .modal-head h2 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.25;
}

.modal.product-modal--fullscreen .product-detail-layout--catalog {
  grid-template-columns: minmax(420px, .9fr) minmax(560px, 1.1fr);
  gap: 22px;
}

.modal.product-modal--fullscreen .product-detail-image {
  min-height: clamp(420px, 58vh, 660px);
  background: linear-gradient(180deg, #f9fbfd 0%, #eef4f8 100%);
}

.modal.product-modal--fullscreen .product-detail-image img,
.modal.product-modal--fullscreen .product-detail-gallery img {
  width: 100%;
  height: clamp(420px, 58vh, 660px);
  aspect-ratio: auto;
  object-fit: contain;
}

.spec-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.spec-table-scroll .spec-table {
  min-width: max-content;
}

.modal.product-modal--fullscreen .spec-table {
  font-size: 14px;
}

.modal.product-modal--fullscreen .spec-table th,
.modal.product-modal--fullscreen .spec-table td {
  min-width: 96px;
  padding: 10px 12px;
  vertical-align: middle;
}

#productModal .form {
  margin: 0;
  box-shadow: none;
}

#aboutStatModalPanel {
  width: min(720px, 100%);
}

#aboutStatModal .form {
  margin: 0;
  box-shadow: none;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.content-detail-layout {
  display: grid;
  gap: 18px;
}

.content-detail-layout--article {
  grid-template-columns: 1fr;
}

.content-detail-layout--case {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  align-items: start;
}

.content-detail-layout--case-no-image {
  grid-template-columns: 1fr;
}

.content-detail-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.content-detail-image img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.content-detail-body {
  display: grid;
  gap: 16px;
}

.content-detail-body--case {
  gap: 18px;
}

.content-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.content-detail-meta time {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.content-detail-summary {
  margin: 0;
  color: var(--steel);
  font-size: 18px;
  line-height: 1.68;
  font-weight: 700;
}

.content-detail-divider {
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(5, 63, 112, .18));
}

.content-detail-text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.88;
  white-space: pre-line;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, rgba(245, 248, 250, .7) 100%);
}

.content-detail-case-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
  gap: 16px;
}

.content-detail-case-main {
  display: grid;
  gap: 12px;
}

.content-detail-case-snapshot {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(196, 209, 219, .95);
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbfd 0%, #eef4f8 100%);
  color: var(--steel);
}

.content-detail-case-snapshot span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.content-detail-case-snapshot strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.content-detail-case-snapshot p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.82;
}

.content-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(196, 209, 219, .9);
  border-radius: 10px;
  background: #f8fbfd;
  color: var(--muted);
  font-size: 14px;
}

.product-detail-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-detail-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / .78;
  object-fit: contain;
}

.product-detail-gallery {
  display: grid;
  gap: 14px;
}

.product-detail-gallery img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.product-detail-carousel {
  position: relative;
  display: grid;
  gap: 12px;
}

.product-detail-carousel .product-detail-image {
  width: 100%;
}

.product-detail-carousel .product-detail-image img {
  border: 0;
  border-radius: 0;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 38px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(196, 209, 219, .95);
  border-radius: 4px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 12px 24px rgba(7, 31, 53, .12);
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gallery-arrow--prev {
  left: 12px;
}

.gallery-arrow--next {
  right: 12px;
}

.product-gallery-status {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(7, 31, 53, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transform: translateX(-50%);
}

.product-gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-gallery-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.product-gallery-dots button.active {
  width: 24px;
  background: var(--accent);
}

.product-detail-info {
  display: grid;
  gap: 16px;
}

.spec-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
}

.spec-table th,
.spec-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  text-align: center;
  vertical-align: middle;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  width: 34%;
  color: var(--steel);
  background: #f0f4f7;
  font-weight: 900;
}

.spec-table td {
  color: var(--ink);
  background: #fff;
}

.product-detail-summary {
  margin: 0;
  color: var(--muted);
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.share-row {
  display: flex;
  gap: 8px;
}

.share-button {
  position: relative;
  border: 0;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.share-button::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(11, 31, 49, .95);
  box-shadow: 0 10px 24px rgba(6, 21, 34, .18);
  transition: opacity .16s ease, transform .16s ease;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}

.share-button:hover::after,
.share-button:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.share-button.copied {
  min-width: 64px;
  background: #15803d;
}

.share-button:nth-child(2) {
  background: #315b9d;
}

.share-button:nth-child(3) {
  background: #1d9bd7;
}

.share-button:nth-child(4) {
  background: #7b8791;
}

.close {
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #edf2f5;
  color: var(--deep);
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  z-index: 70;
  border-radius: 999px;
  padding: 12px 18px;
  color: #fff;
  background: var(--deep);
  box-shadow: var(--shadow);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 260px 1fr;
  background: #eef3f6;
}

.admin-sidebar {
  color: #dce9f0;
  background: #0a263f;
  padding: 22px;
}

.admin-sidebar .logo {
  min-width: 0;
  margin-bottom: 26px;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 12px;
  text-align: left;
  font-weight: 800;
}

.admin-nav button.active,
.admin-nav button:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .16);
}

.admin-main {
  padding: 24px;
  min-width: 0;
  background:
    linear-gradient(180deg, #f7fafc 0%, #eef3f6 260px, #eef3f6 100%);
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.admin-top h1 {
  color: var(--deep);
}

.admin-page {
  display: none;
}

.admin-page.active {
  display: block;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 16px 50px rgba(22, 48, 67, .06);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--steel);
  background: #f4f7f9;
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--deep);
  background: #e5edf3;
  font-size: 12px;
  font-weight: 900;
}

.pill.green {
  color: #fff;
  background: var(--green);
}

.pill.yellow {
  background: var(--signal);
}

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

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(124deg, rgba(241, 180, 52, .11) 0 11%, transparent 11% 100%),
    linear-gradient(142deg, transparent 0 58%, rgba(77, 182, 214, .12) 58% 68%, transparent 68% 100%),
    linear-gradient(135deg, #071b2c 0%, #0d2c44 46%, #163d56 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.login-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(0deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(115deg, transparent 0 47%, rgba(255, 255, 255, .045) 47% 47.35%, transparent 47.35% 100%);
  opacity: .72;
  pointer-events: none;
}

.login-screen::after {
  content: "";
  position: absolute;
  right: -10vw;
  bottom: -22vh;
  width: 58vw;
  height: 62vh;
  transform: skewX(-18deg);
  border-left: 1px solid rgba(241, 180, 52, .22);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(77, 182, 214, .14), rgba(6, 24, 38, .02));
  opacity: .55;
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  border-radius: 22px;
  padding: 34px 32px 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(247, 250, 253, .96));
  border: 1px solid rgba(255, 255, 255, .66);
  box-shadow:
    0 28px 90px rgba(3, 18, 30, .32),
    0 1px 0 rgba(255, 255, 255, .6) inset;
  backdrop-filter: blur(18px) saturate(1.04);
}

.login-card::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  width: 118px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--signal), #f8cf65);
}

.login-card .logo {
  gap: 14px;
  margin-bottom: 18px;
}

.login-card .logo img {
  width: 52px;
  height: 52px;
}

.login-card .logo small {
  margin-top: 3px;
  letter-spacing: .24em;
}

.login-card h1 {
  margin: 12px 0 22px;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.login-card .field label {
  font-size: 14px;
  color: var(--steel);
}

.login-card .field input {
  min-height: 52px;
  border-radius: 12px;
  background: #f6f9fc;
}

.login-card .btn.signal {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border-radius: 12px;
  font-size: 16px;
  box-shadow: 0 14px 24px rgba(241, 180, 52, .22);
}

.login-card p {
  padding-top: 4px;
  font-size: 14px;
  line-height: 1.7;
}

.split-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

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

.hidden {
  display: none !important;
}

@media (max-width: 1280px) {
  .nav,
  .section,
  .footer-inner {
    width: min(1180px, calc(100% - 56px));
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 920px) {
  .nav,
  .section,
  .footer-inner {
    width: calc(100% - 32px);
  }

  .nav {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .icon-menu {
    display: grid;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 0;
  }

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

  .hero-inner,
  .contact-layout,
  .product-detail-layout,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    width: calc(100% - 32px);
    min-height: 720px;
    padding-top: 64px;
    padding-bottom: 88px;
    align-items: flex-end;
  }

  .hero-copy {
    width: 100%;
    max-width: 620px;
    padding-right: 12px;
  }

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

  .hero-proof {
    margin-top: 26px;
    width: 100%;
  }

  .hero-carousel-media::before {
    inset: 0;
    width: 100%;
    height: 100%;
    clip-path: none;
    background:
      linear-gradient(180deg, rgba(4, 21, 36, .28) 0%, rgba(4, 21, 36, .48) 42%, rgba(4, 21, 36, .92) 100%);
  }

  .hero-carousel-media::after {
    display: none;
  }

  .hero-carousel-media img {
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
  }

  .hero-carousel-footer {
    right: 18px;
    top: 50%;
    bottom: auto;
    width: auto;
    padding: 0;
    transform: translateY(-50%);
  }

  .hero-arrow {
    width: 36px;
    height: 36px;
  }

  .hero-arrow-prev {
    right: auto;
    left: 8%;
  }

  .hero-arrow-next {
    right: 8%;
  }

  .section-head,
  .footer-inner {
    display: block;
  }

  .section {
    padding: 72px 0;
  }

  #products .section {
    padding: 58px 0 62px;
  }

  #products .section-head {
    display: block;
    padding-bottom: 16px;
    margin-bottom: 18px;
  }

  #products .section-head p {
    max-width: none;
    padding-top: 12px;
  }

  .product-empty {
    display: block;
  }

  .product-empty .btn {
    margin-top: 14px;
  }

  .footer-inner #socialLinks {
    justify-content: flex-start;
    margin-top: 14px;
  }

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

  .field-full {
    grid-column: auto;
  }

  .contact-list,
  .form {
    padding: 20px;
  }

  .cert-list {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  #about {
    padding-top: 0;
  }

  #about .section-head {
    padding-top: 18px;
  }

  #about .section-head p {
    padding-top: 0;
  }

  .float-quote {
    right: 0;
    bottom: 92px;
    min-width: 58px;
    border-radius: 12px 0 0 12px;
    padding: 12px 14px;
  }

  .stats-grid,
  .product-grid,
  .solution-grid,
  .case-grid,
  .news-grid,
  .admin-grid,
  .split-form {
    grid-template-columns: 1fr;
  }

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

  .hero-proof-item {
    min-height: 0;
    padding: 14px 10px 12px;
  }

  .hero-proof-item strong {
    font-size: 20px;
  }

  .hero-proof-item span {
    margin-top: 6px;
    font-size: 10px;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
  }
}

@media (max-width: 560px) {
  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 620px;
    height: max(620px, calc(100vh - 137px));
  }

  .hero-copy {
    padding-left: 18px;
  }

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

  .hero p {
    font-size: 15px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-proof-item:nth-child(n+3) {
    display: none;
  }

  .product-actions {
    display: grid;
  }

  .product-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

body.admin-body .login-card {
  width: min(460px, 100%);
  padding: 30px;
}

body.admin-body .login-card h1 {
  font-size: 30px !important;
}


body.admin-body .login-card {
  width: min(460px, 100%);
  padding: 30px;
}

body.admin-body .login-card h1 {
  font-size: 30px !important;
}

/* final emergency overrides */
body.admin-body .login-card {
  width: min(460px, 100%);
  padding: 30px;
  box-shadow: 0 30px 90px rgba(4, 20, 34, .28);
}

body.admin-body .login-card .logo {
  min-width: 0;
  margin-bottom: 28px;
}

body.admin-body .login-card .field input,
body.admin-body .login-card .btn.signal {
  min-height: 50px;
  border-radius: 8px;
}

body.admin-body .login-card h1 {
  margin-bottom: 24px !important;
  font-size: 30px !important;
}

@media (max-width: 520px) {
  body.admin-body .login-card {
    width: 100%;
    padding: 24px;
  }
}

/* urgent interface polish */
:root {
  --shadow-soft: 0 18px 48px rgba(8, 33, 52, .09);
  --shadow-card: 0 10px 28px rgba(8, 33, 52, .07);
}

.site-header {
  background: rgba(255, 255, 255, .94);
}

.nav {
  width: min(1540px, calc(100% - 64px));
}

.logo {
  min-width: 220px;
}

.nav-links {
  gap: 24px;
}

.hero {
  min-height: 700px;
  height: min(840px, calc(100vh - 68px));
}

.hero::before {
  opacity: .55;
}

.hero-carousel-media::before {
  background:
    linear-gradient(90deg, rgba(3, 17, 30, .92) 0%, rgba(5, 26, 42, .76) 34%, rgba(5, 27, 44, .24) 62%, rgba(5, 27, 44, .02) 100%),
    linear-gradient(180deg, rgba(2, 14, 24, 0), rgba(2, 14, 24, .1));
}

.hero-copy {
  width: min(50%, 690px);
}

.hero h1 {
  font-size: clamp(44px, 4.6vw, 68px);
}

.hero-proof {
  border-color: rgba(220, 235, 244, .24);
  background: rgba(7, 31, 53, .34);
}

.section {
  width: min(1320px, calc(100% - 72px));
}

.stat,
.solution-card,
.case-card,
.news-card,
.product-card {
  box-shadow: var(--shadow-card);
}

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

.product-card {
  background: #fff;
}

.product-media {
  background: linear-gradient(180deg, #f9fbfc 0%, #edf3f7 100%);
}

.product-body p,
.solution-card p,
.case-card p,
.news-card p {
  line-height: 1.68;
}

.contact-list,
.form {
  box-shadow: var(--shadow-soft);
}

body.admin-body {
  background:
    linear-gradient(180deg, #f8fbfd 0%, #eef4f7 100%);
}

body.admin-body .login-screen {
  padding: 40px;
  background:
    linear-gradient(90deg, rgba(5, 22, 36, .78) 0%, rgba(7, 31, 53, .58) 48%, rgba(7, 31, 53, .34) 100%),
    url("/assets/hero/manufacturing-line.png") center / cover no-repeat;
}

body.admin-body .login-screen::before {
  opacity: .28;
}

body.admin-body .login-screen::after {
  opacity: .12;
}

body.admin-body .login-card {
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 30px 90px rgba(4, 20, 34, .28);
}

body.admin-body .login-card .logo {
  min-width: 0;
  margin-bottom: 28px;
}

body.admin-body .login-card h1 {
  margin-bottom: 24px !important;
  font-size: 30px !important;
}

body.admin-body .login-card .field {
  gap: 8px;
}

body.admin-body .login-card .field input {
  min-height: 50px;
  border-radius: 8px;
  background: #f8fbfd;
}

body.admin-body .login-card .btn.signal {
  min-height: 50px;
  border-radius: 8px;
}

.admin-shell {
  grid-template-columns: 268px minmax(0, 1fr);
}

.admin-sidebar {
  padding: 22px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 220px),
    #082338;
}

.admin-nav button {
  min-height: 44px;
}

.admin-main {
  width: 100%;
  padding: 28px clamp(24px, 3vw, 42px) 48px;
}

.admin-top {
  min-height: 82px;
  margin: -28px calc(clamp(24px, 3vw, 42px) * -1) 24px;
  padding: 16px clamp(24px, 3vw, 42px);
  background: rgba(248, 251, 253, .94);
}

body.admin-body .admin-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

body.admin-body .admin-grid .stat {
  min-height: 118px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

body.admin-body .admin-grid .stat strong {
  font-size: 34px;
}

body.admin-body .panel {
  box-shadow: var(--shadow-card);
}

body.admin-body .table-wrap {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

@media (max-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: 660px;
  }

  .hero-copy {
    width: 100%;
  }

  body.admin-body .login-screen {
    padding: 24px;
  }

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

  .admin-main {
    padding: 20px 16px 36px;
  }

  .admin-top {
    margin: 0 0 18px;
    padding: 0 0 18px;
  }
}

@media (max-width: 700px) {
  .content-detail-meta,
  .content-detail-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-detail-actions .btn {
    width: 100%;
  }

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

/* UI/UX Pro Max admin pass */
body.admin-body {
  --admin-bg: #eef3f6;
  --admin-rail: #082338;
  --admin-rail-2: #0b2f4a;
  --admin-card: #ffffff;
  --admin-soft: #f6f9fb;
  --admin-line: #d8e3ea;
  color: #102637;
  background:
    linear-gradient(180deg, #f7fafc 0%, var(--admin-bg) 330px, var(--admin-bg) 100%);
}

body.admin-body .btn {
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 7px;
}

body.admin-body .btn:active,
.btn:active {
  transform: translateY(0) scale(.98);
}

body.admin-body .btn.ghost {
  background: #fff;
}

body.admin-body .btn.secondary {
  background: #f8fbfd;
}

.admin-shell {
  grid-template-columns: 288px minmax(0, 1fr);
  background: transparent;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 24px 18px;
  border-right: 1px solid rgba(255, 255, 255, .08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), transparent 220px),
    linear-gradient(135deg, var(--admin-rail) 0%, var(--admin-rail-2) 100%);
  box-shadow: 16px 0 40px rgba(7, 31, 53, .08);
}

.admin-sidebar .logo {
  display: grid;
  grid-template-columns: 44px 1fr;
  min-height: 58px;
  margin-bottom: 28px;
  padding: 10px 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
}

.admin-sidebar .logo img {
  border-radius: 6px;
  background: #fff;
}

.admin-sidebar .logo small {
  color: rgba(223, 238, 247, .7);
}

.admin-nav {
  gap: 7px;
}

.admin-nav button {
  position: relative;
  min-height: 46px;
  border-color: transparent;
  border-radius: 7px;
  padding: 12px 14px 12px 18px;
  color: rgba(226, 240, 248, .82);
  background: transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.admin-nav button::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 13px;
  bottom: 13px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

.admin-nav button.active,
.admin-nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .12);
  transform: translateX(2px);
}

.admin-nav button.active::before {
  background: var(--signal);
}

.admin-main {
  width: min(1440px, 100%);
  padding: 32px clamp(24px, 3vw, 44px) 52px;
  background: transparent;
}

.admin-top {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 88px;
  margin: -32px calc(clamp(24px, 3vw, 44px) * -1) 24px;
  padding: 18px clamp(24px, 3vw, 44px);
  border-bottom: 1px solid rgba(202, 216, 226, .76);
  background: rgba(247, 250, 252, .9);
  backdrop-filter: blur(18px) saturate(1.08);
}

.admin-top .eyebrow {
  color: var(--blue);
}

.admin-top h1 {
  margin-top: 6px !important;
  color: var(--deep);
  font-size: clamp(28px, 3vw, 38px) !important;
  letter-spacing: 0;
}

.admin-top .actions {
  justify-content: flex-end;
}

.admin-page.active {
  display: grid;
  gap: 20px;
  min-width: 0;
}

body.admin-body .panel {
  min-width: 0;
  border-color: var(--admin-line);
  border-radius: 8px;
  background: var(--admin-card);
  padding: 24px;
  box-shadow: 0 18px 44px rgba(12, 43, 65, .06);
}

body.admin-body .panel.form {
  box-shadow: none;
}

body.admin-body .panel .section-head {
  align-items: center;
  margin-bottom: 18px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid rgba(216, 227, 234, .86);
}

body.admin-body .panel h2 {
  color: var(--deep);
  font-size: 23px !important;
  letter-spacing: 0;
}

body.admin-body .form {
  gap: 16px;
  border-color: var(--admin-line);
  background: #fff;
  box-shadow: none;
}

body.admin-body .field label {
  color: #29485d;
  font-size: 13px;
  letter-spacing: 0;
}

body.admin-body .field input,
body.admin-body .field textarea,
body.admin-body .field select {
  min-height: 44px;
  border-color: #cfdae3;
  background: var(--admin-soft);
}

body.admin-body #contentForm.is-readonly .field input:disabled,
body.admin-body #contentForm.is-readonly .field textarea:disabled,
body.admin-body #contentForm.is-readonly .field select:disabled {
  color: #263d4d;
  opacity: 1;
  cursor: default;
  border-color: #d8e2ea;
  background: #f8fbfd;
}

body.admin-body #contentForm {
  gap: 14px;
}

body.admin-body .content-form-actions {
  display: flex;
  justify-content: flex-end;
  padding: 4px 0 0;
}

body.admin-body #contentSaveBtn {
  width: auto;
  min-width: 108px;
  min-height: 38px;
  padding: 8px 18px;
  font-size: 14px;
}

body.admin-body .field textarea {
  min-height: 104px;
}

body.admin-body .table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #fff;
}

body.admin-body table {
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

body.admin-body th,
body.admin-body td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2ebf0;
}

body.admin-body th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #38556a;
  background: #f4f8fa;
  font-size: 12px;
  text-transform: uppercase;
}

body.admin-body tbody tr:nth-child(even) td {
  background: #fbfdfe;
}

body.admin-body tbody tr:hover td {
  background: #f6fafc;
}

body.admin-body td strong {
  color: var(--deep);
}

body.admin-body .actions {
  align-items: center;
  gap: 8px;
}

body.admin-body td.actions {
  min-width: 190px;
}

body.admin-body td .btn,
body.admin-body .table-wrap .btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

body.admin-body .pill {
  min-height: 26px;
  padding: 5px 10px;
  border: 1px solid rgba(15, 23, 42, .06);
}

body.admin-body .pill.green {
  background: #2f7a62;
}

body.admin-body .pill.yellow {
  background: #f5b729;
}

body.admin-body .admin-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 0;
}

body.admin-body .admin-grid .stat {
  min-height: 128px;
  background:
    linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
}

body.admin-body .login-screen {
  background:
    linear-gradient(90deg, rgba(5, 22, 36, .9) 0%, rgba(7, 31, 53, .72) 42%, rgba(7, 31, 53, .4) 100%),
    url("/assets/hero/manufacturing-line.png") center / cover no-repeat;
}

body.admin-body .login-screen::before {
  opacity: .5;
}

body.admin-body .login-screen::after {
  opacity: .28;
}

body.admin-body .login-card {
  width: min(500px, 100%);
  margin: 0;
  justify-self: center;
  border-radius: 8px;
  padding: 32px;
}

body.admin-body .login-card h1 {
  color: var(--deep);
  font-size: 32px !important;
}

body.admin-body .login-card p {
  color: #617280 !important;
}

@media (max-width: 1100px) {
  body.admin-body .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: auto;
    max-height: none;
    padding: 12px 16px;
  }

  .admin-sidebar .logo {
    display: flex;
    min-height: 0;
    margin-bottom: 10px;
    padding: 0 0 10px;
  }

  .admin-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .admin-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-nav button {
    flex: 0 0 auto;
    min-height: 42px;
    transform: none;
    white-space: nowrap;
  }

  .admin-nav button:hover,
  .admin-nav button.active {
    transform: none;
  }

  .admin-main {
    padding: 20px 16px 36px;
  }

  .admin-top {
    position: relative;
    top: auto;
    display: grid;
    gap: 14px;
    min-height: 0;
    margin: 0 0 18px;
    padding: 0 0 18px;
    background: transparent;
    backdrop-filter: none;
  }

  .admin-top .actions {
    justify-content: flex-start;
  }

  body.admin-body .panel {
    padding: 18px;
  }

  body.admin-body .login-card {
    margin: 0;
    justify-self: center;
  }
}

@media (max-width: 560px) {
  body.admin-body .admin-grid,
  .split-form {
    grid-template-columns: 1fr;
  }

  body.admin-body .panel .section-head {
    display: grid;
    gap: 12px;
    align-items: start;
  }

  body.admin-body .actions {
    width: 100%;
  }

  body.admin-body .actions .btn {
    flex: 1 1 auto;
  }

  body.admin-body .content-form-actions {
    justify-content: stretch;
  }

  body.admin-body #contentSaveBtn {
    width: 100%;
  }
}

@media (max-width: 920px) {
  .modal.product-modal--fullscreen {
    padding: 10px;
  }

  .modal.product-modal--fullscreen #productModalPanel {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 16px;
  }

  .modal.product-modal--fullscreen .modal-head {
    top: -16px;
    margin: -16px -16px 16px;
    padding: 14px 16px;
  }

  .modal.product-modal--fullscreen .product-detail-layout--catalog {
    grid-template-columns: 1fr;
  }

  .modal.product-modal--fullscreen .product-detail-image {
    min-height: min(68vw, 420px);
  }

  .modal.product-modal--fullscreen .product-detail-image img,
  .modal.product-modal--fullscreen .product-detail-gallery img {
    height: min(68vw, 420px);
  }

  .modal.product-modal--fullscreen .spec-table th,
  .modal.product-modal--fullscreen .spec-table td {
    min-width: 88px;
    padding: 9px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

body.admin-body .login-card {
  width: min(460px, 100%);
  padding: 30px;
}

body.admin-body .login-card h1 {
  font-size: 30px !important;
}
