:root {
    --bs-primary: #0f4c81;
    --bs-secondary: #081a2c;
    --bs-light: #f4f7fb;
    --bs-body-color: #5a6573;
    --accent: #f2b138;
    --surface: #ffffff;
    --surface-soft: #f6f8fc;
    --border-color: rgba(15, 76, 129, 0.12);
    --shadow-soft: 0 18px 55px rgba(8, 26, 44, 0.08);
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--bs-body-color);
    background: #ffffff;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar {
    font-family: 'Space Grotesk', sans-serif;
}

a {
    text-decoration: none;
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.btn {
    border-radius: 14px;
    font-weight: 700;
    transition: .35s;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--bs-primary), #1663a4);
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(15, 76, 129, 0.24);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background: linear-gradient(135deg, #0d436f, #13568d);
    border-color: transparent;
}

.btn-secondary {
    color: #fff;
    background: var(--bs-secondary);
    border-color: var(--bs-secondary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: #fff;
    background: #112944;
    border-color: #112944;
}

.btn-outline-light {
    border-width: 2px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 52px;
    height: 52px;
}

.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 20px 0;
    font-size: 17px;
}

.navbar-brand h1 {
.navbar-brand h1,
.navbar-brand h2 {
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: -.03em;
    color: #fff;
}

.navbar .navbar-nav .nav-link {
    margin-left: 28px;
    padding: 0;
    color: rgba(255, 255, 255, 0.82);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #fff;
}

@media (max-width: 991.98px) {
    .sticky-top {
        background: var(--bs-secondary);
    }

    .navbar {
        padding: 18px 0;
    }

    .navbar .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }

    .navbar-brand h1,
    .navbar-brand h2 {
        font-size: 1.35rem;
    }
}

.hero-header {
    position: relative;
    margin-top: -105px;
    padding-top: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(8, 26, 44, 0.96), rgba(15, 76, 129, 0.88));
}

.hero-header::before {
    position: absolute;
    content: "";
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(242, 177, 56, 0.25), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 24%),
        url(../img/hero-header-bg.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    animation: animateUpDown 8s ease infinite;
    z-index: -1;
}

.page-hero {
    padding-bottom: 3rem;
}

@keyframes animateUpDown {
    0% {
        transform: translate3d(0, 0, 0);
    }

    25% {
        transform: translate3d(12px, -12px, 0);
    }

    50% {
        transform: translate3d(20px, 0, 0);
    }

    75% {
        transform: translate3d(12px, 12px, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

.hero-copy,
.hero-header p,
.hero-header .breadcrumb-item,
.hero-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.82);
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.55);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .65rem 1rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(15, 76, 129, 0.08);
    color: var(--bs-primary);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-badge-light {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.section-title {
    color: var(--bs-secondary);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.display-3,
.display-4 {
    color: #fff;
    letter-spacing: -.05em;
    line-height: 1.05;
}

.section-copy {
    font-size: 1.06rem;
}

.hero-visual {
    position: relative;
    padding: 2rem;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 60px rgba(6, 18, 31, 0.28);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.15rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.hero-stat strong {
    font-size: 1rem;
}

.hero-stat span {
    font-size: .9rem;
    color: rgba(255, 255, 255, 0.72);
}

.image-frame {
    position: relative;
    padding: 1rem;
    border-radius: 28px;
    background: linear-gradient(180deg, #fff, #f7f9fc);
    box-shadow: var(--shadow-soft);
}

.image-frame img {
    border-radius: 22px;
}

.faq-item {
    height: 100%;
    padding: 1.75rem;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.faq-item h3 {
    margin-bottom: 1rem;
    color: var(--bs-secondary);
    font-size: 1.2rem;
}

.info-card,
.metric-card,
.project-card,
.process-step,
.legal-card,
.contact-panel,
.form-panel,
.cta-panel,
.benefit-card,
.service-item {
    background: var(--surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.info-card {
    height: 100%;
    padding: 1.1rem 1.2rem;
    border-radius: 18px;
    font-weight: 600;
    color: var(--bs-secondary);
}

.service-item {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    transition: .35s;
}

.service-item::before {
    position: absolute;
    content: "";
    inset: 0;
    background: linear-gradient(160deg, rgba(15, 76, 129, 0.05), transparent 55%);
    pointer-events: none;
}

.service-item:hover {
    transform: translateY(-8px);
}

.service-icon {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    box-shadow: 0 15px 35px rgba(15, 76, 129, 0.22);
}

.benefit-card {
    height: 100%;
    padding: 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
}

.benefit-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1.2rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.25rem;
}

.benefit-card h4 {
    color: #fff;
    margin-bottom: .8rem;
}

.project-card {
    padding: 2rem;
    border-radius: 24px;
    transition: .35s;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(15, 76, 129, 0.25);
}

.project-tag {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: rgba(242, 177, 56, 0.16);
    color: #9c6a06;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.bg-light-subtle {
    background: linear-gradient(180deg, #f8fbff, #f3f7fc);
}

.process-step {
    height: 100%;
    padding: 1.75rem;
    border-radius: 24px;
}

.process-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: rgba(15, 76, 129, 0.1);
    color: var(--bs-primary);
    font-weight: 800;
    font-size: 1.05rem;
}

.metric-card {
    padding: 1.75rem;
    border-radius: 24px;
}

.metric-card strong {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1.8rem;
    line-height: 1;
}

.cta-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2.2rem;
    border-radius: 30px;
    background: linear-gradient(135deg, #ffffff, #f4f8fd);
}

.contact-panel,
.form-panel,
.legal-card {
    padding: 2rem;
    border-radius: 28px;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(8, 26, 44, 0.08);
}

.contact-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contact-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(15, 76, 129, 0.08);
    color: var(--bs-primary);
}

.contact-item strong,
.project-card h4,
.process-step h5,
.metric-card h5 {
    color: var(--bs-secondary);
}

.form-control {
    border-radius: 18px;
    border: 1px solid rgba(8, 26, 44, 0.1);
    padding-left: 1.15rem;
}

.form-floating>.form-control,
.form-floating>.form-select {
    height: calc(3.9rem + 2px);
}

.form-floating>label {
    color: #7b8795;
}

.form-note {
    font-size: .92rem;
    color: #6d7784;
}

.form-feedback {
    min-height: 1.5rem;
    font-size: .95rem;
    font-weight: 700;
}

.form-feedback.is-success {
    color: #177245;
}

.form-feedback.is-error {
    color: #b42318;
}

.service-list a.btn-light {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(15, 76, 129, 0.12);
    box-shadow: var(--shadow-soft);
}

.service-list a.btn-light:hover {
    color: #fff !important;
    background: var(--bs-primary);
}

.service-list a.btn-light i {
    color: var(--bs-primary);
    transition: .35s;
}

.service-list a.btn-light:hover i {
    color: #fff;
}

.footer {
    background: linear-gradient(180deg, #081a2c, #061220) !important;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .56);
    font-weight: 500;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: #fff;
    letter-spacing: .02em;
    box-shadow: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer .copyright a {
    color: rgba(255, 255, 255, .65);
}

.footer .copyright a:hover {
    color: #fff;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

@media (max-width: 991.98px) {
    .hero-header {
        padding-top: 150px;
    }

    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-header::before {
        animation: none;
    }
}

@media (max-width: 767.98px) {
    .back-to-top {
        right: 20px;
        bottom: 20px;
    }

    .hero-visual,
    .cta-panel,
    .contact-panel,
    .form-panel,
    .legal-card,
    .service-item,
    .project-card,
    .process-step,
    .benefit-card {
        border-radius: 22px;
    }

    .section-title {
        font-size: 1.9rem;
    }
}
