:root {
  --theme: #27376b;
  --theme-dark: #1d294f;
  --theme-deep: #11182f;
  --theme-light: #f2f4fb;
  --theme-soft: #f8f9fd;
  --theme-hover: #344a8c;
  --theme-border: rgba(39, 55, 107, 0.18);
  --text-main: #17213d;
  --text-muted: #5d6882;
  --on-theme: #ffffff;
  --on-dark: #f7f9ff;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(23, 35, 77, 0.14);
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  background: var(--theme-light);
  color: var(--text-main);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.72;
}

* {
  box-sizing: border-box;
}

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

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(29, 41, 79, 0.96);
  color: var(--on-dark);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(100% - 28px, 1280px);
  margin: 0 auto;
  min-height: 68px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img,
.footer-brand img,
.drawer-logo img {
  display: block;
  height: auto;
  max-width: 180px;
}

.logo img {
  max-width: 138px;
}

.main-nav {
  display: none;
}

.main-nav a {
  color: var(--on-dark);
  border-radius: 999px;
  padding: 8px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s ease, box-shadow .2s ease, color .2s ease;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--on-dark);
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 -2px 0 var(--theme-light);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--theme);
  color: var(--on-theme);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  padding: 10px 18px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.16);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.main-btn:hover {
  background: var(--theme-hover);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: var(--on-dark);
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--on-dark);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  transform: translateX(-100%);
  transition: transform .28s ease;
  z-index: 10001;
  background: var(--theme-dark);
  color: var(--on-dark);
  box-shadow: 28px 0 65px rgba(0,0,0,0.28);
  overflow-y: auto;
}

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

.drawer-overlay {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 10000;
  background: rgba(0,0,0,0.52);
  transition: opacity .28s ease, visibility .28s ease;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.drawer-logo img {
  max-width: 132px;
}

.drawer-close {
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  color: var(--on-dark);
  background: rgba(255,255,255,0.08);
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-nav {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.mobile-nav a {
  color: var(--on-dark);
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
}

.mobile-nav a.active,
.mobile-nav a:hover {
  background: rgba(255,255,255,0.16);
  box-shadow: inset 3px 0 0 var(--theme-light);
}

.site-main {
  min-height: 70vh;
}

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

.section {
  padding: 58px 0;
}

.section.compact {
  padding: 38px 0;
}

.section-title,
h1,
h2,
h3,
.category-number,
.highlight {
  color: var(--theme-dark);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  margin: 0 0 16px;
  line-height: 1.22;
}

.section-lead {
  color: var(--text-muted);
  max-width: 840px;
  margin: 0 0 26px;
}

.hero,
.hero-section,
.banner {
  position: relative;
}

.hero-section {
  padding: 62px 0 42px;
  background:
    radial-gradient(circle at top left, rgba(39,55,107,0.14), transparent 34%),
    linear-gradient(145deg, var(--theme-light), var(--theme-soft));
}

.hero {
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  margin: 14px 0 18px;
  line-height: 1.13;
  font-size: clamp(2.2rem, 6vw, 4.35rem);
}

.hero p {
  color: var(--text-main);
  font-size: 1.04rem;
}

.hero-labels,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag,
.kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--theme-dark);
  background: rgba(39,55,107,0.08);
  border: 1px solid var(--theme-border);
  font-weight: 800;
}

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

.text-link {
  color: var(--theme);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link:hover {
  color: var(--theme-hover);
}

.hero-visual,
.visual-panel,
.split-visual {
  min-height: 300px;
  border-radius: 32px;
  border: 1px solid var(--theme-border);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(248,249,253,0.72)),
    radial-gradient(circle at 75% 20%, rgba(39,55,107,0.22), transparent 36%);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-visual::before,
.visual-panel::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -46px;
  top: -36px;
  background: rgba(39,55,107,0.18);
}

.visual-card {
  position: relative;
  z-index: 1;
  margin: 28px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--theme-border);
}

.visual-card strong {
  display: block;
  font-size: 1.5rem;
  color: var(--theme-dark);
  margin-bottom: 8px;
}

.mini-card-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mini-card,
.card,
.info-card,
.zone-card,
.faq-item,
.notice,
.category-pill,
.service-strip,
.split-card,
.page-panel {
  background: var(--white);
  color: var(--text-main);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-soft);
  border-radius: 24px;
}

.mini-card {
  padding: 15px;
}

.mini-card b {
  color: var(--theme-dark);
  display: block;
}

.category-grid,
.grid,
.feature-grid,
.info-board,
.matrix-grid,
.security-grid,
.link-grid {
  display: grid;
  gap: 18px;
}

.category-pill {
  padding: 22px;
  background: linear-gradient(145deg, var(--white), var(--theme-soft));
  transition: transform .2s ease, border-color .2s ease;
}

.category-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(39,55,107,0.32);
}

.category-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(39,55,107,0.1);
  font-weight: 900;
  margin-bottom: 12px;
}

.service-strip {
  padding: 26px;
  background: linear-gradient(135deg, rgba(39,55,107,0.09), rgba(255,255,255,0.9));
}

.card,
.info-card,
.zone-card,
.faq-item,
.page-panel {
  padding: 24px;
}

.card h3,
.info-card h3,
.zone-card h3,
.faq-item h3,
.page-panel h3 {
  margin-top: 0;
}

.card ul,
.check-list,
.simple-list {
  padding-left: 20px;
  margin-bottom: 0;
}

.content-split {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

.split-card {
  padding: 28px;
}

.visual-panel {
  display: flex;
  align-items: flex-end;
  padding: 28px;
}

.visual-panel .visual-content {
  position: relative;
  z-index: 1;
}

.visual-panel span {
  display: inline-flex;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  align-items: center;
  justify-content: center;
  background: var(--theme);
  color: var(--on-theme);
  font-weight: 900;
  margin-bottom: 16px;
}

.visual-panel strong {
  display: block;
  font-size: 1.7rem;
  color: var(--theme-dark);
}

.app-section {
  display: grid;
  gap: 26px;
  align-items: center;
  border-radius: 32px;
  border: 1px solid var(--theme-border);
  background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(39,55,107,0.08));
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.content-img,
.app-section img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.app-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-image img {
  max-height: 420px;
}

.security-section {
  display: grid;
  gap: 24px;
}

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

.notice {
  padding: 24px;
  background: linear-gradient(145deg, var(--white), rgba(39,55,107,0.08));
}

.notice strong {
  color: var(--theme-dark);
}

.page-hero {
  padding: 62px 0 36px;
  background: linear-gradient(145deg, var(--theme-light), var(--theme-soft));
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.16;
  margin: 12px 0 16px;
}

.page-hero p {
  max-width: 860px;
  color: var(--text-main);
  font-size: 1.04rem;
}

.content-narrow {
  max-width: 980px;
}

.content-narrow p {
  color: var(--text-main);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.footer {
  background: var(--theme-deep);
  color: var(--on-dark);
  padding: 48px 0 26px;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-brand p,
.footer-bottom p {
  color: rgba(247,249,255,0.82);
}

.footer-brand img {
  max-width: 150px;
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer-links h3 {
  color: var(--on-dark);
  margin: 0 0 8px;
}

.footer a {
  color: var(--on-dark);
}

.footer a:hover {
  color: var(--theme-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.16);
  margin-top: 34px;
  padding-top: 20px;
}

@media (min-width: 768px) {
  .hero,
  .app-section,
  .security-section {
    grid-template-columns: 1.05fr .95fr;
  }

  .category-grid,
  .feature-grid,
  .matrix-grid,
  .security-grid,
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .content-split {
    grid-template-columns: 1fr 1fr;
  }

  .content-split.reverse .visual-panel {
    order: 2;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .header-inner {
    display: flex;
    min-height: 72px;
    gap: 12px;
  }

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

  .logo {
    justify-content: flex-start;
    flex: 0 0 auto;
  }

  .logo img {
    max-width: 128px;
  }

  .main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-actions {
    flex: 0 0 auto;
  }

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

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

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

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

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

@media (min-width: 1180px) {
  .main-nav a {
    font-size: 13px;
    padding: 9px 11px;
  }

  .logo img {
    max-width: 150px;
  }
}

@media (max-width: 420px) {
  .header-inner {
    width: min(100% - 20px, 1280px);
    gap: 8px;
  }

  .main-btn {
    padding: 9px 13px;
    font-size: .92rem;
  }

  .logo img {
    max-width: 116px;
  }

  .section {
    padding: 42px 0;
  }
}
