/* Перерисованные блоки главной (их строит polish/blocks.js) и новые секции страницы проекта
   (polish/project.js). Палитра и шрифты — их. Форма задаётся переменными варианта. */

html.pl { --plx-r: 0px; --plx-r-sm: 0px; --plx-arch: 0px; --plx-line: #c6bdab; }
html.pl-a { --plx-r: 20px; --plx-r-sm: 12px; }
html.pl-b { --plx-r: 16px; --plx-r-sm: 999px; --plx-arch: 999px; }
html.pl-c { --plx-r: 0px; --plx-r-sm: 2px; }
html.pl-d { --plx-r: 4px; --plx-r-sm: 4px; }
html.pl-e { --plx-r: 0px; --plx-r-sm: 0px; }
html.pl-f { --plx-r: 0px; --plx-r-sm: 0px; --plx-line: #dcd7cc; }

.plx, .plx * { box-sizing: border-box; }
.plx { position: relative; }
.plx:not(.plx-pnav):not(.plx-keys) { padding: 80px 0 !important; }
.plx h2, .plx h3 { font-family: var(--bh-font-display); font-weight: 450; color: #222124; margin: 0; text-wrap: balance; }
.plx p { margin: 0; text-wrap: pretty; }
.plx a { color: inherit; text-decoration: none; }
.plx img { display: block; width: 100%; height: 100%; object-fit: cover; }
.plx-wrap { width: 100%; max-width: 1344px; margin: 0 auto; padding: 0 20px; }
.plx-h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.12; }
.plx-lead { font: 300 16px/1.7 Geist, sans-serif; color: #4b4a4e; max-width: 60ch; }
.plx-head { display: flex; flex-direction: column; gap: 18px; }
.plx-head--row { margin-bottom: 40px; }
.plx-idx { font: 450 22px/1 var(--bh-font-display); color: #aea089; }
.plx-go { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1.5 Geist, sans-serif; letter-spacing: .48px; text-transform: uppercase; }
.plx-go svg { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
a:hover > .plx-go svg, a:hover .plx-go svg { transform: translateX(6px); }
.plx-link { font: 500 12px/1.5 Geist, sans-serif; letter-spacing: .48px; text-transform: uppercase; color: #514d4d !important; border-bottom: 1px solid #514d4d; padding: 4px 0; align-self: flex-start; }
.plx-shot { position: relative; overflow: hidden; background: #e8e5dd; border-radius: var(--plx-r); }
.plx-shot img { transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
a:hover .plx-shot img, .plx-lcard:hover .plx-shot img { transform: scale(1.05); }
html.pl-c .plx-shot::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, .6); pointer-events: none; }
html.pl-e .plx-shot { overflow: visible; box-shadow: 12px 12px 0 #dcd7cc; } html.pl-e .plx-shot img { position: relative; }

/* ── «21 год опыта» ── */
.plx-why .plx-wrap { display: grid; gap: 48px; }
.plx-nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.plx-num { border-top: 1px solid var(--plx-line); padding: 22px 0 26px; display: flex; flex-direction: column; gap: 10px; }
.plx-num b { font: 450 clamp(44px, 5.4vw, 76px)/1 var(--bh-font-display); color: #222124; font-variant-numeric: tabular-nums; }
.plx-num span { font: 400 12px/1.5 Geist, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #706a6b; }
.plx-film { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--plx-r); background: #222124; }
.plx-film img { opacity: .86; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), opacity .4s; }
.plx-film:hover img { transform: scale(1.04); opacity: 1; }
.plx-film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.plx-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(248, 247, 244, .94); transition: transform .3s; }
.plx-play::after { content: ""; position: absolute; left: 35px; top: 29px; border-style: solid; border-width: 13px 0 13px 20px; border-color: transparent transparent transparent #222124; }
.plx-film:hover .plx-play { transform: scale(1.08); }
.plx-why-l { display: flex; flex-direction: column; gap: 32px; }
.plx-why--row .plx-head { align-items: center; text-align: center; } .plx-why--row .plx-lead { margin: 0 auto; }
.plx-why--row .plx-film { max-width: 880px; width: 100%; margin: 0 auto; }
.plx-why--band { background: #222124 !important; }
.plx-why--band h2 { color: #f8f7f4; } .plx-why--band .plx-lead { color: #b2aeae; }
.plx-why--band .plx-num { border-color: rgba(255, 255, 255, .16); } .plx-why--band .plx-num b { color: #f8f7f4; font-size: clamp(48px, 7vw, 112px); } .plx-why--band .plx-num span { color: #aea089; }
html.pl-b .plx-film { border-radius: 999px 999px var(--plx-r) var(--plx-r); aspect-ratio: 4 / 3; }

/* ── Living ── */
.plx-tabs { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #e7e6e6; width: 100%; }
.plx-tabs button { background: none; border: 0; padding: 0 0 14px; font: 450 20px/1.2 var(--bh-font-display); color: #706a6b; cursor: pointer; white-space: nowrap; position: relative; transition: color .25s; }
.plx-tabs button[aria-selected="true"] { color: #222124; }
.plx-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #222124; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.plx-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.plx-pane { display: none; gap: 32px; }
.plx-pane.is-on { display: grid; animation: plx-fade .5s ease both; }
@keyframes plx-fade { from { opacity: 0; transform: translateY(10px); } }
.plx-pane-text { display: flex; flex-direction: column; gap: 16px; }
.plx-pane-text h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; }
.plx-pane-text p { font: 300 15px/1.7 Geist, sans-serif; color: #4b4a4e; }
.plx-mosaic { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.plx-mosaic .plx-shot { aspect-ratio: 4 / 3; } .plx-mosaic .plx-shot:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.plx-mosaic--1 .plx-shot, .plx-mosaic--2 .plx-shot { grid-column: 1 / -1; }
.plx-lcards { display: grid; gap: 16px; }
.plx-lcard { display: flex; flex-direction: column; gap: 18px; outline: 0; }
.plx-lcard .plx-shot { aspect-ratio: 4 / 5; border-radius: var(--plx-arch) var(--plx-arch) var(--plx-r) var(--plx-r); }
html.pl-b .plx-lcard .plx-shot { border-radius: 999px 999px 0 0; }
.plx-lcard-body { display: flex; flex-direction: column; gap: 8px; }
.plx-lcard h3 { font-size: 24px; line-height: 1.2; }
.plx-lcard p { font: 300 14px/1.6 Geist, sans-serif; color: #4b4a4e; }
html.pl-d .plx-living { background: #f8f7f4 !important; }

/* ── три колонки ── */
.plx-three h3 { color: #fff; } .plx-three p { font: 300 15px/1.65 Geist, sans-serif; color: rgba(255, 255, 255, .86); } .plx-three .plx-go { color: #fff; } .plx-three .plx-idx { color: #dcd7cc; }
.plx-rows { border-top: 1px solid rgba(255, 255, 255, .25); }
.plx-row { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 28px 0; border-bottom: 1px solid rgba(255, 255, 255, .25); transition: padding .4s cubic-bezier(.2, .7, .2, 1), background-color .3s; }
.plx-row:hover { background: rgba(255, 255, 255, .06); }
.plx-row h3 { font-size: clamp(26px, 3vw, 40px); line-height: 1.15; margin-bottom: 10px; }
.plx-row .plx-shot { aspect-ratio: 16 / 10; }
.plx-posters, .plx-feature { display: grid; gap: 12px; }
.plx-poster { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; border-radius: var(--plx-r); background: #222124; }
.plx-poster img { position: absolute; inset: 0; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.plx-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34, 33, 36, .05) 30%, rgba(34, 33, 36, .88) 100%); }
.plx-poster > div { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.plx-poster h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; }
.plx-poster:hover img { transform: scale(1.05); }
html.pl-d .plx-poster img { filter: grayscale(1) contrast(1.05); } html.pl-d .plx-poster:hover img { filter: none; }
html.pl-b .plx-poster { border-radius: 999px 999px var(--plx-r) var(--plx-r); } html.pl-b .plx-poster > div { text-align: center; align-items: center; }
.plx-poster--lead { aspect-ratio: 4 / 5; }
.plx-feature-side { display: grid; gap: 12px; }
.plx-side { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; padding: 20px; background: rgba(255, 255, 255, .08); border-radius: var(--plx-r); transition: background-color .3s; }
.plx-side:hover { background: rgba(255, 255, 255, .14); }
.plx-side .plx-shot { aspect-ratio: 1; border-radius: var(--plx-r-sm); box-shadow: none !important; }
.plx-side h3 { font-size: 24px; line-height: 1.2; margin-bottom: 8px; } .plx-side p { font-size: 14px; margin-bottom: 12px; }

/* ── блог ── */
.plx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.plx-chips span { border: 1px solid var(--plx-line); border-radius: 999px; padding: 7px 14px; font: 400 13px/1.4 Geist, sans-serif; color: #222124; }
.plx-post { display: flex; flex-direction: column; gap: 14px; }
.plx-post .plx-shot { aspect-ratio: 3 / 2; }
.plx-post-meta { display: flex; gap: 14px; font: 400 12px/1.5 Geist, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #8b8586; }
.plx-post-meta span:first-child { color: #796655; }
.plx-post h3 { font-size: clamp(21px, 2vw, 28px); line-height: 1.25; }
.plx-mag, .plx-cards3 { display: grid; gap: 32px; }
.plx-mag > .plx-post h3 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; }
.plx-lines { display: flex; flex-direction: column; border-top: 1px solid var(--plx-line); }
.plx-line { display: grid; grid-template-columns: 1fr 20px; gap: 6px 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--plx-line); transition: padding .4s cubic-bezier(.2, .7, .2, 1); }
.plx-line:hover { padding-left: 12px; }
.plx-line span { grid-column: 1; font: 400 12px/1.5 Geist, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #8b8586; }
.plx-line h3 { grid-column: 1; font-size: 21px; line-height: 1.3; }
.plx-line em { grid-column: 1; font: 400 13px/1.4 Geist, sans-serif; font-style: normal; color: #796655; }
.plx-line svg { grid-column: 2; grid-row: 1 / span 3; color: #222124; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.plx-line:hover svg { transform: translateX(6px); }
.plx-lines--2 { margin-top: 40px; }
.plx-scroller { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.plx-scroller .plx-post { flex: 0 0 min(78vw, 360px); scroll-snap-align: start; }
html.pl-d .plx-blog { background: #222124 !important; } html.pl-d .plx-blog h2, html.pl-d .plx-blog h3 { color: #f8f7f4; } html.pl-d .plx-blog .plx-chips span { color: #e7e6e6; border-color: rgba(255, 255, 255, .25); } html.pl-d .plx-blog .plx-link { color: #e7e6e6 !important; border-color: #e7e6e6; }
html.pl-b .plx-post .plx-shot { border-radius: 999px 999px var(--plx-r) var(--plx-r); aspect-ratio: 4 / 5; }

/* ── страница проекта: новые секции ── */
.plx-pnav { position: sticky; top: 69px; z-index: 30; background: rgba(248, 247, 244, .94); backdrop-filter: blur(10px); border-bottom: 1px solid #e7e6e6; padding: 0 !important; }
.plx-pnav .plx-wrap { display: flex; align-items: center; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.plx-pnav a { padding: 16px 0; font: 500 12px/1.5 Geist, sans-serif; letter-spacing: .48px; text-transform: uppercase; color: #706a6b; white-space: nowrap; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.plx-pnav a:hover, .plx-pnav a.is-on { color: #222124; border-color: #222124; }
.plx-pnav button { margin-left: auto; flex: none; }
.plx-keys { padding: 0 !important; background: #222124; }
.plx-keys .plx-wrap { display: grid; grid-template-columns: repeat(2, 1fr); }
.plx-key { padding: 22px 16px 22px 0; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.plx-key span { font: 400 11px/1.4 Geist, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #aea089; }
.plx-key b { font: 450 clamp(20px, 2vw, 28px)/1.2 var(--bh-font-display); color: #f8f7f4; }
.plx-units { background: #fff; }
.plx-utable { border-top: 1px solid #e7e6e6; }
.plx-urow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid #e7e6e6; transition: background-color .25s, padding .35s cubic-bezier(.2, .7, .2, 1); }
.plx-urow:hover { background: #f8f7f4; padding-left: 14px; padding-right: 14px; }
.plx-urow b { font: 450 clamp(26px, 3vw, 40px)/1 var(--bh-font-display); color: #222124; }
.plx-urow span { font: 400 15px/1.5 Geist, sans-serif; color: #4b4a4e; }
.plx-urow button { grid-column: 1 / -1; justify-self: start; }
.plx-terms { background: #e8e5dd; }
.plx-terms-grid { display: grid; gap: 40px; }
.plx-timeline { position: relative; padding-top: 44px; }
.plx-track { position: relative; height: 2px; background: #c6bdab; }
.plx-track i { position: absolute; left: 0; top: 0; height: 100%; background: #222124; }
.plx-track u { position: absolute; top: -7px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #222124; box-shadow: 0 0 0 6px rgba(34, 33, 36, .12); text-decoration: none; }
.plx-track u::after { content: attr(data-l); position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); white-space: nowrap; font: 500 11px/1 Geist, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #222124; }
.plx-tpoints { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }
.plx-tpoints div { display: flex; flex-direction: column; gap: 4px; } .plx-tpoints div:last-child { text-align: right; }
.plx-tpoints span { font: 400 11px/1.4 Geist, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #706a6b; }
.plx-tpoints b { font: 450 22px/1.2 var(--bh-font-display); color: #222124; }
.plx-pay { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.plx-pay div { background: #f8f7f4; border-radius: var(--plx-r); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.plx-pay b { font: 450 clamp(40px, 5vw, 64px)/1 var(--bh-font-display); color: #222124; }
.plx-pay span { font: 400 14px/1.5 Geist, sans-serif; color: #4b4a4e; }
.plx-pfaq { background: #fff; }
.plx-pfaq details { border-top: 1px solid #e7e6e6; } .plx-pfaq details:last-of-type { border-bottom: 1px solid #e7e6e6; }
.plx-pfaq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 20px; align-items: center; padding: 22px 0; font: 450 clamp(19px, 1.9vw, 24px)/1.3 var(--bh-font-display); color: #222124; }
.plx-pfaq summary::-webkit-details-marker { display: none; }
.plx-pfaq summary::after { content: ""; width: 12px; height: 12px; border-right: 1.5px solid #222124; border-bottom: 1.5px solid #222124; transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s; justify-self: center; }
.plx-pfaq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.plx-pfaq details p { font: 300 16px/1.7 Geist, sans-serif; color: #4b4a4e; padding: 0 40px 24px 0; max-width: 72ch; }
.plx-more { background: #f8f7f4; }
.plx-more-grid { display: grid; gap: 20px; }
.plx-mcard { display: flex; flex-direction: column; gap: 16px; }
.plx-mcard .plx-shot { aspect-ratio: 4 / 5; border-radius: var(--plx-arch) var(--plx-arch) var(--plx-r) var(--plx-r); }
html.pl-b .plx-mcard .plx-shot { border-radius: 999px 999px 0 0; }
.plx-mcard h3 { font-size: 26px; line-height: 1.2; } .plx-mcard p { font: 300 15px/1.6 Geist, sans-serif; color: #4b4a4e; }
.plx-askbar { background: #7f6f60; }
.plx-askbar h2 { color: #fff; } .plx-askbar .plx-lead { color: rgba(255, 255, 255, .9); }
.plx-askq { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.plx-askq button { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: 11px 18px; font: 400 15px/1.3 Geist, sans-serif; cursor: pointer; transition: background-color .2s, color .2s; }
.plx-askq button:hover { background: #fff; color: #222124; }
.plx .custom-btn { cursor: pointer; }

@media (min-width: 960px) {
  .plx:not(.plx-pnav):not(.plx-keys) { padding: 120px 0 !important; }
  .plx-wrap { padding: 0 48px; }
  .plx-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 56px; }
  .plx-why--split .plx-wrap { grid-template-columns: 6fr 5fr; gap: 96px; align-items: center; }
  .plx-why--row .plx-nums, .plx-why--band .plx-nums { grid-template-columns: repeat(4, 1fr); gap: 0 40px; }
  .plx-why--band .plx-wrap { grid-template-columns: 5fr 7fr; align-items: end; gap: 64px; } .plx-why--band .plx-nums { grid-column: 1 / -1; } .plx-why--band .plx-film { grid-column: 2; grid-row: 1; }
  .plx-pane.is-on { grid-template-columns: 4fr 7fr; gap: 72px; align-items: start; }
  .plx-lcards { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .plx-lcard:nth-child(even) { margin-top: 56px; }
  .plx-row { grid-template-columns: 64px 5fr 3fr auto; gap: 40px; align-items: center; padding: 36px 0; }
  .plx-row:hover { padding-left: 20px; padding-right: 20px; }
  .plx-row .plx-shot { aspect-ratio: 16 / 10; }
  .plx-posters { grid-template-columns: repeat(3, 1fr); }
  .plx-feature { grid-template-columns: 6fr 5fr; gap: 16px; } .plx-poster--lead { aspect-ratio: auto; min-height: 560px; }
  .plx-side { grid-template-columns: 170px 1fr; padding: 28px; }
  .plx-mag { grid-template-columns: 6fr 5fr; gap: 72px; align-items: start; }
  .plx-cards3 { grid-template-columns: repeat(3, 1fr); }
  .plx-lines--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; border-top: 0; } .plx-lines--2 .plx-line { border-top: 1px solid var(--plx-line); border-bottom: 0; }
  .plx-pnav { top: 81px; } .plx-pnav .plx-wrap { gap: 36px; }
  .plx-keys .plx-wrap { grid-template-columns: repeat(4, 1fr); } .plx-key { padding: 28px 24px 28px 0; border-bottom: 0; } .plx-key + .plx-key { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .1); }
  .plx-urow { grid-template-columns: 2fr 4fr auto; padding: 28px 0; } .plx-urow button { grid-column: auto; }
  .plx-terms-grid { grid-template-columns: 7fr 5fr; gap: 96px; align-items: center; }
  .plx-more-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .plx-pane.is-on { animation: none; } }

/* E «Журнал»: буквица во вступлении */
html.pl-e .plx-why .plx-lead::first-letter { font: 450 64px/.82 var(--bh-font-display); float: left; padding: 8px 12px 0 0; color: #796655; }
html.pl-e .plx-why--row .plx-head { align-items: flex-start; text-align: left; } html.pl-e .plx-why--row .plx-lead { margin: 0; }

/* ── «истории»: фото и текст через одну сторону (вариант F, блок Living и страница проекта) ── */
.plx-story { display: grid; gap: 28px; align-items: center; padding: 28px 0; }
.plx-story .plx-shot { aspect-ratio: 4 / 3; }
.plx-story-text { display: flex; flex-direction: column; gap: 16px; }
.plx-story-text h3 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; }
.plx-story-text p { font: 300 16px/1.7 Geist, sans-serif; color: #4b4a4e; max-width: 52ch; }
@media (min-width: 960px) {
  .plx-story { grid-template-columns: 7fr 5fr; gap: 80px; padding: 48px 0; }
  .plx-story--flip .plx-shot { order: 2; } .plx-story--flip { grid-template-columns: 5fr 7fr; }
}
