/* ===================== base ===================== */
@font-face {
    font-family: Unbounded;
    src: url("./fonts/unbounded/WOFF/Unbounded-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 800;
}

@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("./fonts/Inter/Inter-Light.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 300; font-display: swap; src: url("./fonts/Inter/Inter-LightItalic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/Inter/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("./fonts/Inter/Inter-Italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("./fonts/Inter/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 500; font-display: swap; src: url("./fonts/Inter/Inter-MediumItalic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/Inter/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 600; font-display: swap; src: url("./fonts/Inter/Inter-SemiBoldItalic.woff2") format("woff2"); }

:root {
    --blue-deep: #1B1470;
    --blue-mid: #2A1FD1;
    --blue-bright: #3D2FFF;
    --red-dark: #7A0000;
    --red-mid: #9E0B0B;
    --ink: #131025;
    --paper: #F4F3FB;
    --white: #FFFFFF;
    --muted: #6E6B85;
    --radius-l: 28px;
    --radius-m: 18px;
    --container: 1360px;
    --gap: 20px;
    font-size: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2 {
    font-family: 'Inter', sans-serif;
    margin: 0;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 32px;
}

@media (max-width: 768px) {
    .container {
        padding-inline: 20px;
    }
}

/* ===================== HERO ===================== */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--blue-deep) 0%, var(--blue-mid) 55%, var(--blue-bright) 100%);
    padding-bottom: 64px;
    color: #fff;
    border-radius: 0 0 70px 70px;
    min-height: 100vh;
    max-height: 1080px;
}

.hero__blobs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 46vw;
    max-width: 640px;
    min-width: 340px;
    opacity: .9;
    filter: blur(0px);
}

.blob--blue {
    top: -6%;
    left: -10%;
}

.blob--warm {
    top: -14%;
    right: -6%;
    width: 34vw;
    max-width: 480px;
    min-width: 260px;
}

.topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 28px;
}

.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
}

.burger span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.logo {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .02em;
}

.nav {
    display: flex;
    gap: 26px;
    margin-left: 12px;
    flex: 1;
}

.nav a {
    font-size: .95rem;
    opacity: .85;
    transition: opacity .2s;
}

.nav a:hover {
    opacity: 1;
}

.phone {
    font-size: .95rem;
    white-space: nowrap;
}

.phone span {
    opacity: .75;
    font-weight: 400;
}

.phone {
    font-weight: 700;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    position: relative;
    z-index: 2;
    padding-top: 64px;
}

.hero__card {
    margin: 64px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    color: var(--ink);
    border-radius: var(--radius-l);
    padding: 44px 48px;
    max-width: 924px;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);

    color: var(--blue-bright);
    font-weight: 700;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    padding: 9px 18px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.hero__card h1 {
    font-size: clamp(2.4rem, 5.2vw, 3.6rem);
    line-height: 1.02;
    font-weight: 800;
    text-transform: uppercase;
}

.hero__accent {
    font-family: 'Unbounded', sans-serif;
    font-style: italic;
    font-weight: 700;
    color: var(--blue-bright);
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    margin-top: 10px;
    text-align: right;
}

.hero__foot {
    margin-top: 56px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}

.hero__text {
    max-width: 460px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

.author {
    background: linear-gradient(360deg, rgba(255, 255, 255, 0.76) -18.08%, rgba(255, 255, 255, 0.95) 61.35%, rgba(255, 255, 255, 0.665) 140.77%);
    box-shadow: 0px 12px 10px rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    color: black;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 22px 8px 8px;
}

.author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author strong {
    display: block;
    font-size: .95rem;
}

.author span {
    font-size: .8rem;
    color: var(--blue-bright);
}

@media (max-width: 640px) {
    .nav {
        display: none;
    }

    .phone {
        margin-left: auto;
        font-size: .85rem;
    }

    .hero__card {
        padding: 30px 26px;
    }

    .hero__foot {
        margin-top: 36px;
    }
}

/* ===================== SECTION TITLE ===================== */
.section-title {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 700;
    color: var(--blue-bright);
    font-style: italic;
    margin-bottom: 30px;
}

.cases, .clients {
    padding-block: 72px;
}

/* ===================== CASES — GRID (desktop/tablet) ===================== */
.cases-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    grid-auto-rows: 315px;
    grid-auto-flow: row dense;
    gap: var(--gap);
}

.case-card {
     position: relative;
     border-radius: var(--radius-m);
     overflow: hidden;
     padding: 22px;
     display: flex;
     align-items: flex-end;
     color: #fff;
     font-weight: 700;
     font-size: 1.02rem;
     line-height: 1.3;
     background-size: cover;
     background-position: center;
     z-index: 0;
 }

.case-card__link {
    max-width: 80%;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.case-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2; /* выше градиента (0) и текста (1) — ловит клик по всей карточке */
}

/* NEW: фоновая картинка кейса, лежит под градиентом и текстом */
.case-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*z-index: -1;*/
}

.case-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55) 100%);
    z-index: 0;
}

.case-card span,
.case-card h3 {
    font-size: clamp(28px, 2.2vw, 1.2rem);
    /*font-size: 1rem;*/
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.case-card--red {
    background-color: var(--red-mid);
    background-image: linear-gradient(160deg, var(--red-dark), var(--red-mid));
}

.case-card--blue {
    background-color: var(--blue-bright);
    background-image:
            url('images/cases/case_bg.svg'),
            linear-gradient(150deg, #4B3CFF, #2A1FD1);
    background-size: cover;
    background-position: right center, center;
    background-repeat: no-repeat, no-repeat;
}

.case-card--blue-2 {
    background: linear-gradient(180deg, #3A24F9 0.12%, #110840 112.87%);
}
.case-card--blue-2::after {
    content: '';
    background: url('images/cases/case_bg2.svg') no-repeat 85% center;
}


.case-card--blue-3 {
    background: linear-gradient(138.25deg, #06FFCF 8%, #3A24F9 68.22%);
}

.case-card--cta {
    background: var(--blue-bright);
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    flex-direction: column;
    font-size: 1.1rem;
}

.case-card--tall {
    grid-row: span 2;
}

.case-card--wide {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .case-card__link {
        max-width: 100%;
    }

    .cases-grid {
        grid-template-columns:repeat(2, 1fr);
        grid-auto-rows: 315px;
    }

    .case-card span,
    .case-card h3 {
        font-size: 18px;
    }

    .case-card--wide {
        grid-column: span 2;
    }

    .case-card:last-child {
        grid-column: span 2;
    }
}
.all-line .icon{
    font-size: 1rem;
    padding-right: 10px;
}

/* ---- mobile: single-column stacked cards, no slider ---- */
.cases-slider-wrap {
    display: none;
}

@media (max-width: 640px) {
    .cases-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
        gap: 16px;
    }

    .case-card span,
    .case-card h3 {
        font-size: 16px;
    }

    .case-card:last-child,
    .case-card--tall,
    .case-card--wide {
        grid-row: auto;
        grid-column: auto;
    }
}

/* ===================== CLIENTS ===================== */

.clients__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px 32px;
    margin-bottom: 36px;
}

.clients__head .section-title {
    margin-bottom: 0;
}

.tabs {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}

.tab {
    background: none;
    border: none;
    font-size: .95rem;
    font-weight: 700;
    color: var(--ink);
    opacity: .55;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.tab.is-active {
    opacity: 1;
    color: var(--blue-bright);
    border-color: var(--blue-bright);
}

/* ===================== SLIDER ===================== */

.clients-slider-wrap {
    width: 100%;
    overflow: hidden;
}

.clients-slider {
    margin-inline: -12px;
}

/* Один слайд */
.client-slide {
    padding: 12px;
    box-sizing: border-box;
}

/* Карточка клиента */
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 140px;
    padding: 24px;

    /*background: #fff;*/
    /*border: 1px solid rgba(0, 0, 0, .08);*/
    /*border-radius: 12px;*/

    transition: border-color .2s, box-shadow .2s;
}

/* Картинка логотипа */
.client-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 180px;
    max-height: 80px;

    object-fit: contain;

    filter: grayscale(1);
    opacity: .55;

    transition: filter .2s, opacity .2s;
}

.client-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.client-logo:hover {
    /*border-color: rgba(0, 0, 0, .15);*/
    /*box-shadow: 0 8px 24px rgba(0, 0, 0, .05);*/
}

/* Стрелки Slick */
.clients-slider .slick-prev,
.clients-slider .slick-next {
    display: none;
    z-index: 2;
    width: 40px;
    height: 40px;
    background: var(--blue-bright);
    border-radius: 50%;
}

.clients-slider .slick-prev {
    left: -20px;
}

.clients-slider .slick-next {
    right: -20px;
}

.clients-slider .slick-prev:before,
.clients-slider .slick-next:before {
    font-size: 18px;
    opacity: 1;
}

/* Точки */
.clients-slider .slick-dots {
    bottom: -30px;
}

.clients-slider .slick-dots li button:before {
    font-size: 8px;
}

/* ===================== MOBILE ===================== */

@media (max-width: 720px) {
    .clients-slider {
        margin-inline: -8px;
    }

    .client-slide {
        padding: 8px;
    }

    .client-logo {
        height: 110px;
        padding: 16px;
    }

    .client-logo img {
        max-width: 150px;
        max-height: 60px;
    }

    .clients-slider .slick-prev {
        display: none;
        left: 4px;
    }

    .clients-slider .slick-next {
        display: none;
        right: 4px;
    }
}

@media (max-width: 520px) {
    .tabs {
        gap: 16px;
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
    }

    .tab {
        flex: 0 0 auto;
    }
}

/* hero v2*/
.hero-v2 {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    max-height: 1080px;
    display: flex;
    align-items: center;
    color: #fff;
    padding-block: 100px 60px;
}

.hero-v2__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0A0730 0%, #201699 45%, #3A24F9 100%);
    pointer-events: none;
}
.hero-v2__bg_ellipse {
    position: absolute;
    background: radial-gradient(50% 50% at 50% 50%, #3A24F9 0%, rgba(17, 8, 63, 0) 100%);
    pointer-events: none;
}

.hero-v2__ribbon {
    position: absolute;
    top: 50%;
    right: 0;
    width: min(90%, 1000px);
    height: auto;
    transform: translateY(-40%);
    pointer-events: none;
}

.hero-v2__inner {
    position: relative;
    z-index: 1;
}

.hero-v2__eyebrow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #34E7B0;
    margin-bottom: 28px;
}

.hero-v2__title {
    font-family: Unbounded, sans-serif;
    font-weight: 800;
    color: #fff;
    font-size: clamp(2.6rem, 5.4vw, 4.4rem);
    line-height: 1.04;
    margin: 0 0 28px;
}

.hero-v2__title-accent {
    font-style: italic;
    font-weight: 700;
}

.hero-v2__text {
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    max-width: 440px;
    margin: 0 0 40px;
}

.hero-v2__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-v2__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 30px;
    min-width: 250px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: opacity .2s, background .2s, color .2s;
}

.hero-v2__btn--solid {
    background: #3A24F9;
    color: #fff;
}

.hero-v2__btn--solid:hover {
    /*opacity: 0.85;*/
}

.hero-v2__btn--outline {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.hero-v2__btn--outline:hover {
    background: #fff;
    color: #0A0730;
}

@media (max-width: 900px) {
    .hero-v2__inner {
        position: relative;
        z-index: 1;
    }
    .hero-v2__ribbon {
        width: 80%;
        opacity: 0.5;
    }
}

@media (max-width: 640px) {
    .hero-v2 {
        min-height: auto;
        padding-block: 100px 60px;
    }

    .hero-v2__ribbon {
        display: none;
    }

    .hero-v2__br {
        display: none;
    }
}

/* hero v2*/

/* ---- ЮИКС about block: изолированные классы с префиксом yx- ---- */

.yx-about__intro{
    font-size: 19px;
    line-height: 1.5;
    max-width: 46ch;
    margin: 0 0 16px;
}
.yx-about__pitch{
    font-size: 17px;
    line-height: 1.55;
    color: #3A24F9;
    max-width: 52ch;
    margin: 0 0 28px;
}

.yx-points{
    list-style: none;
    margin: 0 0 32px;
    padding: 28px 26px;
    background: #fff;
    border: 1px solid #ECECF2;
    border-radius: 20px;
    /*box-shadow: 0 12px 30px -18px rgba(30, 20, 120, .18);*/
    box-shadow: 19.53px 21.03px 22.54px 0px #3A24F926;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.yx-points__item{
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.yx-points__num{
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #3A24F9;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.yx-points__text{
    margin: 0;
    font-size: 15.5px;
    line-height: 1.5;
    color: #1B1B1F;
}

.yx-stats{
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.yx-stats__card{
    font-family: Unbounded, sans-serif;
    background: linear-gradient(155deg, #3A24F9 0%, #2818BF 100%);
    color: #fff;
    border-radius: 20px;
    padding: 30px 30px 28px;
}
.yx-stats__num{
    font-weight: 400;
    font-size: 169.48px;
    vertical-align: middle;
    line-height: 1;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}
.yx-stats__num span{
    font-size: 116px;
    font-weight: 400;
}
.yx-stats__label{
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    line-height: 1.25;
    max-width: 350px;
    margin: auto;
    font-weight: 300;
}

.yx-badges{
    display: flex;
    gap: 22px;
    margin-top: 4px;
}
.yx-badges__item{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.3;
    color: #55565f;
    text-transform: uppercase;
}
.yx-badges__icon{
    flex: none;
    width: 64px;
    height: auto;
}
/*.yx-badges__icon--yandex{ background: #FF3C2F; }*/
/*.yx-badges__icon--top{ background: #3A24F9; }*/
.section-about .row .col-lg-5{
    display: block;
}
@media (max-width: 991px){
    .yx-stats__num span{
        font-size: 16px;
    }
    .yx-stats__label{
        font-size: 16px;
    }
    .yx-stats{
        flex-direction: row;
        margin-top: 32px;
    }
    .yx-stats__card{ flex: 1; }
}

@media (max-width: 575px){
    .yx-about__intro{ font-size: 17px; }
    .yx-about__pitch{ font-size: 15.5px; }
    .yx-points{ padding: 22px 18px; }
    .yx-stats{ flex-direction: column; }
    .yx-stats__num{ font-size: 44px; }
    .yx-badges{ flex-wrap: wrap; row-gap: 14px; }
}