/* Шаблон «Коллекция»: костяной фон, швейцарская типографика (Onest + курсив Cormorant), бегущая строка направлений,
   варианты — экраны, ложащиеся стопкой (js/tpl_motion.js: --stk, --sp; появление data-rv). */
body.t-collection { --cl-bg: #ECE9E2; --cl-ink: #141413; --cl-mute: #77736B; --cl-line: rgba(20, 20, 19, .14);
  background: var(--cl-bg); color: var(--cl-ink); font-family: "Onest", "Inter", system-ui, sans-serif; font-size: 15.5px; }
.t-collection .top, .t-collection .hero { display: none; }
.t-collection .items { padding: 0 0 20px; }
.t-collection .items > .wrap { max-width: none; padding: 0; }
.t-collection h1, .t-collection h2, .t-collection h3 { color: inherit; }
.t-collection a { color: inherit; }
.t-collection .ou-lang { position: relative; z-index: 60; }

/* Полоса прогресса прокрутки */
.cl-progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 70; background: var(--brand); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); pointer-events: none; }

/* Шапка */
.cl-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 22px clamp(20px, 3.4vw, 48px); border-bottom: 1px solid var(--cl-line); }
.cl-brand { display: flex; align-items: center; min-width: 0; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.cl-brand img { max-height: 38px; max-width: 190px; object-fit: contain; }
.cl-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-no { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cl-mute); white-space: nowrap; }
.cl-phone { justify-self: end; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--cl-line); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .25s, color .25s; }
.cl-phone:hover { background: var(--cl-ink); color: var(--cl-bg); }

/* Обложка */
.cl-hero { padding: clamp(40px, 7vh, 90px) clamp(20px, 3.4vw, 48px) 0; min-height: calc(100svh - 86px); display: flex; flex-direction: column; box-sizing: border-box; }
.cl-title { font: 700 clamp(54px, 8.6vw, 148px) / .92 "Onest", sans-serif; letter-spacing: -.058em; margin: 0; max-width: 15ch; overflow-wrap: anywhere; }
.cl-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em 0; margin-bottom: -.1em; }
.cl-w > span { display: inline-block; }
.cl-w.cl-it { font: italic 500 1.1em / .84 "Cormorant Garamond", Georgia, serif; letter-spacing: -.025em; color: var(--brand); padding-right: .08em; }
.cl-hgrid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: clamp(20px, 3vw, 48px); margin-top: auto; padding: 34px 0 30px; border-top: 1px solid var(--cl-line); margin-top: clamp(36px, 6vh, 70px); }
.cl-lead p { margin: 0; font-size: 17px; line-height: 1.55; white-space: pre-line; max-width: 46ch; }
.t-collection .dl { margin-top: 18px; display: inline-flex; background: transparent; border: 1px solid var(--cl-ink); color: var(--cl-ink); border-radius: 99px; font-size: 13px; }
.t-collection .dl .dl-ic, .t-collection .dl .dl-left { color: var(--brand); }
.t-collection .dl .dl-left { border-left-color: var(--cl-line); }
.t-collection .dl.expired { border-color: var(--cl-line); color: var(--cl-mute); }
.cl-facts { display: grid; align-content: start; }
.cl-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--cl-line); }
.cl-facts div:first-child { padding-top: 0; }
.cl-facts b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cl-k { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cl-mute); }
.cl-mgr { display: flex; align-items: center; gap: 12px; align-self: start; padding: 12px; border-radius: 22px; background: rgba(255, 255, 255, .55); border: 1px solid var(--cl-line); min-width: 0; }
.cl-mgr em, .cl-note footer em { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; font-style: normal; font-weight: 700; background: var(--cl-ink); color: var(--cl-bg); }
.cl-mgr em img, .cl-note footer em img { width: 100%; height: 100%; object-fit: cover; }
.cl-mgr > div { flex: 1; min-width: 0; }
.cl-mgr b { display: block; font-size: 15px; }
.cl-mgr span { display: block; font-size: 12.5px; color: var(--cl-mute); line-height: 1.35; }
.cl-ico { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--cl-line); display: grid; place-items: center; flex: none; transition: background .25s, color .25s, transform .25s; }
.cl-ico:hover { background: var(--cl-ink); color: var(--cl-bg); transform: rotate(-8deg); }

/* Бегущая строка направлений */
.cl-marquee { margin: 0 calc(-1 * clamp(20px, 3.4vw, 48px)); border-top: 1px solid var(--cl-ink); border-bottom: 1px solid var(--cl-ink); overflow: hidden; padding: 16px 0; }
.cl-mq { display: flex; width: max-content; }
.cl-mq > span { display: flex; align-items: center; flex: none; }
.cl-mq i { font: italic 500 clamp(30px, 3.6vw, 52px) / 1 "Cormorant Garamond", Georgia, serif; padding: 0 .45em; white-space: nowrap; }
.cl-mq i:nth-child(4n+1) { font: 600 clamp(26px, 3vw, 44px) / 1 "Onest", sans-serif; font-style: normal; letter-spacing: -.04em; text-transform: uppercase; }
.cl-mq b { color: var(--brand); font-size: clamp(16px, 1.6vw, 22px); }
.cl-scroll { display: flex; align-items: center; gap: 12px; padding: 18px 0 26px; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--cl-mute); }
.cl-scroll i { width: 64px; height: 1px; background: var(--cl-line); position: relative; overflow: hidden; }
.cl-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--cl-ink); transform-origin: 0 50%; }

/* Стопка вариантов */
.cl-stack { padding: 24px 0 10px; }
.cl-slot { --c-acc: var(--brand); --c-bg: #F7F5F0; --c-ink: #141413; --c-mute: #77736B; --c-line: rgba(20, 20, 19, .13); --c-soft: rgba(20, 20, 19, .045);
  padding: 10px clamp(12px, 1.6vw, 22px); box-sizing: border-box; display: flex; }
.cl-slot.ink { --c-acc: color-mix(in srgb, var(--brand) 45%, #fff); --c-bg: #161615; --c-ink: #F3F0E9; --c-mute: #9C988E; --c-line: rgba(255, 255, 255, .14); --c-soft: rgba(255, 255, 255, .06); }
.cl-card { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 34px;
  background: var(--c-bg); color: var(--c-ink); box-shadow: 0 -1px 0 rgba(255, 255, 255, .6) inset, 0 40px 80px -40px rgba(20, 20, 19, .45); transform-origin: 50% 0; }
.cl-card[hidden] { display: none; }
.cl-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #0b0b0a; opacity: 0; pointer-events: none; z-index: 5; }
.cl-card.rec { box-shadow: 0 0 0 2px var(--brand), 0 40px 80px -40px rgba(20, 20, 19, .45); }
.cl-stack-on .cl-slot { position: sticky; min-height: calc(100svh - 60px); }
.cl-stack-on .cl-slot > .cl-card { transform: scale(calc(1 - var(--stk, 0) * .07)); }
.cl-stack-on .cl-slot > .cl-card::after { opacity: calc(var(--stk, 0) * .55); }
.cl-ribbon { position: absolute; top: 18px; left: 18px; z-index: 4; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 15px; border-radius: 99px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; overflow: hidden; }
.cl-ribbon::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-100%); }

.cl-ph { position: relative; min-height: 420px; border-radius: 24px; overflow: hidden; }
.cl-ph .gallery { position: absolute; inset: 0; background: var(--c-soft); }
.cl-ph .gallery .empty-ph { background: var(--c-soft); }
.cl-ph .gallery .empty-ph svg { color: var(--c-mute); opacity: .5; width: 64px; height: 64px; }
.cl-ph .gallery .count { top: auto; bottom: 16px; right: 16px; background: rgba(20, 20, 19, .55); backdrop-filter: blur(8px); }
.cl-ph .gallery .dots { bottom: 20px; }

.cl-tx { padding: clamp(18px, 2.2vw, 34px) clamp(16px, 2.4vw, 38px) clamp(16px, 2vw, 28px); display: flex; flex-direction: column; min-width: 0; }
.cl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--c-line); }
.cl-num { font: 700 clamp(64px, 6.4vw, 104px) / .78 "Onest", sans-serif; letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.cl-num sup { font-size: .2em; letter-spacing: 0; vertical-align: top; margin-left: .3em; color: var(--c-mute); font-weight: 600; position: relative; top: .35em; }
.cl-kind { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-mute); text-align: right; display: flex; align-items: center; gap: 10px; }
.cl-disc { color: #fff; background: var(--brand); padding: 4px 9px; border-radius: 99px; letter-spacing: .04em; }
.cl-card h3 { font: 600 clamp(28px, 2.6vw, 42px) / 1.02 "Onest", sans-serif; letter-spacing: -.045em; margin: 16px 0 6px; overflow-wrap: anywhere; }
.cl-place { color: var(--c-mute); font-size: 14.5px; }
.cl-stars { color: var(--c-acc); letter-spacing: .1em; }
.cl-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.cl-tags span { height: 28px; padding: 0 12px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--tag) 70%, transparent); color: var(--c-ink); background: color-mix(in srgb, var(--tag) 14%, transparent); }
.cl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; margin: 14px 0 0; }
.cl-grid > div { padding: 10px 0 9px; border-bottom: 1px solid var(--c-line); min-width: 0; }
.cl-grid dt { font-size: 10.5px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--c-mute); }
.cl-grid dd { margin: 3px 0 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.cl-note { margin: 16px 0 0; padding: 0; }
.cl-note p { margin: 0; font: italic 500 20px / 1.3 "Cormorant Garamond", Georgia, serif; white-space: pre-line; }
.cl-note p::before { content: "“"; color: var(--c-acc); font-size: 1.5em; line-height: 0; vertical-align: -.32em; margin-right: .08em; }
.cl-note footer { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--c-mute); }
.cl-note footer em { width: 30px; height: 30px; font-size: 12px; }
.cl-tx .ou-tr-line, .cl-tx .ou-tr-full { margin-top: 14px; color: var(--c-ink); }
.cl-more { margin-top: 14px; font-size: 14px; border-top: 1px solid var(--c-line); padding-top: 12px; }
.cl-more summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.cl-more summary::-webkit-details-marker { display: none; }
.cl-more summary i { font-style: normal; font-size: 20px; font-weight: 400; line-height: 1; transition: transform .35s cubic-bezier(.2, .7, .1, 1); }
.cl-more[open] summary i { transform: rotate(45deg); }
.cl-more .desc, .cl-flight { color: var(--c-mute); font-size: 14px; margin-top: 10px; white-space: pre-line; line-height: 1.55; }
.cl-flight { color: var(--c-ink); font-variant-numeric: tabular-nums; }

.cl-buy { margin-top: auto; padding-top: 18px; }
.cl-buy .pflag { margin: 0 0 10px; }
.cl-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.cl-price > div { min-width: 0; }
.cl-price s { display: block; color: var(--c-mute); font-size: 15px; margin-bottom: 2px; }
.cl-price b { display: block; font: 600 clamp(36px, 3.6vw, 56px) / .95 "Onest", sans-serif; letter-spacing: -.05em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cl-price small { display: block; color: var(--c-mute); font-size: 12.5px; margin-top: 8px; }
.react.cl-react { margin: 0; flex: none; gap: 6px; }
.react.cl-react button { flex: none; width: 46px; height: 46px; padding: 0; border-radius: 50%; background: transparent; border: 1px solid var(--c-line); color: var(--c-ink); justify-content: center; }
.react.cl-react button span { display: none; }
.react.cl-react button:hover { border-color: var(--c-ink); }
.react.cl-react .r-like[aria-pressed="true"] { color: #fff; background: #E0475F; border-color: #E0475F; }
.react.cl-react .r-dis[aria-pressed="true"] { background: var(--c-ink); color: var(--c-bg); }
.cl-btns { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.cl-btn { height: 56px; padding: 0 26px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; white-space: nowrap;
  font: 600 15px "Onest", sans-serif; border: 1px solid var(--c-ink, var(--cl-ink)); flex: 1 1 auto; min-width: min(100%, max-content); box-sizing: border-box;
  transform: translate(var(--mgx, 0), var(--mgy, 0)); transition: transform .35s cubic-bezier(.2, .7, .1, 1), background .25s, color .25s; }
.cl-btn.main { background: var(--c-ink, var(--cl-ink)); color: var(--c-bg, var(--cl-bg)) !important; }
.cl-btn.alt { background: transparent; color: var(--c-ink, var(--cl-ink)) !important; }
.cl-btn.main:hover { background: var(--brand); border-color: var(--brand); color: #fff !important; }
.cl-btn.alt:hover { background: var(--c-ink, var(--cl-ink)); color: var(--c-bg, var(--cl-bg)) !important; }
.cl-btn .ic { width: 16px; height: 16px; transition: transform .35s cubic-bezier(.2, .7, .1, 1); }
.cl-btn:hover .ic { transform: translateX(4px); }
.cl-tx .links { font-size: 13px; margin-top: 14px; }
.cl-tx .links a, .cl-tx .links .mut { color: var(--c-mute) !important; }
.cl-tx .links a.prog { color: var(--c-ink) !important; }
.cl-tx .dl-note { background: transparent; border-color: var(--c-line); color: var(--c-ink); }
.t-collection .opt-pill { background: var(--c-soft); border-color: var(--c-line); color: var(--c-ink); }
.t-collection .opt-pill .ic, .t-collection .opt-pill b { color: var(--c-ink); }
.t-collection .opt-off { background: var(--c-soft); color: var(--c-mute); }
.t-collection .cl-tx .vars-box { margin: 16px 0 0; }
.t-collection .cl-tx .var { background: transparent; border-color: var(--c-line); border-radius: 16px; }
.t-collection .cl-tx .var b { color: var(--c-ink); } .t-collection .cl-tx .var span { color: var(--c-mute); } .t-collection .cl-tx .var i { color: var(--c-ink); }
.t-collection .cl-tx .var.on { border-color: var(--c-ink); background: var(--c-ink); }
.t-collection .cl-tx .var.on b, .t-collection .cl-tx .var.on span, .t-collection .cl-tx .var.on i { color: var(--c-bg); }

/* Финал */
.cl-end { text-align: center; padding: clamp(70px, 14vh, 150px) 20px clamp(40px, 8vh, 80px); }
.cl-end h2 { font: 700 clamp(48px, 8vw, 132px) / .92 "Onest", sans-serif; letter-spacing: -.06em; margin: 18px auto 0; max-width: 12ch; }
.cl-end p { font: italic 500 clamp(20px, 2vw, 26px) / 1.35 "Cormorant Garamond", Georgia, serif; color: var(--cl-mute); margin: 18px auto 0; max-width: 34ch; }
.cl-end .cl-btns { justify-content: center; margin-top: 34px; }
.cl-end .cl-btn { flex: none; height: 62px; padding: 0 32px; font-size: 16px; }
.cl-foot { color: var(--cl-mute); font-size: 13px; text-align: center; margin: 0 auto; padding: 0 20px 34px; max-width: 70ch; }
.t-collection .items > .wrap > .combo { max-width: 1080px; margin: 30px auto 0; box-sizing: border-box; }
.t-collection .foot { background: var(--cl-ink); }
.t-collection .mbar { left: 10px; right: 10px; bottom: 10px; border-radius: 20px; padding: 8px; background: rgba(20, 20, 19, .92); border: 0; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); }
.t-collection .mbar a { height: 42px; border-radius: 14px; font-size: 13.5px; }
.t-collection .mbar .call { background: var(--cl-bg); color: var(--cl-ink); }
.t-collection .mbar .tg, .t-collection .mbar .wa, .t-collection .mbar .max, .t-collection .mbar .vk { background: rgba(255, 255, 255, .1); color: #fff; }
.t-collection .modal .box { color: #12152B; }

/* Анимации при загрузке: только если человек не отключал движение */
@media (prefers-reduced-motion: no-preference) {
  .cl-w > span { animation: cl-up 1.05s cubic-bezier(.2, .75, .1, 1) both; animation-delay: calc(var(--i) * 85ms + 120ms); }
  .cl-top { animation: cl-fade .9s ease both; }
  .cl-mq { animation: cl-mq 48s linear infinite; }
  .cl-marquee:hover .cl-mq { animation-play-state: paused; }
  .cl-scroll i::after { animation: cl-line 2.4s cubic-bezier(.6, 0, .2, 1) infinite; }
  .cl-ph .slide img { animation: cl-kb 20s ease-in-out infinite alternate; }
  .cl-ribbon::before { animation: cl-shine 3.6s ease-in-out infinite 1.2s; }
}
@keyframes cl-up { from { transform: translateY(110%) rotate(4deg); } to { transform: none; } }
@keyframes cl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cl-mq { to { transform: translateX(-50%); } }
@keyframes cl-line { 0% { transform: scaleX(0); transform-origin: 0 50%; } 50% { transform: scaleX(1); transform-origin: 0 50%; } 50.1% { transform-origin: 100% 50%; } 100% { transform: scaleX(0); transform-origin: 100% 50%; } }
@keyframes cl-kb { from { transform: scale(1); } to { transform: scale(1.09) translate(-1.2%, -1%); } }
@keyframes cl-shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Появление при прокрутке (класс mo-on ставит js/tpl_motion.js; кнопки «Нравится» тоже с data-rv — их не трогаем) */
.mo-on .t-collection [data-rv]:where(:not([data-rv="like"], [data-rv="dislike"])) { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2, .7, .1, 1), transform 1s cubic-bezier(.2, .7, .1, 1); transition-delay: var(--rv-d, 0ms); }
.mo-on .t-collection .cl-ph[data-rv] { transform: scale(1.06); transition-duration: 1.2s, 1.6s; }
.mo-on .t-collection .cl-tx [data-rv]:where(:not([data-rv="like"], [data-rv="dislike"])) { transition-duration: .7s, .8s; transition-delay: calc(var(--rv-d, 0ms) * .6); }
.mo-on .t-collection [data-rv].in { opacity: 1; transform: none; }
.mo-on .t-collection .cl-end h2[data-rv] { transform: translateY(60px); }
.mo-on .t-collection .cl-end h2[data-rv].in { transform: none; }

@media (max-width: 1100px) {
  .cl-hgrid { grid-template-columns: 1fr 1fr; }
  .cl-mgr { grid-column: 1 / -1; }
  .cl-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cl-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body.t-collection { font-size: 15px; }
  .cl-top { grid-template-columns: 1fr auto; padding: 14px 16px; }
  .cl-no { display: none; }
  .cl-phone { width: 40px; padding: 0; justify-content: center; }
  .cl-phone span { display: none; }
  .cl-hero { padding: 34px 16px 0; min-height: 0; }
  .cl-title { font-size: clamp(44px, 13.2vw, 64px); max-width: none; }
  .cl-hgrid { grid-template-columns: 1fr; gap: 22px; padding: 22px 0 24px; margin-top: 30px; }
  .cl-lead p { font-size: 16px; }
  .cl-marquee { margin: 0 -16px; padding: 12px 0; }
  .cl-mq i { font-size: 28px; } .cl-mq i:nth-child(4n+1) { font-size: 24px; }
  .cl-scroll { display: none; }
  .cl-stack { padding: 18px 0 0; }
  .cl-slot { padding: 0 8px 10px; }
  .cl-card { grid-template-columns: 1fr; gap: 0; padding: 8px; border-radius: 26px; }
  .cl-ph { min-height: 0; aspect-ratio: 4 / 4.2; border-radius: 20px; }
  .cl-ribbon { top: 14px; left: 14px; height: 30px; font-size: 11px; padding: 0 12px; }
  .cl-tx { padding: 20px 12px 14px; }
  .cl-num { font-size: 76px; }
  .cl-card h3 { font-size: 30px; margin-top: 16px; }
  .cl-grid { grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .mo-on .t-collection .cl-tx [data-rv]:where(:not([data-rv="like"], [data-rv="dislike"])) { transition-delay: 0ms; }
  .cl-price { flex-wrap: wrap; }
  .cl-price b { font-size: 40px; }
  .cl-btns .cl-btn { width: 100%; }
  .cl-end { padding: 70px 16px 40px; }
  .cl-end h2 { font-size: clamp(42px, 13vw, 60px); }
  .cl-end .cl-btn { width: 100%; height: 56px; }
  .cl-foot { padding-bottom: 20px; }
  .t-collection .items > .wrap > .combo { margin: 24px 12px 0; }
}
@media print {
  .cl-progress, .cl-marquee, .cl-scroll { display: none; }
  .cl-slot { position: static !important; break-inside: avoid; }
  .cl-card { transform: none !important; box-shadow: none; }
}
