:root {
    --bg: #050505;
    --bg-soft: #101010;
    --bg-panel: #161616;
    --text: #f5f5f7;
    --text-muted: #a7a7ad;
    --text-subtle: #74747b;
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.28);
    --light: #f7f7f9;
    --max-width: 1040px;
    --nav-height: 56px;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

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

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

.container {
    width: min(100% - 44px, var(--max-width));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    height: var(--nav-height);
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 5, 0.74);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.header-inner {
    height: 100%;
    width: min(100% - 44px, 1180px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    flex: 0 0 auto;
}

.brand-logo {
    width: auto;
    height: 34px;
}

nav ul {
    display: flex;
    align-items: center;
    gap: clamp(18px, 4vw, 34px);
    list-style: none;
}

nav a {
    position: relative;
    display: inline-flex;
    padding-block: 6px;
    color: var(--text-muted);
    font-size: 15px;
    transition: color 0.2s var(--ease);
}

nav a:hover,
nav a.active {
    color: var(--text);
}

nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    height: 1px;
    background: currentColor;
}

.page {
    display: none;
}

.page.active-page {
    display: block;
    animation: page-in 0.45s var(--ease) both;
}

@keyframes page-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    min-height: calc(90dvh - var(--nav-height));
    display: grid;
    place-items: center;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.hero-inner {
    padding-block: 78px;
}

.hero-eyebrow,
.section-label,
.product-tag,
.placeholder-sub {
    color: var(--text-subtle);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-eyebrow {
    margin-bottom: 12px;
}

.hero h1 {
    margin-bottom: 18px;
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 650;
    line-height: 1.02;
}

.hero p:not(.hero-eyebrow) {
    max-width: 650px;
    margin: 0 auto 34px;
    color: var(--text-muted);
    font-size: clamp(19px, 2.5vw, 24px);
    line-height: 1.35;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--text);
    color: #000;
}

.btn-primary:hover {
    background: #e8e8ed;
    color: #000;
}

.btn-secondary {
    align-self: flex-start;
    border: 1px solid var(--border-strong);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.07);
}

.section {
    padding-block: clamp(58px, 8vw, 88px);
}

.section-alt {
    border-block: 1px solid var(--border);
    background: #080808;
}

.section-label {
    margin-bottom: 12px;
}

.section-title {
    max-width: 720px;
    margin-bottom: 18px;
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 650;
    line-height: 1.08;
}

.section-lead {
    max-width: 740px;
    color: var(--text-muted);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.5;
}

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

.value-card,
.product-card,
.service-card,
.placeholder-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-panel);
}

.value-card {
    padding: 24px;
}

.value-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.2;
}

.value-card p,
.product-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.partners-panel {
    width: min(100%, 520px);
    min-height: 152px;
    margin-top: 36px;
    display: grid;
    place-items: center;
    padding: 26px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.partner-logo {
    width: min(230px, 72%);
    max-height: 92px;
    object-fit: contain;
}

.page-header {
    padding-block: 64px 46px;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    margin-bottom: 12px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.06;
}

.page-header p:not(.section-label) {
    max-width: 620px;
    color: var(--text-muted);
    font-size: 19px;
}

.catalog {
    padding-block: 42px 84px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.product-card,
.service-card,
.placeholder-card {
    overflow: hidden;
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.product-card:hover,
.service-card:hover,
.placeholder-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.product-visual {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 0.82;
    padding: 16px;
    background: var(--light);
}

.product-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-body,
.service-card {
    display: flex;
    min-height: 238px;
    flex-direction: column;
    padding: 20px;
}

.product-tag {
    margin-bottom: 8px;
}

.product-body h2,
.service-card h2 {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.18;
}

.product-price {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
}

.product-price-muted {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.product-desc {
    margin-bottom: 18px;
    flex: 1;
}

.placeholder-card {
    min-height: 278px;
    display: grid;
    place-items: center;
    padding: 24px;
    border-style: dashed;
    text-align: center;
}

.placeholder-label {
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 650;
}

footer {
    border-top: 1px solid var(--border);
    padding: 46px 0 30px;
}

.footer-inner {
    width: min(100% - 44px, var(--max-width));
    margin-inline: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
    margin-bottom: 36px;
}

.footer-brand img {
    width: auto;
    height: 28px;
    margin-bottom: 12px;
}

.footer-tagline,
.footer-col a,
.footer-bottom {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-col h2 {
    margin-bottom: 12px;
    color: var(--text-subtle);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    width: max-content;
    line-height: 1.9;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid var(--border);
    color: var(--text-subtle);
    font-size: 12px;
}

@media (max-width: 900px) {
    .value-grid,
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .container,
    .header-inner,
    .footer-inner {
        width: min(100% - 32px, var(--max-width));
    }

    .header-inner {
        gap: 18px;
    }

    .brand-logo {
        height: 29px;
    }

    nav ul {
        gap: 14px;
    }

    nav a {
        font-size: 14px;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding-block: 64px;
    }

    .value-grid,
    .catalog-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-visual {
        aspect-ratio: 4 / 3;
    }

    .partners-panel {
        min-height: 132px;
        border-radius: 18px;
    }
}
