:root {
    --blue-950: #071a33;
    --blue-900: #0b2447;
    --blue-800: #103866;
    --blue-700: #1557a6;
    --blue-500: #2388ff;
    --blue-200: #cfe6ff;
    --blue-100: #eef7ff;
    --text: #102033;
    --muted: #64748b;
    --white: #fff;
    --line: #dce8f5;
    --shadow: 0 24px 70px rgba(8,38,78,.14);
    --radius: 26px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter,system-ui,-apple-system,Segoe UI,sans-serif;
    color: var(--text);
    background: linear-gradient(180deg,#f6fbff 0%,#fff 42%,#f4f9ff 100%)
}

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

img {
    max-width: 100%;
    display: block
}

.site-header {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: min(1160px, calc(100% - 36px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 12px 18px;
    background: rgba(238, 246, 252, .88);
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    box-shadow: 0 18px 55px rgba(7,26,51,.16);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px)
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand strong {
    display: block;
    font-size: 18px;
    color: var(--blue-950)
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--blue-900);
    color: #fff;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14)
}

.brand-mark.center {
    margin: 0 auto 14px
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px
}

.main-nav a {
    padding: 11px 16px;
    border-radius: 999px;
    color: #17324f;
    font-weight: 800;
    font-size: 14px;
    transition: .18s ease
}

.main-nav a:hover,.main-nav a.is-active {
    background: var(--blue-900);
    color: #fff
}

.nav-toggle {
    display: none;
    border: 0;
    background: var(--blue-900);
    color: #fff;
    border-radius: 14px;
    padding: 10px 13px;
    font-size: 20px
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 54px;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 155px clamp(18px,5vw,82px) clamp(120px, 14vh, 170px);
    overflow: hidden;
    isolation: isolate
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3,20,44,.94) 0%, rgba(7,34,69,.84) 37%, rgba(9,43,76,.60) 62%, rgba(7,26,51,.36) 100%),
        linear-gradient(0deg, rgba(4,18,38,.74) 0%, rgba(4,18,38,.20) 46%, rgba(4,18,38,.06) 100%),
        url('../img/hero-background.webp') center/cover no-repeat;
    z-index: -2;
    pointer-events: none
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 28% 12%, rgba(35,136,255,.23), transparent 32%), radial-gradient(circle at 88% 72%, rgba(207,230,255,.16), transparent 32%);
    z-index: -1;
    pointer-events: none
}

.hero-content,.hero-card {
    position: relative
}

.hero-card {
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(238,246,252,.16);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 26px 80px rgba(0,0,0,.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px)
}

.hero-news-card {
    align-self: center;
    max-width: 455px;
    justify-self: center;
    color: #fff
}

.hero-news-card h2 {
    color: #fff;
    font-size: clamp(28px,3vw,42px);
    line-height: 1.05;
    letter-spacing: -.04em;
    margin: 20px 0 14px
}

.hero-news-card p {
    color: rgba(255,255,255,.82);
    font-size: 16px
}

.hero-news-card a {
    display: inline-flex;
    margin-top: 8px;
    color: #fff;
    font-weight: 900
}

.hero-logo-card {
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(135deg,var(--blue-800),var(--blue-500));
    color: #fff;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -.08em;
    box-shadow: 0 18px 50px rgba(35,136,255,.28);
    margin-bottom: 22px
}

.hero-card-label,
.hero-eyebrow {
    background: transparent;
    padding: 0;
    color: #d9b85d;
    border-radius: 0
}

.hero-outline {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.32);
    color: #fff
}


.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--blue-100);
    color: var(--blue-700);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em
}

.hero h1,.page-hero h1 {
    font-size: clamp(42px,7vw,86px);
    line-height: .93;
    margin: 22px 0 20px;
    color: var(--blue-950);
    letter-spacing: -.06em
}

.hero h1 {
    color: #fff;
    max-width: 760px;
    text-shadow: 0 12px 38px rgba(0,0,0,.24)
}

.hero p,.page-hero p,.section-heading p,.split-section p {
    font-size: 18px;
    line-height: 1.75;
    color: #486276;
    max-width: 680px
}

.hero p {
    color: rgba(255,255,255,.88)
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 32px 0
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
    font-size: 15px
}

.btn:hover {
    transform: translateY(-2px)
}

.btn-primary {
    background: linear-gradient(135deg,var(--blue-800),var(--blue-500));
    color: #fff;
    box-shadow: 0 14px 36px rgba(35,136,255,.27)
}

.btn-secondary {
    background: #fff;
    color: var(--blue-800);
    border: 1px solid var(--line)
}

.btn-light {
    background: #fff;
    color: var(--blue-900)
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    max-width: 560px
}

.hero-stats div {
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(12,42,75,.06);
    backdrop-filter: blur(12px)
}

.hero-stats strong {
    display: block;
    color: #fff;
    font-size: 22px
}

.hero-stats span {
    color: rgba(255,255,255,.76)
}

.hero-card img {
    width: 100%;
    border-radius: 32px
}

.floating-card {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 36px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 18px 48px rgba(8,38,78,.16)
}

.floating-card strong,.floating-card span {
    display: block
}

.floating-card span {
    color: var(--muted);
    margin-top: 4px
}

.section,.service-list,.contact-layout {
    padding: 70px clamp(18px,5vw,82px)
}

.section-heading {
    max-width: 780px;
    margin: 0 auto 36px;
    text-align: center
}

.section-heading.row {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: end;
    text-align: left;
    gap: 20px
}

.section-heading h2,.split-section h2,.cta-section h2,.service-block h2,.contact-info h2 {
    font-size: clamp(30px,4vw,52px);
    line-height: 1.04;
    letter-spacing: -.04em;
    color: var(--blue-950);
    margin: 14px 0
}

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

.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 14px 45px rgba(8,38,78,.08);
    transition: .18s ease
}

.feature-card:hover {
    transform: translateY(-5px)
}

.feature-card img {
    border-radius: 20px;
    background: var(--blue-100);
    aspect-ratio: 1.55;
    object-fit: cover
}

.feature-card h3 {
    font-size: 24px;
    color: var(--blue-950);
    margin: 18px 0 8px
}

.feature-card p {
    color: #587086;
    line-height: 1.65
}

.feature-card a {
    color: var(--blue-700);
    font-weight: 800
}

.split-section {
    margin: 30px clamp(18px,5vw,82px);
    padding: 42px;
    display: grid;
    grid-template-columns: 1fr .75fr;
    gap: 32px;
    align-items: center;
    background: linear-gradient(135deg,#fff,#eef7ff);
    border: 1px solid var(--line);
    border-radius: 34px;
    box-shadow: var(--shadow)
}

.blue-panel,.info-card {
    background: linear-gradient(135deg,var(--blue-900),var(--blue-700));
    color: #fff;
    border-radius: 28px;
    padding: 30px;
    min-height: 270px
}

.blue-panel h3,.info-card h3 {
    font-size: 28px;
    margin: 0 0 18px
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.pill-grid span {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.2);
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 700
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: grid;
    gap: 12px
}

.check-list li {
    position: relative;
    padding-left: 30px;
    color: #31516b;
    line-height: 1.55
}

.check-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--blue-500);
    font-weight: 900
}

.info-card .check-list li {
    color: #fff
}

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

.gallery-grid.large {
    grid-template-columns: repeat(4,1fr)
}

.gallery-item {
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: 24px;
    background: #dce8f5;
    min-height: 230px;
    box-shadow: 0 14px 40px rgba(8,38,78,.1)
}

.gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1.2;
    object-fit: cover;
    transition: .25s ease
}

.gallery-item:hover img {
    transform: scale(1.04)
}

.gallery-item figcaption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(7,26,51,.74);
    color: #fff;
    backdrop-filter: blur(14px)
}

.gallery-item span {
    display: block;
    opacity: .78;
    font-size: 13px;
    margin-top: 4px
}

.empty-state {
    text-align: center;
    border: 1px dashed #a9c7e8;
    background: #fff;
    border-radius: 24px;
    padding: 44px
}

.cta-section {
    margin: 60px clamp(18px,5vw,82px) 80px;
    padding: 54px 28px;
    text-align: center;
    border-radius: 34px;
    background: linear-gradient(135deg,var(--blue-900),var(--blue-500));
    color: #fff;
    box-shadow: 0 24px 65px rgba(35,136,255,.22)
}

.cta-section.compact {
    margin-top: 10px
}

.cta-section span {
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .8
}

.cta-section h2 {
    color: #fff;
    margin: 12px auto 24px;
    max-width: 780px
}

.page-hero.small {
    padding: 150px clamp(18px,5vw,82px) 40px;
    text-align: center
}

.page-hero.small p {
    margin-left: auto;
    margin-right: auto
}

.service-list {
    display: grid;
    gap: 26px
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 32px;
    padding: 28px;
    box-shadow: 0 16px 48px rgba(8,38,78,.08)
}

.service-block.reverse {
    grid-template-columns: 360px 1fr
}

.service-block.reverse div {
    order: 2
}

.service-block img {
    border-radius: 24px;
    background: var(--blue-100)
}

.service-number {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--blue-100);
    color: var(--blue-700);
    font-weight: 900
}

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 28px
}

.filter-bar a {
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 800;
    color: #385774
}

.filter-bar a.active,.filter-bar a:hover {
    background: var(--blue-900);
    color: #fff
}

.contact-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 26px;
    align-items: start
}

.contact-info,.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 16px 48px rgba(8,38,78,.08)
}

.contact-card {
    margin-top: 16px;
    padding: 18px;
    border-radius: 20px;
    background: var(--blue-100)
}

.contact-card strong,.contact-card a {
    display: block
}

.contact-card a {
    color: var(--blue-700);
    font-weight: 800;
    margin-top: 4px
}

.form-card,.admin-form {
    display: grid;
    gap: 16px
}

label {
    font-weight: 800;
    color: #24415c;
    display: grid;
    gap: 8px
}

input,textarea,select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 15px;
    font: inherit;
    background: #f8fbff;
    color: var(--text);
    outline: none
}

input:focus,textarea:focus,select:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(35,136,255,.12)
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800
}

.alert.success {
    background: #e8fff3;
    color: #137243
}

.alert.error {
    background: #fff1f1;
    color: #a12020
}

.site-footer {
    background: var(--blue-950);
    color: #d9e7f6;
    padding: 52px clamp(18px,5vw,82px) 24px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .8fr;
    gap: 30px
}

.footer-brand {
    font-size: 24px;
    font-weight: 900;
    color: #fff
}

.site-footer a {
    display: block;
    color: #fff;
    margin: 7px 0
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 34px;
    padding-top: 20px;
    color: #91a6bb
}

.admin-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 22px;
    background: radial-gradient(circle at top,var(--blue-500),transparent 32%),var(--blue-950)
}

.login-card {
    width: min(430px,100%);
    display: grid;
    gap: 14px;
    background: #fff;
    border-radius: 30px;
    padding: 32px;
    box-shadow: 0 25px 80px rgba(0,0,0,.25);
    text-align: center
}

.login-card h1 {
    margin: 0;
    color: var(--blue-950)
}

.admin-back {
    color: var(--blue-700);
    font-weight: 800
}

.admin-body {
    min-height: 100vh;
    background: #f4f9ff;
    display: grid;
    grid-template-columns: 280px 1fr
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--blue-950);
    color: #fff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.admin-sidebar .brand {
    margin-bottom: 24px
}

.admin-sidebar .brand small {
    color: #9db4ca
}

.admin-sidebar a {
    padding: 13px 14px;
    border-radius: 16px;
    color: #d9e7f6;
    font-weight: 800
}

.admin-sidebar a:hover,.admin-sidebar a.is-active {
    background: rgba(255,255,255,.12);
    color: #fff
}

.admin-main {
    padding: 34px;
    min-width: 0
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px
}

.admin-top h1 {
    font-size: 42px;
    margin: 0;
    color: var(--blue-950)
}

.admin-top p {
    color: var(--muted);
    margin: 8px 0 0
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    margin-bottom: 20px
}

.admin-stats div,.admin-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 12px 36px rgba(8,38,78,.07)
}

.admin-stats strong {
    display: block;
    font-size: 38px;
    color: var(--blue-800)
}

.admin-stats span {
    color: var(--muted);
    font-weight: 800
}

.table-wrap {
    overflow: auto
}

table {
    width: 100%;
    border-collapse: collapse
}

th,td {
    text-align: left;
    padding: 13px;
    border-bottom: 1px solid var(--line)
}

th {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase
}

.admin-gallery-list {
    display: grid;
    gap: 12px
}

.admin-gallery-list article {
    display: grid;
    grid-template-columns: 86px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px
}

.admin-gallery-list img {
    width: 86px;
    height: 64px;
    object-fit: cover;
    border-radius: 14px
}

.admin-gallery-list span {
    display: block;
    color: var(--muted);
    font-size: 13px
}

.delete-link {
    color: #b42318!important;
    font-weight: 900
}

.message-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 14px
}

.message-card div {
    display: flex;
    justify-content: space-between;
    gap: 12px
}

.message-card div span,.message-card footer {
    color: var(--muted);
    font-size: 14px
}

.message-card p {
    line-height: 1.65
}

@media(max-width: 980px) {
    .hero,.split-section,.contact-layout,.service-block,.service-block.reverse {
        grid-template-columns:1fr
    }

    .service-block.reverse div {
        order: 0
    }

    .cards.three,.gallery-grid,.gallery-grid.large,.footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .admin-body {
        grid-template-columns: 1fr
    }

    .admin-sidebar {
        position: relative;
        height: auto
    }

    .admin-stats {
        grid-template-columns: 1fr
    }
}

@media(max-width: 720px) {
    .main-nav {
        display:none;
        position: absolute;
        left: 0;
        right: 0;
        top: 74px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 22px;
        padding: 12px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch
    }

    .main-nav.open {
        display: flex
    }

    .nav-toggle {
        display: block
    }

    .hero {
        padding-top: 120px;
        min-height: auto
    }

    .hero-news-card {
        justify-self: stretch;
        max-width: none
    }

    .hero-stats,.cards.three,.gallery-grid,.gallery-grid.large,.footer-grid {
        grid-template-columns: 1fr
    }

    .hero h1,.page-hero h1 {
        font-size: 44px
    }

    .section-heading.row,.admin-top {
        display: block
    }

    .split-section {
        padding: 26px
    }

    .admin-main {
        padding: 18px
    }

    .admin-gallery-list article {
        grid-template-columns: 74px 1fr
    }

    .admin-gallery-list .delete-link {
        grid-column: 1/-1
    }

    .site-header {
        width: calc(100% - 24px);
        top: 12px;
        padding: 10px 12px
    }

    .brand small {
        display: none
    }
}
