/* Страница «Набор парфюмированных кремов для рук» (/hand-cream-set/).
   Первый экран использует готовый блок .aiord сайта (серая панель «текст + картинка»),
   здесь только расширенный вариант .aiord--collection и список историй. */

.cs-page { --cs-grey: #f3f3f3; --cs-line: #e4e4e4; --cs-text: #2b2829; --cs-muted: #6b6b6b; }

/* ---------- Первый блок: .aiord в расширенном варианте ---------- */
.cs-page .aiord--collection { background: transparent; padding: 36px 0 0; }
.cs-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;
}
.cs-page .aiord--collection .aiord__info {
    flex: 0 0 54%; background: var(--cs-grey);
    padding: 56px 56px 48px;
}
.cs-page .aiord--collection .aiord__title {
    margin: 0 0 28px; font-family: "Cera Pro", inherit; font-weight: 400;
    font-size: 40px; line-height: 1.12; letter-spacing: 0; text-wrap: balance;
}
.cs-page .aiord--collection .aiord__lead {
    margin: 0 0 14px; font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--cs-text);
}
.cs-page .aiord--collection .aiord__lead--sm { margin: 22px 0 0; font-size: 16px; }
.cs-page .aiord--collection .aiord__text {
    margin: 0 0 12px; font-size: 15px; line-height: 1.55; font-weight: 400; color: #555;
    text-wrap: pretty;
}
.cs-page .aiord--collection .aiord__photo {
    flex: 1 1 auto; width: auto; background: #fff;
    display: flex; align-items: center; justify-content: center; padding: 24px;
}
.cs-page .aiord--collection .aiord__photo img { display: block; width: 100%; height: auto; max-height: none; }

/* Кнопка «Выбрать крем» — плавная прокрутка к списку кремов (#creams) */
html { scroll-behavior: smooth; }
.cs-page .aiord--collection .aiord__buttons { margin-top: 28px; }
.cs-stories { scroll-margin-top: 90px; }

/* ---------- Список историй ---------- */
.cs-stories { padding: 80px 0 20px; }
.cs-stories__title { margin: 0 0 24px; color: var(--cs-text); }
.cs-list { border-top: 1px solid var(--cs-line); }
.cs-row {
    display: grid; grid-template-columns: 136px minmax(0, 1fr) 360px; gap: 28px;
    align-items: center; padding: 26px 0; border-bottom: 1px solid var(--cs-line);
}
.cs-row__img {
    display: block; width: 136px; height: 136px; border-radius: 6px; background: var(--cs-grey); overflow: hidden;
}
.cs-row__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cs-row__title {
    margin: 0 0 10px; font-family: "Cera Pro", inherit; font-weight: 400;
    font-size: 24px; line-height: 1.25; color: var(--cs-text);
}
.cs-row__time { letter-spacing: 0.02em; }
.cs-row__sep { margin: 0 14px; color: var(--cs-text); }
.cs-row__text { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: #555; max-width: 62ch; text-wrap: pretty; }
.cs-row__link { font-size: 13px; color: var(--cs-text); text-decoration: underline; text-underline-offset: 3px; }
.cs-row__link:hover { text-decoration: none; }

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

/* ---------- Нижний текст ---------- */
.cs-outro { padding: 50px 0 120px; }
.cs-outro__title { margin: 0 0 16px; color: var(--cs-text); }
.cs-outro p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: #555; max-width: 82ch; }
.cs-outro strong { color: var(--cs-text); font-weight: 600; }

/* ---------- Планшет / телефон ---------- */
@media (max-width: 1100px) {
    .cs-page .aiord--collection .aiord__info { padding: 40px 36px; flex-basis: 52%; }
    .cs-page .aiord--collection .aiord__title { font-size: 32px; }
    .cs-row { grid-template-columns: 112px minmax(0, 1fr); }
    .cs-row__img { width: 112px; height: 112px; }
    .cs-inci { grid-column: 1 / -1; border-left: 0; padding-left: 0; margin-top: 0; }
}
@media (max-width: 767px) {
    .cs-page .aiord--collection { padding-top: 16px; }
    .cs-page .aiord--collection .aiord__cols { flex-direction: column; }
    .cs-page .aiord--collection .aiord__info { flex-basis: auto; padding: 28px 20px 24px; text-align: left; }
    .cs-page .aiord--collection .aiord__title { font-size: 26px; margin-bottom: 18px; }
    .cs-page .aiord--collection .aiord__lead { font-size: 17px; }
    .cs-page .aiord--collection .aiord__photo { order: -1; padding: 8px 12px 16px; width: 100%; max-width: none; }
    .cs-stories { padding-top: 48px; }
    .cs-row { grid-template-columns: 88px minmax(0, 1fr); gap: 14px 16px; padding: 20px 0; align-items: start; }
    .cs-row__img { width: 88px; height: 88px; }
    .cs-row__title { font-size: 19px; }
    .cs-row__sep { margin: 0 8px; }
    .cs-row__text { font-size: 14px; }
    .cs-outro { padding-bottom: 80px; }
}

/* ---------- Комплект: цена на первом экране, выбор кремов, «Ваш комплект» ---------- */
.cs-price { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 8px; }
.cs-price__old { font-family: "Cera Pro", inherit; font-size: 22px; color: #9a9a9a; text-decoration: line-through; }
.cs-price__new { font-family: "Cera Pro", inherit; font-weight: 400; font-size: 40px; line-height: 1; color: var(--cs-text); }
.cs-price__note { margin: 0; max-width: 46ch; font-size: 14px; line-height: 1.5; color: #444; }

.cs-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.cs-pick__btn {
    height: 40px; min-width: 130px; padding: 0 18px; border: 1px solid var(--cs-text); border-radius: 6px; background: transparent;
    font: inherit; font-size: 13px; font-weight: 500; text-transform: uppercase; color: var(--cs-text); cursor: pointer;
    transition: background-color .2s, color .2s;
}
.cs-pick__btn:hover { background: var(--cs-grey); }
.cs-pick__btn[aria-pressed="true"] { background: var(--cs-text); color: #fff; }
.cs-pick__price { font-family: "Cera Pro", inherit; font-size: 18px; color: var(--cs-text); }
.cs-pick__old { font-size: 13px; color: #9a9a9a; }
.cs-row--selected .cs-row__img { box-shadow: inset 0 0 0 1px var(--cs-text); }

.cs-kit { margin-top: 48px; padding: 30px 36px; border-radius: 6px; background: var(--cs-grey); scroll-margin-top: 90px; }
.cs-kit__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; }
.cs-kit__title { margin: 0; color: var(--cs-text); }
.cs-kit__count { font-size: 14px; color: var(--cs-muted); }
.cs-page .aiord--collection .aiord__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cs-btn-outline {
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    height: 50px; padding: 0 20px; border: 1px solid var(--cs-text); border-radius: 6px; background: transparent;
    font-family: inherit; font-size: 14px; font-weight: 500; line-height: normal; text-transform: uppercase;
    color: var(--cs-text); text-decoration: none; cursor: pointer; transition: background-color .2s;
}
.cs-btn-outline:hover { background: #e9e9e9; text-decoration: none; }
.cs-buyall[hidden] { display: none; }
.cs-buyall[disabled] { opacity: .6; cursor: default; }
.cs-buyall__error { flex-basis: 100%; font-size: 13px; color: #b42318; }
.cs-kit__items { margin: 18px 0 0; padding: 0; list-style: none; }
.cs-kit__items li { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid #dedede; font-size: 14px; color: var(--cs-text); }
.cs-kit__remove { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; font-size: 18px; line-height: 1; color: var(--cs-muted); cursor: pointer; }
.cs-kit__remove:hover { background: #fff; color: var(--cs-text); }
.cs-kit__totals { margin-top: 14px; padding-top: 14px; border-top: 1px solid #cfcfcf; }
.cs-kit__line { display: flex; justify-content: space-between; gap: 20px; padding: 3px 0; font-size: 14px; color: var(--cs-text); }
.cs-kit__line strong { font-weight: 500; white-space: nowrap; }
.cs-kit__line--base strong { text-decoration: line-through; color: #8a8a8a; }
.cs-kit__line--pay { align-items: baseline; padding-top: 8px; font-size: 16px; }
.cs-kit__line--pay strong { font-family: "Cera Pro", inherit; font-weight: 400; font-size: 30px; }
.cs-kit__hint { margin-top: 10px; font-size: 14px; line-height: 1.5; color: #444; }
.cs-kit__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 20px; margin-top: 18px; }
.cs-kit__submit[disabled] { opacity: .45; cursor: default; }
.cs-kit__error { margin-right: auto; font-size: 13px; color: #b42318; }

@media (max-width: 767px) {
    .cs-price__new { font-size: 32px; }
    .cs-price__old { font-size: 18px; }
    .cs-kit { padding: 22px 18px; }
    .cs-page .aiord--collection .aiord__buttons > .btn, .cs-page .aiord--collection .aiord__buttons > .cs-btn-outline { width: 100%; justify-content: center; }
    .cs-kit__footer > .btn, .cs-kit__footer > .cs-btn-outline { width: 100%; justify-content: center; }
}
