:root {
    --navy: #062a4a;
    --blue: #137dc0;
    --sky: #e9f6fd;
    --ink: #102033;
    --muted: #637282;
    --line: #dce7ef;
    --panel: #ffffff;
    --aqua: #35b6d8;
    --shadow: 0 18px 48px rgba(6, 42, 74, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--ink);
    background: #f8fbfd;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 64px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(220, 231, 239, 0.9);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    color: var(--navy);
    font-size: 1rem;
    line-height: 1.15;
}

.brand small {
    color: var(--muted);
    font-size: 0.76rem;
    margin-top: 3px;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 8px;
    color: #2a4055;
    font-weight: 700;
    font-size: 0.94rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--blue);
    background: var(--sky);
}

.header-call,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 800;
}

.header-call,
.btn.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    box-shadow: 0 12px 28px rgba(19, 125, 192, 0.24);
}

.btn.secondary {
    color: var(--navy);
    background: #fff;
    border-color: var(--line);
}

.btn.danger {
    color: #fff;
    background: #bf2b2b;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--navy);
}

.hero,
.page-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    align-items: center;
    gap: clamp(28px, 5vw, 70px);
    min-height: calc(100vh - 86px);
    padding: clamp(54px, 8vw, 96px) clamp(20px, 6vw, 84px) 56px;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(53, 182, 216, 0.18), transparent 32%),
        linear-gradient(130deg, #ffffff 0%, #eef8fc 48%, #dff1f8 100%);
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 520px;
    height: 520px;
    border: 58px solid rgba(19, 125, 192, 0.09);
    border-radius: 50%;
}

.hero-copy,
.hero-media,
.page-hero > * {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 900px;
    color: var(--navy);
    font-size: clamp(2.6rem, 6vw, 6.9rem);
    line-height: 0.96;
    letter-spacing: 0;
    margin-bottom: 22px;
}

h2 {
    color: var(--navy);
    font-size: clamp(1.75rem, 3vw, 3rem);
    line-height: 1.06;
    letter-spacing: 0;
    margin-bottom: 16px;
}

h3 {
    color: var(--navy);
    letter-spacing: 0;
}

.lead,
.page-hero p,
.split p,
.cta-section p {
    color: #42576a;
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 720px;
}

.hero-stats span {
    min-height: 90px;
    padding: 16px;
    border: 1px solid rgba(19, 125, 192, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
}

.hero-stats strong {
    display: block;
    color: var(--blue);
    font-size: 1.7rem;
    margin-bottom: 4px;
}

.hero-media {
    padding: 28px;
    border: 1px solid rgba(19, 125, 192, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    animation: floatLogo 5.8s ease-in-out infinite;
}

.hero-media img {
    width: min(520px, 100%);
    margin: auto;
}

.section {
    padding: clamp(56px, 7vw, 96px) clamp(20px, 6vw, 84px);
}

.trust-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    padding-top: 0;
    padding-bottom: 0;
    background: var(--navy);
}

.trust-band p {
    margin: 0;
    padding: 24px 18px;
    color: #fff;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #08365f, #0c75ad);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mini-card,
.values article,
.process-grid article,
.service-card,
.contact-card,
.contact-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 12px 32px rgba(6, 42, 74, 0.07);
}

.mini-card {
    min-height: 144px;
    padding: 22px;
}

.mini-card span {
    display: block;
    width: 42px;
    height: 4px;
    margin-bottom: 22px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), var(--aqua));
}

.mini-card h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.38;
}

.text-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--blue);
    font-weight: 800;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 28px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery figure {
    position: relative;
    min-height: 340px;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--navy);
    box-shadow: var(--shadow);
}

.gallery img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.gallery figure:hover img {
    transform: scale(1.06);
}

.gallery figcaption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #fff;
    font-weight: 800;
    background: rgba(6, 42, 74, 0.82);
}

.brand-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fff, #d9f2fb) !important;
}

.brand-panel img {
    width: 70%;
    height: auto;
    min-height: 0;
    object-fit: contain;
}

.gallery-page {
    padding-top: 56px;
}

.gallery-list {
    margin-bottom: 32px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--navy);
    font-weight: 900;
    background: #fff;
}

.pagination a.active,
.pagination a:hover {
    color: #fff;
    border-color: var(--blue);
    background: var(--blue);
}

.cta-section {
    margin: 0 clamp(20px, 6vw, 84px) clamp(56px, 7vw, 96px);
    padding: clamp(34px, 5vw, 58px);
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(6, 42, 74, 0.96), rgba(19, 125, 192, 0.9)),
        url("../images/brand-card-crop.jpg") center/cover;
    box-shadow: var(--shadow);
}

.cta-section h2,
.cta-section p {
    color: #fff;
}

.page-hero.compact {
    display: block;
    min-height: auto;
    padding-bottom: 70px;
}

.page-hero.compact h1 {
    font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.page-hero.compact p {
    max-width: 880px;
}

.about-logo {
    width: min(520px, 100%);
    margin: auto;
    padding: 28px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.check-list span,
.quick-services span {
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--navy);
    font-weight: 800;
    background: var(--sky);
}

.values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-top: 0;
}

.values article,
.process-grid article {
    padding: 26px;
}

.values p,
.process-grid p,
.service-card p {
    color: var(--muted);
    line-height: 1.65;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    min-height: 250px;
    padding: 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.service-card span,
.process-grid strong {
    display: inline-flex;
    color: var(--blue);
    font-weight: 900;
    margin-bottom: 18px;
}

.service-card h2 {
    font-size: 1.35rem;
    line-height: 1.22;
}

.process {
    padding-top: 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: start;
}

.contact-card,
.contact-form {
    padding: clamp(24px, 4vw, 38px);
}

.phone-link {
    display: block;
    width: fit-content;
    margin: 14px 0;
    color: var(--blue);
    font-size: 1.4rem;
    font-weight: 900;
}

.quick-services {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(19, 125, 192, 0.14);
    border-color: var(--blue);
}

.alert {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.alert.success {
    color: #126035;
    background: #e7f8ef;
}

.alert.error {
    color: #8f1d1d;
    background: #ffebeb;
}

.map-section {
    padding: 0 clamp(20px, 6vw, 84px) clamp(64px, 8vw, 104px);
}

.map-note {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--muted);
}

.map-note strong {
    color: var(--navy);
}

.map-section iframe {
    width: 100%;
    height: 430px;
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.site-footer {
    display: grid;
    grid-template-columns: 1.1fr 0.7fr 1.2fr;
    gap: 28px;
    padding: 42px clamp(20px, 6vw, 84px);
    color: #d8e8f5;
    background: var(--navy);
}

.site-footer img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    padding: 6px;
    border-radius: 8px;
    background: #fff;
}

.site-footer p,
.site-footer span,
.site-footer a {
    display: block;
    margin: 8px 0 0;
    color: #d8e8f5;
    line-height: 1.55;
}

.site-footer strong,
.site-footer div:first-child p {
    color: #fff;
    font-weight: 900;
}

.admin-body {
    min-height: 100vh;
    background: #eef5f9;
}

.admin-login {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.admin-login .contact-form {
    width: min(440px, 100%);
}

.admin-login h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 6px;
}

.admin-login-logo {
    width: 94px;
    height: 94px;
    object-fit: contain;
    margin-bottom: 10px;
}

.admin-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 48px);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.admin-nav a {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--navy);
    font-weight: 800;
}

.admin-nav a.active,
.admin-nav a:hover {
    color: var(--blue);
    background: var(--sky);
}

.admin-main {
    padding: clamp(24px, 5vw, 54px);
}

.admin-title {
    margin-bottom: 24px;
}

.admin-title h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 10px;
}

.admin-title p,
.empty-state {
    color: var(--muted);
    line-height: 1.65;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.admin-stats article,
.admin-panel,
.admin-gallery-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(6, 42, 74, 0.07);
}

.admin-stats article {
    padding: 26px;
}

.admin-stats strong {
    display: block;
    color: var(--blue);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 8px;
}

.admin-stats span {
    color: var(--muted);
    font-weight: 800;
}

.admin-panel {
    padding: clamp(20px, 4vw, 30px);
    margin-bottom: 24px;
}

.admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-panel-head h2,
.admin-gallery-card h2 {
    font-size: 1.25rem;
    margin: 0;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--navy);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0;
    background: var(--sky);
}

.admin-table td {
    color: #34495d;
    line-height: 1.45;
}

.admin-table.wide {
    min-width: 1050px;
}

.admin-upload-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
    align-items: end;
    gap: 16px;
}

.admin-upload-form label {
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-gallery-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    overflow: hidden;
}

.admin-gallery-card img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
}

.admin-gallery-card div {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 18px;
}

.admin-gallery-card p {
    margin: 0;
    color: var(--muted);
}

.admin-gallery-card .btn {
    min-height: 40px;
}

.admin-pagination {
    justify-content: flex-start;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatLogo {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@media (max-width: 980px) {
    .site-header {
        flex-wrap: wrap;
    }

    .header-call {
        margin-left: auto;
    }

    .hero,
    .split,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-media {
        max-width: 560px;
    }

    .trust-band,
    .gallery,
    .values,
    .services-list,
    .process-grid,
    .admin-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-upload-form,
    .admin-gallery-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .site-header {
        gap: 12px;
    }

    .brand {
        min-width: 0;
        flex: 1;
    }

    .brand img {
        width: 48px;
        height: 48px;
    }

    .brand strong {
        font-size: 0.9rem;
    }

    .brand small,
    .header-call {
        display: none;
    }

    .nav-toggle {
        display: inline-block;
    }

    .main-nav {
        display: none;
        order: 3;
        flex-basis: 100%;
        flex-direction: column;
        padding-top: 12px;
    }

    .main-nav.open {
        display: flex;
    }

    h1 {
        font-size: clamp(2.35rem, 14vw, 4rem);
    }

    .hero-stats,
    .service-grid,
    .trust-band,
    .gallery,
    .values,
    .services-list,
    .process-grid,
    .check-list,
    .site-footer,
    .admin-stats,
    .admin-gallery-grid {
        grid-template-columns: 1fr;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-nav {
        justify-content: flex-start;
        margin-left: 0;
    }

    .hero-media {
        padding: 16px;
    }

    .gallery figure,
    .gallery img {
        min-height: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
