.brand {
    display: inline-flex;
    align-items: center;
}

.global-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.global-search input {
    width: 100%;
    min-height: 40px;
    border: 1px solid #e6e8f1;
    border-radius: 7px;
    padding: 0 17px;
    color: #171a2e;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.global-search input:focus {
    border-color: #9d91e6;
    box-shadow: 0 0 0 4px rgba(103, 82, 213, .1);
}

.global-search button {
    border: 0;
    border-radius: 6px;
    min-width: 80px;
    padding: 0 20px;
    background: #6752d5;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: transform .2s, background .2s;
}

.global-search button:hover {
    background: #5140bb;
    transform: translateY(-1px);
}

.profile-link {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f1f3f8;
    font-size: 14px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: #171a2e;
    transition: .2s;
}

.main-nav {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.main-nav__link {
    position: relative;
    padding: 17px 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #36394c;
}

.main-nav__link:hover, .main-nav__link--active {
    color: #6752d5;
}

.main-nav__link--active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #6752d5;
    border-radius: 999px;
}

.hero {
    overflow: hidden;
    background: radial-gradient(circle at 76% 48%, rgba(179, 174, 255, .55), transparent 34%), linear-gradient(118deg, #fff 0%, #f6f7ff 55%, #eef0ff 100%);
}

.hero__inner {
    min-height: 330px;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
    align-items: center;
    gap: 22px;
    padding: 0 .75em;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 48px 0;
}

.hero__eyebrow {
    margin: 0 0 12px;
    color: #4b5065;
    font-size: 16px;
}

.hero h1 {
    margin: 0;
    max-width: 630px;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.hero__text {
    max-width: 600px;
    margin: 18px 0 0;
    color: #53586c;
    font-size: 18px;
    line-height: 1.55;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 8px;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    background: #6752d5;
    color: #fff;
    box-shadow: 0 10px 24px rgba(103, 82, 213, .23);
}

.button--primary:hover {
    background: #5140bb;
}

.button--secondary {
    border: 1px solid #d7dbea;
    background: rgba(255, 255, 255, .75);
}

.button--secondary:hover {
    box-shadow: 0 10px 24px rgba(31, 38, 86, .08);
}

.hero__visual {
    height: 330px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero__visual img {
    width: min(760px, 100%);
    transform: translateX(28px);
    filter: drop-shadow(0 20px 12px rgba(90, 79, 210, 0.28));
}

.home-content {
    margin-top: 28px;
    padding-bottom: 26px;
}

.section {
    background: #ffffff;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 16px 45px rgba(31, 38, 86, .08);
}

.section + .section {
    margin-top: 24px;
}

.section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.section__label {
    margin: 0 0 6px;
    color: #6752d5;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.section h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
}

.section__more {
    color: #6752d5;
    font-weight: 700;
    white-space: nowrap;
}

.section__more span {
    transition: transform .2s;
    display: inline-block;
}

.section__more:hover span {
    transform: translateX(4px);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.news-card {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid #e6e8f1;
    border-radius: 18px;
    background: #fff;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: #d6d2f4;
    box-shadow: 0 15px 35px rgba(32, 39, 86, .1);
}

.news-card__image {
    overflow: hidden;
    aspect-ratio: 1.55;
    background: #eef1ff;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.news-card:hover .news-card__image img {
    transform: scale(1.03);
}

.news-card__body {
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.news-card__category {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #6752d5;
    background: #f0edff;
    font-size: 12px;
    font-weight: 700;
}

.news-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.news-card h3 a:hover {
    color: #6752d5;
}

.news-card p {
    margin: 12px 0 18px;
    color: #666b7c;
    line-height: 1.5;
}

.news-card time {
    margin-top: auto;
    color: #7f8495;
    font-size: 13px;
}

.section--products {
    padding-bottom: 26px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.product-card {
    --accent: #3f91ff;
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: start;
    gap: 14px;
    min-height: 210px;
    padding: 20px;
    border: 1px solid #e6e8f1;
    border-radius: 18px;
    background: linear-gradient(145deg, #fff 0%, #fbfcff 100%);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 34%, #e6e8f1);
    box-shadow: 0 15px 34px rgba(31, 38, 86, .09);
}

.product-card__icon {
    width: 76px;
    height: 76px;
}

.product-card__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 168px;
}

.product-card h3 {
    margin: 5px 0 9px;
    font-size: 20px;
}

.product-card p {
    margin: 0 0 18px;
    color: #666b7c;
    font-size: 14px;
    line-height: 1.5;
}

.product-card a {
    width: fit-content;
    margin-top: auto;
    color: var(--accent);
    font-weight: 700;
}

.product-card a span {
    display: inline-block;
    transition: transform .2s;
}

.product-card a:hover span {
    transform: translateX(4px);
}

.product-card--chat {
    --accent: #2bad70;
}

.product-card--video {
    --accent: #6c50dd;
}

.product-card--crm {
    --accent: #ef612e;
}

.site-footer {
    margin-bottom: 24px;
}

.site-footer__main {
    display: grid;
    grid-template-columns: 1.5fr .65fr .65fr .8fr;
    gap: 44px;
    padding: 34px;
    color: #f8f8f8;
    background: #272727;
    border-radius: 28px;
}

.site-footer__brand {
    display: inline-block;
    margin-bottom: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, .75);
}

.site-footer__about p {
    max-width: 390px;
    margin: 0 0 22px;
    color: #b9bbc4;
    line-height: 1.55;
}

.site-footer__about span {
    color: #a9abb5;
}

.site-footer__column {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.site-footer__column h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.site-footer__column a {
    color: #d8d9df;
    font-size: 14px;
}

.site-footer__column a:hover {
    color: #fff;
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #3b3b3b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    transition: transform .2s, background .2s;
}

.socials a:hover {
    transform: translateY(-2px);
    background: #6752d5;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 14px 8px 0;
    font-size: 12px;
    color: #2f3341;
}

.site-footer__legal a {
    margin-left: auto;
    color: #6752d5;
}

@media (max-width: 1100px) {
    .hero__inner {
        grid-template-columns: 1fr .9fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__main {
        grid-template-columns: 1.4fr repeat(3, 1fr);
        gap: 28px;
    }
}

@media (max-width: 860px) {
    .site-header__top {
        grid-template-columns: 150px 1fr 36px 38px;
        gap: 12px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 70px;
        left: 20px;
        right: 20px;
        display: none;
        min-height: auto;
        padding: 14px;
        border: 1px solid #e6e8f1;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 16px 45px rgba(31, 38, 86, .08);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav--open {
        display: flex;
    }

    .main-nav__link {
        padding: 13px 14px;
        border-radius: 8px;
    }

    .main-nav__link--active::after {
        display: none;
    }

    .main-nav__link:hover, .main-nav__link--active {
        background: #f4f2ff;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        min-height: 0;
        display: flex;
        flex-direction: column-reverse;
        padding: 2em;
    }

    .hero__content {
        padding: 46px 0 10px;
    }

    .hero__visual {
        height: 23em;
        justify-content: center;
        padding-top: 8em;
    }

    .hero__visual img {
        width: min(620px, 100%);
        transform: none;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        grid-template-columns: 220px 1fr;
        grid-template-rows: auto;
    }

    .news-card__image {
        aspect-ratio: auto;
        height: 100%;
        min-height: 230px;
    }

    .site-footer__main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {

    .site-header__top {
        min-height: 64px;
        grid-template-columns: 126px 1fr 36px;
    }

    .brand img {
        width: 120px;
        height: auto;
    }

    .profile-link {
        display: none;
    }

    .global-search {
        order: 4;
        grid-column: 1 / -1;
        margin-bottom: 12px;
    }

    .global-search button {
        min-width: 70px;
        padding: 0 14px;
    }

    .main-nav {
        top: 116px;
        left: 12px;
        right: 12px;
    }

    .hero__content {
        padding-top: 36px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero__text {
        font-size: 16px;
    }

    .hero__actions, .button {
        width: 100%;
    }

    .hero__visual {
        height: 12em;
        padding-top: 4em;
    }

    .home-content {
        margin-top: 16px;
    }

    .section {
        padding: 18px;
        border-radius: 20px;
    }

    .section__head {
        align-items: flex-start;
    }

    .section__more {
        font-size: 14px;
    }

    .news-card {
        grid-template-columns: 1fr;
    }

    .news-card__image {
        min-height: 0;
        aspect-ratio: 1.55;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-height: 0;
        grid-template-columns: 68px 1fr;
        padding: 18px;
    }

    .product-card__icon {
        width: 68px;
        height: 68px;
    }

    .product-card__content {
        min-height: 145px;
    }

    .site-footer__main {
        grid-template-columns: 1fr;
        padding: 26px;
        gap: 30px;
        border-radius: 20px;
    }

    .site-footer__legal {
        display: grid;
        gap: 8px;
    }

    .site-footer__legal a {
        margin-left: 0;
    }
}