:root {
    --bg: #f8f7ff;
    --surface: #ffffff;
    --ink: #3a3a3a;
    --muted: #727272;
    --line: #e4e1ff;
    --primary: #5f39ff;
    --primary-dark: #4171a8;
    --secondary: #ab3896;
    --fresh: #20d9a1;
    --soft: #eeecff;
    --soft-green: #d4fff2;
    --dark: #070337;
    --shadow: 0 20px 70px rgba(58, 58, 58, 0.13);
    --button-shadow: 0 14px 34px rgba(95, 57, 255, 0.28);
    --button-shadow-hover: 0 20px 44px rgba(171, 56, 150, 0.3);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 4% 0%, rgba(95, 57, 255, 0.17), transparent 32rem),
        radial-gradient(circle at 95% 12%, rgba(32, 217, 161, 0.18), transparent 28rem),
        var(--bg);
    font-family: "Nunito Sans", system-ui, sans-serif;
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 18px;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    width: min(1160px, calc(100% - 28px));
    min-height: 76px;
    align-items: center;
    margin: 18px auto 0;
    padding: 10px 12px 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 55px rgba(7, 3, 55, 0.1);
    backdrop-filter: blur(22px);
}

.brand img {
    width: 138px;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.site-nav a {
    padding: 11px 13px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 800;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: var(--soft);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.header-cta {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px 18px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
        linear-gradient(135deg, var(--primary), var(--secondary));
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--button-shadow);
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--button-shadow-hover);
    filter: saturate(1.08);
}

.nav-toggle {
    display: none;
}

.section,
.section-band {
    width: min(1160px, calc(100% - 28px));
    margin: 0 auto;
}

.section[id] {
    scroll-margin-top: 75px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
    gap: 40px;
    align-items: center;
    min-height: calc(100vh - 110px);
    padding: 86px 0 112px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--secondary);
    font-size: 0.83rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 22px;
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: 0.92;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.lead {
    max-width: 640px;
    color: var(--muted);
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 900;
    text-decoration: none;
    isolation: isolate;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, color 220ms ease;
}

.button::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: 7px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 48%);
    opacity: 0.85;
}

.button::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -35%;
    width: 42%;
    height: 220%;
    z-index: -1;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    transform: rotate(20deg) translateX(-150%);
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button:hover::after,
.button:focus-visible::after {
    transform: rotate(20deg) translateX(360%);
}

.button.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: var(--button-shadow);
}

.button.ghost {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 12px 26px rgba(7, 3, 55, 0.06);
}

.button.primary:hover,
.button.primary:focus-visible {
    box-shadow: var(--button-shadow-hover);
    color: #fff;
}

.button.ghost:hover,
.button.ghost:focus-visible {
    border-color: rgba(95, 57, 255, 0.35);
    color: var(--secondary);
    box-shadow: 0 18px 36px rgba(7, 3, 55, 0.1);
}

.hero-media {
    position: relative;
}

.hero-media img,
.split-media img {
    width: 100%;
    aspect-ratio: 4 / 4.6;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-stat {
    position: absolute;
    right: -18px;
    bottom: 26px;
    max-width: 230px;
    padding: 18px;
    border-radius: 8px;
    color: #fff;
    background: var(--dark);
    box-shadow: var(--shadow);
}

.hero-stat strong {
    display: block;
    font-size: 1.4rem;
}

.hero-stat span {
    color: rgba(255, 255, 255, 0.78);
}

.section {
    padding: 116px 0;
}

.section-title {
    max-width: 720px;
    margin-bottom: 30px;
}

.service-grid,
.reference-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

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

.service-card,
.reference-card,
.contact-card,
.timeline article {
    border: 1px solid rgba(228, 225, 255, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 35px rgba(58, 58, 58, 0.07);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.service-card:hover,
.reference-card:hover,
.contact-card:hover,
.timeline article:hover {
    transform: translateY(-5px);
    border-color: rgba(95, 57, 255, 0.3);
    box-shadow: 0 22px 55px rgba(7, 3, 55, 0.11);
}

.service-card {
    min-height: 230px;
    padding: 26px;
}

.service-icon {
    display: inline-grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-bottom: 38px;
    border-radius: 999px;
    color: #fff;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 42%),
        linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 16px 34px rgba(95, 57, 255, 0.22);
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.service-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.service-card:hover .service-icon {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 20px 44px rgba(171, 56, 150, 0.28);
}

.service-card p,
.section-title > p:not(.eyebrow),
.split-copy p,
.timeline p,
.cta p {
    color: var(--muted);
}

.support-strip {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 32px;
    align-items: center;
    padding: 42px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.support-strip h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 3.6vw, 3.5rem);
}

.support-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.support-list span {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    color: var(--primary-dark);
    font-weight: 900;
    transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.support-list span:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--soft), var(--soft-green));
    color: var(--secondary);
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    transition:
        opacity 850ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal.from-left {
    transform: translate3d(-34px, 0, 0);
}

.reveal.from-right {
    transform: translate3d(34px, 0, 0);
}

.reveal.from-left.is-visible,
.reveal.from-right.is-visible {
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


.split {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 44px;
    align-items: center;
    padding: 118px 0;
}

.split-media img {
    aspect-ratio: 1 / 0.86;
}

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

.check-list li {
    padding: 12px 14px;
    border-left: 4px solid var(--fresh);
    border-radius: 8px;
    background: #fff;
    font-weight: 800;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.timeline article {
    padding: 22px;
}

.timeline strong {
    display: block;
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 1.6rem;
}

.reference-card {
    overflow: hidden;
}

.reference-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.reference-link *,
.reference-card h3,
.reference-card span {
    text-decoration: none;
}

.reference-card img {
    width: 100%;
    aspect-ratio: 420 / 325;
    object-fit: cover;
}

.reference-card div {
    padding: 18px;
}

.reference-card span {
    color: var(--muted);
    font-weight: 800;
}

.cta {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 42px;
    border-radius: 8px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 10%, rgba(32, 217, 161, 0.35), transparent 20rem),
        linear-gradient(135deg, var(--dark), var(--primary-dark));
}

.cta .eyebrow,
.cta p {
    color: rgba(255, 255, 255, 0.78);
}

.cta h2 {
    margin-bottom: 8px;
}

.contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-card {
    padding: 26px;
    text-decoration: none;
}

.contact-card span {
    display: block;
    color: var(--muted);
    font-weight: 800;
}

.contact-card strong {
    display: block;
    margin-top: 6px;
    color: var(--primary-dark);
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    line-height: 1.18;
}

.location-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(260px, 0.55fr) minmax(360px, 1fr);
    gap: 24px;
    overflow: hidden;
    min-height: 430px;
    border: 1px solid rgba(228, 225, 255, 0.9);
    border-radius: 8px;
    background:
        radial-gradient(circle at 88% 8%, rgba(32, 217, 161, 0.16), transparent 18rem),
        rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 48px rgba(7, 3, 55, 0.09);
}

.location-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
}

.location-copy span {
    display: block;
    color: var(--secondary);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.location-copy strong {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-size: clamp(1.45rem, 2.7vw, 2.35rem);
    line-height: 1.08;
}

.location-copy p {
    margin: 18px 0 24px;
    color: var(--primary-dark);
    font-size: clamp(1.35rem, 2.5vw, 2.1rem);
    font-weight: 900;
    line-height: 1.12;
}

.location-map {
    min-height: 430px;
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
    border: 0;
    filter: saturate(0.92) contrast(1.02);
}

.map-button {
    width: fit-content;
}

.page-up {
    position: fixed;
    right: max(18px, calc((100vw - 1160px) / 2));
    bottom: 22px;
    z-index: 18;
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(95, 57, 255, 0.22);
    border-radius: 999px;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(7, 3, 55, 0.13);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    text-decoration: none;
    transform: translateY(calc(14px - var(--page-up-lift, 0px))) scale(0.92);
    transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.page-up.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(calc(0px - var(--page-up-lift, 0px))) scale(1);
}

.page-up:hover,
.page-up:focus-visible {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 16px 34px rgba(95, 57, 255, 0.25);
    transform: translateY(calc(-2px - var(--page-up-lift, 0px))) scale(1.02);
}

.page-up svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.6;
}

.legal-page {
    padding-top: 80px;
}

.legal-content {
    width: min(1160px, calc(100% - 28px));
    margin: 0 auto;
    padding: 70px 0 0;
}

.legal-content h1 {
    margin-bottom: 26px;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.legal-content h2 {
    margin: 42px 0 14px;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.legal-content p,
.legal-content li {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.72;
}

.legal-content ul {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding-left: 22px;
}

.legal-block {
    width: 100%;
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid rgba(228, 225, 255, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 35px rgba(58, 58, 58, 0.07);
}

.site-footer {
    margin-top: 80px;
    padding: 34px 0;
    color: #fff;
    background: var(--dark);
}

.footer-inner {
    display: flex;
    width: min(1160px, calc(100% - 40px));
    gap: 32px;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.site-footer img {
    width: 170px;
}

.footer-meta {
    display: grid;
    gap: 7px;
    justify-items: end;
}

.site-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    text-align: right;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #fff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: flex-end;
    margin-top: 2px;
}

.footer-links a {
    font-weight: 800;
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: auto auto auto;
    }

    .nav-toggle {
        display: inline-grid;
        width: 44px;
        height: 44px;
        place-items: center;
        border: 0;
        border-radius: 8px;
        background: var(--soft);
    }

    .nav-toggle span {
        width: 20px;
        height: 2px;
        margin: -7px 0;
        background: var(--primary-dark);
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        display: none;
        width: min(280px, calc(100vw - 28px));
        padding: 10px;
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .header-cta {
        min-height: 42px;
        padding: 10px 13px;
    }

    .site-nav.is-open {
        display: grid;
    }

    .hero,
    .split,
    .service-grid,
    .reference-grid,
    .timeline,
    .contact-grid,
    .location-card,
    .support-strip {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding: 62px 0 86px;
    }

    .hero-stat {
        right: 14px;
    }

    .cta,
    .footer-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .page-up {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }

    .location-card,
    .location-map,
    .location-map iframe {
        min-height: 360px;
    }

    .footer-meta,
    .site-footer p {
        justify-items: start;
        text-align: left;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .site-header,
    .section,
    .section-band {
        width: min(100% - 20px, 1160px);
    }

    .section[id] {
        scroll-margin-top: 60px;
    }

    .brand img {
        width: 118px;
    }

    .site-header {
        gap: 8px;
        padding: 9px;
    }

    .header-cta {
        font-size: 0.9rem;
    }

    h1 {
        font-size: clamp(2.6rem, 17vw, 4.8rem);
    }

    .hero-media img {
        aspect-ratio: 1 / 1.05;
    }

    .hero-stat {
        position: static;
        max-width: none;
        margin-top: -20px;
    }

    .section {
        padding: 78px 0;
    }

    .cta {
        padding: 32px;
    }

    .support-strip {
        padding: 24px;
    }

    .support-list {
        grid-template-columns: 1fr;
    }
}
