:root {
    --primary: #0072bc;
    --primary-dark: #005d9c;
    --secondary: #10aee5;
    --sky: #e9f7ff;
    --text: #17324d;
    --muted: #64748b;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(0, 76, 130, 0.14);
    --radius: 28px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(16, 174, 229, .18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(0, 114, 188, .13), transparent 30%),
        #f7fbff;
}

body.home-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.home-container {
    width: min(1180px, calc(100% - 32px));
    padding: 44px 0;
    text-align: center;
}

.home-title {
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    line-height: 1;
    color: var(--primary);
    margin: 0 0 14px;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.home-subtitle {
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: 48px;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 6vw, 86px);
    align-items: stretch;
}

.home-card {
    position: relative;
    min-height: 440px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: translateY(0);
    transition: .35s ease;
    background: #dff3ff;
    isolation: isolate;
}

.home-card:hover {
    transform: translateY(-12px) scale(1.015);
    box-shadow: 0 24px 60px rgba(0, 91, 153, 0.22);
}

.home-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .6s ease;
}

.home-card:hover img { transform: scale(1.08); }

.home-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 58, 105, .72));
    z-index: 1;
}

.home-card-content {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    color: white;
    text-align: left;
}

.home-card-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--primary);
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

.home-card-desc {
    margin: 14px 0 0;
    font-weight: 600;
    line-height: 1.35;
    text-shadow: 0 2px 8px rgba(0,0,0,.28);
}

.top-header {
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 114, 188, .08);
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    color: var(--primary);
}

.logo img {
    height: 46px;
    max-width: 220px;
    object-fit: contain;
}

.back-link {
    color: var(--primary);
    font-weight: 800;
    padding: 10px 16px;
    border: 1px solid rgba(0,114,188,.18);
    border-radius: 999px;
    background: white;
    transition: .25s ease;
}

.back-link:hover { background: var(--primary); color: white; }

.hero {
    margin: 38px 0 32px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 28px;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 34px;
    padding: clamp(28px, 5vw, 54px);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    top: -90px;
    right: -70px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -1px;
}

.hero p {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    opacity: .92;
}

.hero-image {
    height: 250px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0,0,0,.22);
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-title {
    text-align: center;
    color: var(--primary);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin: 46px 0 24px;
    font-weight: 900;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    background: rgba(255,255,255,.9);
    border: 1px solid rgba(0, 114, 188, .1);
    border-radius: 26px;
    min-height: 190px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 76, 130, .08);
    transition: .3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: .3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(0, 76, 130, .14);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: var(--sky);
    margin-bottom: 18px;
    border: 1px solid rgba(16,174,229,.28);
}

.service-icon img {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}

.service-card h2 {
    color: var(--primary);
    font-size: 1.35rem;
    margin: 0;
}

.info-section {
    margin: 48px 0 60px;
    padding: 34px;
    background: white;
    border-radius: 30px;
    box-shadow: var(--shadow);
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.info-card {
    padding: 24px;
    border: 1px solid rgba(0, 114, 188, .12);
    border-radius: 22px;
    background: #fbfdff;
}

.info-card strong {
    display: block;
    color: var(--primary);
    margin-bottom: 14px;
    font-size: 1.05rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 900;
    transition: .25s ease;
}

.btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

.app-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 360px));
    gap: 22px;
    justify-content: center;
    margin-bottom: 62px;
}

.app-card {
    background: white;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .3s ease;
    border: 1px solid rgba(0,114,188,.1);
}

.app-card:hover { transform: translateY(-8px); }

.app-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.app-card span {
    display: block;
    padding: 16px;
    color: var(--primary);
    font-weight: 900;
    text-align: center;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate { animation: fadeUp .7s ease both; }

@media (max-width: 900px) {
    .access-grid,
    .service-grid,
    .hero,
    .info-grid { grid-template-columns: 1fr; }

    .home-card { min-height: 310px; }
    .hero-image { height: 210px; }
}

@media (max-width: 560px) {
    .header-inner { flex-direction: column; gap: 12px; }
    .service-grid { gap: 16px; }
    .app-grid { grid-template-columns: 1fr; }
    .info-section { padding: 24px 18px; }
}

.home-logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 45px;
}

.home-logo {
    width: min(420px, 85%);
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 90, 150, 0.14));
}