/* Витрина и страница набора шаблонов (docs/seasonal-sets-plan.md §2.4). */
.setPage__notice {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff4e5;
    color: #7a4a00;
}

.setPage__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
    margin-bottom: 32px;
}



.setPage__lead {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.55;
    color: #444;
}

.setBuy {
    padding: 20px;
    border: 1px solid #e6ebe8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

.setBuy__prices {
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.setBuy__price {
    font-size: 32px;
    line-height: 1.1;
}

.setBuy__separate {
    font-size: 18px;
    color: #9a9a9a;
}

.setBuy__saving {
    margin: 6px 0 16px;
    font-size: 14px;
    color: #2f7d4f;
}

.setBuy__btn {
    width: 100%;
    text-align: center;
}

.setBuy__note {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.setBuy__closed {
    margin: 0;
    font-size: 15px;
    color: #555;
}

.setGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.setCard {
    position: relative;
}

.setCard__cover {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: zoom-in;
    transition: box-shadow 0.25s ease;
}

.setCard__label {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-family: OpenSansSemiBold, sans-serif;
    color: #333;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.setCard__cover img {
    display: block;
    width: 100%;
    height: auto;
    transition: filter 0.25s ease, transform 0.35s ease;
}

/* Ховер: макет чуть размывается и темнеет, по центру — лупа и карандаш. */
.setCard__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 28, 44, 0.3);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.setCard__actions {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    gap: 10px;
    width: max-content;
    opacity: 0;
    transform: translate(-50%, -40%);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Квадратные кнопки-пиктограммы: лупа — просмотр, карандаш — редактор. */
.setCard__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
}

.setCard__btn svg {
    display: block;
}

.setCard__cover:hover,
.setCard__cover:focus-within {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.setCard__cover:hover img,
.setCard__cover:focus-within img {
    filter: blur(3px);
    transform: scale(1.04);
}

.setCard__cover:hover::after,
.setCard__cover:focus-within::after {
    opacity: 1;
}

.setCard__cover:hover .setCard__actions,
.setCard__cover:focus-within .setCard__actions {
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* На тач-экранах ховера нет: тап по макету открывает просмотр, а
   «Редактировать» — внутри него. */
@media (hover: none) and (pointer: coarse) {
    .setCard__actions {
        display: none;
    }
}

.setSingles {
    margin-top: 48px;
}


.setSingles__lead {
    margin: 0 0 20px;
    font-size: 16px;
    color: #555;
}

/* Сноски под линией внизу страницы. */
.setNotes {
    margin-top: 48px;
    padding-top: 16px;
    border-top: 1px solid #e3e7e5;
}

.setNotes ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 1.6;
    color: #7a817d;
}

.setNotes li::before {
    content: "* ";
}

@media (max-width: 991px) {
    .setPage__head {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}

@media (max-width: 575px) {
    .setGrid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .setCard__label {
        top: 6px;
        left: 6px;
        padding: 2px 7px;
        font-size: 11px;
    }
}

/* Страница отправленной открытки /c/<token>/. */
.sharedCard {
    padding: 24px 0 56px;
}

.sharedCard__figure {
    max-width: 960px;
    margin: 0 auto;
}

.sharedCard__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.18);
}

/* «Отправить» и «Сохранить» — в один ряд, поровну, и на телефоне тоже. */
.sharedCard__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    max-width: 420px;
    margin: 18px auto 0;
}

.sharedCard__actions .button {
    flex: 1 1 0;
    min-width: 0;
    max-width: 200px;
    margin: 0;
    padding-left: 12px;
    padding-right: 12px;
}

.sharedCard [hidden] {
    display: none !important;
}

.sharedCard__status {
    margin: 10px 0 0;
    color: #555;
    font-size: 14px;
    text-align: center;
}

.sharedCard__promo {
    max-width: 560px;
    margin: 36px auto 0;
    padding: 20px;
    border: 1px solid #e6ebe8;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    font-size: 15px;
    color: #555;
}

.sharedCard__promo p {
    margin: 0 0 14px;
}

/* Сезонный блок наборов на главной (partials/_sets_showcase.html.twig). */
.setsShowcase {
    position: relative;
    overflow: hidden;
    padding: 56px 0 64px;
    background: radial-gradient(120% 140% at 75% 40%, #23395d 0%, #15213a 55%, #0d1526 100%);
    color: #f4efe3;
}

.setsShowcase__snow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.5px 1.5px at 120px 80px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 220px 150px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 70px 190px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 300px 40px, rgba(236, 200, 120, 0.7), transparent);
    background-size: 340px 240px;
    animation: setsSnow 26s linear infinite;
}

@keyframes setsSnow {
    from { background-position: 0 0; }
    to { background-position: 60px 240px; }
}

.setsShowcase__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
    align-items: center;
}

.setsShowcase__inner::before,
.setsShowcase__inner::after {
    /* clearfix Bootstrap .container — иначе псевдоэлементы занимают ячейки сетки. */
    display: none;
}

.setsShowcase__text {
    /* Иначе на телефоне (одна колонка) ячейка сетки растягивается до ширины
       ленты вкладок, и лента не прокручивается, а обрезается краем блока. */
    min-width: 0;
}

.setsShowcase__eyebrow {
    margin: 0 0 10px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e6c46a;
}

.setsShowcase__title {
    margin: 0 0 14px;
    font-size: 36px;
    line-height: 1.18;
    color: #fff;
}

.setsShowcase__lead {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(244, 239, 227, 0.82);
}

.setsShowcase__chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 18px;
    /* 12 наборов в строку не помещаются — лента с прокруткой вместо
       четырёх рядов вкладок; правый край гаснет, намекая, что есть ещё. */
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
    padding: 2px 12px 2px 0;
}

.setsShowcase__chips::-webkit-scrollbar {
    display: none;
}

.setsShowcase__chip {
    padding: 6px 14px;
    border: 1px solid rgba(230, 196, 106, 0.5);
    border-radius: 999px;
    background: transparent;
    color: #f4efe3;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex: none;
    white-space: nowrap;
}

.setsShowcase__chip.is-active {
    background: #e6c46a;
    border-color: #e6c46a;
    color: #15213a;
}

.setsShowcase__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin: 0 0 18px;
}

.setsShowcase__price strong {
    font-size: 34px;
    line-height: 1;
    color: #fff;
}

.setsShowcase__price s {
    font-size: 18px;
    color: rgba(244, 239, 227, 0.55);
}

.setsShowcase__price span {
    flex-basis: 100%;
    font-size: 14px;
    color: #9fd8b0;
}

.setsShowcase__offer[hidden] {
    display: none;
}

.setsShowcase__stage {
    position: relative;
    padding-top: 6%;
}

.setsStack {
    position: relative;
    display: none;
    aspect-ratio: 3 / 2;
    width: 100%;
    perspective: 1600px;
}

.setsStack.is-active {
    display: block;
}

.setsStack__card {
    position: absolute;
    top: 6%;
    left: 6%;
    width: 88%;
    margin: 0;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    background: #24324d;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    transform-origin: 50% 90%;
    transition: transform 0.65s cubic-bezier(0.22, 0.8, 0.3, 1), opacity 0.65s ease;
    will-change: transform, opacity;
}

.setsStack__card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.setsStack__card[data-pos="0"] { z-index: 10; transform: none; }
.setsStack__card[data-pos="1"] { z-index: 9; transform: translate(4%, -6%) rotate(4deg) scale(0.95); }
.setsStack__card[data-pos="2"] { z-index: 8; transform: translate(-4%, -10%) rotate(-4deg) scale(0.9); }
.setsStack__card[data-pos="3"] { z-index: 7; transform: translate(1%, -13%) rotate(1.5deg) scale(0.86); opacity: 0.8; }
.setsStack__card[data-pos="hidden"] { z-index: 1; transform: translateY(-14%) scale(0.84); opacity: 0; }

/* Карточка улетает вправо, за край блока: влево она пролетала над вкладками
   и текстом — по ней промахивались кликом, а колесо над ней крутило страницу
   вместо ленты вкладок. И кликнуть по улетающей нельзя. */
.setsStack__card.is-leaving {
    z-index: 11;
    transform: translate(112%, 10%) rotate(16deg);
    opacity: 0;
    pointer-events: none;
}

.setsStack__card.is-returning {
    z-index: 11;
    transform: translate(112%, 10%) rotate(16deg);
    opacity: 0;
    transition: none;
    pointer-events: none;
}

.setsStack__label {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #15213a;
    font-size: 14px;
    font-family: OpenSansSemiBold, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s 0.3s;
}

.setsStack__card[data-pos="0"] .setsStack__label {
    opacity: 1;
}

.setsShowcase__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.setsShowcase__arrow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(244, 239, 227, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    /* Стрелка — SVG по центру: символы ‹ › в шрифте сидят ниже середины. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.setsShowcase__arrow:hover {
    background: rgba(255, 255, 255, 0.16);
}

.setsShowcase__counter {
    min-width: 60px;
    text-align: center;
    font-size: 14px;
    color: rgba(244, 239, 227, 0.75);
}

@media (prefers-reduced-motion: reduce) {
    .setsShowcase__snow { animation: none; }
    .setsStack__card { transition: none; }
}

@media (max-width: 991px) {
    .setsShowcase {
        padding: 40px 0 44px;
    }

    .setsShowcase__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .setsShowcase__stage {
        order: -1;
    }

    .setsShowcase__title {
        font-size: 28px;
    }
}

/* Плашка наборов в каталоге (partials/_sets_banner.html.twig). */
.setsBanner {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    margin: 16px 0 24px;
    padding: 14px 18px 14px 14px;
    border-radius: 14px;
    background: linear-gradient(100deg, #15213a 0%, #23395d 100%);
    color: #f4efe3;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(21, 33, 58, 0.18);
    transition: transform 0.2s, box-shadow 0.2s;
}

.setsBanner:hover,
.setsBanner:focus {
    color: #f4efe3;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(21, 33, 58, 0.28);
}

.setsBanner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.setsBanner__title {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
    font-family: OpenSansSemiBold, sans-serif;
    color: #fff;
}

.setsBanner__text {
    font-size: 14px;
    line-height: 1.45;
    color: rgba(244, 239, 227, 0.82);
}

.setsBanner__text strong {
    color: #e6c46a;
}

.setsBanner__cta {
    padding: 10px 18px;
    border-radius: 999px;
    background: #e6c46a;
    color: #15213a;
    font-family: OpenSansSemiBold, sans-serif;
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 767px) {
    /* Компактно: плашка не должна уводить первые шаблоны за экран. */
    .setsBanner {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 6px 12px;
        margin: 12px 0 16px;
        padding: 10px;
    }

    .setsBanner__title {
        font-size: 15px;
        line-height: 1.3;
    }

    .setsBanner__text {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 13px;
    }

    .setsBanner__cta {
        grid-column: 2;
        justify-self: start;
        padding: 6px 14px;
        font-size: 13px;
    }
}

.setPage__promo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 0 32px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

/* Список наборов /sets/: карточка-«постер» — коллаж, скидка, цена и стрелка. */
.setList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.setList__link,
.setList__link:hover,
.setList__link:focus {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e8ecea;
    border-radius: 18px;
    background: #fff;
    color: #1f2a37;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.setList__link:hover,
.setList__link:focus-visible {
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.16);
}

.setList__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f3f2;
}

.setList__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.setList__link:hover .setList__media img,
.setList__link:focus-visible .setList__media img {
    transform: scale(1.06);
}

.setList__covers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    height: 100%;
}

.setList__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    flex: 1 1 auto;
    padding: 20px 22px 22px;
}

.setList__text {
    min-width: 0;
}

.setList__title {
    display: block;
    font-size: 22px;
    line-height: 1.25;
    font-family: OpenSansSemiBold, sans-serif;
}

.setList__count {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    color: #6b7280;
}

/* Кнопок на карточках нет — при 12 наборах они рябили. Вся карточка —
   ссылка; на наведении название окрашивается в цвет бренда. */
.setList__title {
    transition: color 0.2s ease;
}

.setList__link:hover .setList__title,
.setList__link:focus-visible .setList__title {
    color: var(--color-brand, #1ba84f);
}

/* «Другие наборы» внизу страницы набора: лента карточек /sets/. Свайп на
   телефоне прилипает к карточке; на десктопе — стрелки и колесо (скрипт в
   template_set.html.twig). */
.setOthers {
    margin-top: 56px;
}

.setOthers__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.setOthers__title {
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
    font-family: OpenSansSemiBold, sans-serif;
}

.setOthers__nav {
    display: flex;
    gap: 8px;
}

.setOthers.is-static .setOthers__nav {
    display: none;
}

.setOthers__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #d9dfdc;
    border-radius: 50%;
    background: #fff;
    color: #1f2a37;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.setOthers__arrow:hover:not(:disabled) {
    border-color: var(--color-brand, #1ba84f);
    color: var(--color-brand, #1ba84f);
}

.setOthers__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.setOthers__track {
    display: flex;
    gap: 20px;
    margin: 0;
    /* Поля под тень карточки при наведении — иначе её срезает прокрутка. */
    padding: 6px 0 28px;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.setOthers__track::-webkit-scrollbar {
    display: none;
}

.setOthers__item {
    flex: 0 0 calc((100% - 3 * 20px) / 4);
    min-width: 0;
    scroll-snap-align: start;
}

.setOthers__item .setList__body {
    padding: 14px 16px 16px;
}

.setOthers__item .setList__title {
    font-size: 18px;
}

.setOthers__all {
    margin: 0;
    font-size: 15px;
}

@media (max-width: 991px) {
    .setOthers__item {
        flex-basis: calc((100% - 20px) / 2.3);
    }
}

@media (max-width: 575px) {
    .setOthers__title {
        font-size: 22px;
    }

    .setOthers__nav {
        display: none;
    }

    .setOthers__track {
        gap: 14px;
    }

    /* Следующая карточка выглядывает справа — видно, что ленту можно листать. */
    .setOthers__item {
        flex-basis: 78%;
    }
}

.setsInfo {
    margin: 40px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}
