:root {
    --theme: #27376b;
    --theme-dark: #1d2a56;
    --theme-deep: #111a3a;
    --theme-light: #eef2fb;
    --theme-soft: #f8faff;
    --theme-hover: #314584;
    --theme-border: rgba(39, 55, 107, 0.18);
    --text-main: #172033;
    --text-muted: #5a637a;
    --on-theme: #ffffff;
    --on-dark: #f6f8ff;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(17, 26, 58, 0.14);
}

* {
    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 {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 1rem;
}

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

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

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 72px;
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
}

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

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

.logo img {
    max-height: 46px;
}

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

.main-nav a {
    color: var(--on-dark);
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .22s ease, box-shadow .22s ease, transform .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);
    transform: translateY(-1px);
}

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

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

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

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

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

.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: 24px 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(0,0,0,0.56);
    transition: opacity .25s ease, visibility .25s 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;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}

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

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 14px;
}

.mobile-nav a {
    color: var(--on-dark);
    padding: 13px 14px;
    border-radius: 14px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

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

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

.section {
    padding: 64px 0;
}

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

.hero-section {
    padding: 72px 0 52px;
    background: radial-gradient(circle at 18% 20%, rgba(39,55,107,0.18), transparent 30%), linear-gradient(135deg, var(--theme-soft), var(--theme-light));
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

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

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

h1 {
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    margin: 20px 0;
    letter-spacing: -0.02em;
}

h2,
.section-title {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.18;
    margin: 0 0 18px;
}

h3 {
    font-size: 21px;
    line-height: 1.25;
    margin: 0 0 12px;
}

.lead {
    font-size: 17px;
    color: var(--text-main);
    max-width: 760px;
}

.muted {
    color: var(--text-muted);
}

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

.hero-card,
.visual-card {
    background: linear-gradient(145deg, var(--white), var(--theme-soft));
    border: 1px solid var(--theme-border);
    box-shadow: var(--shadow-soft);
    border-radius: 28px;
    padding: 28px;
}

.hero-card .stat {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid var(--theme-border);
}

.hero-card .stat:last-child {
    border-bottom: 0;
}

.stat-number,
.category-number,
.service-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(39,55,107,0.1);
    color: var(--theme-dark);
    font-weight: 900;
}

.hero-mini-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
}

.card,
.zone-card,
.info-card,
.faq-item,
.notice {
    background: var(--white);
    color: var(--text-main);
    border: 1px solid var(--theme-border);
    box-shadow: var(--shadow-soft);
    border-radius: 24px;
    padding: 24px;
}

.card.soft,
.info-card.soft,
.zone-card.soft {
    background: var(--theme-soft);
}

.category-pills,
.grid,
.feature-grid,
.zone-grid,
.info-board,
.quick-grid,
.service-grid,
.faq {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.category-pill {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid var(--theme-border);
    background: linear-gradient(135deg, var(--white), var(--theme-soft));
    box-shadow: var(--shadow-soft);
    transition: transform .22s ease, border-color .22s ease;
}

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

.category-pill h3,
.category-pill p {
    margin: 0 0 8px;
}

.service-strip {
    background: var(--theme-soft);
    border: 1px solid var(--theme-border);
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--shadow-soft);
}

.content-split,
.app-section,
.security-section,
.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: center;
}

.split-block {
    padding: 34px 0;
}

.visual-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    background: radial-gradient(circle at 20% 20%, rgba(39,55,107,0.22), transparent 36%), linear-gradient(145deg, var(--white), var(--theme-soft));
}

.visual-points {
    display: grid;
    gap: 12px;
}

.visual-points span,
.check-list li,
.point-list li {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(39,55,107,0.08);
    border: 1px solid var(--theme-border);
}

.check-list,
.point-list {
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.app-section {
    background: linear-gradient(135deg, rgba(39,55,107,0.08), var(--theme-soft));
    border: 1px solid var(--theme-border);
    border-radius: 30px;
    padding: 26px;
    box-shadow: var(--shadow-soft);
}

.app-section img,
.content-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 {
    align-items: start;
}

.faq-item summary {
    cursor: pointer;
    color: var(--theme-dark);
    font-size: 18px;
    font-weight: 800;
}

.faq-item p {
    margin-top: 14px;
}

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

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

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

.page-hero {
    padding: 62px 0 44px;
    background: linear-gradient(135deg, var(--theme-soft), var(--theme-light));
    border-bottom: 1px solid var(--theme-border);
}

.article-card p {
    margin-bottom: 1.05rem;
}

.side-card {
    align-self: start;
}

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

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

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

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.footer-brand p,
.footer-notice p {
    color: rgba(246,248,255,0.86);
}

.footer-brand img {
    max-height: 48px;
    margin-bottom: 18px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

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

.footer-notice {
    border-top: 1px solid rgba(255,255,255,0.14);
    margin-top: 32px;
    padding-top: 22px;
    font-size: 14px;
}

@media (min-width: 768px) {
    .hero-mini-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-pills,
    .grid,
    .zone-grid,
    .quick-grid,
    .service-grid,
    .faq {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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

    .logo {
        justify-self: auto;
        flex: 0 0 auto;
    }

    .main-nav {
        display: flex;
        flex: 1;
        justify-content: center;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    }

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

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

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

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

    .content-split,
    .app-section,
    .security-section,
    .article-layout {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 480px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .header-inner {
        min-height: 66px;
        padding: 0 10px;
        gap: 8px;
    }

    .main-btn {
        min-height: 38px;
        padding: 0 13px;
        font-size: 14px;
    }

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

    .section {
        padding: 46px 0;
    }

    .hero-section {
        padding: 52px 0 42px;
    }

    .card,
    .zone-card,
    .info-card,
    .faq-item,
    .notice,
    .service-strip {
        padding: 20px;
        border-radius: 20px;
    }
}
