/* ==========================================================================
   Be Craft — картка «Подарунковий сертифікат» (новий дизайн, макет spec 333 → 4.3). Префікс .ct-*.
   Працює поверх new-home.css, new-product.css (np-*) і new-masterclass.css (картки варіацій .mk-card, фото .mk-media).
   ========================================================================== */

/* ---------- Товар: інформація ліворуч, фото праворуч ---------- */
.ct-main__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 64px; }
.ct-summary { position: static; padding: 0; }
.ct-media { position: sticky; top: 24px; }

.ct-badges { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 24px 0 0; padding: 0; list-style: none; }
.ct-badges li { position: relative; padding-left: 16px; font-weight: 300; font-size: 13px; line-height: 26px; color: var(--nd-muted); }
.ct-badges li::before { content: ''; position: absolute; left: 0; top: 11px; width: 4px; height: 4px; border-radius: 50%; background: var(--nd-gold); }

/* Групи форматів */
.ct-group { margin-top: 16px; }
.ct-group + .ct-group { margin-top: 24px; }
.ct-group__title { margin: 0; font-size: 13px; line-height: 18px; color: var(--nd-muted); }
.ct-group .mk-cards { margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ct-attr:not([data-mk-kind="place"]) .ct-group .mk-card { height: 64px; justify-content: center; }
.ct-group .mk-card__title { text-transform: none; letter-spacing: 0.2px; font-size: 13px; line-height: 17px; }
.ct-attr:not([data-mk-kind="place"]) .ct-group:only-of-type .mk-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* Майстерні — вертикальний список радіо */
.ct-attr[data-mk-kind="place"] .mk-cards { grid-template-columns: 1fr; gap: 6px; margin-top: 16px; }
.ct-attr[data-mk-kind="place"] .mk-card { height: 52px; }

/* Як вручити */
.ct-delivery { display: grid; gap: 8px; margin-top: 16px; }
.ct-radio { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; border: 0.8px solid var(--nd-light-2); cursor: pointer; transition: border-color 0.2s; }
.ct-radio:hover { border-color: var(--nd-dark); }
.ct-radio input { position: absolute; opacity: 0; pointer-events: none; }
.ct-radio__dot { position: relative; flex: none; width: 14px; height: 14px; border: 0.8px solid var(--nd-muted-2); border-radius: 50%; }
.ct-radio input:checked + .ct-radio__dot { border-color: var(--nd-dark); }
.ct-radio input:checked + .ct-radio__dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--nd-dark); }
.ct-radio:has(input:checked) { border-color: var(--nd-dark); }
.ct-radio input:focus-visible + .ct-radio__dot { outline: 2px solid var(--nd-gold); outline-offset: 3px; }
.ct-radio__text { display: flex; flex-direction: column; min-width: 0; }
.ct-radio__title { font-family: var(--nd-font-head); font-size: 14px; line-height: 20px; color: var(--nd-dark); }
.ct-radio__sub { font-size: 12px; line-height: 17px; color: var(--nd-muted); }

/* Кому / Побажання */
.ct-input { display: block; width: 100%; height: 52px; margin-top: 12px; padding: 0 16px; border: 0.8px solid var(--nd-light-2); border-radius: 0; background: transparent; font: 300 15px var(--nd-font-body); color: var(--nd-dark); outline: none; transition: border-color 0.2s; }
.ct-input::placeholder { color: var(--nd-muted-2); }
.ct-input:focus { border-color: var(--nd-dark); }
.ct-hint { margin: 8px 0 0; font-size: 12px; line-height: 17px; color: var(--nd-muted); }

/* ---------- Як це працює ---------- */
.ct-steps { background: var(--nd-card); }
.ct-steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.ct-step { display: flex; align-items: flex-start; gap: 24px; }
.ct-step__n { flex: none; font-size: 12px; line-height: 28px; letter-spacing: 1.8px; color: var(--nd-muted-2); }
.ct-step h3 { margin: 0; font: 400 20px/1.35 var(--nd-font-head); color: var(--nd-dark); }
.ct-step p { margin: 8px 0 0; font-weight: 300; font-size: 16px; line-height: 26px; color: var(--nd-muted); }

/* ---------- FAQ (світлий) ---------- */
.ct-faq__list { border-top: 0.8px solid var(--nd-light-2); }
.ct-faq__item { border-bottom: 0.8px solid var(--nd-light-2); }
.ct-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; list-style: none; cursor: pointer; font: 400 20px/1.35 var(--nd-font-head); color: var(--nd-dark); }
.ct-faq__item summary::-webkit-details-marker { display: none; }
.ct-faq__icon { position: relative; flex: none; width: 20px; height: 20px; transition: transform 0.2s; }
.ct-faq__icon::before, .ct-faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--nd-muted); transform: translate(-50%, -50%); }
.ct-faq__icon::before { width: 14px; height: 1px; }
.ct-faq__icon::after { width: 1px; height: 14px; }
.ct-faq__item[open] .ct-faq__icon { transform: rotate(45deg); }
.ct-faq__answer { max-width: 900px; padding: 0 0 28px; font-weight: 300; font-size: 17px; line-height: 28px; color: var(--nd-muted); }
.ct-faq__answer p { margin: 0; }

/* ---------- Інші подарунки ---------- */
.ct-others__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1023px) {
	.ct-main__grid { gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
	.ct-steps__list { grid-template-columns: 1fr; gap: 24px; }
	.ct-others__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.ct-main__grid { display: flex; flex-direction: column; }
	.ct-media { position: static; order: -1; aspect-ratio: 4 / 5; margin-bottom: 32px; }
	.ct-summary { padding: 0 20px; }
	.ct-group .mk-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ct-faq__item summary { padding: 22px 0; font-size: 17px; }
	.ct-faq__answer { font-size: 15px; line-height: 24px; }
	.ct-others__grid { grid-template-columns: 1fr; }
}
