:root {
  --ink: #0e1b2f;
  --muted: #5e6f84;
  --line: #d9e4ef;
  --soft: #f5f8fb;
  --panel: #ffffff;
  --blue: #1261a6;
  --blue-strong: #0b4d91;
  --cyan: #5cc8ff;
  --green: #1c9c64;
  --amber: #c77700;
  --rose: #c8455f;
  --shadow: 0 18px 50px rgba(28, 57, 91, .12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, "Helvetica Neue", sans-serif;
  line-height: 1.55;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
}

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

.brand-logo {
  width: auto;
  height: 42px;
  max-width: 150px;
  object-fit: contain;
}

.brand-lockup strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0;
}

.brand-lockup small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 0 13px;
  color: #263c55;
  font-size: 14px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--blue);
}

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

.icon-link {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: #fff;
  font-weight: 800;
}

.mobile-toggle {
  display: none;
}

.hero {
  min-height: 620px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 28%, rgba(92, 200, 255, .32), transparent 24%),
    linear-gradient(116deg, #082348 0%, #0e4f8e 54%, #156a7d 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  align-items: center;
  gap: 44px;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  padding: 54px 0 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #93e2ff;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 64px);
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
}

h3 {
  font-size: 21px;
}

.hero p {
  max-width: 680px;
  color: #d8ecff;
  font-size: 18px;
}

.hero-actions,
.section-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.btn.primary {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.btn.primary:hover,
.btn.primary:focus {
  background: var(--blue-strong);
}

.btn.ghost {
  color: var(--blue);
  border-color: #b9d7ef;
  background: #edf6ff;
}

.btn.danger {
  color: #fff;
  border-color: var(--rose);
  background: var(--rose);
}

.hero-card {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-card-body {
  padding: 22px;
  color: var(--ink);
}

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

.hero-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, calc(100% - 32px));
  margin: -54px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-tab {
  min-height: 88px;
  padding: 18px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: #263c55;
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.hero-tab:last-child {
  border-right: 0;
}

.hero-tab.active {
  color: var(--blue);
  background: #eef7ff;
}

.section {
  padding: 78px 0;
}

.section.alt {
  background: var(--soft);
}

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

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

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

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.product-card,
.news-card,
.support-card,
.category-tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}

.product-card:hover,
.news-card:hover,
.support-card:hover,
.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f2f7fc;
}

.card-body {
  padding: 22px;
}

.card-body p,
.muted {
  color: var(--muted);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #17618c;
  background: #e9f7ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.pill.green {
  color: #116544;
  background: #e8f8ef;
}

.category-tile {
  min-height: 144px;
  padding: 24px;
}

.category-tile span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 900;
}

.page-hero {
  padding: 72px 0;
  color: #fff;
  background: linear-gradient(120deg, #092b57, #116c8f);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  color: #bde8ff;
  font-size: 14px;
}

.breadcrumb a {
  color: #fff;
}

.split-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
}

.side-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.side-nav a {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: #405670;
  font-weight: 800;
}

.side-nav a:last-child {
  border-bottom: 0;
}

.side-nav a.active,
.side-nav a:hover {
  color: var(--blue);
  background: #edf6ff;
}

.policy-article {
  display: grid;
  gap: 26px;
  margin-top: 28px;
  color: #263c55;
}

.policy-article section {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.policy-article section:last-child {
  border-bottom: 0;
}

.policy-article h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 22px;
}

.policy-article p {
  margin: 0;
  color: var(--muted);
}

.policy-article ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.policy-article li {
  padding-left: 4px;
}

.policy-source {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-size: 14px;
}

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

.policy-source a {
  color: var(--blue);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: center;
}

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

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

.detail-tabs a,
.detail-tabs button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.order-link-section {
  display: block;
  color: inherit;
}

.order-link-section h2 {
  transition: color .18s ease;
}

.order-link-section:hover h2,
.order-link-section:focus h2 {
  color: var(--blue);
}

.feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.spec-table,
.product-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td,
.product-table th,
.product-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table th,
.product-table th {
  color: #52667c;
  background: #f8fbfd;
  font-size: 13px;
}

.contact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.contact-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.site-footer {
  color: #d9e9f8;
  background: #091a30;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(5, minmax(0, 1fr));
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.footer-col h3 {
  margin-bottom: 14px;
  font-size: 15px;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 8px 0;
  color: #9fb5ca;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0;
  color: #8ca5bd;
  font-size: 13px;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.admin-body {
  background: #eef3f7;
}

[hidden] {
  display: none !important;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: #eef3f7;
}

.login-panel {
  display: grid;
  gap: 18px;
  width: min(420px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-panel .brand-logo {
  height: 48px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 26px;
  color: #e9f3ff;
  background: #0b203c;
}

.admin-sidebar .brand-lockup {
  color: #fff;
}

.admin-sidebar small {
  color: #a9bfd6;
}

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

.admin-nav a {
  padding: 12px 14px;
  border-radius: 8px;
  color: #d7e8fa;
  background: rgba(255, 255, 255, .06);
}

.admin-note {
  color: #a9bfd6;
  font-size: 13px;
}

.admin-main {
  padding: 32px;
}

.admin-topbar,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-topbar {
  margin-bottom: 22px;
}

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

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stat strong {
  display: block;
  font-size: 30px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 22px;
  align-items: start;
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(35, 62, 90, .08);
}

.toolbar {
  display: flex;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cbd8e4;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 8px;
  color: #354960;
  font-weight: 800;
}

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

.editor-panel {
  display: grid;
  gap: 16px;
}

.image-editor {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.image-editor img {
  width: 160px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f7fb;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.check-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.check-row input {
  width: auto;
  min-height: auto;
}

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

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

.product-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.product-mini img {
  width: 62px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f3f7fb;
}

.status-line {
  min-height: 24px;
  color: var(--green);
  font-weight: 800;
}

.users-panel {
  margin-top: 22px;
}

.users-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: start;
}

.add-user-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

@media (max-width: 980px) {
  .mobile-toggle {
    display: inline-grid;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-header.open .main-nav {
    display: grid;
  }

  .nav-link {
    min-height: 46px;
  }

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

  .admin-sidebar {
    position: static;
    min-height: auto;
  }

  .hero-tabs,
  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2,
  .contact-strip,
  .footer-inner,
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 68px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 42px;
  }

  .hero-tabs,
  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2,
  .contact-strip,
  .footer-inner,
  .footer-bottom .container,
  .admin-stats,
  .form-grid,
  .image-editor {
    grid-template-columns: 1fr;
  }

  .section-head,
  .admin-topbar,
  .panel-header,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-main {
    padding: 18px;
  }
}
