:root {
    --site-bg: #f5f7fb;
    --site-surface: #ffffff;
    --site-text: #111827;
    --site-muted: #657083;
    --site-border: #e6eaf0;
    --site-dark: #111827;
    --site-soft: #eef2f7;
    --site-radius: 22px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--site-bg);
    color: var(--site-text);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

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

.language-bar {
    border-bottom: 1px solid var(--site-border);
    background: #ffffff;
}

.language-bar-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--site-muted);
    font-size: 13px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.language-switcher a {
    padding: 5px 9px;
    border-radius: 999px;
    text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a.is-active {
    background: var(--site-soft);
    color: var(--site-text);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(230, 234, 240, .9);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

.site-header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.site-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--site-dark);
    color: #ffffff;
    font-weight: 900;
}

.site-brand strong,
.site-brand small {
    display: block;
}

.site-brand strong {
    font-size: 17px;
}

.site-brand small {
    color: var(--site-muted);
    font-size: 11px;
}

.site-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: auto;
}

.site-menu a {
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
}

.site-menu a:hover {
    background: var(--site-soft);
}

.site-menu-separator {
    width: 1px;
    height: 24px;
    margin: 0 4px;
    background: var(--site-border);
}

.site-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    margin-inline-start: auto;
    border: 1px solid var(--site-border);
    border-radius: 11px;
    background: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

.home-hero,
.page-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--site-border);
    background:
        radial-gradient(circle at 85% 10%, rgba(25, 36, 54, .09), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.home-hero {
    padding: 88px 0;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    gap: 70px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--site-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
}

.home-hero-copy h1,
.page-hero h1 {
    margin: 0;
    max-width: 850px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.home-hero-copy p,
.page-hero p {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--site-muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.site-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
}

.site-button-primary {
    border-color: var(--site-dark);
    background: var(--site-dark);
    color: #ffffff;
}

.product-stage {
    position: relative;
}

.product-stage::before {
    content: "";
    position: absolute;
    inset: 12% -7% -12% 10%;
    border-radius: 40px;
    background: linear-gradient(135deg, #e8edf5, #f7f9fc);
    transform: rotate(-3deg);
}

.product-window {
    position: relative;
    overflow: hidden;
    border: 1px solid #dce2eb;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 30px 70px rgba(25, 35, 50, .15);
}

.product-window-top {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    border-bottom: 1px solid var(--site-border);
    background: #f8fafc;
}

.product-window-top span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c7ced9;
}

.product-window-body {
    min-height: 360px;
    display: grid;
    grid-template-columns: 105px 1fr;
}

.product-sidebar {
    background: #171d27;
}

.product-content {
    padding: 34px 28px;
}

.product-line {
    width: 72%;
    height: 12px;
    margin-bottom: 13px;
    border-radius: 999px;
    background: #dfe4eb;
}

.product-line-large {
    width: 50%;
    height: 24px;
    background: #c8d0dc;
}

.product-line-short {
    width: 38%;
}

.product-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 36px;
}

.product-cards div {
    height: 116px;
    border-radius: 14px;
    background: #eef2f6;
}

.page-hero {
    padding: 72px 0;
}

.page-hero-small {
    min-height: 420px;
    display: flex;
    align-items: center;
}

.content-section {
    padding: 56px 0 80px;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.content-single {
    max-width: 860px;
}

.content-card,
.quick-links-card,
.article-card {
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    background: var(--site-surface);
    box-shadow: 0 12px 32px rgba(20, 30, 45, .045);
}

.content-card {
    padding: clamp(26px, 4vw, 48px);
}

.prose h2 {
    margin: 34px 0 12px;
    font-size: 28px;
    line-height: 1.2;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p {
    margin: 0 0 18px;
    color: #4f5b6c;
    font-size: 16px;
}

.quick-links-card {
    padding: 22px;
}

.quick-links-card a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--site-border);
    text-decoration: none;
    font-weight: 650;
}

.quick-links-card a:last-child {
    border-bottom: 0;
}

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

.article-card {
    padding: 24px;
}

.article-card h2 {
    margin: 0 0 12px;
    font-size: 21px;
}

.article-card p {
    color: var(--site-muted);
}

.article-card a {
    font-weight: 750;
}

.site-footer {
    border-top: 1px solid var(--site-border);
    background: #ffffff;
}

.site-footer-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--site-muted);
    font-size: 13px;
}

.site-footer strong {
    color: var(--site-text);
}

[dir="rtl"] .home-hero-copy h1,
[dir="rtl"] .page-hero h1,
[dir="rtl"] .home-hero-copy p,
[dir="rtl"] .page-hero p,
[dir="rtl"] .prose {
    text-align: right;
}

@media (max-width: 940px) {
    .home-hero-grid,
    .content-layout {
        grid-template-columns: 1fr;
    }

    .home-hero-grid {
        gap: 48px;
    }

    .product-stage {
        width: min(680px, 100%);
    }

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

    .site-menu-button {
        display: grid;
        place-items: center;
    }

    .site-menu {
        position: absolute;
        top: 78px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--site-border);
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 18px 50px rgba(20, 30, 45, .13);
    }

    .site-menu.is-open {
        display: flex;
    }

    .site-menu-separator {
        width: 100%;
        height: 1px;
        margin: 3px 0;
    }
}

@media (max-width: 640px) {
    .site-container {
        width: min(100% - 28px, 1180px);
    }

    .language-bar-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 9px 0;
    }

    .site-header-inner {
        min-height: 68px;
    }

    .site-menu {
        top: 68px;
        left: 14px;
        right: 14px;
    }

    .home-hero {
        padding: 58px 0;
    }

    .page-hero {
        padding: 54px 0;
    }

    .home-hero-copy h1,
    .page-hero h1 {
        font-size: clamp(38px, 12vw, 58px);
    }

    .home-hero-copy p,
    .page-hero p {
        font-size: 16px;
    }

    .product-window-body {
        min-height: 250px;
        grid-template-columns: 72px 1fr;
    }

    .product-content {
        padding: 24px 18px;
    }

    .product-cards {
        grid-template-columns: 1fr;
    }

    .product-cards div:nth-child(n+2) {
        display: none;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 36px 0 56px;
    }

    .content-card {
        padding: 24px 20px;
    }

    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 22px 0;
    }
}
