:root {
    --bg: #f4f6fb;
    --bg-soft: #eef2f8;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: #ffffff;
    --surface-dark: #111827;
    --text: #101828;
    --muted: #667085;
    --line: rgba(16, 24, 40, 0.08);
    --primary: #1663ff;
    --primary-strong: #0f52d6;
    --accent: #09b28a;
    --dark: #0f172a;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 28px;
    --container: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(22, 99, 255, 0.10), transparent 28%),
        radial-gradient(circle at 85% 12%, rgba(9, 178, 138, 0.10), transparent 22%),
        linear-gradient(180deg, #f8fbff 0%, #f4f6fb 42%, #eef3f9 100%);
    line-height: 1.6;
}

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

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

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(248, 251, 255, 0.76);
    border-bottom: 1px solid rgba(16, 24, 40, 0.05);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #101828 0%, #1663ff 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: var(--shadow-soft);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 1rem;
    font-weight: 800;
}

.brand-copy small {
    color: var(--muted);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.05);
}

.main-nav .nav-contact {
    background: var(--text);
    color: #fff;
}

.hero,
.page-hero {
    padding: 44px 0 36px;
}

.hero-home {
    padding-top: 34px;
}

.page-hero {
    padding-top: 30px;
}

.page-hero-wide .container {
    display: block;
}

.page-hero-body {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 36px;
    align-items: end;
    max-width: 100%;
}

.page-hero-main,
.page-hero-side {
    min-width: 0;
}

.page-hero-side {
    display: grid;
    gap: 18px;
    justify-items: start;
}

.page-hero-note {
    width: 100%;
    max-width: 420px;
    padding: 22px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-soft);
}

.page-hero-note strong,
.page-hero-note p {
    display: block;
    margin: 0;
}

.page-hero-note strong {
    margin-bottom: 10px;
    font-size: 1rem;
}

.page-hero-note p {
    color: var(--muted);
}

.page-hero-note-compact strong {
    font-size: 1.3rem;
}

.hero-frame {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    gap: 36px;
    align-items: center;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.72)),
        rgba(255, 255, 255, 0.52);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-frame::before {
    content: "";
    position: absolute;
    inset: auto auto -100px -100px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(9, 178, 138, 0.16), transparent 70%);
}

.hero-frame::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -90px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(22, 99, 255, 0.18), transparent 70%);
}

.hero-copy,
.hero-stage {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-strong);
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}

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

h1 {
    max-width: 12ch;
    margin-bottom: 20px;
    font-size: clamp(2.75rem, 5.8vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-home h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 6.2vw, 5rem);
    line-height: 0.95;
}

.page-hero h1,
.service-hero h1 {
    max-width: 15ch;
    font-size: clamp(2.2rem, 4.4vw, 3.9rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-hero-wide h1 {
    max-width: min(18ch, 100%);
}

.page-hero-wide .section-text {
    max-width: 42ch;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero-text,
.section-text {
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.05rem;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 16px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    box-shadow: 0 16px 36px rgba(22, 99, 255, 0.24);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.07);
}

.button-light {
    background: #fff;
    color: var(--dark);
}

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

.hero-meta div {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.06);
}

.hero-meta strong,
.hero-meta span {
    display: block;
}

.hero-meta strong {
    margin-bottom: 6px;
    font-size: 0.98rem;
}

.hero-meta span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-stage {
    min-height: 560px;
}

.stage-panel {
    position: relative;
    padding: 20px;
    border-radius: 30px;
    background: linear-gradient(180deg, #0d1526 0%, #111c31 100%);
    box-shadow: 0 35px 80px rgba(8, 15, 30, 0.24);
}

.stage-panel-main {
    margin: 26px 26px 90px 0;
}

.stage-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.stage-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.85rem;
}

.stage-chip.muted {
    color: rgba(255, 255, 255, 0.72);
}

.stage-window {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 18px;
    min-height: 430px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.window-sidebar {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 14px;
}

.window-sidebar span,
.window-card {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.window-content {
    display: grid;
    gap: 16px;
}

.window-card {
    padding: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.window-card small {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.56);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.window-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.window-card p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.68);
}

.window-card-accent {
    background: linear-gradient(135deg, rgba(22, 99, 255, 0.9), rgba(9, 178, 138, 0.75));
}

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

.window-card.wide {
    grid-column: 1 / -1;
}

.stage-float {
    position: absolute;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.stage-float span,
.stage-float strong {
    display: block;
}

.stage-float span {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.86rem;
}

.stage-float strong {
    max-width: 18ch;
    line-height: 1.25;
}

.stage-float-top {
    top: 0;
    right: 0;
}

.stage-float-bottom {
    right: 18px;
    bottom: 26px;
}

.trust-strip {
    padding: 18px 0 8px;
}

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

.trust-row span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 12px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--muted);
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.05);
}

.section {
    padding: 54px 0;
}

.section-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

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

.section-head-wide {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: end;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 1fr 1fr;
    gap: 18px;
}

.bento-card {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.bento-card-large {
    grid-column: span 2;
    background: linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%);
}

.bento-card-dark {
    background: linear-gradient(135deg, #121c30 0%, #1c2740 100%);
    color: #fff;
}

.bento-card-dark p,
.bento-card-dark .bento-kicker {
    color: rgba(255, 255, 255, 0.72);
}

.bento-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary-strong);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.bento-card p,
.showcase-list p,
.timeline p,
.article-card p,
.contacts-box p,
.card p {
    color: var(--muted);
}

.showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 24px;
    align-items: start;
}

.showcase-list {
    display: grid;
    gap: 16px;
}

.showcase-list article {
    padding: 24px 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
}

.showcase-list strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--primary-strong);
    font-weight: 700;
}

.text-link::after {
    content: "->";
}

.timeline-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 26px;
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline article {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-soft);
}

.timeline span {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary), #6fa3ff);
    color: #fff;
    font-weight: 800;
}

.timeline strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.section-dark {
    padding-bottom: 76px;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 36px;
    border-radius: 32px;
}

.cta-modern {
    background: linear-gradient(135deg, #0f172a 0%, #172554 48%, #12366b 100%);
    color: #fff;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

.cta-modern .eyebrow {
    color: rgba(255, 255, 255, 0.68);
}

.cta-modern .eyebrow::before {
    background: rgba(255, 255, 255, 0.52);
}

.site-footer {
    padding: 36px 0 40px;
    background: #0f172a;
    color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 24px;
    padding-bottom: 24px;
}

.footer-brand,
.footer-title {
    margin-bottom: 12px;
    font-weight: 800;
    color: #fff;
}

.footer-text,
.footer-list a,
.footer-bottom {
    color: rgba(255, 255, 255, 0.68);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.95rem;
}

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

.service-cards-grid {
    align-items: stretch;
}

.card,
.article-card,
.contacts-box {
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-card h3 {
    margin-bottom: 0;
}

.service-card-eyebrow {
    color: var(--primary-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 4px;
    color: var(--muted);
}

.service-card-meta strong {
    color: var(--text);
    font-size: 1rem;
}

.service-hero {
    padding-bottom: 18px;
}

.service-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.service-aside {
    display: grid;
    gap: 16px;
}

.service-aside-card {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-soft);
}

.service-aside-card span,
.service-aside-card strong,
.service-aside-card small {
    display: block;
}

.service-aside-card span,
.service-aside-card small {
    color: var(--muted);
}

.service-aside-card strong {
    margin: 8px 0 0;
    font-size: 1.18rem;
    line-height: 1.3;
}

.service-aside-card small {
    margin-top: 10px;
}

.service-aside-card-accent {
    background: linear-gradient(135deg, #0f172a 0%, #173568 100%);
}

.service-aside-card-accent span,
.service-aside-card-accent small {
    color: rgba(255, 255, 255, 0.7);
}

.service-aside-card-accent strong {
    color: #fff;
}

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

.service-benefit-card {
    min-height: 180px;
    display: flex;
    align-items: flex-start;
}

.service-benefit-card h3 {
    margin-bottom: 0;
    font-size: 1.22rem;
    line-height: 1.35;
}

.article-layout {
    max-width: 860px;
}

.contacts-box {
    max-width: 520px;
}

.contacts-box p {
    margin: 0 0 14px;
    font-size: 1.18rem;
}

.contacts-box p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .hero-frame,
    .section-head-wide,
    .showcase-grid,
    .timeline-grid,
    .footer-grid,
    .service-hero-grid,
    .page-hero-body {
        grid-template-columns: 1fr;
    }

    .hero-frame {
        padding: 26px;
    }

    .page-hero-side {
        justify-items: stretch;
    }

    .hero-stage {
        min-height: auto;
    }

    .stage-panel-main {
        margin: 0 0 90px;
    }

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

    .trust-row,
    .cards-grid,
    .service-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta,
    .footer-bottom,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    h1 {
        max-width: none;
    }

    .page-hero h1,
    .service-hero h1 {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .site-header {
        position: static;
    }

    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .hero,
    .page-hero,
    .section {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .hero-frame,
    .bento-card,
    .showcase-list article,
    .timeline article,
    .card,
    .article-card,
    .contacts-box,
    .cta {
        padding: 22px;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .hero-meta,
    .trust-row,
    .bento-grid,
    .cards-grid,
    .window-grid,
    .service-benefits-grid {
        grid-template-columns: 1fr;
    }

    .stage-window,
    .timeline article {
        grid-template-columns: 1fr;
    }

    .window-sidebar {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: none;
    }

    .stage-float {
        position: static;
        margin-top: 14px;
    }

    .stage-panel-main {
        margin-bottom: 0;
    }

    .trust-row span {
        min-height: 56px;
    }
}
