:root {
  --theme: #27376b;
  --theme-dark: #1d2b58;
  --theme-deep: #111a3a;
  --theme-light: #eef2fb;
  --theme-soft: #f7f9ff;
  --theme-hover: #344a8f;
  --theme-border: rgba(39,55,107,0.18);
  --text-main: #18213d;
  --text-muted: #5f6884;
  --on-theme: #ffffff;
  --on-dark: #f8fbff;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(17,26,58,0.12);
}

* { box-sizing: border-box; }

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.7;
}

a { text-decoration: none; }

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

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

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 68px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

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

.logo img { max-height: 48px; }
.desktop-logo { display: none; }
.mobile-logo { justify-self: center; }
.mobile-logo img { max-width: 128px; }

.main-nav { display: none; }

.main-nav a {
  color: var(--on-dark);
  padding: 9px 11px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: .22s 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 { justify-self: end; }

.main-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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.22);
  transition: .22s ease;
}

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

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

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

.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);
  padding: 18px;
  overflow-y: auto;
  box-shadow: 20px 0 50px rgba(0,0,0,0.26);
}

.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.45);
  transition: .28s ease;
}

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

body.menu-open { overflow: hidden; }

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

.drawer-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--on-dark);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

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

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

.mobile-nav a.active,
.mobile-nav a:hover { background: rgba(255,255,255,0.14); }

.drawer-note {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}

.site-main { min-height: 60vh; }
.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section { padding: 44px 0; }
.section.compact { padding: 26px 0; }

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

.hero-section {
  padding: 56px 0 34px;
  background: radial-gradient(circle at top right, rgba(39,55,107,0.16), transparent 36%), linear-gradient(135deg, var(--theme-soft), var(--theme-light));
}

.hero-grid,
.split-grid,
.app-grid,
.security-grid,
.footer-grid {
  display: grid;
  gap: 24px;
}

.hero h1,
.page-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 8vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero h1 { font-size: clamp(32px, 6vw, 54px); }

.hero p,
.page-hero p,
.card p,
.info-card p,
.zone-card p,
.notice p { margin-top: 0; }

.eyebrow,
.badge,
.category-number,
.card-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--theme-dark);
  background: rgba(39,55,107,0.10);
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 13px;
}

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

.section-title { margin: 0 0 14px; font-size: clamp(26px, 4vw, 40px); line-height: 1.15; }
.section-lead { color: var(--text-muted); max-width: 860px; margin: 0 0 24px; }

.card,
.zone-card,
.info-card,
.faq-item,
.notice,
.content-card,
.hero-card,
.visual-card,
.service-strip,
.category-pill {
  background: var(--white);
  color: var(--text-main);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-soft);
  border-radius: 28px;
}

.card,
.zone-card,
.info-card,
.faq-item,
.notice,
.content-card,
.hero-card,
.visual-card,
.service-strip,
.category-pill { padding: 24px; }

.hero-card {
  background: linear-gradient(155deg, var(--theme-dark), var(--theme));
  color: var(--on-dark);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card h2,
.hero-card h3,
.hero-card p,
.hero-card .stat-label { color: var(--on-dark); }

.hero-tags,
.pill-row,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-tags span,
.pill-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(39,55,107,0.10);
  color: var(--theme-dark);
  font-weight: 800;
}

.hero-card .pill-row span { background: rgba(255,255,255,0.12); color: var(--on-dark); }

.grid { display: grid; gap: 20px; }
.feature-grid { display: grid; gap: 20px; }
.category-grid { display: grid; gap: 14px; }
.category-pill { transition: .22s ease; }
.category-pill:hover { transform: translateY(-3px); border-color: rgba(39,55,107,0.34); }
.category-pill h3 { margin: 10px 0 8px; }
.category-pill p { color: var(--text-muted); }

.service-strip {
  background: linear-gradient(135deg, var(--theme-soft), var(--white));
  display: grid;
  gap: 16px;
  align-items: center;
}

.info-card h3,
.zone-card h3,
.card h3 { margin-top: 10px; margin-bottom: 10px; }
.info-card p,
.zone-card p,
.card p { color: var(--text-muted); }

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

.visual-card {
  min-height: 260px;
  background: linear-gradient(145deg, var(--theme-dark), var(--theme-hover));
  color: var(--on-dark);
  display: grid;
  align-content: center;
  gap: 14px;
}

.visual-card h3,
.visual-card p { color: var(--on-dark); margin: 0; }
.visual-card .visual-line { height: 12px; border-radius: 999px; background: rgba(255,255,255,0.20); }
.visual-card .visual-line.short { width: 62%; }
.visual-card .visual-line.medium { width: 82%; }
.visual-card .visual-line.long { width: 100%; }

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

.app-section {
  background: linear-gradient(135deg, var(--white), var(--theme-soft));
  border: 1px solid var(--theme-border);
  border-radius: 34px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

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

.app-visual { display: flex; align-items: center; justify-content: center; }
.app-visual img { max-height: 460px; }

.security-section { display: grid; gap: 20px; }
.check-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 10px; border-radius: 50%; background: var(--theme); }

.faq { display: grid; gap: 16px; }
.faq-item h3 { margin-top: 0; }
.faq-item p { color: var(--text-muted); }

.notice {
  background: linear-gradient(135deg, var(--theme-soft), var(--white));
  border-left: 5px solid var(--theme);
}

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

.page-hero {
  padding: 48px 0 28px;
  background: linear-gradient(135deg, var(--theme-soft), var(--theme-light));
}

.page-layout { display: grid; gap: 22px; }
.content-card h2 { margin-top: 0; }
.content-card p { color: var(--text-muted); }
.two-col { grid-template-columns: 1fr; }
.four-col { grid-template-columns: 1fr; }
.links-card a { display: inline-flex; margin: 6px 10px 6px 0; }

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

.footer a { color: var(--on-dark); }
.footer a:hover { color: var(--theme-light); }
.footer p { color: rgba(248,251,255,0.82); }
.footer-grid { border-bottom: 1px solid rgba(255,255,255,0.14); padding-bottom: 24px; }
.footer-brand img { max-width: 160px; margin-bottom: 14px; }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links h3 { color: var(--on-dark); margin: 0 0 4px; }
.footer-bottom { padding-top: 18px; font-size: 14px; }

@media (min-width: 768px) {
  .header-inner { min-height: 72px; }
  .hero-grid,
  .split-grid,
  .app-grid,
  .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
  .grid.two-col,
  .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid,
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .four-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-strip { grid-template-columns: 1.2fr .8fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .header-inner { display: flex; padding: 0 24px; }
  .desktop-logo { display: inline-flex; }
  .mobile-logo,
  .mobile-menu-toggle { display: none; }
  .main-nav { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1; }
  .header-actions { margin-left: 12px; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .four-col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .zone-matrix { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .content-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-split.reverse .visual-card { order: 2; }
  .content-split.reverse .content-card { order: 1; }
  .mobile-drawer,
  .drawer-overlay { display: none; }
}

@media (max-width: 430px) {
  .main-btn { padding: 9px 12px; font-size: 14px; }
  .header-inner { padding: 0 10px; grid-template-columns: 44px 1fr auto; }
  .mobile-logo img { max-width: 112px; }
  .container { width: min(100% - 24px, 1160px); }
  .card,
  .zone-card,
  .info-card,
  .faq-item,
  .notice,
  .content-card,
  .hero-card,
  .visual-card,
  .service-strip,
  .category-pill { padding: 20px; border-radius: 22px; }
}
