/* Раздел «Новогодние наборы» (/novogodnie-nabory/).
   Первый экран использует готовый блок .aiord сайта (серая панель «текст + картинка»), здесь только расширенный
   вариант для страницы набора, этапы ухода, карточки списка и блок покупки. */

.ns-page { --ns-grey: #f3f3f3; --ns-line: #e4e4e4; --ns-text: #2b2829; --ns-muted: #6b6b6b; --ns-accent: #2b2829; color: var(--ns-text); }
html { scroll-behavior: smooth; }

/* ---------- Первый экран набора: .aiord в расширенном варианте ---------- */
.ns-page .aiord--collection { background: transparent; padding: 36px 0 0; }
.ns-page .aiord--collection .aiord__cols {
    max-width: none; margin: 0; padding: 0; gap: 0; align-items: stretch;
    border: 1px solid #ececec; border-radius: 6px; overflow: hidden; background: #fff;
}
.ns-page .aiord--collection .aiord__info { flex: 0 0 48%; background: var(--ns-grey); padding: 64px 56px 56px; display: flex; flex-direction: column; justify-content: center; }
.ns-page .aiord--collection .aiord__title {
    margin: 0 0 22px; font-family: "Cera Pro", inherit; font-weight: 400; font-size: 38px; line-height: 1.12;
    letter-spacing: 0; text-transform: uppercase; text-wrap: balance;
}
.ns-page .aiord--collection .aiord__text { margin: 0; font-size: 15px; line-height: 1.6; font-weight: 400; color: #444; text-wrap: pretty; }
.ns-page .aiord--collection .aiord__photo {
    position: relative; flex: 1 1 auto; width: auto; background: #fff;
    display: flex; align-items: center; justify-content: center; padding: 28px 24px 40px;
}
.ns-page .aiord--collection .aiord__photo img { display: block; width: 100%; height: auto; max-height: none; }
.ns-hero__caption { position: absolute; right: 18px; bottom: 12px; font-size: 11px; color: #9a9a9a; }


/* цена + количество + кнопка */
.ns-hero__price { margin: 26px 0 18px; display: flex; align-items: center; gap: 14px; }
.ns-price { font-family: "Cera Pro", inherit; font-size: 30px; line-height: 1; color: var(--ns-text); white-space: nowrap; }
.ns-price--old { font-size: 18px; color: #9a9a9a; text-decoration: line-through; }
.ns-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ns-qty { display: inline-flex; align-items: stretch; height: 46px; border: 1px solid #d9d9d9; border-radius: 4px; background: #fff; }
.ns-qty__btn { width: 38px; border: 0; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ns-text); }
.ns-qty__btn:hover { background: #f1f1f1; }
.ns-qty__input { width: 44px; border: 0; border-left: 1px solid #eee; border-right: 1px solid #eee; text-align: center; font-size: 14px; background: transparent; color: var(--ns-text); outline: none; }
.ns-buy__btn[disabled] { opacity: .6; cursor: default; }
.ns-buy__btn.is-done { background: #4b4647; }
.ns-buy__cart { font-size: 13px; color: var(--ns-text); text-decoration: underline; text-underline-offset: 3px; }
.ns-buy__cart:hover { text-decoration: none; }
.ns-buy__error { flex-basis: 100%; font-size: 13px; color: #b42318; }

/* ---------- Заголовок и вводный текст ---------- */
.ns-intro { padding: 72px 0 12px; }
.ns-h2 { margin: 0 0 16px; color: var(--ns-text); }
.ns-lead { margin: 0; max-width: 82ch; font-size: 15px; line-height: 1.65; color: #555; }

/* ---------- Этапы ухода ---------- */
.ns-stages { padding: 8px 0 10px; }
.ns-stage { border-top: 1px solid var(--ns-line); padding: 34px 0 36px; }
.ns-stage:first-child { margin-top: 28px; }
.ns-stage__label { margin: 0 0 18px; font-family: "Cera Pro", inherit; font-weight: 400; font-size: 22px; line-height: 1.25; letter-spacing: .01em; color: var(--ns-text); }
.ns-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.ns-item__img { display: block; width: 120px; height: 120px; border-radius: 6px; background: var(--ns-grey); overflow: hidden; }
.ns-item__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ns-item__title { margin: 0 0 8px; font-size: 20px; line-height: 1.3; font-weight: 500; color: var(--ns-text); }
.ns-item__text { margin: 0 0 10px; max-width: 70ch; font-size: 14px; line-height: 1.6; color: #555; text-wrap: pretty; }
.ns-item__link { font-size: 12px; color: var(--ns-text); text-decoration: underline; text-underline-offset: 3px; }
.ns-item__link:hover { text-decoration: none; }
.ns-item__side { border-left: 1px solid var(--ns-line); padding-left: 24px; }

.ns-chips { margin-bottom: 16px; }
.ns-chips__title { margin-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--ns-text); }
.ns-chips__list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ns-chips__list li { padding: 5px 12px; border-radius: 14px; background: var(--ns-grey); font-size: 12px; line-height: 1.3; color: #444; }

/* Состав (INCI) — раскрывающийся блок (разметка та же, что на странице кремов для рук) */
.ns-page .cs-inci__head {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    background: var(--ns-grey); border-radius: 4px; padding: 11px 14px; font-size: 13px; color: var(--ns-text);
}
.ns-page .cs-inci__head::-webkit-details-marker { display: none; }
.ns-page .cs-inci__icon { position: relative; width: 14px; height: 14px; flex: 0 0 auto; }
.ns-page .cs-inci__icon::before, .ns-page .cs-inci__icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ns-text); transform: translate(-50%, -50%); transition: opacity .15s; }
.ns-page .cs-inci__icon::before { width: 10px; height: 1px; }
.ns-page .cs-inci__icon::after { width: 1px; height: 10px; }
.ns-page .cs-inci[open] .cs-inci__icon::after { opacity: 0; }
.ns-page .cs-inci__body { padding: 14px 4px 0; font-size: 12px; line-height: 1.55; color: var(--ns-muted); }

/* ---------- Рекомендации, финальная фраза, нижний блок покупки ---------- */
.ns-outro { padding: 6px 0 110px; }
.ns-note { margin: 0 0 12px; max-width: 110ch; font-size: 14px; line-height: 1.6; color: #555; }
.ns-closing { margin: 26px 0 0; max-width: 60ch; font-family: "Cera Pro", inherit; font-size: 26px; line-height: 1.3; color: var(--ns-text); text-wrap: balance; }
.ns-bottom {
    margin-top: 48px; padding: 30px 36px; border-radius: 6px; background: var(--ns-grey);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px;
}
.ns-bottom__name { font-family: "Cera Pro", inherit; font-size: 24px; line-height: 1.2; text-transform: uppercase; }
.ns-bottom__tag { margin-top: 6px; max-width: 46ch; font-size: 14px; line-height: 1.5; color: #555; }
.ns-bottom__art { margin-top: 8px; font-size: 12px; color: #9a9a9a; }
.ns-bottom__action { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.ns-bottom__action .ns-hero__price { margin: 0; }

/* ---------- Список наборов (карточки) ---------- */
.ns-list { padding: 40px 0 110px; }
.ns-list__title { margin: 0 0 8px; color: var(--ns-text); }
.ns-list__sub { margin: 0 0 36px; font-size: 15px; color: var(--ns-muted); }
.ns-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.ns-card { display: flex; flex-direction: column; }
.ns-card__img { display: block; border: 1px solid #ececec; border-radius: 6px; overflow: hidden; background: #fff; position: relative; }
.ns-card__img img { display: block; width: 100%; height: auto; transition: transform .35s; }
.ns-card__img:hover img { transform: scale(1.03); }
.ns-card__percent {width: 45px; height: 45px; background: #f42c2c; border-radius: 100px; color: #fff;font-size: 14px; font-weight: 500; position: absolute; right: 10px; bottom: 10px; z-index: 9; display: flex; align-items: center; justify-content: center;}
.ns-percent {width: 40px; height: 40px; background: #f42c2c; border-radius: 100px; color: #fff;font-size: 12px; font-weight: 500;  z-index: 9; display: flex; align-items: center; justify-content: center;}
.ns-card__body { display: flex; flex-direction: column; flex: 1; padding-top: 18px; }
.ns-card__title { margin: 0 0 8px; font-family: "Cera Pro", inherit; font-weight: 400; font-size: 22px; line-height: 1.2; }
.ns-card__title a { color: var(--ns-text); text-decoration: none; }
.ns-card__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ns-card__text { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: #555; min-height: 3em; }
.ns-card__price { margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; }
.ns-card__price .ns-price { font-size: 24px; }
.ns-card__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ns-card__more, .btn-outline {
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    height: 50px; padding: 0 20px; border: 1px solid var(--ns-text); border-radius: 6px; background: transparent;
    font-family: inherit; font-size: 14px; font-weight: 500; line-height: normal; text-transform: uppercase;
    color: var(--ns-text); text-decoration: none; cursor: pointer; transition: background-color .2s;
}
.ns-card__more:hover, .btn-outline:hover { background: var(--ns-grey); text-decoration: none; }
.ns-card .ns-buy { gap: 8px 12px; }

/* ---------- Планшет / телефон ---------- */
@media (max-width: 1100px) {
    .ns-page .aiord--collection .aiord__info { padding: 44px 36px; flex-basis: 50%; }
    .ns-page .aiord--collection .aiord__title { font-size: 30px; }
    .ns-item { grid-template-columns: 100px minmax(0, 1fr); }
    .ns-item__img { width: 100px; height: 100px; }
    .ns-item__side { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
    .ns-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .ns-page .aiord--collection { padding-top: 16px; }
    .ns-page .aiord--collection .aiord__cols { flex-direction: column; }
    .ns-page .aiord--collection .aiord__info { flex-basis: auto; padding: 26px 20px 28px; text-align: left; }
    .ns-page .aiord--collection .aiord__title { font-size: 25px; margin-bottom: 14px; }
    .ns-page .aiord--collection .aiord__photo { order: -1; width: 100%; max-width: none; padding: 12px 12px 30px; }
    .ns-price { font-size: 26px; }
    .ns-hero__price { margin: 20px 0 14px; }
    .ns-intro { padding-top: 48px; }
    .ns-stage { padding: 26px 0 28px; }
    .ns-stage__label { font-size: 18px; }
    .ns-item { grid-template-columns: 84px minmax(0, 1fr); gap: 14px 16px; }
    .ns-item__img { width: 84px; height: 84px; }
    .ns-item__title { font-size: 17px; }
    .ns-closing { font-size: 21px; }
    .ns-bottom { padding: 22px 20px; }
    .ns-bottom__name { font-size: 20px; }
    .ns-outro { padding-bottom: 80px; }
    .ns-cards { grid-template-columns: 1fr; gap: 34px; }
}
