:root {
  --theme: #27376b;
  --theme-dark: #1f2c58;
  --theme-deep: #131b39;
  --theme-light: #eef1fb;
  --theme-soft: #f7f8ff;
  --theme-hover: #334a91;
  --theme-border: rgba(39,55,107,0.16);
  --text-main: #172038;
  --text-muted: #5e6783;
  --on-theme: #ffffff;
  --on-dark: #f7f9ff;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(20,31,67,0.12);
}

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;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

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;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

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

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

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

.main-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

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

.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;
  min-height: 40px;
  padding: 10px 18px;
  background: var(--theme);
  color: var(--on-theme);
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  transition: background .2s ease, transform .2s ease;
}

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

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

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  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: 20px 0 50px 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(7,11,25,0.56);
  transition: opacity .28s ease, visibility .28s ease;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

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

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

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

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

.drawer-note {
  margin: 10px 14px 24px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  color: var(--on-dark);
  font-size: 0.92rem;
}

.site-main {
  background: var(--theme-light);
}

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

.section {
  padding: 56px 0;
}

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

.hero-section {
  padding: 70px 0 48px;
  background:
    radial-gradient(circle at 84% 8%, rgba(39,55,107,0.18), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, var(--theme-soft) 58%, #edf0fb 100%);
}

.hero-grid,
.app-layout,
.security-layout,
.content-split {
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero h1,
.page-hero h1 {
  margin: 18px 0;
  font-size: clamp(2.05rem, 5vw, 4.15rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 18px;
}

.hero-tags,
.link-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags span,
.tag,
.category-number,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--theme-border);
  background: var(--white);
  color: var(--theme-dark);
  font-weight: 800;
  padding: 7px 12px;
  font-size: 0.86rem;
}

.hero-card,
.visual-card {
  min-height: 320px;
  border-radius: 34px;
  background: linear-gradient(145deg, var(--theme-dark), var(--theme));
  color: var(--on-dark);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  position: relative;
}

.hero-card::after,
.visual-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
}

.hero-card h2,
.visual-card h2,
.hero-card p,
.visual-card p {
  color: var(--on-dark);
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  position: relative;
  z-index: 1;
}

.hero-stats div,
.visual-list div {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 14px;
}

.hero-stats strong,
.visual-list strong {
  display: block;
  color: var(--on-dark);
  font-size: 1.2rem;
}

.quick-cards,
.grid,
.feature-grid,
.zone-grid,
.info-board,
.faq,
.page-grid {
  display: grid;
  gap: 18px;
}

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

.card,
.zone-card,
.info-card,
.faq-item,
.category-pill,
.article-card {
  padding: 24px;
}

.category-pill {
  display: grid;
  gap: 10px;
  background: linear-gradient(135deg, var(--white), var(--theme-soft));
  transition: transform .2s ease, border-color .2s ease;
}

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

.category-number {
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--theme-dark);
}

.service-strip {
  padding: 28px;
  background: linear-gradient(135deg, var(--theme-soft), #ffffff);
}

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

.section-title {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.section-kicker {
  color: var(--theme);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 0.78rem;
  margin: 0 0 8px;
}

p {
  margin-top: 0;
}

.card p,
.zone-card p,
.info-card p,
.faq-item p,
.article-card p,
.notice p {
  color: var(--text-muted);
}

.card ul,
.article-card ul,
.notice ul,
.feature-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.text-link {
  color: var(--theme);
  font-weight: 800;
  display: inline-flex;
  margin-top: 8px;
}

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

.content-split {
  margin-top: 24px;
}

.content-split + .content-split {
  margin-top: 34px;
}

.visual-card {
  min-height: 280px;
}

.visual-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

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

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

.app-visual {
  text-align: center;
}

.app-visual img {
  max-height: 430px;
}

.security-section {
  background: var(--theme-soft);
  border-radius: 34px;
  padding: 28px;
  border: 1px solid var(--theme-border);
}

.notice {
  padding: 22px;
  background: linear-gradient(135deg, #ffffff, var(--theme-soft));
}

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

.page-hero {
  padding: 60px 0 34px;
  background:
    radial-gradient(circle at 88% 0%, rgba(39,55,107,0.16), transparent 36%),
    linear-gradient(135deg, #ffffff, var(--theme-soft));
}

.content-flow {
  display: grid;
  gap: 22px;
}

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

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

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

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

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

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

.footer-links h2 {
  color: var(--on-dark);
  font-size: 1rem;
  margin: 0 0 8px;
}

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

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

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 30px;
  padding-top: 22px;
  font-size: 0.92rem;
}

.age-mark {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 8px 12px;
}

@media (min-width: 768px) {
  .quick-cards,
  .zone-grid,
  .page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .app-layout,
  .security-layout,
  .content-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1024px) {
  .header-inner {
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    padding: 0 22px;
  }

  .logo {
    justify-self: auto;
  }

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

  .main-nav {
    display: flex;
  }

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

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  }

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

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

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

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

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

@media (max-width: 420px) {
  .header-inner {
    padding: 0 10px;
  }

  .main-btn {
    padding: 9px 13px;
    min-height: 38px;
    font-size: 0.9rem;
  }

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

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

  .section {
    padding: 42px 0;
  }
}
