/* =========================
   FONTS
   ========================= */
@font-face {
    font-family: 'TT Travels Next Trl';
  src: url('/theme/font/TTTravelsNextTrl-Bd.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
    font-family: 'TT Travels Next Trl Md';
  src: url('/theme/font/TTTravelsNextTrl-Md.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
    font-family: 'Segoe UI';
    src: url('/theme/font/SegoeUI-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Segoe UI';
    src: url('/theme/font/SegoeUI-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}



/* =========================
   CASHBACK BLOCK (cb-*)
   ========================= */

/* ---- variables ---- */
:root {
    --cb-blue: #3A5BFF;
       /* синий */
    --cb-red: #F8344A;
        /* красный */
    --cb-gray: #A8A8A8;
       /* серый */
    --cb-ink: #0b0b0b;
        /* тёмный текст */
    --cb-orange: #FFA31A;
     /* оранжевая планка на карточках */
  /* геометрия шкалы */
    --rail-max: clamp(520px, 58vw, 730px);
 /* макс-ширина центрального рельса */
    --arrows-pad: clamp(14px, 5vw, 56px);
  /* внутренние поля слева/справа для стрелок */
    --rail-h: 4px;
   /* толщина линии */
    --dot: 12px;
     /* диаметр точки */
    --ring1: 5px;
    /* белое кольцо (зарезервировано) */
    --ring2: 9px;
    /* внешнее свечение (зарезервировано) */
  /* компенсация «пустоты» в SVG до острия стрелки */
    --arrow-tip-offset: 4px;
 /* подстрой 0–8px под твои red.svg / blue.svg */
}
#content {
    margin: unset!important;
}
/* ---- секция ---- */
.cb {
    padding: 0px 20px 25px 20px;
}

.cb__container {
    max-width: min(1400px,92vw);
    margin: 0 auto;
}


/* фото вместо шкалы */
.cb-scale--img {
    padding: 0;
    margin: 40px auto 0;
    max-width: min(1400px, 92vw);
}

.cb-scale--img .cb-scale__img {
    display: block;
    width: 100%;
    height: auto;
    width: calc(100% - 300px);
    margin: 0 auto;
}



/* ---- заголовки ---- */
h1.cb__kicker {
    text-align: center !important;
}

.cb__kicker {
    margin: 0 0 .25em;
    text-align: center !important;
    color: var(--cb-ink) !important;
    font-family: 'TT Travels Next Trl';
    font-weight: 400;
    font-size: 32px;
}

.cb__title {
    margin: .1em 0 .35em;
    text-align: center;
    color: var(--cb-ink);
    line-height: 1.15;
    letter-spacing: .2px;
    font-family: 'TT Travels Next Trl';
    font-weight: 400;
    font-size: 28px;
    margin-top: 50px;
}

.cb__subtitle {
    text-align: center;
    font-size: 24px;
    font-family: 'TT Travels Next Trl';
}

/* ---- карточки ---- */
.cb-cards {
    display: grid;
    gap: 60px;
    grid-template-columns: repeat(2,minmax(0,1fr));
}

@media (max-width:820px) {
    .cb-cards {
        grid-template-columns: 1fr;
    }
}

.cb-card {
    position: relative;
    border-radius: 40px;
    padding: 35px;
    color: #fff;
    overflow: hidden;
    min-height: 160px;
}

.cb-card::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0px;
    height: 25px;
    border-radius: 16px;
    background: var(--cb-orange);
}

.cb-card--blue {
    background: var(--cb-blue);
}

.cb-card--red {
    background: var(--cb-red);
}

.cb-card__title {
    margin: 10px 0 10px;
    font-family: 'TT Travels Next Trl';
    font-weight: 400;
    color: #fff;
    font-size: 28px;
}

.cb-card__text {
    margin: 0;
    font-weight: 700;
    color: #000;
    font-size: 24px;
    font-family: 'Segoe UI';
    font-weight: bold;
        line-height: 25px;
}

/* ---- шкала ---- */
.cb-scale {
    position: relative;
    margin-top: 120px;
    overflow: visible;
    margin-bottom: 130px;
}

/* подписи и стрелки — вертикально (текст + стрелка) */
.cb-scale__label {
    position: absolute;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    max-width: clamp(120px, 22vw, 240px);
    color: #000;
    font-family: 'Segoe UI';
    font-weight: 600;
    font-style: normal;
    font-size: 20px;
    line-height: 1.2;
}

.cb-scale__arrow--left {
    position: relative;
    left: 85px;
    bottom: 10px;
}

.cb-scale__arrow--right {
position: relative;
    right: 15px;
    bottom: 0px;
}

/* геометрическая привязка к краям .cb-scale__rail */
.cb-scale__label--left {
    left: calc(41% - (var(--rail-max) / 2) + var(--arrows-pad) + var(--arrow-tip-offset));
    top: -20px;
    transform: translateX(-100%);
    z-index: 1;
}

.cb-scale__label--right {
    right: calc(39% - (var(--rail-max) / 2) + var(--arrows-pad) + var(--arrow-tip-offset));
    top: -75px;
    transform: translateX(100%);
    z-index: 1;
}



/* сами изображения стрелок */
.cb-scale__arrow {
    display: block;
    width: clamp(60px, 9vw, 120px);
 /* было ~72–160px, теперь меньше */
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

/* центр шкалы сужен для стрелок */
.cb-scale__outer {
    padding-inline: var(--arrows-pad);
}

.cb-scale__wrap {
    position: relative;
    width: 100%;
    max-width: var(--rail-max);
    margin: 0 auto;
}

/* линия */
.cb-scale__rail {
    height: var(--rail-h);
    border-radius: 8px;
    background: #3A5BFF;
    box-shadow: none;
}

/* слой для шагов */
.cb-scale__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0;
}

/* шаг */
.cb-step {
    position: absolute;
    top: 50%;
    left: calc(var(--x) * 1%);
    transform: translate(-50%,-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    white-space: nowrap;
}
/* шахматка: чётные снизу */
.cb-step:nth-child(even) {
    flex-direction: column-reverse;
}

/* проценты */
.cb-step__top {
    font-weight: 900;
    font-size: 24px;
    color: var(--cb-blue);
    font-family: 'TT Travels Next Trl';
}

.cb-step__top--red {
    color: var(--cb-red);
}

/* точки */
.cb-step__dot {
    width: var(--dot);
    height: var(--dot);
    border-radius: 50%;
    background: var(--cb-blue);
}

.cb-step:first-child .cb-step__dot {
    background: var(--cb-red);
}

/* суммы (призрачно) */
.cb-step__bottom {
    font-weight: 700;
    font-size: 24px;
    font-family: 'TT Travels Next Trl';
}

.cb-step__bottom--ghost {
    color: rgba(168,168,168,1);
}

/* ---- примечание под блоком ---- */
.cb__footnote {
    margin: clamp(18px, 4vw, 28px) auto 0;
    max-width: min(1400px, 92vw);
    padding: 20px 30px;
    color: #000;
    font-size: 24px;
        font-family: 'Segoe UI';
    font-weight: bold;
    font-style: normal;
    line-height: 1.26;
    background: rgba(255,157,24,1);
    border-radius: 40px;
    margin-top: 80px !important;
}

/* =========================
   АДАПТИВ
   ========================= */
   
   
   
   @media (min-width: 868px) {
    .cb-scale__label--right.mobile, .cb-scale__label--left.mobile {
        display: none;
       } 
}



@media (max-width:868px) {
    :root {
               --rail-max: 100%;
        --dot: 12px;
        --ring1: 4px;
        --ring2: 8px;
        --arrow-tip-offset: 3px;
 /* мобайл обычно требует меньше компенсации */
    }


    .cb-scale__label--right, .cb-scale__label--left {
        display: none;
       } 
	    .cb-scale__label--right.mobile, .cb-scale__label--left.mobile {
           display: flex !important;
           flex-direction: unset;
               transform: unset!important;
       } 

.cb-scale__arrow--left {
    position: relative;
    left: 0px; 
    bottom: 0px;
}



    .cb-scale {
        overflow: visible;
    }

    .cb-cards {
        gap: 20px;
    }

    .cb__footnote {
        font-size: 20px;
    }


    .cb-scale--img .cb-scale__img {
        width: calc(100% - 0px);
    }

    .cb__kicker {
        font-size: 26px;
    }

    .cb-card__title {
        font-size: 22px;
    }

    .cb-card__text {
        font-size: 20px;
    }

    .cb__title {
        font-size: 24px;
    }

    .cb__subtitle {
        font-size: 20px;
    }

    .cb-step__bottom {
        font-size: 14px;
    }

    .cb-step__top {
        font-size: 14px;
    }

    .cb-scale__text {
        font-size: 14px;
        max-width: 70px;
    }

    .cb-scale__label {
        line-height: 1.05;
        gap: 6px;
    }

    .cb-scale__label--left {
      top: 45px;
             left: 15px;
    }

    .cb-scale__label--right {
top: -98px;
        right: 5px;

    }

    .cb-step__dot {
        width: 10px;
        height: 10px;
    }
}



