:root {
    --ink: #070b35;
    --muted: #52617a;
    --blue: #105dff;
    --blue-2: #4c6fff;
    --violet: #8e3ff0;
    --cyan: #58b8f7;
    --green: #21a67a;
    --orange: #ff944d;
    --surface: #ffffff;
    --soft: #f5f9ff;
    --line: #dfe8f5;
    --shadow: 0 18px 50px rgba(17, 37, 90, .12);
    --shadow-soft: 0 10px 28px rgba(17, 37, 90, .09);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 14px 0 34px;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 0 32%, rgba(130, 87, 255, .18), transparent 34%),
        radial-gradient(circle at 100% 24%, rgba(79, 154, 255, .16), transparent 34%),
        linear-gradient(180deg, #fbfdff 0%, #f7fbff 48%, #ffffff 100%);
}

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

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

.page {
    max-width: 1340px;
    margin: 0 auto;
    padding: 8px;
    border: 1px solid rgba(205, 218, 238, .82);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .96));
    box-shadow: 0 26px 80px rgba(19, 44, 94, .12);
}

.site-main {
    position: relative;
    isolation: isolate;
}

.topbar {
    position: sticky;
    top: 8px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 34px;
    border: 1px solid rgba(210, 222, 240, .9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 260px;
}

.brand-mark {
    width: 58px;
    height: 58px;
    color: var(--blue-2);
    flex: 0 0 auto;
}

.brand-name {
    display: block;
    font-size: 1.78rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.brand-subtitle {
    color: var(--muted);
    font-size: .98rem;
    margin-top: 3px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 4vw, 52px);
    font-weight: 800;
    font-size: 1rem;
}

.nav a {
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color .18s ease, border-color .18s ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--blue);
    border-color: var(--blue);
    outline: 0;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 640px;
    padding: 58px 54px 52px;
    overflow: hidden;
    isolation: isolate;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(248, 251, 255, .94) 34%, rgba(248, 251, 255, .5) 50%, rgba(248, 251, 255, .06) 72%),
        url("../images/webp/hero-background.webp");
    background-position: center, center;
    background-repeat: no-repeat;
    background-size: cover, cover;
}

.hero > * {
    min-width: 0;
}

.hero::before {
    content: none;
}

.hero::after {
    content: none;
}

.hero-copy {
    max-width: 570px;
    padding-top: 8px;
}

.hero h1 {
    margin: 0;
    max-width: 640px;
    font-size: 3.55rem;
    line-height: 1.03;
    font-weight: 950;
    letter-spacing: 0;
}

.accent {
    color: var(--blue);
}

.mobile-break {
    display: none;
}

.desktop-space {
    display: inline;
}

.hero-lead {
    margin: 28px 0 0;
    max-width: 520px;
    color: #34425f;
    font-size: 1.13rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    gap: 12px;
    padding: 0 22px;
    border-radius: var(--radius);
    font-weight: 900;
    font-size: 1.02rem;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button svg {
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
}

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

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, #0b6cff, #144cff);
    box-shadow: 0 14px 26px rgba(16, 93, 255, .27);
}

.button-secondary {
    color: var(--blue);
    background: rgba(255, 255, 255, .86);
    border-color: var(--blue);
}

.project-body,
.approach-card > div {
    min-width: 0;
}

.trust-strip {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: -44px 24px 0;
    overflow: hidden;
    border: 1px solid rgba(210, 222, 240, .95);
    border-radius: var(--radius);
    background: rgba(212, 224, 243, .95);
    box-shadow: var(--shadow);
}

.trust-item {
    min-height: 142px;
    padding: 24px 26px;
    background: rgba(255, 255, 255, .96);
}

.trust-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    margin-bottom: 14px;
    border-radius: 999px;
    color: var(--blue);
    background: #edf4ff;
    font-size: .78rem;
    font-weight: 950;
}

.trust-item h2 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: 0;
}

.trust-item p {
    margin: 9px 0 0;
    color: #3c4a64;
    font-size: .94rem;
    line-height: 1.5;
}

.section {
    position: relative;
    z-index: 1;
    padding: 70px 24px 0;
}

.section::before {
    content: "";
    position: absolute;
    inset: 24px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(244, 249, 255, .38));
    z-index: -1;
}

.section-projects::before {
    background: linear-gradient(180deg, rgba(247, 251, 255, .35), rgba(255, 255, 255, .72));
}

.approach::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(245, 250, 255, .56));
}

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

.section-kicker {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 0;
    font-size: 2.26rem;
    line-height: 1.1;
    font-weight: 950;
    text-align: center;
    letter-spacing: 0;
}

.section-lead {
    max-width: 720px;
    margin: 14px auto 0;
    color: #44536d;
    font-size: 1.03rem;
    line-height: 1.65;
}

.section-title::before,
.section-title::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--violet));
}

.section-title::after {
    background: linear-gradient(135deg, var(--violet), var(--blue));
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.expertise-card,
.project-card,
.approach-card {
    border: 1px solid rgba(210, 222, 240, .92);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-soft);
}

.expertise-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 282px;
    padding: 22px 18px 24px;
    text-align: center;
}

.expertise-card img {
    width: 124px;
    height: 124px;
    object-fit: contain;
    margin-bottom: 14px;
}

.expertise-card h3,
.project-card h3,
.approach-card h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: 0;
}

.expertise-card p,
.project-card p,
.approach-card p {
    margin: 11px 0 0;
    color: #35445f;
    font-size: .91rem;
    line-height: 1.55;
    overflow-wrap: break-word;
}

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

.project-card {
    overflow: hidden;
}

.project-card:hover .project-img {
    transform: scale(1.035);
}

.project-media {
    position: relative;
    overflow: hidden;
    background: #edf5ff;
    aspect-ratio: 4 / 3;
}

.project-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .22s ease;
}

.project-body {
    padding: 18px 20px 20px;
}

.approach {
    padding-bottom: 42px;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px;
    max-width: 1220px;
    margin: 0 auto;
}

.approach-card {
    position: relative;
    display: grid;
    grid-template-columns: 78px 1fr;
    align-items: center;
    gap: 18px;
    min-height: 122px;
    padding: 18px;
}

.approach-card:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -39px;
    top: 50%;
    width: 30px;
    height: 2px;
    transform: translateY(-50%);
    background: #c8daf2;
}

.approach-card:not(:last-child)::before {
    content: "";
    position: absolute;
    right: -41px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #c8daf2;
    border-right: 2px solid #c8daf2;
    transform: translateY(-50%) rotate(45deg);
}

.step-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    color: #fff;
    box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .08);
}

.approach-card:nth-child(1) .step-icon {
    background: linear-gradient(135deg, #0c7de8, #1646d9);
}

.approach-card:nth-child(2) .step-icon {
    background: linear-gradient(135deg, #9f55f0, #533bdc);
}

.approach-card:nth-child(3) .step-icon {
    background: linear-gradient(135deg, #24a68d, #197f76);
}

.step-icon svg {
    width: 38px;
    height: 38px;
}

.contact-band {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 220px 1fr auto;
    align-items: center;
    gap: 28px;
    margin: 0 24px 10px;
    padding: 24px 44px;
    overflow: hidden;
    color: #fff;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 92% 30%, rgba(255, 197, 80, .28), transparent 18%),
        linear-gradient(135deg, #0868ff 0%, #2552ff 48%, #9638ee 100%);
    box-shadow: 0 18px 42px rgba(24, 82, 255, .24);
}

.contact-band::before,
.contact-band::after {
    content: "";
    position: absolute;
    border: 2px solid rgba(255, 255, 255, .55);
    opacity: .55;
    transform: rotate(18deg);
}

.contact-band::before {
    width: 14px;
    height: 14px;
    left: 24px;
    bottom: 22px;
    border-color: rgba(62, 230, 225, .85);
}

.contact-band::after {
    width: 10px;
    height: 10px;
    right: 30px;
    top: 18px;
    border-color: rgba(255, 207, 74, .9);
}

.mail-visual {
    position: relative;
    width: 190px;
    height: 96px;
}

.mail-visual svg {
    position: absolute;
    filter: drop-shadow(0 14px 18px rgba(4, 30, 117, .22));
}

.mail-envelope {
    left: 0;
    bottom: 0;
    width: 126px;
    transform: rotate(-8deg);
}

.mail-plane {
    right: 4px;
    top: 3px;
    width: 66px;
    transform: rotate(-11deg);
}

.contact-band h2 {
    margin: 0;
    font-size: 2.05rem;
    line-height: 1.1;
    letter-spacing: 0;
}

.contact-band p {
    margin: 8px 0 0;
    max-width: 720px;
    color: rgba(255, 255, 255, .9);
    font-size: 1.05rem;
}

.contact-mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 62px;
    min-width: 310px;
    padding: 0 24px;
    border-radius: 999px;
    color: #2d45e6;
    background: #fff;
    font-size: 1.22rem;
    font-weight: 950;
    box-shadow: 0 14px 28px rgba(5, 18, 74, .18);
}

.contact-mail svg {
    width: 29px;
    height: 29px;
    color: #2457ff;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 36px;
    color: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    background: linear-gradient(135deg, #061844, #042e6f);
}

.footer p {
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: .9rem;
}

.footer-info {
    display: grid;
    gap: 5px;
}

.footer-local {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: .9rem;
    font-style: normal;
}

.footer a {
    color: #fff;
    font-weight: 800;
}

.footer strong {
    color: #fff;
}

.footer-icons {
    display: flex;
    align-items: center;
    gap: clamp(18px, 4vw, 48px);
    color: rgba(255, 255, 255, .95);
}

.footer-icons svg {
    width: 34px;
    height: 34px;
}

@media (max-width: 1180px) {
    .hero {
        min-height: 600px;
        padding: 46px 34px 42px;
        background-position: center, 58% center;
    }

    .hero h1 {
        font-size: 3.35rem;
    }

    .hero-copy {
        max-width: 760px;
    }

    .trust-strip {
        margin-top: -30px;
    }

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

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

    .contact-band {
        grid-template-columns: 170px 1fr;
    }

    .contact-mail {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 860px) {
    .topbar {
        position: static;
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 12px;
        padding-bottom: 2px;
    }

    .hero {
        display: flex;
        align-items: flex-start;
        min-height: 760px;
        padding: 42px 18px 28px;
        background-image:
            linear-gradient(180deg, rgba(255, 255, 255, .97) 0%, rgba(247, 250, 255, .94) 45%, rgba(247, 250, 255, .48) 72%, rgba(247, 250, 255, .18) 100%),
            url("../images/webp/hero-background.webp");
        background-position: center, 61% bottom;
        background-size: cover, auto 100%;
    }

    .hero h1 {
        font-size: 2.78rem;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .trust-strip {
        grid-template-columns: 1fr;
        margin: -32px 14px 0;
    }

    .trust-item {
        min-height: 0;
        padding: 20px 22px;
    }

    .section {
        padding: 56px 14px 0;
    }

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

    .section-head {
        margin-bottom: 24px;
    }

    .section-lead {
        font-size: .98rem;
    }

    .approach-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .approach-card:not(:last-child)::before,
    .approach-card:not(:last-child)::after {
        display: none;
    }

    .contact-band {
        grid-template-columns: 1fr;
        margin-inline: 14px;
        padding: 24px;
    }

    .mail-visual {
        width: 180px;
        height: 86px;
    }

    .contact-mail {
        grid-column: auto;
        justify-self: stretch;
        min-width: 0;
        font-size: 1rem;
    }

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

@media (max-width: 620px) {
    body {
        padding: 0;
    }

    .page {
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .topbar {
        border-radius: 0 0 var(--radius) var(--radius);
        border-top: 0;
    }

    .brand {
        min-width: 0;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
    }

    .brand-name {
        font-size: 1.35rem;
    }

    .brand-subtitle {
        font-size: .85rem;
    }

    .nav {
        font-size: .92rem;
    }

    .hero h1 {
        font-size: 2.22rem;
    }

    .hero-copy,
    .hero h1,
    .hero-lead {
        width: 344px;
        max-width: 344px;
    }

    .hero-actions {
        width: 344px;
        max-width: 344px;
    }

    .trust-strip,
    .section-head,
    .section-lead {
        width: 344px;
        max-width: 344px;
    }

    .mobile-break {
        display: inline;
    }

    .desktop-space {
        display: none;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .expertise-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        width: 344px;
        max-width: 344px;
    }

    .expertise-card {
        min-height: 0;
    }

    .section-title {
        gap: 10px;
        width: 344px;
        max-width: 344px;
        font-size: 1.24rem;
        line-height: 1.15;
        justify-content: center;
    }

    .section-title::before,
    .section-title::after {
        width: 6px;
        height: 6px;
        box-shadow: none;
    }

    .approach-card {
        grid-template-columns: 60px 1fr;
    }

    .approach-grid {
        width: 344px;
        max-width: 344px;
        margin: 0;
    }

    .step-icon {
        width: 56px;
        height: 56px;
    }

    .step-icon svg {
        width: 31px;
        height: 31px;
    }

    .contact-band h2 {
        font-size: 1.48rem;
    }

    .contact-band {
        width: 344px;
        max-width: 344px;
    }

    .footer {
        padding-inline: 20px;
        border-radius: 0;
    }

    .footer-icons {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 430px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-copy,
    .hero h1,
    .hero-lead,
            .hero-actions,
            .trust-strip,
            .section-head,
            .section-lead,
            .section-title,
            .expertise-grid,
    .projects-grid,
    .approach-grid,
    .contact-band {
        width: 344px;
        max-width: 344px;
    }
}

@media (max-width: 370px) {
    .hero h1 {
        font-size: 1.86rem;
    }

    .hero-copy,
    .hero h1,
    .hero-lead,
            .hero-actions,
            .trust-strip,
            .section-head,
            .section-lead,
            .section-title,
    .expertise-grid,
    .projects-grid,
    .approach-grid,
    .contact-band {
        width: 314px;
        max-width: 314px;
    }
}
