

/* Start:/local/components/lb/tone.selector/templates/.default/style.css?178825664812969*/
/* Страница «Найди свой тон»: типажи и подобранные под них оттенки. */

/* Глобальный .wrap-content обрезает переполнение и ломает position: sticky. */
.wrap-content.wrap-content--tone {
    overflow: visible;
}

.tone-page {
    --tone-ink: #3e4856;
    --tone-ink-soft: #78838f;
    --tone-line: #e6ebef;
    --tone-warm: #f6f1ea;
    --tone-warm-deep: #ece2d5;
    --tone-accent: #7fb718;
    --tone-accent-ink: #ffffff;

    color: var(--tone-ink);
}

/* --- Первый экран --- */

.tone-hero {
    padding: 32px 0 28px;
    text-align: center;
}

.tone-hero__title {
    margin: 0 0 12px;
    font-family: 'LatoBold', Arial, sans-serif;
    font-size: 40px;
    line-height: 1.15;
    color: var(--tone-ink);
}

.tone-hero__lead {
    max-width: 620px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.5;
    color: var(--tone-ink-soft);
}

.tone-hero__swatches {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.tone-hero__swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--tone-line);
}

/* --- Карточки типажей --- */

.tone-types {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.tone-type {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(62, 72, 86, .07);
    transition: transform .25s ease, box-shadow .25s ease;
}

.tone-type:hover,
.tone-type:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(62, 72, 86, .14);
    color: inherit;
}

.tone-type__image {
    position: relative;
    display: block;
    /* Пять карточек целиком помещаются в первый экран — как требует ТЗ. */
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--tone-warm);
}

/* Абсолютное позиционирование: иначе пропорции картинки растягивают блок. */
.tone-type__image img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tone-type__swatch {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0, 0, 0, .18);
}

.tone-type__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 14px 16px 16px;
}

.tone-type__name {
    font-family: 'LatoBold', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.25;
}

.tone-type__hint {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--tone-ink-soft);
}

.tone-type__cta {
    margin-top: auto;
    padding-top: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--tone-accent);
}

.tone-type:hover .tone-type__cta {
    text-decoration: underline;
}

/* --- Липкая навигация по тонам --- */

.tone-nav {
    position: sticky;
    /* Шапка сайта зафиксирована и меняет высоту при скролле — значение ставит script.js. */
    top: var(--tone-sticky-top, 0px);
    z-index: 20;
    margin-bottom: 24px;
    background: #fff;
    border-bottom: 1px solid var(--tone-line);
    border-radius: 100px;
    padding: 15px;
}

.tone-nav__inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tone-nav__inner::-webkit-scrollbar {
    display: none;
}

.tone-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 14px;
    white-space: nowrap;
    border: 1px solid var(--tone-line);
    border-radius: 100px;
    transition: border-color .2s ease, background-color .2s ease;
}

.tone-nav__link:hover,
.tone-nav__link.is-active {
    color: inherit;
    border-color: var(--tone-warm-deep);
    background: var(--tone-warm);
}

.tone-nav__swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--tone-line);
}

/* --- Секция подборки --- */

.tone-section {
    margin-bottom: 28px;
    padding: 24px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(62, 72, 86, .07);
    /* Заголовок не должен уезжать под шапку и липкую навигацию при якорном переходе. */
    scroll-margin-top: calc(var(--tone-sticky-top, 0px) + var(--tone-nav-height, 64px) + 12px);
}

.tone-section__header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4px 14px;
    margin-bottom: 20px;
    text-align: left;
}

.tone-section__swatch {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--tone-line);
}

.tone-section__title {
    margin: 0;
    font-family: 'LatoBold', Arial, sans-serif;
    font-size: 24px;
    line-height: 1.2;
    text-align: left;
    color: var(--tone-ink);
}

.tone-section__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--tone-ink-soft);
}

/* --- Карточка оттенка --- */

.tone-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* --- Слайдер, когда оттенков больше, чем помещается в ряд --- */

.tone-products.slick-initialized {
    display: block;
    position: relative;
    padding-bottom: 30px;
}

.tone-products.slick-initialized .slick-list {
    margin: 0 -7px;
}

/* Карточки в ряду одной высоты. */
.tone-products.slick-initialized .slick-track {
    display: flex;
}

.tone-products.slick-initialized .slick-slide {
    height: auto;
    padding: 0 7px;
}

.tone-products.slick-initialized .slick-slide .tone-product {
    height: 100%;
}

/* Стрелки: белый круг с шевроном — как у слайдеров каталога. */
.tone-products .slick-arrow {
    position: absolute;
    top: 130px;
    z-index: 5;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
    border: none;
    border-radius: 50%;
    background-color: #fff !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 9px 16px;
    box-shadow: 0 2px 12px rgba(48, 48, 48, .18);
    opacity: 1 !important;
    cursor: pointer;
    transition: box-shadow .2s ease, opacity .2s ease;
}

.tone-products .slick-arrow:hover {
    box-shadow: 0 4px 16px rgba(48, 48, 48, .28);
}

.tone-products .slick-arrow.slick-disabled {
    opacity: .35 !important;
    cursor: default;
}

.tone-products .slick-arrow:before {
    display: none;
}

.tone-products .slick-prev {
    left: -22px;
    background-image: url(/local/templates/main/assets/css/img/arrow-left.svg) !important;
}

.tone-products .slick-next {
    right: -22px;
    background-image: url(/local/templates/main/assets/css/img/arrow-right.svg) !important;
}

/* Пагинация — точки в общем стиле сайта, но крупнее: базовые 3px не читаются. */
.tone-products .slick-dots {
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 2px;
}

.tone-products .slick-dots li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
}

.tone-products .slick-dots li button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid #b9c1c9;
    border-radius: 50%;
    background: #fff;
}

/* slick-theme рисует в кнопке символ «•» — он торчит рядом с нашей точкой. */
.tone-products .slick-dots li button:before {
    display: none;
    content: none;
}

.tone-products .slick-dots li.slick-active button {
    border-color: var(--tone-ink);
    background: var(--tone-ink);
}

.tone-products__cell {
    display: flex;
}

.tone-product {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--tone-line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.tone-product:hover {
    border-color: var(--tone-warm-deep);
    box-shadow: 0 6px 16px rgba(62, 72, 86, .1);
}

.tone-product__image {
    position: relative;
    display: block;
    margin-bottom: 12px;
    border-radius: 8px;
    background: var(--tone-warm);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.tone-product__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tone-product--absent .tone-product__image img {
    opacity: .55;
}

.tone-product__absent {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #fff;
    border-radius: 4px;
    background: rgba(62, 72, 86, .88);
}

.tone-product__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.tone-product__brand {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--tone-ink-soft);
}

.tone-product__title {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.3;
}

.tone-product__shade {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.3;
    color: var(--tone-ink-soft);
}

.tone-product__shade-dot {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--tone-line);
}

.tone-product__footer {
    margin-top: auto;
    padding-top: 12px;
}

.tone-product__price {
    display: block;
    margin-bottom: 10px;
}

.tone-product__price-old {
    margin-right: 6px;
    font-size: 13px;
    color: var(--tone-ink-soft);
}

.tone-product__price-now {
    font-family: 'LatoBold', Arial, sans-serif;
    font-size: 17px;
}

.tone-product__cart {
    display: block;
    width: 100%;
    height: 38px;
    font-size: 14px;
    font-weight: 700;
    color: var(--tone-accent-ink);
    border: none;
    border-radius: 8px;
    background: var(--tone-accent);
    cursor: pointer;
    transition: filter .2s ease;
}

.tone-product__cart:hover {
    filter: brightness(1.06);
}

.tone-product__cart.is-added {
    color: #fff;
    background: var(--tone-ink);
}

.tone-product__mp {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tone-product__mp .tone-product__mp-link,
.tone-product__mp .i-btn {
    display: block;
    padding: 9px 10px;
    font-size: 13px;
    text-align: center;
    border: 1px solid var(--tone-line);
    border-radius: 8px;
}

/* --- Планшет --- */

@media (max-width: 1259px) {
    .tone-products {
        grid-template-columns: repeat(3, 1fr);
    }

    .tone-products .slick-prev {
        left: -12px;
    }

    .tone-products .slick-next {
        right: -12px;
    }
}

@media (max-width: 991px) {
    .tone-hero__title {
        font-size: 32px;
    }

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

    .tone-section {
        padding: 20px 16px;
    }
}

/* --- Мобильные: типажи и товары горизонтальным свайпом --- */

@media (max-width: 767px) {
    .tone-hero {
        padding: 20px 0 22px;
    }

    .tone-hero__title {
        font-size: 26px;
    }

    .tone-hero__lead {
        font-size: 14px;
    }

    .tone-types {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tone-type__body {
        padding: 12px;
    }

    .tone-type__name {
        font-size: 16px;
    }

    .tone-type__hint {
        display: none;
    }

    .tone-section {
        padding: 18px 0;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid var(--tone-line);
    }

    .tone-section__swatch {
        width: 36px;
        height: 36px;
    }

    .tone-section__title {
        font-size: 20px;
    }

    .tone-nav {
        /* Карточки подборки выходят за контейнер — фон навигации тоже во всю ширину. */
        margin: 0 -15px 20px;
        padding: 8px 15px;
        background: #fff;
    }

    .tone-products {
        display: flex;
        gap: 12px;
        margin: 0 -15px;
        padding: 0 15px 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .tone-products::-webkit-scrollbar {
        display: none;
    }

    .tone-products__cell {
        flex: 0 0 210px;
        scroll-snap-align: start;
    }
}

/* End */
/* /local/components/lb/tone.selector/templates/.default/style.css?178825664812969 */
