/* ОКЕЛЬ · стиль каталога: страницы категории и подборки, «Избранное», страница проекта.
   Подключается только на этих страницах (чанк head, параметр kind) после main.css и берёт у него токены, кнопки, карточку проекта, шаги, вопросы-ответы.
   Порядок файла: общее, начало страницы (крошки, H1), ряд подборок, панель инструментов, панель «Все фильтры», список карточек, пустой результат,
   «Показать ещё», блок «Не нашли подходящий проект?», текст, шаги и вопросы, блок 9, «Похожие подборки», «Избранное», страница проекта, ширины.
   Стеклянные элементы на фото – стрелки, счётчик и кнопки просмотра в галерее проекта: они стоят в обоих списках правила обводки (main.css). Кнопка .msgbtn--plain наследует .msgbtn и уже стоит в обоих его списках. */

/* ===== общее =====
   Атрибут hidden у элементов, которым ниже задан display, надо подтверждать явно: стиль автора сильнее встроенного. */
.card[hidden], .cgrid__list[hidden], .cempty[hidden], .cmore[hidden], .ctool__chips[hidden], .fgroup__more[hidden], .fpills > li[hidden],
.fshared[hidden], .fpage__acts[hidden], .fpage__copied[hidden], .fpage__msg[hidden], .fempty[hidden], .chead__nums[hidden] { display: none; }
.cpage { min-width: 0; }

/* ===== начало страницы: крошки, H1, вступление, числа ===== */
.chead { padding-block: 22px 26px; }
.crumbs { margin-bottom: 18px; }
.crumbs__list { display: flex; flex-wrap: nowrap; align-items: center; min-width: 0; overflow: hidden; }   /* крошки в одну строку, длинное название обрезается многоточием */
.crumbs__item { display: flex; flex: 0 1 auto; align-items: center; min-width: 0; font-size: 14.5px; line-height: 1.3; color: var(--c-ink-3); white-space: nowrap; }
.crumbs__item:last-child { flex-shrink: 1; min-width: 0; }
.crumbs__item:not(:last-child) { flex-shrink: 0; }
.crumbs__item + .crumbs__item::before { content: ""; flex: none; width: 6px; height: 6px; margin: 0 12px 0 10px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; opacity: .55; transform: rotate(45deg); }
.crumbs__item a, .crumbs__item span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs__item a { padding-block: 9px; color: var(--c-ink-2); text-decoration: underline; text-decoration-color: rgba(32, 32, 32, .28); text-underline-offset: 4px; transition: color .18s, text-decoration-color .18s; }
.crumbs__item a:hover { color: var(--c-green-700); text-decoration-color: currentColor; }
.crumbs__item span[aria-current] { padding-block: 9px; color: var(--c-ink-3); }
.chead__title { max-width: 1040px; font-weight: 800; font-size: clamp(30px, calc(2.3vw + 14px), 52px); line-height: 1.06; letter-spacing: -.024em; text-wrap: balance; }
.chead__intro { max-width: 760px; margin-top: 16px; font-size: 18px; line-height: 1.5; color: var(--c-ink-2); text-wrap: pretty; }
.chead__nums { margin-top: 16px; font-weight: 600; font-size: 16px; line-height: 1.4; color: var(--c-ink-2); font-variant-numeric: tabular-nums; }
.chead__nums b { font-weight: 800; color: var(--c-ink); }
.fpage .chead__nums { margin-top: 14px; }

/* ===== блок 2: ряд подборок =====
   Подпись слева, ссылки в ряд с переносом. Текущая страница залита зелёным (aria-current). На телефоне ряд идёт одной строкой и прокручивается вбок;
   следующая ссылка выглядывает из-за края, поэтому видно, что ряд листается. */
.csel { padding-block: 0 22px; }
.csel__wrap { display: flex; align-items: flex-start; gap: 8px 20px; }
.csel__label { flex: none; padding-top: 10px; font-weight: 700; font-size: 13px; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-3); }
.csel__row { display: flex; flex-wrap: wrap; flex: 1; gap: 8px; min-width: 0; }
.csel__chip { position: relative; white-space: nowrap; }
.csel__chip.is-current, .csel__chip.is-current:hover { border-color: var(--c-green-600); background: var(--c-green-600); color: #fff; font-weight: 600; }
.csel__chip.is-current small, .csel__chip.is-current:hover small { color: #fff; opacity: .75; }

/* ===== блок 3: панель инструментов =====
   От 1024 px одна строка: «Все фильтры», «Найдено», справа сортировка. Ниже: «Все фильтры» и сортировка по половине ширины, под ними «Найдено» и чипы. */
.ctool { padding-block: 0 28px; }
.ctool__row { display: flex; align-items: center; gap: 12px 20px; }
.ctool__all { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px 0 20px; border: 1.5px solid var(--c-line-strong); border-radius: 999px; background: #fff; font-weight: 600; font-size: 16px; line-height: 1.2; color: var(--c-ink); transition: border-color .18s, background-color .18s, color .18s; }
.ctool__all:hover, .ctool__all[aria-expanded="true"] { border-color: var(--c-g2); background: var(--c-green-50); color: var(--c-green-700); }
.ctool__all.is-active { border-color: var(--c-green-600); background: var(--c-green-50); color: var(--c-green-700); }
.ctool__alltext { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctool__found { margin-right: auto; font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--c-ink-2); font-variant-numeric: tabular-nums; }
.ctool__sort { position: relative; display: inline-flex; flex: none; align-items: center; min-width: 0; }
.ctool__sort > .i { position: absolute; top: 50%; left: 18px; margin-top: -10px; color: var(--c-ink-2); pointer-events: none; }
.ctool__sort > .ctool__caret { right: 16px; left: auto; margin-top: -9px; }
.ctool__select { -webkit-appearance: none; appearance: none; width: 100%; min-height: 52px; padding: 0 46px 0 48px; border: 1.5px solid var(--c-line-strong); border-radius: 999px; background: #fff; font-weight: 600; font-size: 16px; line-height: 1.2; color: var(--c-ink); text-overflow: ellipsis; cursor: pointer; transition: border-color .18s, background-color .18s; }
.ctool__select:hover { border-color: var(--c-g2); background: var(--c-green-50); }
.ctool__select:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 999px; }

/* включённые параметры: чипы с крестиком и «Сбросить всё» */
.ctool__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 16px; }
.ctool__chiplist { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.ctool__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px 0 16px; border: 1px solid rgba(30, 125, 82, .38); border-radius: 999px; background: var(--c-green-50); font-weight: 600; font-size: 14.5px; line-height: 1.2; color: var(--c-green-700); transition: background-color .18s, border-color .18s; }
.ctool__chip .i { width: 16px; height: 16px; stroke-width: 2.4; }
.ctool__chip:hover { border-color: var(--c-green-600); background: var(--c-green-100); }
.ctool__clear { min-height: 40px; padding: 0 4px; border: 0; background: none; font-weight: 600; font-size: 14.5px; line-height: 1.2; color: var(--c-ink-2); text-decoration: underline; text-decoration-color: rgba(32, 32, 32, .3); text-underline-offset: 4px; cursor: pointer; transition: color .18s, text-decoration-color .18s; }
.ctool__clear:hover { color: var(--c-ink); text-decoration-color: currentColor; }

/* ===== панель «Все фильтры» (dialog) =====
   На компьютере боковая панель справа шириной 400 px с затемнением, на телефоне – на весь экран. Шапка с «Сбросить» и низ с «Показать N проектов» закреплены,
   прокручивается только середина. Esc закрывает, фокус держит сам dialog. */
.fpanel { position: fixed; inset: 0 0 0 auto; width: min(400px, 100%); max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: var(--r-xl) 0 0 var(--r-xl); background: #fff; color: var(--c-ink); box-shadow: var(--sh-pop); }
.fpanel[open] { display: flex; flex-direction: column; animation: fpanel-in .28s cubic-bezier(.2, .8, .2, 1) both; }
.fpanel::backdrop { background: rgba(12, 22, 15, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.fpanel[open]::backdrop { animation: appear .24s ease both; }
@keyframes fpanel-in { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
.fpanel__inner { display: flex; flex: 1; flex-direction: column; min-height: 0; margin: 0; }
.fpanel__head { display: flex; flex: none; align-items: center; gap: 8px; padding: 16px 18px 14px 28px; border-bottom: 1px solid var(--c-line); }
.fpanel__title { flex: 1; min-width: 0; font-weight: 800; font-size: 24px; line-height: 1.15; letter-spacing: -.015em; }
.fpanel__reset { min-height: 44px; padding: 0 8px; border: 0; background: none; font-weight: 600; font-size: 15px; line-height: 1.2; color: var(--c-green-700); text-decoration: underline; text-decoration-color: rgba(23, 107, 69, .35); text-underline-offset: 4px; cursor: pointer; transition: color .18s, text-decoration-color .18s; }
.fpanel__reset:hover { color: var(--c-green-600); text-decoration-color: currentColor; }
.fpanel__reset[disabled] { color: var(--c-ink-3); text-decoration: none; cursor: default; }
.fpanel__body { flex: 1 1 auto; min-height: 0; padding: 4px 28px 24px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.fpanel__foot { flex: none; padding: 14px 28px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--c-line); background: #fff; }
.fpanel__show { padding: 0 24px; }

.fgroup { min-width: 0; margin: 0; padding: 20px 0 22px; border: 0; }
.fgroup + .fgroup { border-top: 1px solid var(--c-line); }
.fgroup__legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--c-ink); }   /* float: legend внутри fieldset иначе не получает отступ снизу в Safari */
.fgroup__legend + * { clear: both; }
.fgroup__input { display: block; width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-md); background: #fff; font-weight: 500; font-size: 16px; line-height: 1.2; color: var(--c-ink); -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.fgroup__input::placeholder { color: var(--c-ink-3); opacity: 1; }
.fgroup__input:hover { border-color: var(--c-ink-3); }
.fgroup__input:focus { outline: none; border-color: var(--c-green-600); box-shadow: 0 0 0 4px rgba(30, 125, 82, .18); }

/* флажки: Этажность, Крыша, Особенности, «Только хиты» */
.fchecks { display: flex; flex-direction: column; gap: 2px; }
.fcheck { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; line-height: 1.3; color: var(--c-ink); cursor: pointer; }
.fcheck__input { position: absolute; top: 50%; left: 0; width: 24px; height: 24px; margin: -12px 0 0; opacity: 0; cursor: pointer; }
.fcheck__box { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1.5px solid var(--c-line-strong); border-radius: 7px; background: #fff; color: transparent; transition: background-color .15s, border-color .15s; }
.fcheck__box .i { width: 16px; height: 16px; stroke-width: 3.2; }
.fcheck__input:checked + .fcheck__box { border-color: var(--c-green-600); background: var(--c-green-600); color: #fff; }
.fcheck__input:focus-visible + .fcheck__box { outline: 3px solid var(--focus); outline-offset: 3px; }
.fcheck:hover .fcheck__box { border-color: var(--c-ink-3); }
.fcheck__text small { margin-left: 2px; font-size: 14px; color: var(--c-ink-3); font-variant-numeric: tabular-nums; }

/* кнопки-переключатели: Размер, Спальни, Санузлы (настоящие флажки внутри label) */
.fpills { display: flex; flex-wrap: wrap; gap: 8px; }
.fpill { position: relative; display: inline-flex; cursor: pointer; }
.fpill__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fpill__text { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--c-line-strong); border-radius: 999px; background: #fff; font-weight: 500; font-size: 15.5px; line-height: 1; color: var(--c-ink); font-variant-numeric: tabular-nums; transition: border-color .15s, background-color .15s, color .15s; }
.fpill__text small { font-weight: 500; font-size: 12.5px; color: var(--c-ink-3); transition: color .15s; }
.fpill:hover .fpill__text { border-color: var(--c-ink-3); }
.fpill__input:checked + .fpill__text { border-color: var(--c-green-600); background: var(--c-green-50); color: var(--c-green-700); font-weight: 600; }
.fpill__input:checked + .fpill__text small { color: var(--c-green-700); }
.fpill__input:focus-visible + .fpill__text { outline: 3px solid var(--focus); outline-offset: 3px; }
.fgroup__more { margin-top: 12px; min-height: 44px; padding: 0; border: 0; background: none; font-weight: 600; font-size: 15px; line-height: 1.2; color: var(--c-green-700); text-decoration: underline; text-decoration-color: rgba(23, 107, 69, .35); text-underline-offset: 4px; cursor: pointer; }
.fgroup__more:hover { color: var(--c-green-600); text-decoration-color: currentColor; }

/* диапазоны: Площадь и Цена */
.frange { display: flex; align-items: center; gap: 10px; }
.frange__cell { display: block; flex: 1; min-width: 0; }
.frange__input { display: block; width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--c-line-strong); border-radius: var(--r-md); background: #fff; font-weight: 500; font-size: 16px; line-height: 1.2; color: var(--c-ink); font-variant-numeric: tabular-nums; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.frange__input::placeholder { color: var(--c-ink-3); opacity: 1; }
.frange__input:hover { border-color: var(--c-ink-3); }
.frange__input:focus { outline: none; border-color: var(--c-green-600); box-shadow: 0 0 0 4px rgba(30, 125, 82, .18); }
.frange__dash { flex: none; color: var(--c-ink-3); }
.fgroup__note { margin-top: 10px; font-size: 13.5px; line-height: 1.4; color: var(--c-ink-3); }

/* ===== блок 4: список проектов ===== */
.cgrid { padding-block: 0 clamp(48px, 6vw, 88px); }
.cgrid__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.5vw, 22px); }
.cgrid__list .card { align-self: stretch; }
.card__old { margin-left: 6px; font-weight: 500; font-size: 14px; letter-spacing: 0; color: var(--c-ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
/* акция не идёт: метка и старая цена скрыты (список кэшируется, поэтому решает атрибут data-promo, а не разметка) */
.cgrid__list[data-promo="off"] .flag--sale, .cgrid__list[data-promo="off"] .card__old { display: none; }
.card--gone { justify-content: center; min-height: 180px; padding: 24px 20px; border-style: dashed; background: var(--c-soft); }
.card--gone .card__body { padding: 0; }
.card--gone:hover { transform: none; box-shadow: none; border-color: var(--c-line); }
.card__remove { align-self: flex-start; min-height: 40px; margin-top: 8px; }

/* пустой результат фильтра: текст вместо списка и две кнопки */
.cempty { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: clamp(40px, 6vw, 72px) 24px; border-radius: var(--r-xl); background: var(--c-soft); text-align: center; }
.cempty__title { max-width: 520px; font-weight: 800; font-size: clamp(22px, calc(1vw + 16px), 30px); line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
.cempty__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cempty__btns .btn { padding-inline: 30px; }

/* «Показать ещё» */
.cmore { display: flex; justify-content: center; margin-top: clamp(28px, 3.4vw, 44px); }
.cmore__btn { padding: 0 38px; }

/* ===== блок 5: «Не нашли подходящий проект?» =====
   Та же тёмная панель, что на главной; без заступа под следующий блок (он нужен только под первым экраном). Слева текст, справа две кнопки. */
.own--cat { margin-bottom: 0; padding-block: clamp(44px, 5.4vw, 80px); }
.own__grid--cat { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 72px); }
.own--cat .own__title { font-size: clamp(30px, calc(1.8vw + 14px), 44px); }
.own--cat .own__lead { max-width: 560px; margin-top: 14px; }
.own__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.msgbtn--plain { min-height: 60px; padding: 0 30px; font-size: 16px; font-weight: 500; }

/* ===== блок 6: текст категории ===== */
.ctext { padding-block: clamp(44px, 5.6vw, 84px) clamp(8px, 1vw, 16px); }
.ctext__box { max-width: 920px; }
.ctext__title { margin-bottom: 22px; font-weight: 800; font-size: clamp(26px, calc(1.4vw + 16px), 38px); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.prose { font-size: 17px; line-height: 1.65; color: var(--c-ink-2); }
.prose > * + * { margin-top: 16px; }
.prose p { text-wrap: pretty; }
.prose h2, .prose h3 { margin-top: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -.012em; color: var(--c-ink); text-wrap: balance; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 21px; }
.prose ul, .prose ol { display: flex; flex-direction: column; gap: 8px; }
.prose ul > li { position: relative; padding-left: 26px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 10px; height: 8px; background: url("../img/drop.svg") no-repeat center / contain; }
.prose ol { counter-reset: prose; }
.prose ol > li { position: relative; padding-left: 30px; counter-increment: prose; }
.prose ol > li::before { content: counter(prose) "."; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--c-green-700); }
.prose a { color: var(--c-green-700); text-decoration-color: rgba(23, 107, 69, .4); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong, .prose b { font-weight: 700; color: var(--c-ink); }

/* ===== блоки 7 и 8: этапы и вопросы =====
   Этапы и вопросы те же, что на главной (стили в main.css); ниже только отличия страницы категории. */
.csteps { margin-top: clamp(32px, 4vw, 56px); }
.credit--light { margin-top: clamp(24px, 3vw, 36px); color: var(--c-ink-2); }
.credit--light .i { color: var(--c-green-700); }

/* ===== блок 9: подборки и другие категории =====
   Группы подборок построены как таблица: слева подпись группы (обычный текст, не заголовок), справа ссылки в три колонки.
   Ниже сетка остальных категорий 3 × 2; каждая карточка – одна ссылка на названии, растянутая на всю карточку. */
.cmore9 .sec__title { margin-bottom: clamp(20px, 2.4vw, 32px); }
.mgroups { display: flex; flex-direction: column; }
.mgroup { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 32px; padding-block: 14px; border-top: 1px solid var(--c-line); }
.mgroup:last-child { border-bottom: 1px solid var(--c-line); }
.mgroup__title { padding-top: 13px; font-weight: 700; font-size: 13px; line-height: 1.25; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-3); }
.mgroup__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; min-width: 0; }
.mlink { display: flex; align-items: center; min-height: 44px; padding-block: 6px; font-size: 16px; line-height: 1.3; color: var(--c-ink); text-decoration: underline; text-decoration-color: rgba(32, 32, 32, .2); text-underline-offset: 4px; transition: color .18s, text-decoration-color .18s; }
.mlink:hover { color: var(--c-green-700); text-decoration-color: currentColor; }
.cmore9__others { margin-top: clamp(44px, 5.4vw, 80px); }
.ocats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.5vw, 22px); margin-top: clamp(18px, 2vw, 28px); }
.ocat { position: relative; min-width: 0; padding: 22px 26px; border: 1px solid var(--c-line); border-radius: 26px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.ocat__name { display: block; font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; text-decoration: none; transition: color .18s; }
.ocat__name::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }   /* вся карточка – одна ссылка */
.ocat__name:focus-visible { outline: none; }
.ocat__name:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.ocat__meta { margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--c-ink-3); }
@media (hover: hover) {
  .ocat:hover { border-color: rgba(69, 188, 130, .65); box-shadow: 0 16px 36px rgba(12, 22, 15, .08); }
  .ocat:hover .ocat__name { color: var(--c-green-700); }
}

/* ===== «Похожие подборки» (только подборка) ===== */
.csim .sec__title { margin-bottom: clamp(16px, 2vw, 26px); }
.csim__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; margin-top: 14px; }

/* ===== «Избранное» (/izbrannoe) ===== */
.fpage__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.fpage__acts .btn--outline { padding: 0 28px; }
.fshared { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; max-width: 720px; margin-top: 22px; padding: 14px 16px 14px 24px; border: 1px solid rgba(69, 188, 130, .5); border-radius: 22px; background: var(--c-green-50); }
.fshared__text { flex: 1 1 240px; font-size: 17px; line-height: 1.35; }
.fshared__text b { font-weight: 800; }
.fpage__copied { margin-top: 14px; font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--c-green-700); }
.fpage__msg { max-width: 720px; margin-inline: auto; padding: 28px 24px; border-radius: 22px; background: var(--c-soft); font-size: 17px; line-height: 1.5; color: var(--c-ink-2); text-align: center; }
.fpage__list { padding-bottom: 0; }
.fpage__list .cgrid__list, .fpage__list .fpage__msg { margin-bottom: clamp(32px, 4vw, 56px); }
.fempty { padding-block: 0 clamp(56px, 7vw, 104px); }
.fempty__text { max-width: 640px; font-size: 19px; line-height: 1.5; color: var(--c-ink-2); text-wrap: pretty; }
.fempty__nojs { display: none; max-width: 640px; font-size: 19px; line-height: 1.5; color: var(--c-ink-2); }
.fempty__title { margin-top: clamp(32px, 4vw, 52px); }
.fempty__picks { margin-top: 22px; }

/* ===== страница проекта: 14 блоков (ТЗ «Страница проекта») =====
   Верх: на компьютере слева галерея, справа H1, теги и карточка цены; на планшете и телефоне одна колонка, H1 первым, затем галерея, теги, цена.
   Стеклянные элементы на фото (стрелки, счётчик, кнопки просмотра) стоят в списках правила обводки в main.css.
   Акция не идёт: метка и старые цены скрывает атрибут data-promo у main (страница кэшируется, поэтому решает атрибут, а не разметка). */
.ppage[data-promo="off"] .pbuy__flags, .ppage[data-promo="off"] .pbuy__old, .ppage[data-promo="off"] .pvar__old { display: none; }
.ptop { padding-block: 22px clamp(36px, 4.4vw, 64px); }
.ptop .crumbs { margin-bottom: 14px; }
.ptop__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "gal title" "gal tags" "gal buy" "gal tools" "gal fill"; grid-template-rows: auto auto auto auto 1fr; align-items: start; column-gap: clamp(24px, 3.4vw, 56px); row-gap: 18px; }
.ptop__title { grid-area: title; font-weight: 800; font-size: clamp(28px, calc(1.5vw + 16px), 42px); line-height: 1.08; letter-spacing: -.022em; text-wrap: balance; overflow-wrap: anywhere; }
.ptop__grid > .pgal { grid-area: gal; }
.ptop__grid > .ptags { grid-area: tags; }
.ptop__grid > .pbuy { grid-area: buy; }
.ptop__grid > .ptools { grid-area: tools; }

/* галерея: лента фото с привязкой к краю, стрелки и счётчик поверх, миниатюры под лентой */
.pgal { min-width: 0; }
.pgal__stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-xl); background: var(--c-soft); }
.pgal--empty .pgal__stage { background: #12201A; }
.pgal__track { display: flex; height: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pgal__track::-webkit-scrollbar { display: none; }
.pgal__slide { flex: 0 0 100%; min-width: 0; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.pgal__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; cursor: zoom-in; --focus: var(--c-green-600); }
.pgal__open:focus-visible { outline-offset: -4px; border-radius: var(--r-xl); }
.pgal__open img { width: 100%; height: 100%; object-fit: contain; }
.pgal__nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 0; border-radius: 50%; background: rgba(var(--c-dark), .52); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; cursor: pointer; --focus: #fff; transition: background-color .18s, opacity .18s, transform .18s; }
.pgal__nav--prev { left: 14px; }
.pgal__nav--next { right: 14px; }
.pgal__nav--prev .i { transform: scaleX(-1); }
.pgal__nav:hover, .lbox__btn:hover { --edge-a: .95; --edge-b: .6; background: rgba(var(--c-dark), .7); }
.pgal__nav:focus-visible, .lbox__btn:focus-visible { --edge-a: 1; --edge-b: 1; }
.pgal__nav.is-off { opacity: 0; pointer-events: none; }
.pgal__count { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(var(--c-dark), .52); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-weight: 600; font-size: 14px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; pointer-events: none; }
.pgal__thumbs { display: flex; gap: 8px; margin-top: 10px; padding: 2px 2px 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--c-line-strong) transparent; }
.pgal__thumbs > li { flex: none; }
.pgal__thumb { display: block; width: 96px; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 12px; background: var(--c-soft); opacity: .78; transition: opacity .18s, border-color .18s; }
.pgal__thumb:hover { opacity: 1; }
.pgal__thumb.is-on { border-color: var(--c-green-600); opacity: 1; }
.pgal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pgal__open img, .pgal__thumb img { -webkit-user-drag: none; }

/* просмотр на весь экран: тёмная подложка, фото целиком, стрелки с клавиатуры и смахиванием */

/* теги: серые – просто параметры, зелёные – ссылки на подборки */
.ptags { display: flex; flex-wrap: wrap; gap: 8px; }
.ptag { display: inline-flex; align-items: center; min-height: 44px; padding: 0 17px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-soft); font-weight: 500; font-size: 15px; line-height: 1.2; color: var(--c-ink); white-space: nowrap; }
.ptag--link { border-color: rgba(30, 125, 82, .38); background: var(--c-green-50); color: var(--c-green-700); text-decoration: none; transition: background-color .18s, border-color .18s; }
.ptag--link:hover { border-color: var(--c-green-600); background: var(--c-green-100); }

/* цена и заявка */
.pbuy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(20px, 2.2vw, 30px); border: 1px solid var(--c-line); border-radius: 28px; background: #fff; box-shadow: 0 14px 40px rgba(12, 22, 15, .07); }
.pbuy__flags { margin: 0; }
.pbuy__price { font-weight: 800; font-size: clamp(32px, calc(1.5vw + 20px), 46px); line-height: 1.05; letter-spacing: -.022em; font-variant-numeric: tabular-nums; }
.pbuy__price small { margin-right: 4px; font-weight: 600; font-size: .45em; letter-spacing: 0; color: var(--c-ink-3); }
.pbuy__price--ask { font-weight: 700; font-size: clamp(26px, calc(1vw + 18px), 34px); letter-spacing: -.012em; color: var(--c-ink-2); }
.pbuy__old { margin-left: 6px; font-weight: 500; font-size: .42em; letter-spacing: 0; color: var(--c-ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.pvar { align-self: stretch; }
.pvar__row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-block: 12px; border-top: 1px solid var(--c-line); }
.pvar__row:last-child { padding-bottom: 0; }
.pvar__name { min-width: 0; font-weight: 600; font-size: 16px; line-height: 1.3; }
.pvar__val { flex: none; text-align: right; font-variant-numeric: tabular-nums; }
.pvar__price { font-weight: 800; font-size: 18px; line-height: 1.2; }
.pvar__old { margin-left: 6px; font-size: 14px; color: var(--c-ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.pvar__ask { font-weight: 600; font-size: 16px; color: var(--c-ink-2); }
.pbuy__btn { align-self: stretch; }
.pbuy__note { font-size: 14.5px; line-height: 1.4; color: var(--c-ink-3); }

/* плашка «Поделиться проектом» и «Печать» под карточкой цены (версия 28, пожелание пользователя 2026-11-14). Ссылки на MAX, Telegram и ВКонтакте работают без скрипта; «Скопировать ссылку», «Другие способы» и строку с «Печатью» показывает ptools.js (в разметке они hidden).
   Знаки MAX и Telegram – файлы клиента (круглые, цветные), ВКонтакте – знак из набора icons на синем круге; кнопки-действия – светлые круги с зелёным наведением, как .soc--light. Печатный вид листа – print.css. */
.ptools { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 20px 18px; border: 1px solid var(--c-line); border-radius: 22px; background: var(--c-soft); }
.ptools__label { font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--c-ink-2); }
.ptools__list { display: flex; flex-wrap: wrap; gap: 10px; }
.ptools__ic { display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--c-line-strong); border-radius: 50%; background: #fff; color: var(--c-ink); text-decoration: none; cursor: pointer; transition: transform .18s, border-color .18s, background-color .18s, color .18s; }
.ptools__ic--img { border: 0; background: none; }
.ptools__ic--img img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.ptools__ic--vk { border: 0; background: #0077FF; color: #fff; }
.ptools__ic:hover { transform: translateY(-2px); }
.ptools__ic--btn:hover, .ptools__ic--btn.is-done { border-color: var(--c-g2); background: var(--c-green-50); color: var(--c-green-700); }
.ptools__msg { font-weight: 600; font-size: 14.5px; line-height: 1.35; color: var(--c-green-700); overflow-wrap: anywhere; }
.ptools__acts { display: flex; flex-wrap: wrap; align-self: stretch; gap: 10px; padding-top: 14px; border-top: 1px solid var(--c-line); }
.ptools__acts[hidden] { display: none; }
.ptools__acts .btn { gap: 8px; }
@media (prefers-reduced-motion: reduce) {
  .ptools__ic { transition: none; }
  .ptools__ic:hover { transform: none; }
}
/* печатный лист: шапка и низ на экране не нужны (при печати их показывает print.css) */
.pprint { display: none; }

/* характеристики: пары «параметр – значение» в две колонки */
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4.4vw, 80px); margin-top: clamp(18px, 2vw, 28px); }
.spec__row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding-block: 16px; border-bottom: 1px solid var(--c-line); }
.spec dt { min-width: 0; font-size: 16.5px; line-height: 1.35; color: var(--c-ink-2); }
.spec dd { margin: 0; font-weight: 700; font-size: 17px; line-height: 1.35; text-align: right; }

/* описание и планировка */
.pabout__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); }
.pabout__grid--two { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pabout__col { min-width: 0; }
.pabout__col > .sec__title { margin-bottom: clamp(18px, 2vw, 28px); }
.pabout__text { max-width: 70ch; font-size: 17px; line-height: 1.6; color: var(--c-ink-2); text-wrap: pretty; }
.pabout__text > * + * { margin-top: 16px; }
.plan { max-width: 560px; }
.plan + .plan { margin-top: 24px; }
.plan__title { margin-bottom: 4px; font-weight: 800; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.plan__row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding-block: 11px; border-bottom: 1px solid var(--c-line); font-size: 16.5px; line-height: 1.35; }
.plan__name { min-width: 0; color: var(--c-ink-2); }
.plan__area { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.plan__text { padding-block: 11px; border-bottom: 1px solid var(--c-line); font-size: 16.5px; line-height: 1.45; color: var(--c-ink-2); }

/* комплектация и дополнения: таблицы и списки вносятся в чанки project_incl_* и project_options, когда клиент пришлёт текст */
.pincl .sec__title { margin-bottom: clamp(18px, 2vw, 28px); }
.ptable { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 16.5px; line-height: 1.5; }
.ptable th, .ptable td { padding: 14px 16px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.ptable th[scope="row"] { font-weight: 700; }
.ptable thead th { font-weight: 700; color: var(--c-ink-3); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.popts__box { max-width: 920px; }
.popts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
.popts__list li { position: relative; padding-left: 26px; font-size: 16.5px; line-height: 1.45; }
.popts__list li::before { content: ""; position: absolute; left: 0; top: .42em; width: 15px; height: 12px; background: url("../img/drop.svg") no-repeat center / contain; }
.popts__list small { display: block; font-size: 14.5px; color: var(--c-ink-3); }

/* смотрите также: четыре карточки; на планшете по две */
.psim__list, .precent__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* «Вы недавно смотрели» (версия 28): те же четыре карточки, что у «Смотрите также»; блок скрыт (hidden), пока скрипт не принёс карточки; внутри блока .lost заголовок и «Очистить список» в одной строке */
.precent[hidden] { display: none; }
.precent .link-more { cursor: pointer; }
.precent__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.precent--lost .precent__list { margin-top: 14px; }

/* экскурсия и ипотека */
.ptour__card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 3.4vw, 56px); }
.ptour__main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ptour__side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ptour__side .act__btn { align-self: flex-start; margin-top: 0; }
.ptour .credit--light { margin-top: clamp(18px, 2.2vw, 28px); }

/* ===== адреса с параметрами фильтра =====
   Пока скрипт применяет параметры адреса, список и всё, что ниже него, невидимы, но места в разметке занимают: после применения страница не прыгает.
   Класс is-filtering ставит короткий скрипт в head и снимает catalog.js; запасной срок – 3 секунды. */
html.is-filtering .cgrid__list, html.is-filtering .cmore, html.is-filtering .cgrid ~ * { visibility: hidden; }

/* ===== ширины ===== */
@media (max-width: 1199px) {
  .cgrid__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* видеоотзывы под блоком «Свой проект» – три; на ширине 768–1023 они идут в две колонки, и третья оставила бы пустую половину ряда, поэтому там показаны две
   (на телефоне – лента из трёх, на компьютере – ряд из трёх; «Все видеоотзывы» ведёт ко всем) */
@media (min-width: 768px) and (max-width: 1023px) {
  .ppage .revs .rev:nth-child(n+3) { display: none; }
}
/* «Смотрите также» – четыре карточки: на ширине 1024–1199 остаётся ряд из четырёх (три колонки оставили бы одну карточку внизу) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .psim__list, .precent__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 1023px) {
  /* панель инструментов: «Все фильтры» и сортировка по половине ширины, ниже «Найдено» и чипы */
  .ctool__row { flex-wrap: wrap; gap: 12px; }
  .ctool__all, .ctool__sort { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .ctool__found { order: 3; flex: 1 1 100%; margin: 4px 0 0; }
  .own__grid--cat { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mgroup { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 12px 10px; }
  .mgroup__title { padding-top: 6px; }
  .mgroup__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ocats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptop__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "gal" "tags" "buy" "tools"; grid-template-rows: none; row-gap: 20px; }
  .ptop__title { font-size: clamp(28px, 4.4vw, 38px); }
  .pbuy, .ptools { max-width: 560px; }
  .pabout__grid--two { grid-template-columns: minmax(0, 1fr); }
  .psim__list, .precent__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptour__card { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .popts__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .chead { padding-block: 14px 20px; }
  .crumbs { margin-bottom: 8px; }
  .chead__intro { font-size: 17px; }
  .cgrid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  /* карточки в две колонки: плотнее, название 16 px в две строки, параметры 14 px, цена 16 px жирным */
  .cgrid__list .card { padding: 6px 6px 14px; border-radius: 22px; }
  .cgrid__list .card__media { border-radius: 16px; }
  .cgrid__list .card__body { gap: 4px; padding: 12px 8px 0; }
  .cgrid__list .card__title { font-size: 16px; line-height: 1.25; }
  .cgrid__list .card__params { font-size: 14px; }
  .cgrid__list .card__params span:nth-child(2)::after { display: none; }   /* размер и площадь в одной строке, этажность под ними: точка в конце строки не повисает */
  .cgrid__list .card__params span:nth-child(3) { flex-basis: 100%; }
  .cgrid__list .card__price { padding-top: 6px; font-size: 16px; }
  .cgrid__list .card__price small { font-size: 13px; }
  .cgrid__list .card__old { display: block; margin: 2px 0 0; font-size: 13px; }
  .cgrid__list .card__flags { left: 8px; top: 8px; }
  .cgrid__list .flag { height: 24px; padding: 0 9px; font-size: 11px; }
  .cgrid__list .fav { right: 6px; top: 6px; }
  .card--gone { min-height: 150px; padding: 18px 12px; }
  /* панель фильтров на весь экран */
  .fpanel { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
  .fpanel[open] { animation-name: fpanel-up; }
  .fpanel__head { padding: max(12px, env(safe-area-inset-top, 0px)) 12px 12px 20px; }
  .fpanel__body { padding-inline: 20px; }
  .fpanel__foot { padding-inline: 20px; }
  .mgroup__list { grid-template-columns: minmax(0, 1fr); }
  .ocats { grid-template-columns: minmax(0, 1fr); }
  .ocat { padding: 18px 20px; border-radius: 22px; }
  .ctext__box { max-width: none; }
  .own__btns .btn, .own__btns .msgbtn { flex: 1 1 100%; justify-content: center; }
  .own__btns .btn--go { justify-content: space-between; }
  .cempty { padding-inline: 18px; }
  .fpage__acts .btn { flex: 1 1 100%; }
  .ptop { padding-top: 14px; }
  .ptop .crumbs { margin-bottom: 6px; }
  .pgal__stage { border-radius: 22px; }
  .pgal__open:focus-visible { border-radius: 22px; }
  .pgal__nav { width: 44px; height: 44px; margin-top: -22px; }
  .pgal__nav--prev { left: 10px; }
  .pgal__nav--next { right: 10px; }
  .pgal__count { right: 10px; bottom: 10px; }
  .pgal__thumb { width: 72px; border-radius: 10px; }
  .pbuy { max-width: none; border-radius: 24px; }
  .pbuy__btn.btn--lg { padding-left: 24px; }
  .spec { grid-template-columns: minmax(0, 1fr); }
  .spec__row { padding-block: 14px; }
  .plan { max-width: none; }
  .ptable th, .ptable td { display: block; width: 100%; padding: 4px 0; border-bottom: 0; }
  .ptable tr { display: block; padding-block: 12px; border-bottom: 1px solid var(--c-line); }
  .ptable thead { display: none; }
  .ptable th[scope="row"] { width: 100%; }
}
@media (max-width: 479px) {
  .pvar__row { flex-wrap: wrap; }
  .pvar__val { text-align: left; }
}
@keyframes fpanel-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) {
  /* ряд подборок: одна строка, листается вбок; следующая ссылка выглядывает из-за края */
  .csel__wrap { flex-direction: column; align-items: stretch; gap: 6px; }
  .csel__label { padding-top: 0; }
  .csel__row { flex-wrap: nowrap; flex: none; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 6px; overflow-x: auto; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .csel__row::-webkit-scrollbar { display: none; }
  .csel { padding-bottom: 8px; }
  .ctool { padding-bottom: 20px; }
  .ctool__all { flex: 0 0 auto; padding: 0 14px; gap: 8px; font-size: 14.5px; }   /* на телефоне кнопка по содержимому, сортировка занимает остаток: подпись «Рекомендованные» помещается целиком */
  .ctool__sort { flex: 1 1 0; }
  .ctool__select { padding: 0 30px 0 14px; font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; }
  .ctool__sort > .i:first-child { display: none; }
  .ctool__sort > .ctool__caret { right: 10px; }
  .ctool__chips { margin-top: 12px; }
  .fgroup__legend { font-size: 15.5px; }
  .own--cat .own__title { font-size: clamp(28px, 8vw, 34px); }
  .prose { font-size: 16.5px; }
  .ocat__name { font-size: 19px; }
}
@media (max-width: 389px) {
  .ctool__all .i { display: none; }
}

/* ===== «Подобрать проект»: ряд категорий (чанк pick_catalog: «Отзывы», «Вопрос-ответ», «О нас», «Контакты», статьи, типовая страница) ===== */
.rvpick .sec__title { margin-bottom: clamp(16px, 2vw, 24px); }
.rvpick__cats { display: flex; flex-wrap: wrap; gap: 10px; }
.rvpick__btn { margin-top: clamp(20px, 2.4vw, 30px); }
@media (max-width: 767px) {
  .rvpick__btn { width: 100%; justify-content: center; }
}

/* ===== сравнение проектов (/sravnenie, версия 28, пожелание пользователя 2026-11-14) =====
   Таблица: проекты столбцами, характеристики строками. Название строки (th) слева и закреплено: на телефоне таблица листается вбок, подписи остаются на месте.
   Ширина: подпись --cmp-lab плюс число проектов --cmp-n (его ставит compare.js) на ширину столбца --cmp-col; пока она не больше окна, таблица занимает всё окно, иначе листается.
   На телефоне два проекта помещаются без прокрутки (96 + 2 × 128 px, на узком экране до 359 px – 96 + 2 × 112 px); в подписи «Комплектации» стоит мягкий перенос. Метки акции прячет атрибут data-promo (страница кэшируется, поэтому решает атрибут, а не разметка).
   Кнопка «Сравнить» на странице проекта в нажатом состоянии – зелёная, столбики закрашены. */
.ptools__cmp[aria-pressed="true"] { border-color: var(--c-g2); background: var(--c-green-50); color: var(--c-green-700); }
.ptools__cmp[aria-pressed="true"] .i { fill: currentColor; }
.cmp { --cmp-lab: 176px; --cmp-col: 210px; padding-bottom: clamp(40px, 6vw, 88px); }
.cmp[hidden] { display: none; }
.cmp__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-bottom: 16px; }
.cmp__diff { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 16px; line-height: 1.3; cursor: pointer; }
.cmp__diff[hidden], .cmp__clear[hidden], .cmp__hint[hidden] { display: none; }
.cmp__diff input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--c-green-600); cursor: pointer; }
.cmp__diff input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cmp__scroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-line); border-radius: 22px; background: #fff; }
.cmp__scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.cmp__table { width: 100%; min-width: calc(var(--cmp-lab) + var(--cmp-n, 1) * var(--cmp-col)); border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cmp__table col.cmp__lab { width: var(--cmp-lab); }
.cmp__table th, .cmp__table td { padding: 14px 16px; border-top: 1px solid var(--c-line); vertical-align: top; text-align: left; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.cmp__table thead th, .cmp__table thead td { border-top: 0; }
.cmp__table tbody th { position: sticky; left: 0; z-index: 2; background: var(--c-soft); box-shadow: 1px 0 0 var(--c-line); font-weight: 600; font-size: 15px; color: var(--c-ink-2); }
.cmp__corner { position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: 1px 0 0 var(--c-line); }
.cmp__table tbody tr:nth-child(even) td { background: rgba(12, 22, 15, .018); }
.cmp__table.is-diff tr.is-same { display: none; }
.cmp__no { color: var(--c-ink-3); }
.cmp__col { padding: 16px; font-weight: 400; }
.cmp__photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: #12201A; }
.cmp__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp__photo .ph .i { width: 44px; height: 44px; }
.cmp__flag { position: absolute; left: 8px; top: 8px; z-index: 1; height: 24px; padding: 0 10px; font-size: 11px; }
.cmp__name { margin-top: 12px; font-weight: 700; font-size: 17px; line-height: 1.28; letter-spacing: -.008em; text-wrap: balance; }
.cmp__name a { color: inherit; text-decoration: none; }
.cmp__name a:hover { color: var(--c-green-700); }
.cmp__price { margin-top: 8px; font-weight: 800; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cmp__price small { margin-right: 3px; font-weight: 600; font-size: 14px; letter-spacing: 0; color: var(--c-ink-3); }
.cmp__price--ask { font-weight: 600; font-size: 16px; letter-spacing: 0; color: var(--c-ink-2); }
.cmp__old { margin-left: 4px; font-weight: 500; font-size: 14px; letter-spacing: 0; color: var(--c-ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cmp__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 12px; }
.cmp__vars { display: grid; gap: 10px; }
.cmp__vars li { display: flex; flex-direction: column; gap: 1px; }
.cmp__vars b { font-weight: 700; font-variant-numeric: tabular-nums; }
.cmp__vars .cmp__old { margin-left: 0; font-size: 13.5px; }
.cmp[data-promo="off"] .flag--sale, .cmp[data-promo="off"] .cmp__old { display: none; }
.cmp__hint { margin-top: 18px; font-size: 17px; line-height: 1.45; color: var(--c-ink-2); }
.cmp .fpage__msg { margin-top: 16px; }
@media (max-width: 1023px) {
  .cmp { --cmp-lab: 150px; --cmp-col: 200px; }
}
@media (max-width: 767px) {
  .cmp { --cmp-lab: 96px; --cmp-col: 128px; }
  .cmp__scroll { margin-inline: calc(var(--gutter) * -1); border-inline: 0; border-radius: 0; }
  .cmp__table th, .cmp__table td { padding: 12px 10px; font-size: 14.5px; }
  .cmp__table tbody th { padding-inline: 8px; font-size: 12.5px; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
  .cmp__col { padding: 12px 10px; }
  .cmp__photo { border-radius: 12px; }
  .cmp__name { margin-top: 10px; font-size: 15px; }
  .cmp__price { font-size: 15.5px; }
  .cmp__price small { font-size: 12.5px; }
  .cmp__price--ask { font-size: 14px; }
  .cmp__acts { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cmp__acts .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .cmp__vars li { font-size: 14px; }
}
@media (max-width: 359px) {
  .cmp { --cmp-col: 112px; }
  .cmp__table td, .cmp__table thead th { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .cmp__table * { transition: none; }
}

/* A compact excursion card on project, article and portfolio pages. */
.ptour { padding-block:clamp(24px,3vw,40px); }
.ptour__card { max-width:1180px; margin-inline:auto; padding:clamp(22px,2.4vw,32px); grid-template-columns:minmax(0,1fr) minmax(280px,350px); gap:clamp(20px,3vw,36px); }
.ptour__main { gap:16px; }
.ptour__side { gap:16px; }
.ptour__side .act__btn { min-width:0; width:100%; }
.ptour__side .act__msgs { gap:10px; }
.ptour__side .act__msgs > p { flex-basis:100%; }
@media(max-width:1023px) { .ptour__card { grid-template-columns:minmax(0,1fr); } .ptour__side { align-items:flex-start; } .ptour__side .act__btn { width:auto; max-width:100%; } }
@media(max-width:599px) { .ptour__side .act__btn { width:100%; } }

/* Brief 4: full-width excursion card. */
.ptour__card { width:100%; max-width:none; margin:0; display:grid; grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr); gap:28px 36px; align-items:center; }
.ptour__photo { grid-column:1; grid-row:1 / span 2; align-self:stretch; min-height:300px; overflow:hidden; border-radius:24px; }
.ptour__photo > img { width:100%; height:100%; object-fit:cover; }
.ptour__main { grid-column:2; }
.ptour__side { grid-column:2; display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; gap:16px 24px; }
.ptour__side .act__btn { width:auto; min-width:0; margin:0; }
.ptour__side .act__msgs { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0; }
.ptour__side .act__msgs > p { flex:0 0 auto; margin:0 6px 0 0; width:auto; font-size:14px; line-height:1.3; }
@media(max-width:1023px) { .ptour__card { grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:24px; } .ptour__side { grid-column:1 / -1; } .ptour__photo { grid-row:1; min-height:280px; } }
@media(max-width:767px) { .ptour__card { grid-template-columns:minmax(0,1fr); padding:22px 18px; } .ptour__photo,.ptour__main,.ptour__side { grid-column:1; grid-row:auto; } .ptour__photo { aspect-ratio:3 / 2; min-height:0; } .ptour__side .act__btn { width:100%; } }

@media(max-width:767px) {
 .ptour__side .act__msgs { display:grid; grid-template-columns:90px minmax(0,1fr); width:100%; gap:8px 12px; }
 .ptour__side .act__msgs > p { grid-column:1; grid-row:1 / span 2; align-self:center; }
 .ptour__side .act__msgs > .msgbtn { grid-column:2; font-size:14px; padding-inline:12px; width:max-content; max-width:100%; }
}
