:root {
    --radius-2xs: 1px;
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-pill: 999px;
    --block-font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --block-title-color: #0f172a;
    --block-text-color: #334155;
    --block-muted-color: #64748b;
    --block-bg-soft: #f8fafc;
    --block-bg-white: #ffffff;
    --block-border: #e2e8f0;
    --block-accent: #1e3a8a;
    --block-radius: var(--radius-md);
    --block-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --block-body-size: 1.0625rem;
    --block-body-line-height: 1.7;
    --block-body-font-weight: 400;
    --heading-h1-size: clamp(1.9rem, 3.5vw, 2.6rem);
    --heading-h2-size: clamp(1.45rem, 2.5vw, 1.9rem);
    --heading-h3-size: clamp(1.22rem, 1.95vw, 1.58rem);
    --heading-h4-size: clamp(1.1rem, 1.65vw, 1.32rem);
}

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

body {
    margin: 0;
    font-family: var(--block-font-family);
    color: var(--block-text-color);
    background: #fff;
}

.page {
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 8px;
}

.topbar {
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.topbar-inner {
    min-height: 66px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
}

.topbar-logo-link {
    justify-self: start;
    display: inline-flex;
    align-items: center;
}

.topbar-logo {
    display: block;
    height: 42px;
    width: auto;
}

.topbar-contact {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.topbar-email {
    justify-self: center;
    color: #111827;
}

.topbar-phone {
    justify-self: end;
    color: #111827;
}

.hero-block,
.text-block {
    font-family: var(--block-font-family);
}

.hero-block {
    padding: 1.5rem 0;
    background: #f8fafc;
    color: var(--hero-text, var(--block-title-color));
}

.hero-content {
    max-width: min(1240px, 94%);
    margin: 0;
}

.hero-heading {
    max-width: 100%;
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.hero-heading--main {
    font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.hero-subtitle {
    display: block;
    margin: 0 0 1.1rem;
    padding: 0.55rem 0 0.55rem 1.1rem;
    border: 0;
    border-left: 3px solid rgba(147, 197, 253, 0.95);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.02) 55%,
        transparent 100%
    );
    color: #f8fafc;
    font-size: clamp(1.14rem, 2.15vw, 1.28rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.012em;
    text-wrap: pretty;
    text-shadow: 0 1px 2px rgba(2, 6, 23, 0.5);
    max-width: min(1120px, 100%);
}

.hero-description {
    max-width: min(1120px, 100%);
    margin: 0 0 2rem;
    font-size: var(--block-body-size);
    color: var(--hero-description-color, #e2e8f0);
    line-height: var(--block-body-line-height);
    font-weight: var(--block-body-font-weight);
    text-shadow: 0 1px 2px rgba(2, 6, 23, 0.55);
    overflow-wrap: anywhere;
}

.hero-description p {
    margin: 0;
}

.hero-description > * + * {
    margin-top: 0.75rem;
}

.hero-description ul,
.hero-description ol {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.hero-description li {
    display: list-item !important;
    color: inherit;
}

.hero-description li + li {
    margin-top: 0.35rem;
}

.hero-description li::marker {
    color: #cbd5e1;
}

.hero-description h2 {
    color: #f1f5f9;
    font-size: clamp(1.2rem, 2.1vw, 1.42rem);
    font-weight: 800;
    line-height: 1.3;
    margin: 0.9rem 0 0.45rem;
}

.hero-description h3 {
    color: #f8fafc;
    font-size: var(--heading-h3-size);
    font-weight: 800;
    line-height: 1.3;
    margin: 0.85rem 0 0.45rem;
    text-wrap: balance;
}

.hero-description h4 {
    color: #f1f5f9;
    font-size: var(--heading-h4-size);
    font-weight: 700;
    line-height: 1.3;
    margin: 0.75rem 0 0.4rem;
    text-wrap: balance;
}

.hero-description a {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-description strong {
    color: #fff;
    font-weight: 700;
}

.hero-description.rich-content :is(h1, h2, h3, h4) {
    color: #f8fafc;
}

.hero-description.rich-content a {
    color: #93c5fd;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--block-accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.text-block {
    padding: var(--text-padding, 1.5rem 0);
    background: var(--text-bg, transparent);
}

.text-content {
    max-width: var(--text-max-width, 820px);
    margin: 0 auto;
    text-align: var(--text-align, left);
}

.text-title {
    margin: 0 0 0.75rem;
    color: var(--text-title-color, var(--block-title-color));
    font-size: var(--text-title-size, clamp(1.9rem, 3.5vw, 2.8rem));
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: break-word;
    text-wrap: pretty;
}

.heading-h2 {
    margin: 0;
    color: var(--block-title-color);
    font-size: var(--heading-h2-size);
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.text-body {
    color: var(--text-color, var(--block-text-color));
    font-size: var(--text-size, var(--block-body-size));
    line-height: var(--text-line-height, var(--block-body-line-height));
    font-weight: var(--text-font-weight, var(--block-body-font-weight));
    overflow-wrap: anywhere;
}

.rich-content {
    color: var(--block-text-color);
    font-size: var(--block-body-size);
    line-height: var(--block-body-line-height);
    font-weight: var(--block-body-font-weight);
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.rich-content > * + * {
    margin-top: 0.9rem;
}

.rich-content h1 {
    color: var(--block-title-color);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.rich-content h2 {
    color: var(--block-title-color);
    font-weight: 800;
    line-height: 1.3;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.rich-content h3,
.rich-content h4 {
    color: var(--block-title-color);
    line-height: 1.3;
    margin-top: 1.1rem;
    margin-bottom: 0.5rem;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.rich-content h3 {
    font-size: var(--heading-h3-size);
    font-weight: 800;
}

.rich-content h4 {
    font-size: var(--heading-h4-size);
    font-weight: 700;
}

.rich-content p {
    margin: 0.45rem 0;
}

.rich-content a {
    color: #1e3a8a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rich-content strong {
    color: #0f172a;
    font-weight: 700;
}

.hero-shell {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 2rem;
    position: relative;
    z-index: 1;
}

.hero-action {
    flex: 0 0 auto;
}

.text-white {
    color: #fff;
}

.hero-block-browser .hero-description {
    text-shadow: none;
}

.hero-block-browser .hero-description h2,
.hero-block-browser .hero-description h3,
.hero-block-browser .hero-description h4 {
    color: var(--block-title-color);
}

.hero-block-browser .hero-button {
    background: #fff;
    color: var(--block-accent);
    border: 1px solid var(--block-border);
}

.hero-block-browser .hero-button:hover {
    opacity: 1;
    background: #f8fafc;
}

.hero-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
    padding: 2.25rem 2.6rem;
    min-height: 280px;
}

.hero-frame-dark {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.62) 42%, rgba(100, 116, 139, 0.42) 100%),
        radial-gradient(circle at 78% 28%, rgba(56, 189, 248, 0.2), rgba(2, 132, 199, 0) 35%),
        linear-gradient(120deg, #0f172a 0%, #1e3a8a 56%, #64748b 100%);
}

.hero-frame-dark .hero-description {
    color: #e2e8f0;
    text-shadow: 0 1px 1px rgba(2, 6, 23, 0.4);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.16) 0 2px, transparent 3px),
        radial-gradient(circle at 74% 50%, rgba(255, 255, 255, 0.1) 0 2px, transparent 3px),
        radial-gradient(circle at 87% 65%, rgba(255, 255, 255, 0.1) 0 2px, transparent 3px);
    opacity: 0.55;
}

.hero-frame-light {
    background: #e7edf2;
    box-shadow: none;
    min-height: auto;
}

.hero-frame-light .hero-description {
    margin-bottom: 1.2rem;
}

.rich-sections-block {
    margin: 1.75rem 0;
}

.rich-sections-block .text-content {
    max-width: 100%;
}

.rich-sections-block .text-title {
    text-align: center;
    font-size: clamp(2.2rem, 4vw, 3.35rem);
    margin-bottom: 1.2rem;
}

.rich-sections-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.rich-sections-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: #ffffff;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.rich-sections-card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.rich-sections-card-media {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    font-size: 17px;
}

.rich-sections-card-title {
    margin: 0;
    font-size: clamp(1.5rem, 2vw, 1.95rem);
    line-height: 1.3;
    font-weight: 800;
    color: var(--block-title-color);
    text-wrap: balance;
}

.rich-sections-card-content {
    color: var(--block-text-color);
    font-size: 1.02rem;
    line-height: 1.62;
    font-weight: var(--block-body-font-weight);
}

.checkmark-list {
    margin: 0.45rem 0;
    padding-left: 0;
    list-style: none;
}

.checkmark-list li {
    position: relative;
    padding-left: 1.35rem;
    margin-top: 0.34rem;
}

.checkmark-list li::before {
    content: "✓";
    position: absolute;
    left: 0.3rem;
    top: 0;
    color: var(--block-accent);
    font-weight: 700;
}

@media (max-width: 900px) {
    .hero-shell {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-frame {
        padding: 1.4rem 1.1rem;
        min-height: auto;
    }

    .rich-sections-grid {
        grid-template-columns: 1fr;
    }

    .rich-sections-block .text-title {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }
}

@media (max-width: 640px) {
    .topbar-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 0.55rem 0;
        gap: 0.35rem;
    }

    .topbar-logo-link,
    .topbar-email,
    .topbar-phone {
        justify-self: center;
    }

    .topbar-logo {
        height: 34px;
    }
}
