/* =========================================================
   CONTEXT ADS SERVICE
   ========================================================= */

.ads-service {
    --ads-blue: #176fe8;
    --ads-cyan: #24a8f4;
    --ads-dark: #111b2b;
    --ads-text: #6c7b91;
    --ads-border: #dfe8f2;

    color: var(--ads-dark);
}


/* =========================================================
   COMMON
   ========================================================= */

.ads-service__breadcrumbs {
    padding-top: 18px;
}


.ads-service__label {
    display: inline-flex;

    margin-bottom: 14px;
    padding: 7px 12px;

    border-radius: 999px;

    background: #eaf4ff;
    color: #0870ea;

    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}


.ads-service__section-head {
    max-width: 800px;

    margin-bottom: 38px;
}


.ads-service__section-head--center {
    margin-left: auto;
    margin-right: auto;

    text-align: center;
}


.ads-service__section-head h2 {
    margin: 0;

    font-size: clamp(34px,4vw,48px);
    line-height: 1.08;
    letter-spacing: -.025em;
}


.ads-service__section-head p {
    max-width: 720px;

    margin: 14px 0 0;

    color: var(--ads-text);

    font-size: 15px;
    line-height: 1.65;
}


.ads-service__section-head--center p {
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.ads-service__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 50px;

    padding: 0 22px;

    border-radius: 12px;

    font-size: 14px;
    line-height: 1;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

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


.ads-service__btn--primary {
    border: 0;

    background:
        linear-gradient(
            135deg,
            #176fe8,
            #249bf2
        );

    color: #fff;

    box-shadow:
        0 12px 28px rgba(23,111,232,.22);
}


.ads-service__btn--secondary {
    border: 1px solid #d7e3ef;

    background: #fff;
    color: #172236;
}


.ads-service__btn--light {
    border: 0;

    background: #fff;
    color: #176fe8;

    box-shadow:
        0 12px 30px rgba(0,0,0,.1);
}


@media (hover:hover) {

    .ads-service__btn:hover {
        transform: translateY(-2px);
    }

}


/* =========================================================
   HERO
   ========================================================= */

.ads-service__hero {
    padding: 58px 0 82px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 84% 18%,
            rgba(38,171,248,.16),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #fff,
            #f5faff
        );
}


.ads-service__hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0,.96fr)
        minmax(430px,1.04fr);

    gap: 75px;

    align-items: center;
}


.ads-service__hero-title {
    margin: 0;

    font-size: clamp(43px,5vw,65px);
    line-height: 1.04;
    font-weight: 760;
    letter-spacing: -.035em;
}


.ads-service__hero-text {
    max-width: 690px;

    margin: 22px 0 0;

    color: var(--ads-text);

    font-size: 17px;
    line-height: 1.65;
}


.ads-service__hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 31px;
}


.ads-service__hero-note {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-top: 23px;

    color: #788699;

    font-size: 12px;
}


.ads-service__hero-note > span {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 22px;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: #e2f8ec;
    color: #18a55e;

    font-weight: 800;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.ads-service__hero-visual {
    position: relative;

    min-height: 450px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.ads-service__dashboard {
    position: relative;
    z-index: 2;

    width: min(100%,660px);

    overflow: hidden;

    border: 1px solid #d7e3ef;
    border-radius: 25px;

    background: #fff;

    box-shadow:
        0 30px 75px rgba(22,66,112,.13);

    transform:
        perspective(1100px)
        rotateY(-3deg);
}


.ads-service__dashboard-top {
    display: flex;
    align-items: center;

    gap: 12px;

    min-height: 45px;

    padding: 0 17px;

    border-bottom: 1px solid #edf1f5;

    background: #f8fafc;

    color: #8e9aaa;

    font-size: 9px;
}


.ads-service__dashboard-dots {
    display: flex;

    gap: 6px;
}


.ads-service__dashboard-dots span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #c5d1dd;
}


.ads-service__dashboard-body {
    min-height: 360px;

    padding: 25px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(38,171,248,.13),
            transparent 28%
        ),
        #fff;
}


.ads-service__dash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}


.ads-service__dash-head small,
.ads-service__dash-head strong {
    display: block;
}


.ads-service__dash-head small {
    color: #8b97a7;

    font-size: 9px;
}


.ads-service__dash-head strong {
    margin-top: 3px;

    color: #1d293b;

    font-size: 17px;
}


.ads-service__dash-status {
    padding: 6px 9px;

    border-radius: 999px;

    background: #e3f8ec;
    color: #17955a;

    font-size: 9px;
    font-weight: 700;
}


/* stats */

.ads-service__stats {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 10px;

    margin-top: 22px;
}


.ads-service__stats > div {
    padding: 14px;

    border: 1px solid #e0e8f1;
    border-radius: 13px;

    background: #fbfdff;
}


.ads-service__stats span,
.ads-service__stats strong,
.ads-service__stats i {
    display: block;
}


.ads-service__stats span {
    color: #8a96a6;

    font-size: 8px;
}


.ads-service__stats strong {
    margin-top: 7px;

    color: #1d2a3c;

    font-size: 18px;
}


.ads-service__stats i {
    margin-top: 3px;

    color: #5eaa83;

    font-size: 7px;
    font-style: normal;
}


/* chart */

.ads-service__chart {
    margin-top: 12px;
    padding: 14px;

    border: 1px solid #e0e8f1;
    border-radius: 13px;

    background: #f9fcff;
}


.ads-service__chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.ads-service__chart-head span {
    color: #778598;

    font-size: 8px;
}


.ads-service__chart-head strong {
    color: #176fe8;

    font-size: 8px;
}


.ads-service__chart-area {
    position: relative;

    display: flex;
    align-items: end;

    gap: 8px;

    height: 72px;

    margin-top: 10px;

    overflow: hidden;

    border-bottom:
        1px solid #e1e9f2;
}


.ads-service__chart-area .bar {
    position: relative;
    z-index: 2;

    flex: 1;

    border-radius: 5px 5px 0 0;

    background:
        linear-gradient(
            180deg,
            #4ebdf7,
            #176fe8
        );

    opacity: .83;
}


.ads-service__chart-area .bar-1 {
    height: 28%;
}

.ads-service__chart-area .bar-2 {
    height: 42%;
}

.ads-service__chart-area .bar-3 {
    height: 35%;
}

.ads-service__chart-area .bar-4 {
    height: 58%;
}

.ads-service__chart-area .bar-5 {
    height: 51%;
}

.ads-service__chart-area .bar-6 {
    height: 72%;
}

.ads-service__chart-area .bar-7 {
    height: 65%;
}

.ads-service__chart-area .bar-8 {
    height: 86%;
}


.ads-service__chart-area > span {
    position: absolute;

    z-index: 4;

    left: 4%;
    right: 3%;
    bottom: 28%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            #9c69ee,
            #2fb9f8
        );

    transform:
        rotate(-7deg);

    transform-origin: left;

    box-shadow:
        0 0 9px rgba(47,185,248,.25);
}


/* campaign rows */

.ads-service__campaigns {
    margin-top: 12px;

    border: 1px solid #e0e8f1;
    border-radius: 13px;

    overflow: hidden;
}


.ads-service__campaigns > div {
    display: grid;

    grid-template-columns:
        80px 1fr auto;

    align-items: center;

    gap: 10px;

    min-height: 44px;

    padding: 0 13px;

    border-bottom: 1px solid #edf1f5;
}


.ads-service__campaigns > div:last-child {
    border-bottom: 0;
}


.ads-service__campaigns span {
    color: #176fe8;

    font-size: 8px;
    font-weight: 700;
}


.ads-service__campaigns strong {
    color: #536277;

    font-size: 8px;
}


.ads-service__campaigns i {
    padding: 4px 7px;

    border-radius: 999px;

    background: #f0f4f8;
    color: #7c8999;

    font-size: 7px;
    font-style: normal;
}


.ads-service__campaigns .is-green {
    background: #e4f8ed;
    color: #168b54;
}


/* floats */

.ads-service__float {
    position: absolute;
    z-index: 4;

    border: 1px solid rgba(255,255,255,.92);
    border-radius: 13px;

    background: rgba(255,255,255,.94);

    box-shadow:
        0 14px 35px rgba(21,61,105,.13);

    backdrop-filter: blur(8px);
}


.ads-service__float--analytics {
    left: -5px;
    bottom: 6%;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 11px 14px;
}


.ads-service__float--analytics > span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 9px;

    background: #e2f8ec;
    color: #15945a;

    font-weight: 800;
}


.ads-service__float--analytics strong,
.ads-service__float--analytics small {
    display: block;
}


.ads-service__float--analytics strong {
    font-size: 11px;
}


.ads-service__float--analytics small {
    margin-top: 2px;

    color: #8492a3;

    font-size: 8px;
}


.ads-service__float--control {
    top: 6%;
    right: -4px;

    padding: 11px 14px;
}


.ads-service__float--control strong,
.ads-service__float--control span {
    display: block;
}


.ads-service__float--control strong {
    color: #176fe8;

    font-size: 15px;
}


.ads-service__float--control span {
    margin-top: 2px;

    color: #7e8b9c;

    font-size: 8px;
}


/* =========================================================
   WORK
   ========================================================= */

.ads-service__work {
    padding: 92px 0;

    background: #fff;
}


.ads-service__work-grid {
    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 16px;
}


.ads-service__work-card {
    min-height: 205px;

    padding: 27px;

    border: 1px solid var(--ads-border);
    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 12px 35px rgba(20,60,105,.04);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


.ads-service__work-card > span {
    display: inline-flex;

    margin-bottom: 27px;

    color: #176fe8;

    font-size: 10px;
    font-weight: 800;
}


.ads-service__work-card h3 {
    margin: 0 0 8px;

    font-size: 18px;
}


.ads-service__work-card p {
    margin: 0;

    color: #718096;

    font-size: 12px;
    line-height: 1.6;
}


@media (hover:hover) {

    .ads-service__work-card:hover {
        transform: translateY(-5px);

        border-color: #bddafa;

        box-shadow:
            0 22px 50px rgba(20,67,120,.09);
    }

}


/* =========================================================
   FACTORS
   ========================================================= */

.ads-service__factors {
    padding: 93px 0;

    background:
        linear-gradient(
            180deg,
            #f6faff,
            #f1f8ff
        );
}


.ads-service__factors-grid {
    display: grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap: 16px;
}


.ads-service__factors-grid article {
    min-height: 220px;

    padding: 27px;

    border: 1px solid var(--ads-border);
    border-radius: 20px;

    background: #fff;
}


.ads-service__factor-score {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    margin-bottom: 25px;

    border-radius: 13px;

    background: #eaf4ff;
    color: #176fe8;

    font-size: 10px;
    font-weight: 800;
}


.ads-service__factors-grid h3 {
    margin: 0 0 8px;

    font-size: 17px;
}


.ads-service__factors-grid p {
    margin: 0;

    color: #718096;

    font-size: 12px;
    line-height: 1.6;
}


.ads-service__factor-note {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    margin-top: 25px;
    padding: 25px 27px;

    border: 1px solid #c6defa;
    border-radius: 19px;

    background: #fff;
}


.ads-service__factor-note strong {
    display: block;

    margin-bottom: 5px;

    font-size: 14px;
}


.ads-service__factor-note p {
    max-width: 720px;

    margin: 0;

    color: #718096;

    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   PROCESS
   ========================================================= */

.ads-service__process {
    padding: 92px 0;

    background: #fff;
}


.ads-service__process-grid {
    display: grid;

    grid-template-columns:
        repeat(6,minmax(0,1fr));
}


.ads-service__process-grid article {
    position: relative;

    padding: 27px 18px;

    border-top:
        1px solid #bad8fa;
}


.ads-service__process-grid article::before {
    content: "";

    position: absolute;

    top: -5px;
    left: 20px;

    width: 9px;
    height: 9px;

    border: 3px solid #dceeff;
    border-radius: 50%;

    background: #176fe8;
}


.ads-service__process-num {
    margin-bottom: 24px;

    color: #176fe8;

    font-size: 10px;
    font-weight: 800;
}


.ads-service__process-grid h3 {
    margin: 0 0 8px;

    font-size: 15px;
}


.ads-service__process-grid p {
    margin: 0;

    color: #718096;

    font-size: 10px;
    line-height: 1.6;
}


/* =========================================================
   MANAGEMENT
   ========================================================= */

.ads-service__management {
    padding: 93px 0;

    background: #f6faff;
}


.ads-service__management-grid {
    display: grid;

    grid-template-columns:
        minmax(0,.9fr)
        minmax(430px,1.1fr);

    gap: 75px;

    align-items: center;
}


.ads-service__management-content h2 {
    margin: 0;

    font-size: clamp(34px,4vw,48px);
    line-height: 1.08;
}


.ads-service__management-content p {
    max-width: 650px;

    margin: 15px 0 27px;

    color: var(--ads-text);

    line-height: 1.65;
}


.ads-service__management-list {
    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 11px;
}


.ads-service__management-list > div {
    display: grid;

    grid-template-columns:
        30px 1fr;

    gap: 12px;

    min-height: 100px;

    padding: 17px;

    border: 1px solid var(--ads-border);
    border-radius: 15px;

    background: #fff;
}


.ads-service__management-list > div > span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 9px;

    background: #e3f8ed;
    color: #19985a;

    font-size: 11px;
    font-weight: 800;
}


.ads-service__management-list strong {
    display: block;

    color: #263449;

    font-size: 12px;
}


.ads-service__management-list p {
    margin: 4px 0 0;

    color: #7a8899;

    font-size: 9px;
    line-height: 1.5;
}

/* =========================================================
   PACKAGES
   ========================================================= */

.ads-service__packages {
    padding: 92px 0;

    background: #fff;
}


.ads-service__packages-legacy {
    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 18px;

    align-items: stretch;
}


/* CARD */

.ads-package {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 100%;

    padding: 27px;

    border: 1px solid #dfe8f2;
    border-radius: 22px;

    background: #fff;

    box-shadow:
        0 14px 38px rgba(20,60,105,.045);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


.ads-package__top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 21px;
}


.ads-package__label {
    display: inline-flex;

    padding: 6px 10px;

    border-radius: 999px;

    background: #eaf4ff;
    color: #1071ea;

    font-size: 9px;
    line-height: 1;
    font-weight: 700;
}


.ads-package__num {
    color: #b5c1ce;

    font-size: 10px;
    line-height: 1;
    font-weight: 700;
}


.ads-package__title {
    max-width: 320px;

    margin: 0;

    color: #172236;

    font-size: 22px;
    line-height: 1.3;
    font-weight: 720;
}


.ads-package__price {
    margin-top: 17px;
}


.ads-package__price strong {
    display: block;

    color: #176fe8;

    font-size: 24px;
    line-height: 1.2;
    font-weight: 750;
}


.ads-package__divider {
    height: 1px;

    margin: 22px 0;

    background: #edf1f5;
}


/* =========================================================
   FEATURES / OLD tpl.cardsItem
   ========================================================= */

.ads-package__features {
    flex: 1;

    min-width: 0;
}


.ads-package__features table {
    width: 100%;

    border-collapse: collapse;

    margin: 0;
}


.ads-package__features tbody,
.ads-package__features tr {
    width: 100%;
}


.ads-package__features tr {
    display: flex;
    align-items: flex-start;

    gap: 8px;

    margin-bottom: 10px;
}


.ads-package__features tr:last-child {
    margin-bottom: 0;
}


.ads-package__features td {
    padding: 0 !important;

    border: 0 !important;

    color: #68778c;

    font-size: 12px;
    line-height: 1.45;

    vertical-align: top;
}


/*
 * Если tpl.cardsItem выводит отдельную ячейку
 * с галочкой/картинкой.
 */

.ads-package__features td:first-child {
    flex: 0 0 auto;
}


.ads-package__features td:last-child {
    flex: 1;

    min-width: 0;
}


/* старая картинка-галочка */

.ads-package__features .check-icon {
    display: block;

    width: 16px !important;
    height: 16px !important;

    margin-top: 1px;

    object-fit: contain;
}


/*
 * Если в tpl.cardsItem галочка сделана просто
 * изображением без класса.
 */

.ads-package__features td:first-child img {
    display: block;

    width: 16px;
    height: 16px;

    object-fit: contain;
}


/* =========================================================
   BUTTON
   ========================================================= */

.ads-package__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 11rem;
    margin-left: auto;
    gap: 15px;

    width: 100%;
    min-height: 50px;

    margin-top: 27px;
    padding: 0 17px;

    border: 0;
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #176fe8,
            #249bf2
        );

    color: #fff;

    font-family: inherit;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 11px 26px rgba(23,111,232,.18);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.ads-package__btn svg {
    flex: 0 0 19px;

    width: 19px;
    height: 19px;

    transition:
        transform .2s ease;
}


@media (hover:hover) {

    .ads-package:hover {
        transform: translateY(-5px);

        border-color: #bdd9f8;

        box-shadow:
            0 23px 52px rgba(20,67,120,.09);
    }


    .ads-package__btn:hover {
        transform: translateY(-2px);

        box-shadow:
            0 15px 31px rgba(23,111,232,.25);
    }


    .ads-package__btn:hover svg {
        transform: translateX(3px);
    }

}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

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

}


@media (max-width: 680px) {

    .ads-service__packages-legacy {
        grid-template-columns: 1fr;
    }


    .ads-package {
        padding: 23px 20px;
    }


    .ads-package__title {
        font-size: 20px;
    }

}

/* =========================================================
   CTA
   ========================================================= */

.ads-service__cta {
    padding: 20px 0 85px;

    background: #fff;
}


.ads-service__cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 47px 52px;

    border-radius: 26px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(51,177,255,.28),
            transparent 35%
        ),
        #111d30;

    color: #fff;

    box-shadow:
        0 24px 60px rgba(12,38,72,.13);
}


.ads-service__cta-label {
    margin-bottom: 8px;

    color: #78c5ff;

    font-size: 11px;
    font-weight: 700;
}


.ads-service__cta h2 {
    margin: 0 0 9px;

    font-size: clamp(30px,4vw,43px);
    line-height: 1.1;
}


.ads-service__cta p {
    max-width: 660px;

    margin: 0;

    color: #becbd9;

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   CONTENT
   ========================================================= */

.ads-service__content {
    padding: 80px 0;

    background: #f6faff;
}


.ads-service__content-inner {
    max-width: 1080px;

    color: #68778c;

    font-size: 15px;
    line-height: 1.75;
}


.ads-service__content-inner h2 {
    margin: 42px 0 16px;

    color: #172236;

    font-size: 31px;
    line-height: 1.18;
}


.ads-service__content-inner h2:first-child {
    margin-top: 0;
}


.ads-service__content-inner h3 {
    margin: 30px 0 12px;

    color: #172236;

    font-size: 21px;
}


.ads-service__content-inner p {
    margin: 0 0 17px;
}


.ads-service__content-inner ul,
.ads-service__content-inner ol {
    padding-left: 22px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .ads-service__hero-grid,
    .ads-service__management-grid {
        grid-template-columns: 1fr;
    }


    .ads-service__work-grid {
        grid-template-columns:
            repeat(2,1fr);
    }


    .ads-service__factors-grid {
        grid-template-columns:
            repeat(2,1fr);
    }


    .ads-service__process-grid {
        grid-template-columns:
            repeat(3,1fr);
    }

}


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

@media (max-width: 680px) {

    .ads-service__hero {
        padding: 38px 0 55px;
    }


    .ads-service__hero-title {
        font-size: 40px;
    }


    .ads-service__hero-text {
        font-size: 15px;
    }


    .ads-service__hero-actions {
        align-items: stretch;
    }


    .ads-service__btn {
        width: 100%;
    }


    .ads-service__hero-visual {
        min-height: 360px;
    }


    .ads-service__dashboard {
        transform: none;
    }


    .ads-service__float {
        display: none;
    }


    .ads-service__stats {
        grid-template-columns: 1fr;
    }


    .ads-service__work,
    .ads-service__factors,
    .ads-service__process,
    .ads-service__management,
    .ads-service__packages,
    .ads-service__content {
        padding: 62px 0;
    }


    .ads-service__work-grid,
    .ads-service__factors-grid,
    .ads-service__process-grid,
    .ads-service__management-list {
        grid-template-columns: 1fr;
    }


    .ads-service__factor-note {
        display: grid;
    }


    .ads-service__process-grid article {
        border-top: 0;
        border-left:
            1px solid #bad8fa;

        padding-left: 31px;
    }


    .ads-service__process-grid article::before {
        top: 29px;
        left: -5px;
    }


    .ads-service__cta {
        padding: 5px 0 60px;
    }


    .ads-service__cta-inner {
        display: grid;

        padding: 32px 24px;

        border-radius: 21px;
    }

}


.ads-service__btn--secondary {
    appearance: none;
    -webkit-appearance: none;

    border: 1px solid #d7e3ef;

    background: #fff;
    color: #172236;

    font-family: inherit;
}