* {
    box-sizing: border-box;
}

html {
    color: #e5e7eb;
    background: #07111f;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background:
        radial-gradient(circle at 12% 8%, rgba(37, 99, 235, .18), transparent 30rem),
        #07111f;
}

body,
button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.home {
    width: min(1240px, 100%);
    min-height: 100svh;
    padding: 24px;
    margin: 0 auto;
}

.site-header,
.brand,
.hero__actions,
.hero__features,
.footer {
    display: flex;
    align-items: center;
}

.site-header {
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    margin-bottom: 24px;
}

.brand {
    gap: 10px;
    color: #f8fafc;
    font-weight: 700;
    text-decoration: none;
}

.brand__mark {
    display: grid;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: #2563eb;
    border-radius: 10px;
    place-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}

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

.button--primary {
    color: #ffffff;
    background: #2563eb;
    border-color: #3b82f6;
}

.button--secondary,
.button--ghost {
    color: #dbeafe;
    background: #111827;
    border-color: #334155;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
    min-height: min(680px, calc(100svh - 110px));
    padding: clamp(28px, 5vw, 64px);
    background: linear-gradient(145deg, #0f172a, #111827);
    border: 1px solid #243244;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
    overflow: hidden;
}

.eyebrow {
    margin: 0 0 10px;
    color: #60a5fa;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.title {
    max-width: 13ch;
    margin: 0;
    color: #f8fafc;
    font-size: clamp(2.25rem, 6vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.hero__description {
    max-width: 62ch;
    margin: 22px 0;
    color: #aebdd0;
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero__actions {
    flex-wrap: wrap;
    gap: 10px;
}

.hero__features {
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 0;
    margin: 26px 0 0;
    color: #94a3b8;
    font-size: .88rem;
    list-style: none;
}

.hero__features li::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    background: #60a5fa;
    border-radius: 50%;
}

.hero__visual {
    position: relative;
    display: grid;
    min-height: 420px;
    place-items: center;
}

.hero__visual::before {
    content: "";
    position: absolute;
    width: 78%;
    aspect-ratio: 1;
    background: rgba(37, 99, 235, .14);
    border: 1px solid rgba(96, 165, 250, .28);
    border-radius: 50%;
}

.hero__visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 520px);
    max-height: 480px;
    object-fit: contain;
    filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .32));
}

.services {
    padding: clamp(54px, 8vw, 96px) 0 0;
}

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

.service-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    min-height: 230px;
    padding: 20px;
    color: #cbd5e1;
    background: #0f172a;
    border: 1px solid #243244;
    border-radius: 14px;
}

.service-card--vk {
    background: linear-gradient(145deg, #0f172a, #10251e);
    border-color: rgba(34, 197, 94, .36);
}

.service-card__icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    color: #dbeafe;
    background: #172554;
    border: 1px solid #1d4ed8;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 800;
    place-items: center;
}

.service-card__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.service-card--vk .service-card__icon {
    color: #dcfce7;
    background: #14532d;
    border-color: #22c55e;
}

.service-card h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.06rem;
    line-height: 1.25;
}

.service-card p {
    margin: 0;
    color: #94a3b8;
    font-size: .93rem;
    line-height: 1.55;
}

.examples {
    padding: clamp(54px, 8vw, 96px) 0;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 26px;
}

.section-heading h2 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.section-heading > p:last-child {
    margin: 8px 0 0;
    color: #94a3b8;
}

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

.widget-card {
    display: grid;
    gap: 18px;
    min-width: 0;
    padding: 18px;
    color: #cbd5e1;
    background: #0f172a;
    border: 1px solid #243244;
    border-radius: 14px;
    font-weight: 700;
}

.widget-card img {
    display: block;
    width: 100%;
    min-height: 150px;
    max-height: 230px;
    padding: 18px;
    object-fit: contain;
    background: #111827;
    border-radius: 10px;
}

.footer {
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0;
    color: #64748b;
    border-top: 1px solid #243244;
    font-size: .8rem;
}

.footer p {
    margin: 0;
}

.footer a {
    color: #93c5fd;
}

@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero__visual {
        min-height: 300px;
    }

    .hero__visual img {
        max-height: 340px;
    }

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

@media (max-width: 620px) {
    .home {
        padding: 12px;
    }

    .site-header {
        margin-bottom: 12px;
    }

    .brand > span:last-child {
        max-width: 150px;
        line-height: 1.1;
    }

    .hero {
        gap: 20px;
        padding: 24px 18px;
        border-radius: 14px;
    }

    .title {
        font-size: clamp(2rem, 12vw, 3.2rem);
    }

    .hero__actions .button {
        width: 100%;
    }

    .hero__visual {
        min-height: 220px;
    }

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

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

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

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