@charset "UTF-8";

@font-face {
    font-family: "Hero New";
    src: url("../fonts/HeroNewRegular.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Hero New";
    src: url("../fonts/HeroNew-Medium.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 500;
}

@font-face {
    font-family: "Hero New";
    src: url("../fonts/HeroNew-SemiBold.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 600;
}

:root {
    --traffic-blue: #4a5fe6;
    --traffic-text: #2c2c2c;
    --traffic-container: 1240px;
}

body.page-template-page-traffic,
body.page-template-page-traffic-php,
body.page-template-page-traffic-redesign,
body.page-template-page-traffic-redesign-php {
    overflow-x: clip;
}

html:has(.traffic-page),
body:has(.traffic-page) {
    overflow-x: clip;
}

body.page-template-page-traffic .site-container,
body.page-template-page-traffic-php .site-container,
body.page-template-page-traffic-redesign .site-container,
body.page-template-page-traffic-redesign-php .site-container {
    overflow: visible;
}

.traffic-page {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    color: var(--traffic-text);
    background: #f2f7ff;
    font-family: "Hero New", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.traffic-hero {
    position: relative;
    width: 100%;
    min-height: 694px;
    background-color: #f2f7ff;
    background-image: url("../img/yandex-2026-quiz-bg.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    overflow: hidden;
    padding-bottom: 40px;
}

.traffic-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(233, 235, 246, 0.8) 0%, rgba(233, 235, 246, 0.2) 42%, rgba(233, 235, 246, 0.05) 100%);
}

.traffic-hero__stage {
    position: relative;
    z-index: 1;
    width: min(1440px, 100%);
    min-height: 694px;
    margin: 0 auto;
}

.traffic-hero__crumbs {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 20px 100px 0;
    color: rgba(44, 44, 44, 0.4);
    font-family: "Hero New", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: -0.02em;
}

.traffic-hero__crumbs a {
    color: #2c2c2c;
    text-decoration: none;
}

.traffic-hero__crumb-line {
    display: block;
    width: 30px;
    height: 0;
    border-top: 1px solid #2c2c2c;
}

.traffic-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    position: absolute;
    left: 100px;
    top: 139px;
    width: 744px;
}

.traffic-hero__title {
    margin: 0;
    width: 783px;
    max-width: 100%;
    color: #4a5fe6;
    font-family: "Hero New", sans-serif;
    font-size: 60px;
    font-weight: 600;
    line-height: 105%;
    letter-spacing: -0.05em;
}

.traffic-hero__text {
    margin: 0;
    width: 646px;
    max-width: 100%;
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: -0.02em;
}

.traffic-hero__button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 186px;
    height: 51px;
    padding: 16px 30px;
    border-radius: 40px;
    background: linear-gradient(180deg, #ffe588 0%, #ffc702 100%);
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.traffic-hero-card {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    position: absolute;
    width: 223px;
    min-height: 245px;
    height: auto;
    padding: 30px 20px;
    gap: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
}

.traffic-hero-card__icon {
    display: block;
    width: 52px;
    height: 47px;
}

.traffic-hero-card__icon img {
    display: block;
    width: 52px;
    height: auto;
}

.traffic-hero-card p {
    margin: 0;
    width: 183px;
    color: #4a5fe6;
    font-family: "Hero New", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 120%;
}

.traffic-hero-card--a {
    left: 778px;
    top: 78px;
    transform: rotate(7.31deg);
}

.traffic-hero-card--b {
    left: 1078px;
    top: 188px;
    transform: rotate(-10.42deg);
}

.traffic-hero-card--c {
    left: 875px;
    top: 375px;
}

@media (max-width: 1240px) {
    .traffic-hero__stage {
        width: 100%;
        min-height: auto;
        padding: 20px 24px 60px;
    }

    .traffic-hero__crumbs {
        padding: 0;
    }

    .traffic-hero__content {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        margin-top: 40px;
    }

    .traffic-hero__title,
    .traffic-hero__text {
        width: 100%;
    }

    .traffic-hero__title {
        font-size: clamp(34px, 5vw, 60px);
    }

    .traffic-hero__cards {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        margin-top: 40px;
    }

    .traffic-hero-card {
        position: relative;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: min(223px, 100%);
    }
}

@media (max-width: 768px) {
    .traffic-hero {
        min-height: 0;
    }

    .traffic-hero__content {
        gap: 24px;
        margin-top: 28px;
    }

    .traffic-hero__title {
        font-size: 34px;
        letter-spacing: -0.04em;
    }

    .traffic-hero__text {
        font-size: 16px;
    }

    .traffic-hero-card {
        width: 100%;
        height: auto;
        min-height: 180px;
    }

    .traffic-hero-card p {
        width: 100%;
    }
}

.traffic-container {
    width: min(var(--traffic-container), calc(100vw - 48px));
    margin: 0 auto;
}

.traffic-about {
    padding: 120px 0;
    background: #f2f7ff;
}

.traffic-about__grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.76fr) minmax(560px, 608px);
    gap: 80px;
    justify-content: space-between;
    align-items: start;
}

.traffic-about__title {
    margin: 0;
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.traffic-about__title span {
    color: #4a5fe6;
}

.traffic-about__title br {
    display: block;
}

.traffic-about__content {
    max-width: 608px;
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.traffic-about__lead {
    margin: 0 0 28px;
    padding: 30px;
    border-radius: 10px;
    background: linear-gradient(180deg, #7b8bf7 0%, #4a5fe6 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.traffic-about__content p {
    margin: 0 0 28px;
}

.traffic-about__content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1240px) {
    .traffic-about {
        padding: 80px 0;
    }

    .traffic-about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .traffic-about__content {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .traffic-about {
        padding: 80px 0;
    }

    .traffic-about__title {
        font-size: 34px;
    }

    .traffic-about__lead {
        padding: 24px;
        margin-bottom: 20px;
    }

    .traffic-about__content p {
        margin-bottom: 20px;
    }
}

.traffic-benefits {
    padding: 80px 0 120px;
    overflow: visible;
    background: #f2f7ff;
}

.traffic-benefits__title {
    margin: 0;
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
}

.traffic-benefits__title span {
    color: #4a5fe6;
}

.traffic-benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 56px;
}

.traffic-benefit {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    min-height: 381px;
    padding: 30px 16px;
    gap: 70px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: #edeeff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.traffic-benefit--2,
.traffic-benefit--4 {
    background: #ffffff;
}

.traffic-benefit--3 {
    background: rgba(179, 179, 179, 0.1);
}

.traffic-benefit img {
    position: absolute;
    top: -42px;
    right: -8px;
    width: 120px;
    height: 120px;
    margin: 0;
    object-fit: contain;
}

.traffic-benefit__num {
    color: rgba(0, 54, 246, 0.2);
    font-family: "Hero New", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: -0.02em;
}

.traffic-benefit__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    gap: 20px;
}

.traffic-benefit__accent {
    color: #4a5fe6;
    font-family: "Hero New", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: -0.02em;
}

.traffic-benefit__accent::after {
    content: "";
    display: block;
    width: 107px;
    margin-top: 20px;
    border-top: 1px solid rgba(44, 44, 44, 0.4);
}

.traffic-benefit__body {
    color: rgba(44, 44, 44, 0.6);
    font-family: "Hero New", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: -0.02em;
}

@media (max-width: 1240px) {
    .traffic-benefits__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 72px;
        row-gap: 56px;
    }
}

@media (max-width: 768px) {
    .traffic-benefits {
        padding: 64px 0 80px;
    }

    .traffic-benefits__title {
        font-size: 34px;
    }

    .traffic-benefits__grid {
        grid-template-columns: 1fr;
        row-gap: 48px;
    }

    .traffic-benefit {
        min-height: 0;
        gap: 40px;
    }
}

.traffic-features {
    position: relative;
    margin: 0;
    padding: 80px 0 120px;
    overflow: visible;
    border-radius: 30px;
    background: #edeeff;
}

.traffic-features .traffic-container {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.traffic-features__title {
    margin: 0;
    color: #4a5fe6;
    font-family: "Hero New", sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
}

.traffic-features__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 56px;
    overflow: visible;
}

.traffic-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 381px;
    padding: 30px 16px;
    border-radius: 15px;
    background: #ffffff;
    overflow: visible;
}

.traffic-feature__star {
    position: absolute;
    top: -72px;
    right: -88px;
    z-index: 2;
    width: 220px;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.traffic-feature__num {
    color: rgba(0, 54, 246, 0.2);
    font-family: "Hero New", sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: -0.02em;
}

.traffic-feature h3 {
    margin: 20px 0 0;
    color: #4a5fe6;
    font-family: "Hero New", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: -0.02em;
}

.traffic-feature__line {
    display: block;
    width: 107px;
    margin: 20px 0;
    border-top: 1px solid rgba(44, 44, 44, 0.4);
}

.traffic-feature p {
    margin: 0;
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -0.02em;
}

@media (max-width: 1240px) {
    .traffic-features__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .traffic-feature {
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .traffic-features {
        padding: 64px 24px 80px;
        border-radius: 24px;
    }

    .traffic-features__title {
        font-size: 34px;
    }

    .traffic-features__grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .traffic-feature__star {
        top: -48px;
        right: -40px;
        width: 160px;
    }
}

.traffic-audience {
    padding: 120px 0;
    background: #f2f7ff;
}

.traffic-audience__grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
    gap: 80px;
    align-items: stretch;
}

.traffic-audience__aside {
    min-width: 0;
}

.traffic-audience__title {
    position: sticky;
    top: calc(var(--sp-header-bottom, var(--sp-header-height, 120px)) + 24px);
    z-index: 2;
    margin: 0;
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.traffic-audience__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.traffic-audience-item {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
}

.traffic-audience-item__toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 40px;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 24px 24px 24px 28px;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.traffic-audience-item__num {
    color: rgba(44, 44, 44, 0.35);
    font-family: "Hero New", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.traffic-audience-item__name {
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: -0.02em;
}

.traffic-audience-item__icon {
    position: relative;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 50%;
    background: #edeeff;
}

.traffic-audience-item__icon::before,
.traffic-audience-item__icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: #4a5fe6;
    transform: translate(-50%, -50%);
    content: "";
}

.traffic-audience-item__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.traffic-audience-item__body {
    display: grid;
    grid-template-rows: 0fr;
    padding: 0 84px 0 28px;
    color: #ffffff;
    transition: grid-template-rows 0.28s ease, padding 0.28s ease;
}

.traffic-audience-item__body > p {
    overflow: hidden;
    margin: 0;
    font-family: "Hero New", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -0.02em;
}

.traffic-audience-item.is-open {
    background: linear-gradient(180deg, #7b8bf7 0%, #4a5fe6 100%);
}

.traffic-audience-item.is-open .traffic-audience-item__toggle {
    padding-bottom: 16px;
}

.traffic-audience-item.is-open .traffic-audience-item__num,
.traffic-audience-item.is-open .traffic-audience-item__name {
    color: #ffffff;
}

.traffic-audience-item.is-open .traffic-audience-item__icon {
    background: #ffffff;
    transform: rotate(45deg);
}

.traffic-audience-item.is-open .traffic-audience-item__icon::before,
.traffic-audience-item.is-open .traffic-audience-item__icon::after {
    background: #2c2c2c;
}

.traffic-audience-item.is-open .traffic-audience-item__body {
    grid-template-rows: 1fr;
    padding: 0 84px 28px 28px;
}

@media (max-width: 900px) {
    .traffic-audience__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .traffic-audience__title {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .traffic-audience {
        padding: 64px 0 80px;
    }

    .traffic-audience__title {
        font-size: 34px;
    }

    .traffic-audience-item__toggle {
        grid-template-columns: minmax(0, 1fr) 40px;
        padding: 20px 20px;
    }

    .traffic-audience-item__num {
        grid-column: 1 / -1;
    }

    .traffic-audience-item.is-open .traffic-audience-item__body,
    .traffic-audience-item__body {
        padding-right: 20px;
        padding-left: 20px;
    }

    .traffic-audience-item.is-open .traffic-audience-item__body {
        padding-bottom: 20px;
    }
}

.traffic-stages {
    padding: 80px 0 120px;
    background: #f2f7ff;
}

.traffic-stages__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.traffic-stages__title {
    margin: 0;
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.traffic-stages__title span {
    color: #4a5fe6;
}

.traffic-stages__nav {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 20px;
}

.traffic-stages__button {
    display: flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #2c2c2c;
    border-radius: 50px;
    background: transparent;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.traffic-stages__button:not(:disabled):not(.is-disabled) {
    opacity: 1;
}

.traffic-stages__button:disabled,
.traffic-stages__button.is-disabled {
    cursor: default;
    opacity: 0.32;
}

.traffic-stages__row {
    display: flex;
    gap: 20px;
    width: 100vw;
    margin: 56px 0 0;
    padding: 0 48px 8px max(24px, calc((100vw - var(--traffic-container)) / 2));
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.traffic-stages__row.is-dragging {
    cursor: grabbing;
    user-select: none;
    scroll-snap-type: none;
}

.traffic-stages__row::-webkit-scrollbar {
    display: none;
}

.traffic-stage {
    display: grid;
    flex: 0 0 400px;
    width: 400px;
    min-height: 330px;
    grid-template-columns: 47px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 24px;
    box-sizing: border-box;
    padding: 30px 20px;
    border-radius: 20px;
    background: #ffffff;
    scroll-snap-align: start;
}

.traffic-stage span {
    display: flex;
    align-items: center;
    grid-column: 1;
    grid-row: 1;
    color: #c1ccff;
    font-family: "Hero New", sans-serif;
    font-size: 80px;
    font-weight: 500;
    line-height: 1;
}

.traffic-stage h3 {
    align-self: center;
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.traffic-stage p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .traffic-stages {
        padding: 64px 0 80px;
    }

    .traffic-stages__top {
        width: min(var(--traffic-container), calc(100vw - 48px));
        margin: 0 auto;
        padding: 0;
    }

    .traffic-stages__title {
        font-size: 28px;
    }

    .traffic-stages__button {
        width: 40px;
        height: 40px;
    }

    .traffic-stages__row {
        margin-top: 32px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .traffic-stage {
        flex-basis: min(400px, calc(100vw - 48px));
        width: min(400px, calc(100vw - 48px));
        min-height: 0;
    }

    .traffic-stage span {
        font-size: 56px;
    }

    .traffic-stage h3 {
        font-size: 20px;
    }
}

.traffic-results {
    padding: 80px 0 120px;
    background: #f2f7ff;
}

.traffic-results__title {
    margin: 0 0 48px;
    color: #4a5fe6;
    font-family: "Hero New", sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.traffic-results__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.traffic-results__line {
    display: block;
    width: 100%;
    height: 17px;
    margin: 0;
    object-fit: fill;
}

.traffic-results__item {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: start;
    padding: 28px 0;
}

.traffic-results__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.traffic-results__icon {
    display: block;
    flex: none;
    width: 32px;
    height: auto;
    margin-top: 2px;
}

.traffic-results__head h3 {
    margin: 0;
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: -0.02em;
}

.traffic-results__item p {
    margin: 0;
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -0.02em;
}

@media (max-width: 900px) {
    .traffic-results__item {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 0;
    }

    .traffic-results__title {
        font-size: 34px;
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .traffic-results {
        padding: 64px 0 80px;
    }

    .traffic-results__head h3 {
        font-size: 18px;
    }
}

.traffic-tariffs {
    position: relative;
    padding: 80px 0 120px;
    overflow: hidden;
    background: #f2f7ff;
}

.traffic-tariffs__title {
    margin: 0 0 56px;
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
}

.traffic-tariffs__title span {
    color: #4a5fe6;
}

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

.traffic-tariff {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px 28px;
    border-radius: 20px;
    background: #ffffff;
}

.traffic-tariff__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.traffic-tariff__head h3 {
    margin: 0;
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: -0.02em;
}

.traffic-tariff__arrow {
    display: flex;
    flex: none;
    width: 17px;
    height: 17px;
}

.traffic-tariff__arrow img {
    display: block;
    width: 17px;
    height: 17px;
}

.traffic-tariff__price {
    display: inline-flex;
    align-items: center;
    margin: 20px 0 24px;
    padding: 10px 16px;
    border: 1px solid #4a5fe6;
    border-radius: 40px;
    background: #edeeff;
    color: #4a5fe6;
    font-family: "Hero New", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: -0.02em;
}

.traffic-tariff ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.traffic-tariff li {
    position: relative;
    margin: 0 0 14px;
    padding-left: 22px;
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -0.02em;
}

.traffic-tariff li::before {
    position: absolute;
    top: 0.45em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a5fe6;
    content: "";
}

.traffic-tariff li:last-child {
    margin-bottom: 0;
}

.traffic-tariff__result {
    margin: auto 0 0;
    padding: 24px 0 0 14px;
    border-left: 2px solid #4a5fe6;
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -0.02em;
}

.traffic-tariff__result span {
    color: #4a5fe6;
    font-weight: 600;
}

.traffic-tariff__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    height: 51px;
    margin-top: 24px;
    padding: 16px 30px;
    border-radius: 40px;
    background: linear-gradient(180deg, #ffe588 0%, #ffc702 100%);
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: -0.02em;
    text-decoration: none;
}

@media (max-width: 1100px) {
    .traffic-tariffs__grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .traffic-tariffs {
        padding: 64px 0 80px;
    }

    .traffic-tariffs__title {
        font-size: 34px;
        margin-bottom: 32px;
    }
}

.traffic-cases {
    padding: 0 0 120px;
    background: #f2f7ff;
}

.traffic-cases__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.traffic-cases__title {
    margin: 0;
    color: #4a5fe6;
    font-family: "Hero New", sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.traffic-cases__nav {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 20px;
}

.traffic-cases__button {
    display: flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #2c2c2c;
    border-radius: 50px;
    background: transparent;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.traffic-cases__button:not(:disabled):not(.is-disabled) {
    opacity: 1;
}

.traffic-cases__button:disabled,
.traffic-cases__button.is-disabled {
    cursor: default;
    opacity: 0.32;
}

.traffic-cases__row {
    display: flex;
    gap: 20px;
    width: 100vw;
    margin: 40px 0 0;
    padding: 0 48px 8px max(24px, calc((100vw - var(--traffic-container)) / 2));
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.traffic-cases__row.is-dragging {
    cursor: grabbing;
    user-select: none;
    scroll-snap-type: none;
}

.traffic-cases__row.is-dragging a {
    pointer-events: none;
}

.traffic-cases__row::-webkit-scrollbar {
    display: none;
}

.traffic-case {
    position: relative;
    display: flex;
    flex: 0 0 380px;
    width: 380px;
    min-height: 314px;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
    border: 1px solid #d6dbee;
    border-radius: 20px;
    background-color: #f8f9ff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: inherit;
    text-decoration: none;
    scroll-snap-align: start;
}

.traffic-case--1 { background-image: url("../img/block-case-1.png"); }
.traffic-case--2 { background-image: url("../img/block-case-2.png"); }
.traffic-case--3 { background-image: url("../img/block-case-3.png"); }
.traffic-case--4 { background-image: url("../img/block-case-4.png"); }
.traffic-case--5 { background-image: url("../img/block-case-5.png"); }
.traffic-case--6 { background-image: url("../img/block-case-6.png"); }
.traffic-case--7 { background-image: url("../img/block-case-7.png"); }
.traffic-case--8 { background-image: url("../img/block-case-8.png"); }

.traffic-case__tag {
    align-self: flex-start;
    padding: 8px 14px;
    border: 1px solid #4a5fe6;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.72);
    color: #4a5fe6;
    font-family: "Hero New", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.traffic-case__title {
    max-width: 100%;
    margin: 20px 0 0;
    color: #2c2c2c;
    font-family: "Hero New", sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.traffic-case__line {
    display: block;
    width: 72%;
    height: 1px;
    margin-top: 24px;
    background: #c8d0ec;
}

.traffic-case__arrow {
    position: absolute;
    right: 20px;
    bottom: 24px;
    width: 17px;
    height: 17px;
}

.traffic-cases__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.traffic-cases__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d3d8e8;
    cursor: pointer;
}

.traffic-cases__dot.is-active {
    background: #4a5fe6;
}

@media (max-width: 768px) {
    .traffic-cases {
        padding-bottom: 80px;
    }

    .traffic-cases__top {
        width: min(var(--traffic-container), calc(100vw - 48px));
        margin: 0 auto;
        padding: 0;
    }

    .traffic-cases__title {
        font-size: 34px;
    }

    .traffic-cases__button {
        width: 40px;
        height: 40px;
    }

    .traffic-cases__row {
        margin-top: 28px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .traffic-case {
        flex-basis: min(380px, calc(100vw - 48px));
        width: min(380px, calc(100vw - 48px));
        min-height: 280px;
    }

    .traffic-case__title {
        font-size: 18px;
    }
}
