/* Homepage sections — uses chrome.css tokens */

.cms-index-index,
.cms-home,
.cms-index-index .page-wrapper,
.cms-home .page-wrapper {
    overflow-x: hidden;
    max-width: 100%;
}

.cms-index-index .page-main,
.cms-home .page-main,
.cms-index-index .columns,
.cms-home .columns,
.cms-index-index .column.main,
.cms-home .column.main {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.viv-hero,
.viv-section__inner,
.viv-shortcuts__inner,
.viv-benefits__inner,
.viv-promos {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.cms-index-index .column.main .widget,
.cms-home .column.main .widget,
.cms-index-index .block-static-block,
.cms-home .block-static-block {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
}

.cms-index-index .block-static-block .swiper-container,
.cms-home .block-static-block .swiper-container,
.cms-index-index .viv-hero__swiper,
.cms-home .viv-hero__swiper,
.cms-index-index .viv-products__swiper,
.cms-home .viv-products__swiper {
    height: auto !important;
}

.cms-index-index .viv-hero .swiper-container,
.cms-home .viv-hero .swiper-container,
.viv-hero .viv-hero__swiper {
    padding: 0 !important;
    margin: 0;
    background: transparent;
}

.cms-index-index .column.main > p,
.cms-home .column.main > p {
    margin: 0;
}

.viv-promos > p,
.viv-hero > p {
    display: contents;
}

.viv-promos br {
    display: none;
}


/* Hero */

.viv-hero {
    margin: 12px auto 28px;
    background: transparent;
    min-width: 0;
}

.viv-hero .viv-hero__swiper,
.cms-index-index .viv-hero__swiper,
.cms-home .viv-hero__swiper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 18px;
}

.viv-hero .viv-hero__swiper::after,
.cms-index-index .viv-hero__swiper::after,
.cms-home .viv-hero__swiper::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: var(--viv-yellow);
    z-index: 4;
    pointer-events: none;
}

.viv-hero .swiper-slide {
    display: block;
    width: 100%;
    height: auto;
    font-size: inherit;
    text-align: left;
}

.viv-hero__slide {
    display: flex;
    align-items: center;
    min-height: 280px;
    padding: 36px 24px 48px;
    text-decoration: none !important;
    background:
        radial-gradient(1200px 280px at 80% 20%, rgba(228, 193, 52, 0.34), transparent 60%),
        linear-gradient(105deg, #1a2744 0%, #2a52b8 52%, #1e3d8f 100%);
    color: var(--viv-white);
    box-sizing: border-box;
}

.viv-hero__slide--school {
    background:
        radial-gradient(900px 240px at 10% 80%, rgba(228, 193, 52, 0.28), transparent 55%),
        linear-gradient(105deg, #152038 0%, #1a2744 40%, #2a52b8 100%);
}

.viv-hero__slide--crafts {
    background:
        radial-gradient(800px 240px at 90% 10%, rgba(228, 193, 52, 0.22), transparent 50%),
        linear-gradient(105deg, #2a52b8 0%, #1a2744 100%);
}

.viv-hero__copy {
    max-width: 640px;
    margin: 0 auto 0 8%;
}

.viv-hero__kicker {
    margin: 0 0 8px;
    color: var(--viv-yellow);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.viv-hero__copy h2 {
    margin: 0 0 16px;
    color: var(--viv-white);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
}

.viv-hero__cta {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--viv-yellow);
    color: var(--viv-blue-ink);
    font-size: 15px;
    font-weight: 800;
}

.viv-hero a:hover .viv-hero__cta {
    background: var(--viv-white);
}

.viv-hero .swiper-pagination {
    bottom: 18px;
}

.viv-hero .swiper-pagination-bullet {
    background: var(--viv-white);
    opacity: 0.45;
}

.viv-hero .swiper-pagination-bullet-active {
    background: var(--viv-yellow);
    opacity: 1;
}

.viv-hero .swiper-button-next,
.viv-hero .swiper-button-prev {
    color: var(--viv-yellow);
}

.viv-hero .swiper-button-next:after,
.viv-hero .swiper-button-prev:after {
    font-size: 22px;
}


/* Shortcuts */

.viv-shortcuts {
    margin: 0 0 36px;
}

.viv-shortcuts__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.viv-shortcuts__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 10px 14px;
    border: 1px solid var(--viv-line);
    border-radius: 16px;
    background: var(--viv-white);
    color: var(--viv-ink) !important;
    text-align: center;
    text-decoration: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.viv-shortcuts__item:hover {
    border-color: var(--viv-yellow);
    box-shadow: 0 8px 20px rgba(228, 193, 52, 0.18);
    transform: translateY(-2px);
}

.viv-shortcuts__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(228, 193, 52, 0.16);
    color: var(--viv-blue);
    line-height: 1;
}

.viv-shortcuts__icon i,
.viv-shortcuts__icon svg {
    width: 2.5em !important;
    height: 2.5em !important;
}

.viv-shortcuts__item:hover .viv-shortcuts__icon {
    background: var(--viv-yellow);
    color: var(--viv-blue-ink);
}

.viv-shortcuts__label {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}


/* Product sliders */

.viv-section {
    margin: 0 0 40px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.viv-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
}

.viv-section__title {
    margin: 0;
    min-width: 0;
    padding-left: 12px;
    border-left: 4px solid var(--viv-yellow);
    color: var(--viv-ink);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.viv-section__all {
    color: var(--viv-blue) !important;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.viv-section__all:hover {
    color: var(--viv-blue-ink) !important;
}

.viv-products__swiper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 8px 6px 18px;
}

.viv-products .swiper-slide {
    display: block;
    height: auto;
    min-width: 0;
    font-size: inherit;
    text-align: left;
}

.viv-products .swiper-button-next,
.viv-products .swiper-button-prev {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border-radius: 50%;
    background: var(--viv-yellow);
    box-shadow: 0 6px 18px rgba(26, 39, 68, 0.14);
    color: var(--viv-blue-ink);
}

.viv-products .swiper-button-next:after,
.viv-products .swiper-button-prev:after {
    font-size: 16px;
    font-weight: 800;
}

.viv-card {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 12px 12px 14px;
    border: 1px solid var(--viv-line);
    border-radius: 16px;
    background: var(--viv-white);
    box-sizing: border-box;
    box-shadow: 0 8px 22px rgba(26, 39, 68, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.viv-card:hover {
    border-color: var(--viv-yellow);
    box-shadow: 0 10px 26px rgba(228, 193, 52, 0.16);
}

.viv-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    width: 100%;
    padding: 10px;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #f7f8fb;
    box-sizing: border-box;
}

.viv-card:hover .viv-card__media {
    border-color: var(--viv-yellow);
}

.viv-card__media img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.viv-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--viv-blue);
    color: var(--viv-white);
    font-size: 12px;
    font-weight: 800;
}

.viv-card__badge--new {
    background: var(--viv-yellow);
    color: var(--viv-blue-ink);
}

.viv-card__body {
    padding: 14px 4px 0;
}

.viv-card__author {
    margin: 0 0 4px;
    color: var(--viv-muted);
    font-size: 12px;
    font-weight: 700;
}

.viv-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    color: var(--viv-ink) !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none !important;
}

.viv-card__title:hover {
    color: var(--viv-blue) !important;
}

.viv-card__price {
    margin-top: 10px;
    color: var(--viv-blue);
    font-size: 18px;
    font-weight: 800;
}

.viv-card__price .price {
    color: var(--viv-blue);
}

.viv-card__price .old-price .price,
.viv-card__price .price-box .old-price .price {
    color: var(--viv-muted);
    font-size: 13px;
}


/* Promo banners */

.viv-promos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 8px auto 40px;
}

.viv-promo {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 180px;
    min-width: 0;
    overflow: hidden;
    padding: 22px;
    border-radius: 18px;
    text-decoration: none !important;
    color: var(--viv-white) !important;
    box-sizing: border-box;
    box-shadow: inset 0 -6px 0 var(--viv-yellow);
}

.viv-promo--books {
    background: linear-gradient(135deg, #2a52b8, #1a2744);
}

.viv-promo--school {
    background: linear-gradient(135deg, #1a2744, #2a52b8);
}

.viv-promo--toys {
    background: linear-gradient(135deg, var(--viv-yellow), #c9a61f);
    color: var(--viv-blue-ink) !important;
}

.viv-promo img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.viv-promo__copy {
    text-align: left;
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.viv-promo__copy strong {
    display: block;
    margin-bottom: 6px;
    color: var(--viv-yellow);
    font-size: 22px;
    font-weight: 800;
}

.viv-promo--toys .viv-promo__copy strong {
    color: var(--viv-blue-ink);
}

.viv-promo__copy span {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.92;
}


/* Benefits */

.viv-benefits {
    margin: 0;
    padding: 8px 0;
    background: #fbf8ea;
    border-top: 3px solid var(--viv-yellow);
    border-bottom: 1px solid var(--viv-line);
}

.viv-benefits__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.viv-benefits__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 16px;
    color: var(--viv-ink);
}

.viv-benefits__item:not(:last-child) {
    border-right: 1px solid rgba(228, 193, 52, 0.55);
}

.viv-benefits__item i,
.viv-benefits__item svg {
    flex: 0 0 22px;
    width: 22px;
    margin-top: 3px;
    color: var(--viv-yellow);
    font-size: 18px;
    text-align: center;
}

.viv-benefits__copy {
    min-width: 0;
}

.viv-benefits__item strong {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 800;
}

.viv-benefits__item span,
.viv-benefits__item a {
    color: var(--viv-muted);
    font-size: 13px;
    line-height: 1.4;
}

.viv-benefits__item span {
    display: block;
}

.viv-benefits__item a:hover {
    color: var(--viv-blue);
}


@media (min-width: 960px) {
    .viv-hero__slide {
        min-height: 400px;
        padding: 48px 40px 52px;
    }

    .viv-shortcuts__inner {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .viv-promo {
        min-height: 220px;
    }
}

@media (max-width: 959px) {
    .viv-hero__slide {
        min-height: 240px;
        padding: 32px 24px 48px;
    }

    .viv-promos {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .viv-promo {
        min-height: 170px;
    }

    .viv-benefits__inner {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .viv-benefits__item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 18px 12px;
        text-align: center;
    }

    .viv-benefits__item:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid rgba(228, 193, 52, 0.55);
    }

    .viv-benefits__item i,
    .viv-benefits__item svg {
        margin-top: 0;
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .viv-hero {
        margin: 8px auto 20px;
        padding: 0 16px;
    }

    .viv-section__inner,
    .viv-shortcuts__inner,
    .viv-benefits__inner,
    .viv-promos {
        padding: 0 16px;
    }

    .viv-hero__copy {
        margin: 0 auto;
        text-align: center;
    }

    .viv-hero .swiper-button-next,
    .viv-hero .swiper-button-prev {
        display: none;
    }

    .viv-shortcuts__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .viv-shortcuts__item {
        padding: 12px 8px 12px;
    }

    .viv-shortcuts__label {
        font-size: 12px;
    }

    .viv-section {
        margin-bottom: 28px;
    }

    .viv-section__head {
        padding-right: 16px;
        margin-bottom: 12px;
        gap: 10px;
    }

    .viv-section__title {
        font-size: 20px;
        padding-left: 10px;
    }

    .viv-products .viv-section__inner {
        padding-right: 0;
    }

    .viv-products__swiper {
        padding: 6px 8px 16px 0;
    }

    .viv-card {
        padding: 10px 10px 12px;
    }

    .viv-card__title {
        font-size: 15px;
    }

    .viv-promos {
        grid-template-columns: 1fr;
        margin-bottom: 28px;
    }

    .viv-promo {
        min-height: 160px;
        padding: 18px;
    }

    .viv-promo__copy strong {
        font-size: 20px;
    }

    .viv-products .swiper-button-next,
    .viv-products .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 479px) {
    .viv-hero__copy h2 {
        font-size: 26px;
    }

    .viv-hero__cta {
        min-height: 40px;
        font-size: 14px;
    }
}
