:root {
  --yellow: #FFC400;
  --yellow-dark: #E0AA00;
  --black: #000;
  --ink: #0d0d0d;
  --card: #141414;
  --card-line: #2a2a2a;
  --graphite: #2f2f2f;
  --section-dark: radial-gradient(900px 360px at 50% 0, rgba(255,196,0,.08), rgba(255,196,0,0) 70%), #0f0f0f;
  --graphite-2: #262626;
  --white: #fff;
  --text: #1a1a1a;
  --muted: #9a9a9a;
  --radius: 22px;
  --radius-sm: 12px;
  --container: 1200px;
  --container-wide: 1392px;
  --header-h: 68px;
  --font-head: "Unbounded", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(22px, 2.4vw, 32px); }
h2 { font-size: clamp(22px, 2.6vw, 34px); }
h3 { font-size: clamp(15px, 1.4vw, 19px); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: var(--container-wide); }
.page-top { padding-top: var(--header-h); }
.page-content { padding: 48px 24px; }

/* ---------- Placeholders (заменить на фото) ---------- */
.ph { background: linear-gradient(135deg, #3a3a3a, #1c1c1c); position: relative; overflow: hidden; }
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph--room    { background: radial-gradient(circle at 70% 70%, #5a4020 0, transparent 45%), linear-gradient(135deg, #2b2118, #0c0a08); }
.ph--doors   { background: linear-gradient(90deg, #000 0 8%, #7a5636 8% 18%, #111 18% 28%, #b98a5a 28% 40%, #111 40% 50%, #6b4a2f 50% 62%, #111 62% 100%); }
.ph--lounge  { background: radial-gradient(circle at 80% 60%, #6a4a22 0, transparent 50%), linear-gradient(135deg, #2a2118, #0d0b09); }
.ph--cat1 { background: linear-gradient(120deg, #6b4a2d, #2a1c10); }
.ph--cat2 { background: linear-gradient(120deg, #4a3a28, #17120d); }
.ph--cat3 { background: radial-gradient(circle at 60% 70%, #ffb000 0, transparent 40%), linear-gradient(120deg, #2b2b2b, #0e0e0e); }
.ph--cat4 { background: linear-gradient(120deg, #4b4b4b, #1a1a1a); }
.ph--c1 { background: linear-gradient(135deg, #5b5b5b, #2a2a2a); }
.ph--c2 { background: linear-gradient(135deg, #8a6a50, #3c2c20); }
.ph--c3 { background: linear-gradient(135deg, #565656, #222); }
.ph--s1 { background: linear-gradient(135deg, #c9c9d4, #5a5f78); }
.ph--s2 { background: linear-gradient(135deg, #e0b030, #3a3a3a); }
.ph--s3 { background: linear-gradient(135deg, #2d6f7e, #b9824f); }
.ph--s4 { background: linear-gradient(135deg, #a0a0a0, #4a3a2a); }
.ph--s5 { background: linear-gradient(135deg, #5d86a8, #bfc7cc); }
.ph--delivery { background: linear-gradient(135deg, #5d86a8, #d7dde0); }
.ph--van { background: linear-gradient(135deg, #f0f0f0, #bdbdbd); border-radius: 18px 0 0 0; }
.ph--p1 { background: linear-gradient(180deg, #3a3228, #0e0c0a); }
.ph--p2 { background: linear-gradient(180deg, #5a4a3a, #14110d); }
.ph--p3 { background: linear-gradient(180deg, #6b2e2e, #1a0d0d); }
.ph--p4 { background: linear-gradient(180deg, #55575a, #1a1b1c); }
.ph--p5 { background: linear-gradient(180deg, #8a8a82, #2a2a28); }
.ph--n1 { background: linear-gradient(135deg, #8a6a50, #3a2a20); }
.ph--n2 { background: linear-gradient(135deg, #c8a060, #6a4a28); }
.ph--n3 { background: linear-gradient(135deg, #3a3a3a, #121212); }
.ph--n4 { background: linear-gradient(135deg, #6a5a4a, #1a1a1a); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 24px; border: 0; border-radius: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  white-space: nowrap; transition: background .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--yellow); color: var(--black); }
.btn--primary:hover { background: var(--yellow-dark); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: #222; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 11px; }
.btn--block { width: 100%; }
.btn__ico { display: inline-flex; width: 16px; height: 16px; }
.btn__ico svg { width: 100%; height: 100%; }
.link-under { font-size: 15px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.arrow-long { width: 34px; height: 14px; transition: transform .2s ease; }
.card:hover .arrow-long, .tile:hover .arrow-long { transform: translateX(7px); }
.btn__ico { transition: transform .2s ease; }
.btn:hover .btn__ico { transform: translateX(4px); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--black); height: var(--header-h); }
.header__bar { display: flex; align-items: center; gap: 28px; height: var(--header-h); max-width: var(--container-wide); }
.logo img { height: 42px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: 24px; font-size: 13px; font-weight: 500; }
.nav a { color: #ddd; transition: color .2s; }
.nav a:hover { color: var(--yellow); }
.header__end { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.header__phone svg { width: 18px; height: 18px; color: var(--yellow); }
.burger { display: none; width: 40px; height: 40px; background: none; border: 0; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.burger span { width: 24px; height: 2px; background: var(--white); transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-nav { display: none; }

/* ---------- Hero / bento ---------- */
.hero { background: var(--black); padding: 6px 0 40px; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(140px, auto); gap: 14px; }
.card {
  position: relative; display: flex; overflow: hidden; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-line); transition: border-color .25s;
}
a.card:hover { border-color: var(--yellow); }
.card__bg, .tile__bg { position: absolute; inset: 0; }
.card::after, .tile--cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.15)); pointer-events: none; }
.card__body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 28px 32px; width: 100%; }
.card--main { grid-column: span 5; grid-row: span 2; min-height: 430px; }
.card--main .card__body { justify-content: space-between; padding: 56px 36px 36px; }
.card__sub { color: #cfcfcf; font-size: 15px; max-width: 320px; margin-top: 28px; }
.card__loc { display: flex; gap: 8px; align-items: center; color: #aaa; font-size: 13px; }
.card__loc svg { width: 16px; height: 16px; }
.card__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.card--doors { grid-column: span 5; min-height: 270px; }
.card--doors .card__body { justify-content: flex-start; gap: 22px; padding-top: 26px; }
.card--doors .btn { align-self: flex-start; margin-top: auto; }
.badge { display: inline-block; align-self: flex-start; color: var(--yellow); font-size: 11px; font-weight: 600; text-transform: uppercase; border-bottom: 1px solid var(--yellow); }
.card--accent { grid-column: span 2; background: linear-gradient(160deg, var(--yellow), #b88400); border: 0; color: var(--black); }
.card--accent::after { display: none; }
.card--accent h2 { color: var(--black); font-size: clamp(16px, 1.5vw, 22px); }
.card--accent .card__body { padding: 22px 20px; align-items: flex-start; }
.card--projects { grid-column: span 7; min-height: 150px; }
.card--projects p { color: #bbb; max-width: 200px; font-size: 14px; }
.card--projects .card__body { gap: 8px; }

.tiles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; margin-top: 14px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  min-height: 150px; padding: 18px; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; transition: border-color .25s;
}
a.tile:hover, .tile--action:hover { border-color: var(--yellow); }
button.tile { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.tile .arrow-long { flex-shrink: 0; }
.tile > * { position: relative; z-index: 1; }
.tile > .tile__bg { position: absolute; inset: 0; z-index: 0; }
.tile__title { font-size: 16px; line-height: 1.25; }
.tile--fact .tile__title { font-size: 14px; }
.tile__icon { width: 26px; height: 26px; color: var(--yellow); }
.tile__big { font-family: var(--font-head); font-size: 54px; font-weight: 700; line-height: 1; }
.tile__text { font-size: 15px; }

.brands { margin-top: 14px; padding: 22px 0; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); overflow: hidden; }
.brands__track { display: flex; gap: 14px; width: max-content; animation: marquee 80s linear infinite; }
.brands:hover .brands__track { animation-play-state: paused; }
.brands__item { flex: none; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: #1b1b1b; border: 1px solid #262626; }
.brands__logo { width: 100%; height: 100%; object-fit: cover; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- About (graphite) ---------- */
.about { background: var(--section-dark); border-top: 8px solid var(--yellow); padding: 90px 0; overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.about__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--yellow); }
.about__text h2 { margin-top: 14px; font-size: clamp(34px, 4vw, 54px); }
.about__lead { max-width: 520px; margin-top: 18px; font-size: 18px; line-height: 1.55; color: #e6e6e6; }
.about__quote { max-width: 520px; margin-top: 26px; padding: 4px 0 4px 22px; border-left: 3px solid var(--yellow); }
.about__quote p { font-size: 15px; line-height: 1.65; font-style: italic; color: #bdbdbd; }
.about__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.about__stat { padding: 18px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.04); }
.about__stat dt { font-family: var(--font-head); font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1; color: var(--yellow); }
.about__stat dd { margin-top: 8px; font-size: 12px; line-height: 1.4; color: #c9c9c9; }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }

/* Мозаика фото: две колонки с разной скоростью параллакса (запас сверху = величине сдвига) */
.about__media { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; padding-top: 80px; }
.about__col { display: flex; flex-direction: column; gap: 16px; }
.about__col--a { padding-top: 50px; }
.about__photo { position: relative; height: 250px; margin: 0; overflow: hidden; border-radius: 22px; background: #3a3a3a; box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.about__photo--tall { height: 516px; }
.about__photo .cover { transition: transform .8s ease; }
.about__photo:hover .cover { transform: scale(1.05); }
.about__badge { position: absolute; left: -26px; bottom: 30px; z-index: 2; display: grid; place-content: center; width: 124px; height: 124px; border-radius: 50%; background: var(--yellow); color: var(--black); text-align: center; box-shadow: 0 14px 30px rgba(0,0,0,.35); transform: rotate(-8deg); }
.about__badge b { font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1; }
.about__badge span { margin-top: 4px; font-size: 12px; font-weight: 600; }

.about__formula { margin-top: 80px; padding-top: 44px; border-top: 1px solid rgba(255,255,255,.12); }
.about__formula-title { font-family: var(--font-head); font-size: clamp(20px, 2vw, 26px); font-weight: 600; }
.about__values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; list-style: none; }
.about__values li { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; border-radius: 20px; background: #262626; transition: background .25s, transform .25s; }
.about__values li:hover { background: #1e1e1e; transform: translateY(-4px); }
.about__num { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--yellow); }
.about__values b { font-family: var(--font-head); font-size: 17px; font-weight: 600; }
.about__values p { font-size: 14px; line-height: 1.55; color: #bdbdbd; }

/* ---------- Space (white) ---------- */

.space { background: var(--white); color: var(--text); padding: 90px 0 70px; overflow: hidden; }
.space__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.space__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a6a00; }
.space__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--yellow); }
.space__head h2 { margin-top: 14px; font-size: clamp(30px, 3.6vw, 48px); color: #111; }
.space__intro p { font-size: 16px; line-height: 1.65; color: #444; }
.space__intro .link-under { display: inline-block; margin-top: 14px; color: #111; }

.space__show { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.space__list { display: flex; flex-direction: column; gap: 4px; list-style: none; }
.space-tab { position: relative; display: flex; gap: 18px; width: 100%; padding: 20px 6px 22px; border: 0; border-bottom: 1px solid #ececec; background: none; text-align: left; color: #111; cursor: pointer; }
.space-tab__num { flex: none; padding-top: 3px; font-family: var(--font-head); font-size: 13px; font-weight: 600; color: #b0b0b0; transition: color .25s; }
.space-tab__body { display: flex; flex-direction: column; min-width: 0; }
.space-tab__title { font-family: var(--font-head); font-size: 18px; font-weight: 600; line-height: 1.3; color: #9a9a9a; transition: color .25s; }
.space-tab__text { display: block; max-height: 0; overflow: hidden; font-size: 14px; line-height: 1.6; color: #555; opacity: 0; transition: max-height .45s ease, opacity .3s ease, margin-top .3s ease; }
.space-tab:hover .space-tab__title { color: #111; }
.space-tab.is-active .space-tab__num { color: #8a6a00; }
.space-tab.is-active .space-tab__title { color: #111; }
.space-tab.is-active .space-tab__text { max-height: 140px; margin-top: 10px; opacity: 1; }
.space-tab__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.space-tab__bar i { display: block; height: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.space-tab.is-active .space-tab__bar i { transform: scaleX(1); }
.space-tab.is-playing .space-tab__bar i { animation: space-progress var(--space-delay, 5s) linear forwards; }
@keyframes space-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.space__stage { position: relative; padding: 0 0 34px 34px; }
.space__stage::before { content: ""; position: absolute; left: 0; bottom: 0; width: 78%; height: 78%; border-radius: 22px; background: var(--yellow); }
.space__frame { position: relative; aspect-ratio: 4 / 5; max-height: 640px; overflow: hidden; border-radius: 22px; background: #eee; box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.space__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.05); transition: opacity .7s ease, transform 1.4s ease; }
.space__slide.is-active { opacity: 1; transform: none; }
.space__slide figcaption { position: absolute; left: 18px; bottom: 18px; max-width: calc(100% - 120px); padding: 8px 14px; border-radius: 30px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; color: var(--white); }
.space__counter { position: absolute; right: 18px; bottom: 18px; padding: 8px 12px; border-radius: 30px; background: var(--white); font-family: var(--font-head); font-size: 12px; font-weight: 600; color: #8a8a8a; }
.space__counter b { color: #111; }

.space-delivery { display: flex; align-items: center; gap: 28px; margin-top: 70px; padding: 30px 34px; border-radius: 24px; background: var(--yellow); color: var(--black); }
.space-delivery__ico { display: grid; place-items: center; flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--black); color: var(--yellow); }
.space-delivery__ico svg { width: 34px; height: 34px; }
.space-delivery__text { flex: 1; min-width: 0; }
.space-delivery__text h3 { font-size: clamp(18px, 1.8vw, 22px); color: var(--black); }
.space-delivery__cities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; list-style: none; }
.space-delivery__cities li { padding: 6px 12px; border-radius: 30px; background: rgba(0,0,0,.08); font-size: 13px; font-weight: 600; }
.space-delivery .btn { flex: none; }

/* ---------- Help (white + yellow panel) ---------- */
.help { background: var(--white); padding: 40px 0 70px; }
.help__panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; overflow: hidden; padding: 56px; border-radius: 28px; background: #111; color: var(--white); isolation: isolate; }
.help__panel::before { content: ""; position: absolute; right: -120px; top: -160px; z-index: -1; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255,196,0,.35) 0%, rgba(255,196,0,0) 65%); }
.help__panel::after { content: ""; position: absolute; left: -80px; bottom: -120px; z-index: -1; width: 280px; height: 280px; border: 40px solid rgba(255,196,0,.08); border-radius: 50%; }
.help__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.help__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--yellow); }
.help__info h2 { margin-top: 14px; font-size: clamp(26px, 2.8vw, 38px); }
.help__lead { max-width: 460px; margin-top: 14px; font-size: 16px; line-height: 1.6; color: #cfcfcf; }
.help__perks { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; list-style: none; }
.help__perks li { position: relative; padding-left: 32px; font-size: 14px; line-height: 1.45; color: #e6e6e6; }
.help__perks li::before { content: ""; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.help__contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); }
.help__phone { display: inline-flex; align-items: center; gap: 14px; }
.help__phone-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--yellow); color: var(--black); transition: transform .2s; }
.help__phone-ico svg { width: 22px; height: 22px; }
.help__phone:hover .help__phone-ico { transform: rotate(-12deg) scale(1.06); }
.help__phone > span:last-child { display: flex; flex-direction: column; font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1.2; }
.help__phone small { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: #9a9a9a; }
.help__hours { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #a8a8a8; }
.help__hours svg { flex: none; width: 18px; height: 18px; color: var(--yellow); }
.help__form { padding: 32px; border-radius: 22px; background: var(--white); color: var(--text); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.help__form-title { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: #111; }
.help__form-note { margin: -8px 0 4px; font-size: 13px; color: #8a8a8a; }

.form { display: flex; flex-direction: column; gap: 12px; }
.form input { height: 50px; padding: 0 18px; border: 1px solid #000; background: var(--white); color: var(--black); border-radius: 0; }
.form small { font-size: 11px; opacity: .7; }

/* ---------- Projects slider ---------- */
.projects { background: var(--section-dark); padding: 90px 0 60px; border-top: 1px solid #1c1c1c; }
.projects__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.projects__head h2 { font-size: clamp(18px, 1.8vw, 24px); }
.slider-nav { display: flex; gap: 10px; }
.slider-nav__btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background .2s, color .2s; }
.slider-nav__btn:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.slider-nav__btn svg { width: 20px; height: 20px; }
.slider-dots { display: flex; justify-content: center; gap: 4px; margin-top: 30px; }
.slider-dots button { width: 90px; max-width: 14vw; height: 2px; padding: 0; border: 0; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.slider-dots button::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.slider-dots button.is-done::after { transform: scaleX(1); }
.slider-dots button.is-active::after { animation: dot-progress var(--slider-delay, 5s) linear forwards; }
.slider.is-paused + .slider-dots button.is-active::after, .slider-dots.is-static button.is-active::after { animation: none; transform: scaleX(1); }
@keyframes dot-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slider { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 calc(50% - 160px); }
.slider::-webkit-scrollbar { display: none; }
.slider__track { display: flex; gap: 24px; align-items: center; width: max-content; padding: 40px 0; }
.project { position: relative; flex: none; width: 320px; height: 520px; scroll-snap-align: center; overflow: hidden; display: flex; align-items: flex-end; transform: scale(.86); transition: transform .5s ease; }
.project.is-active { transform: scale(1.04); z-index: 1; }
.project__bg { position: absolute; inset: 0; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.8), rgba(0,0,0,.1) 70%); }
.project__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px; }
.project__body p { font-size: 12px; color: #ddd; }
.project__more { font-size: 12px; color: #ddd; }
.project--cta { background: linear-gradient(160deg, var(--yellow), #b88400); color: var(--black); }
.project--cta h3 { color: var(--black); }
.project--cta .project__body p { color: rgba(0,0,0,.72); font-size: 13px; }
.project--cta::after { display: none; }

/* ---------- News ---------- */
.news { background: var(--section-dark); padding: 40px 0 70px; }
.news__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.news__head h2 { font-size: clamp(18px, 1.8vw, 24px); }

/* ---------- Partners ---------- */
.partners { background: var(--section-dark); padding: 40px 0 80px; }
.partners h2 { font-size: clamp(18px, 1.8vw, 24px); margin-bottom: 36px; }
.partners__marquee { overflow: hidden; }
.partners__track { display: flex; gap: 14px; width: max-content; animation: marquee 30s linear infinite; }
.partners__marquee:hover .partners__track { animation-play-state: paused; }
.partner { flex: none; width: 150px; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: 10px; background: #161616; border: 1px solid #262626; border-radius: 10px; transition: background .2s, border-color .2s; }
.partner:hover { background: #1d1d1d; border-color: var(--yellow); }
.partner__logo { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Collab ---------- */
/* Свой отступ сверху: блок может стоять после белой секции (страница проектов, FAQ) */
.collab { background: var(--section-dark); padding: 80px 0; }
.collab--photo { position: relative; overflow: hidden; isolation: isolate; padding: 110px 0; }
.collab__bg { position: absolute; inset: 0; z-index: -1; }
.collab__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.55) 55%, rgba(0,0,0,.7)); }
.collab--photo .collab__panel { background: rgba(10,10,10,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.collab__panel { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 48px 56px; border: 1px solid var(--yellow); border-radius: var(--radius); }
.collab__text p { margin-top: 12px; color: #ddd; }
.collab__action { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.collab__action small { font-size: 11px; color: var(--muted); }
.collab__action small a { text-decoration: underline; text-underline-offset: 2px; }
.collab__action small a:hover { color: var(--yellow); }

/* ---------- Footer ---------- */
.footer { background: var(--black); padding: 60px 0 0; font-size: 14px; color: #cfcfcf; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col a:hover { color: var(--yellow); }
.footer__lead { color: var(--white); margin-top: 14px; }
.footer__title { font-family: var(--font-head); font-size: 13px; color: var(--yellow); margin-bottom: 8px; }
.footer__title--sub { margin-top: 14px; }
.subscribe { display: flex; flex-direction: column; gap: 10px; }
.subscribe input { height: 44px; padding: 0 16px; background: #1a1a1a; border: 1px solid var(--card-line); border-radius: 10px; color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 50px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--card-line); font-size: 12px; color: var(--muted); }
.footer__bottom a:hover { color: var(--yellow); }

/* ---------- Modal ---------- */
html.modal-open { overflow: hidden; }
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); opacity: 0; transition: opacity .26s ease; }
.modal.is-open .modal__overlay { opacity: 1; }
.modal__dialog { position: relative; display: grid; grid-template-columns: 340px minmax(0, 1fr); width: 100%; max-width: 860px; max-height: calc(100vh - 40px); overflow: hidden; border-radius: 24px; background: var(--white); color: var(--text); box-shadow: 0 40px 100px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .26s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }

.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f1f1; color: #111; transition: background .2s, transform .2s; }
.modal__close:hover { background: var(--yellow); transform: rotate(90deg); }
.modal__close svg { width: 20px; height: 20px; }

.modal__aside { position: relative; display: flex; align-items: flex-end; min-height: 540px; background: var(--black); color: var(--white); isolation: isolate; }
.modal__bg { z-index: -2; }
.modal__aside::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .92) 100%); }
.modal__aside-body { padding: 30px 28px; }
.modal__logo { height: 34px; width: auto; margin-bottom: 22px; }
.modal__perks { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.modal__perks li { position: relative; padding-left: 30px; font-size: 13px; line-height: 1.45; color: #e6e6e6; }
.modal__perks li::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }

.modal__main { overflow-y: auto; padding: 44px 44px 34px; }
.modal__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a8a8a; }
.modal__eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--yellow); }
.modal__main h3 { margin-top: 12px; padding-right: 30px; font-size: clamp(22px, 2.4vw, 28px); color: #111; }
.modal__lead { margin: 10px 0 24px; font-size: 14px; line-height: 1.55; color: #5a5a5a; }

.form--modal { gap: 14px; }
.form--modal input:not([type="checkbox"]) { width: 100%; height: 52px; padding: 0 16px; border: 1px solid #e2e2e2; border-radius: 12px; background: #f7f7f7; color: #111; transition: border-color .2s, background .2s, box-shadow .2s; }
.form--modal input:not([type="checkbox"]):focus { outline: none; border-color: var(--yellow); background: var(--white); box-shadow: 0 0 0 4px rgba(255, 196, 0, .25); }
.form--modal ::placeholder { color: #9a9a9a; }
.form--modal .field__label { color: #555; }
.form--modal .check { color: #5a5a5a; }
.form--modal .check a { color: #111; }
.form--modal .btn { min-height: 54px; margin-top: 4px; font-size: 14px; }
.modal__alt { margin-top: 16px; text-align: center; font-size: 13px; color: #7a7a7a; }
.modal__alt a { font-weight: 700; color: #111; white-space: nowrap; }
.modal__alt a:hover { text-decoration: underline; text-underline-offset: 3px; }

.modal__done { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 100%; padding: 30px 0; text-align: center; }
.modal__done[hidden] { display: none; }
.modal__done-ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); color: var(--black); animation: done-pop .45s cubic-bezier(.2, .8, .2, 1.2); }
.modal__done-ico svg { width: 34px; height: 34px; }
.modal__done h3 { margin-top: 6px; padding-right: 0; }
.modal__done p { max-width: 340px; font-size: 14px; line-height: 1.6; color: #5a5a5a; }
.modal__done p a { font-weight: 700; color: #111; white-space: nowrap; }
.modal__done .btn { margin-top: 8px; }
@keyframes done-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 760px) {
  .modal { place-items: end center; padding: 0; }
  .modal__dialog { grid-template-columns: 1fr; max-width: none; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(100%); transition: opacity .2s ease, transform .32s cubic-bezier(.2, .8, .2, 1); }
  .modal__aside { display: none; }
  .modal__main { padding: 30px 20px 26px; }
  .modal__main::before { content: ""; display: block; width: 44px; height: 4px; margin: -14px auto 18px; border-radius: 4px; background: #e0e0e0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .nav { gap: 18px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1000px) {
  .space { padding: 64px 0 56px; }
  .space__head, .space__show { grid-template-columns: 1fr; gap: 24px; }
  .space__stage { order: -1; padding: 0 0 20px 20px; }
  .space__frame { aspect-ratio: 4 / 3; }
  .space-delivery { flex-direction: column; align-items: flex-start; gap: 18px; padding: 26px 22px; }
  .nav, .header__phone, .header__end .btn { display: none; }
  .burger { display: flex; }
  .mobile-nav { position: absolute; inset: var(--header-h) 0 auto; display: none; flex-direction: column; gap: 18px; padding: 24px; background: var(--black); border-top: 1px solid var(--card-line); }
  .mobile-nav.is-open { display: flex; }
  .mobile-nav__links { display: flex; flex-direction: column; gap: 14px; font-size: 18px; font-weight: 600; }
  .mobile-nav__phone { font-family: var(--font-head); font-size: 18px; color: var(--yellow); }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--main { grid-column: span 2; grid-row: auto; min-height: 380px; }
  .card--doors { grid-column: span 2; }
  .card--accent { grid-column: span 2; min-height: 150px; }
  .card--projects { grid-column: span 2; }

  .about { padding: 64px 0; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { padding-top: 0; }
  .about__col--a { padding-top: 0; }
  .about__photo { height: 200px; }
  .about__photo--tall { height: 416px; }
  .about__badge { left: auto; right: -6px; bottom: -14px; width: 100px; height: 100px; }
  .about__badge b { font-size: 18px; }
  .about__values { grid-template-columns: repeat(2, 1fr); }
  .about__formula { margin-top: 56px; }


  .help__panel { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 36px 24px; }
  .collab__panel { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .about__stat:last-child { grid-column: 1 / -1; }
  .about__values { grid-template-columns: 1fr; }
  .about__photo { height: 150px; }
  .about__photo--tall { height: 316px; }
  .card__body, .card--main .card__body { padding: 24px 20px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile__big { font-size: 42px; }
  .project { width: 270px; height: 460px; }
  .slider { padding: 0 calc(50% - 135px); }
  .slider__track { gap: 20px; }
  .partner { width: 110px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- Внутренние страницы: обложка + крошки ---------- */
.nav a.is-current { color: var(--yellow); }
.page-hero { position: relative; display: flex; align-items: center; min-height: 380px; background: #1a1a1a center / cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.8), rgba(0,0,0,.35)); }
.page-hero__inner { position: relative; padding-top: 40px; padding-bottom: 60px; }
.page-hero h1 { margin-top: 22px; font-size: clamp(26px, 3vw, 40px); }
.page-hero__lead { max-width: 580px; margin-top: 22px; font-size: 17px; font-weight: 500; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: 13px; color: #bdbdbd; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #777; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--yellow); }

/* ---------- Контакты: карта + карточка ---------- */
.contacts { position: relative; background: var(--black); }
.contacts__map { position: absolute; inset: 0; background: #2a2a2a; }
.contacts__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.contacts__container { position: relative; display: flex; min-height: 660px; pointer-events: none; }
.contacts-card { display: flex; flex-direction: column; align-items: flex-start; width: 364px; padding: 56px 34px 44px; background: var(--yellow); color: var(--black); pointer-events: auto; }
.contacts-card h2 { color: var(--black); font-size: clamp(26px, 2.4vw, 32px); }
.contacts-card__about { margin: 30px 0 46px; font-size: 14px; font-weight: 600; }
.contacts-card__phone { font-family: var(--font-head); font-size: 22px; font-weight: 700; }
.contacts-card__email { margin-top: 6px; font-size: 18px; font-weight: 500; }
.contacts-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contacts-card__text { margin-top: 26px; font-size: 14px; font-weight: 600; line-height: 1.6; }
.contacts-card .btn { margin-top: auto; min-height: 44px; padding: 0 36px; border-radius: 30px; }
.contacts-card__text + .btn { margin-top: 50px; }

/* ---------- Реквизиты ---------- */
.requisites { background: var(--white); color: var(--text); padding: 70px 0 80px; }
.requisites__grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 40px; }
.requisites h2 { color: #222; font-size: clamp(22px, 2.4vw, 30px); }
.requisites__list { font-size: 15px; line-height: 1.5; }
.requisites__row dt { display: inline; font-weight: 700; }
.requisites__row dd { display: inline; margin-left: 4px; color: #555; }

@media (max-width: 1000px) {
  .contacts { display: flex; flex-direction: column; }
  .contacts__map { position: static; order: 2; height: 380px; }
  .contacts__container { min-height: 0; padding: 0; }
  .contacts-card { width: 100%; padding: 40px 24px; }
  .requisites__grid { grid-template-columns: 1fr; gap: 24px; }
  .page-hero { min-height: 300px; }
}

/* ---------- Форма обратной связи ---------- */
.feedback { background: var(--black); padding: 80px 0; }
.feedback__card { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; padding: 52px 56px; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); }
.feedback__copy p { margin-top: 18px; color: #cfcfcf; font-size: 16px; }
.feedback__notes { margin-top: 30px; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.feedback__notes li { position: relative; padding-left: 26px; font-size: 14px; color: #ddd; }
.feedback__notes li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 12px; font-weight: 600; color: #bdbdbd; }
.field__label small { font-weight: 400; color: var(--muted); }
.form--dark input:not([type="checkbox"]), .form--dark textarea { width: 100%; padding: 14px 16px; background: #1c1c1c; border: 1px solid var(--card-line); border-radius: 10px; color: var(--white); transition: border-color .2s; }
.form--dark input:not([type="checkbox"]) { height: 50px; }
.form--dark textarea { resize: vertical; min-height: 120px; }
.form--dark input:focus, .form--dark textarea:focus { outline: none; border-color: var(--yellow); }
.form--dark ::placeholder { color: #6f6f6f; }
.form__hp { position: absolute !important; left: -9999px; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #bdbdbd; cursor: pointer; }
.form .check input, .check input { flex: none; width: 18px; height: 18px; margin-top: 1px; padding: 0; border: 0; accent-color: var(--yellow); }
.check a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.feedback__form .btn { align-self: flex-start; }
/* Отправка форм (CF7): ошибки и состояние отправки */
.form__error { margin: 0; padding: 10px 14px; border-left: 3px solid #e5484d; background: rgba(229, 72, 77, .1); color: #ff8a8d; font-size: 14px; line-height: 1.4; }
.form__error[hidden] { display: none; }
.form--modal .form__error, .help__form .form__error { color: #c62828; background: #fdecec; }
.is-invalid { border-color: #e5484d !important; box-shadow: 0 0 0 1px #e5484d inset; }
.check input.is-invalid { outline: 2px solid #e5484d; outline-offset: 2px; }
.field__tip { display: block; margin-top: 4px; color: #e5484d; font-size: 12px; line-height: 1.3; }
.check:has(.field__tip) { flex-wrap: wrap; }
.check .field__tip { flex-basis: 100%; }
form.is-sending [type="submit"] { opacity: .6; cursor: progress; }
.subscribe__note { color: var(--muted); font-size: 12px; line-height: 1.4; }
.subscribe__note a { color: inherit; text-decoration: underline; }
.subscribe__note a:hover { color: var(--yellow); }
.form__success { align-self: center; padding: 24px 28px; border-left: 4px solid var(--yellow); background: #1c1c1c; color: var(--white); font-size: 16px; font-weight: 500; }

@media (max-width: 1000px) {
  .feedback { padding: 56px 0; }
  .feedback__card { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
}
@media (max-width: 600px) {
  .form__row { grid-template-columns: 1fr; }
  .feedback__form .btn { align-self: stretch; }
}

/* ---------- Карточки статей ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.posts-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 44px 28px; }
.post-card { display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.post-card__img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: #e9e9e9; }
.post-card__img .cover { transition: transform .5s ease; }
.post-card:hover .post-card__img .cover { transform: scale(1.05); }
.post-card__cat { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 6px 12px; border-radius: 30px; background: var(--yellow); color: var(--black); font-size: 11px; font-weight: 700; }
.post-card__title { margin-top: 6px; font-size: 16px; line-height: 1.3; }
.post-card__title a { transition: color .2s; }
.post-card__title a:hover { color: var(--yellow-dark); }
.post-card__text { font-size: 13px; color: #5c5c5c; }
.post-card__meta { display: flex; gap: 14px; margin-top: auto; font-family: var(--font-head); font-size: 11px; font-weight: 600; color: #8a8a8a; }
.posts-grid--dark .post-card { color: var(--white); }
.posts-grid--dark .post-card__img { background: #3a3a3a; }
.posts-grid--dark .post-card__title a:hover { color: var(--yellow); }
.posts-grid--dark .post-card__text { color: #cfcfcf; }
.posts-grid--dark .post-card__meta { color: #a8a8a8; }

/* ---------- Страница новостей ---------- */
.blog-list { background: var(--white); color: var(--text); padding: 50px 0 90px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 1px solid #dcdcdc; border-radius: 30px; font-size: 14px; font-weight: 600; transition: border-color .2s, background .2s; }
.chip span { font-size: 12px; color: #8a8a8a; }
.chip:hover { border-color: var(--black); }
.chip.is-active { background: var(--black); border-color: var(--black); color: var(--white); }
.chip.is-active span { color: var(--yellow); }
.blog-more { display: flex; justify-content: center; margin-top: 56px; }
.blog-more .btn.is-loading { opacity: .6; pointer-events: none; }
.blog-empty { color: #6b6b6b; }

/* ---------- Статья ---------- */
.read-progress { position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; }

.article-hero { background: var(--black); padding: 34px 0 64px; }
.article-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; margin-top: 30px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 13px; color: #bdbdbd; }
.article-meta__cat { padding: 6px 14px; border-radius: 30px; background: var(--yellow); color: var(--black); font-weight: 700; font-size: 12px; }
.article-meta__cat:hover { background: var(--yellow-dark); }
.article-meta time::after { content: "·"; margin-left: 18px; color: #666; }
.article-hero h1 { margin-top: 22px; font-size: clamp(24px, 3vw, 42px); }
.article-hero__lead { margin-top: 20px; max-width: 560px; font-size: 17px; color: #d6d6d6; }
.article-hero__jump { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font-weight: 600; font-size: 14px; color: var(--yellow); }
.article-hero__jump .btn__ico { transform: rotate(90deg); }
.article-hero__jump:hover .btn__ico { transform: rotate(90deg) translateX(4px); }
.article-hero__cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: #1a1a1a; }

.article-wrap { background: var(--white); color: var(--text); padding: 64px 0 90px; }
.article-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 64px; align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.article-body { max-width: 780px; }
.article-body [id], .article-section, #article-start, #related, #feedback, #about { scroll-margin-top: calc(var(--header-h) + 24px); }

.toc { border: 1px solid #e4e4e4; border-radius: 18px; padding: 22px 22px 18px; }
.toc summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; font-family: var(--font-head); font-size: 14px; font-weight: 600; color: #1a1a1a; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary svg { width: 18px; height: 18px; transition: transform .25s; }
.toc[open] summary svg { transform: rotate(180deg); }
.toc ol { list-style: none; counter-reset: toc; margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a { position: relative; display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13px; line-height: 1.35; color: #4a4a4a; transition: background .2s, color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); flex: none; padding-top: 1px; font-family: var(--font-head); font-size: 11px; color: #a0a0a0; }
.toc a:hover { background: #f4f4f4; color: #000; }
.toc a.is-active { background: #fff6d6; color: #000; font-weight: 600; }
.toc a.is-active::before { color: var(--yellow-dark); }

.article-cta { padding: 24px; border-radius: 18px; background: var(--yellow); color: var(--black); }
.article-cta__title { font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.article-cta p:not(.article-cta__title) { margin: 10px 0 18px; font-size: 13px; }
.article-cta__phone { display: block; margin-top: 14px; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 14px; }

.content { font-size: 17px; line-height: 1.75; color: #262626; }
.content > * + * { margin-top: 18px; }
.content h2, .article-section h2 { position: relative; margin-top: 48px; padding-left: 18px; font-size: clamp(20px, 2vw, 26px); color: #111; }
.content h2::before, .article-section h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; border-radius: 3px; background: var(--yellow); }
.content > h2:first-child { margin-top: 0; }
.content h3 { margin-top: 32px; font-size: 19px; color: #111; }
.content ul, .content ol { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.content ul li { position: relative; padding-left: 26px; }
.content ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.content ol { counter-reset: ol; }
.content ol li { position: relative; counter-increment: ol; padding: 16px 18px 16px 62px; border-radius: 14px; background: #f6f6f6; }
.content ol li::before { content: counter(ol); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--black); color: var(--yellow); font-family: var(--font-head); font-size: 13px; font-weight: 700; }
.content strong { color: #000; }
.content a { color: #000; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.content blockquote { padding: 20px 24px; border-left: 4px solid var(--yellow); border-radius: 0 14px 14px 0; background: #fffbea; font-style: italic; }
.content > p:first-child { font-size: 19px; color: #111; }

.article-section { margin-top: 56px; }
.article-section h2 { margin: 0 0 24px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #111; }
.video-frame + .video-frame { margin-top: 20px; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery__item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: #eee; cursor: zoom-in; }
.gallery__item .cover { transition: transform .5s ease; }
.gallery__item:hover .cover { transform: scale(1.06); }

.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1px solid #e4e4e4; border-radius: 16px; background: var(--white); transition: border-color .25s, box-shadow .25s; }
.faq__item[open] { border-color: var(--yellow); box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; list-style: none; cursor: pointer; font-family: var(--font-head); font-size: 15px; font-weight: 600; line-height: 1.35; color: #111; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #f1f1f1; transition: background .25s, transform .25s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: #111; transition: transform .25s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--yellow); transform: rotate(180deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__answer { padding: 0 22px 22px; font-size: 15px; line-height: 1.65; color: #3a3a3a; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 56px; padding-top: 28px; border-top: 1px solid #e8e8e8; }
.share__label { margin-right: 6px; font-weight: 600; font-size: 14px; }
.share__btn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border: 1px solid #dcdcdc; border-radius: 30px; background: none; font-size: 13px; font-weight: 600; color: #1a1a1a; transition: background .2s, border-color .2s; }
.share__btn:hover { background: var(--yellow); border-color: var(--yellow); }

.related { background: var(--section-dark); padding: 80px 0; }
.related__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.related__head h2 { font-size: clamp(20px, 2vw, 28px); }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 60px 70px; background: rgba(0, 0, 0, .92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 8px; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--white); font-size: 26px; line-height: 1; transition: background .2s, color .2s; }
.lightbox__btn:hover { background: var(--yellow); color: var(--black); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 14px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 14px; top: 50%; margin-top: -24px; }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 13px; color: #bbb; }

@media (max-width: 1200px) {
  .posts-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .article-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 1000px) {
  .posts-grid, .posts-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .article-hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .article-aside { position: static; }
  .article-cta { display: none; }
  .article-wrap { padding-top: 32px; }
  .lightbox { padding: 60px 12px; }
}
@media (max-width: 600px) {
  .posts-grid, .posts-grid--4 { grid-template-columns: 1fr; }
  .content { font-size: 16px; }
  .content > p:first-child { font-size: 17px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .faq__item summary { padding: 16px; font-size: 14px; }
  .faq__answer { padding: 0 16px 18px; }
  .news__head, .related__head { align-items: flex-start; flex-direction: column; }
}

/* ---------- Слайдер проектов: шапка ---------- */
.projects__actions { display: flex; align-items: center; gap: 28px; }

/* ---------- Страница «Реализованные проекты» ---------- */
.projects-hero { position: relative; background: #111 center / cover no-repeat; }
.projects-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.35) 100%); }
.projects-hero__inner { position: relative; padding-top: 40px; padding-bottom: 70px; }
.projects-hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-top: 40px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.projects-hero__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--yellow); }
.projects-hero h1 { margin-top: 16px; max-width: 760px; font-size: clamp(30px, 4.4vw, 60px); }
.projects-hero__lead { max-width: 560px; margin-top: 22px; font-size: 17px; color: #dcdcdc; }
.projects-hero__stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.projects-hero__stats div { min-width: 170px; padding: 18px 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.projects-hero__stats dt { font-family: var(--font-head); font-size: 34px; font-weight: 700; line-height: 1; color: var(--yellow); }
.projects-hero__stats dd { margin-top: 8px; font-size: 13px; color: #d0d0d0; }

.pgrid-section { background: var(--black); padding: 56px 0 90px; }
.chips--dark .chip { border-color: #333; color: #ddd; background: transparent; cursor: pointer; }
.chips--dark .chip:hover { border-color: var(--yellow); }
.chips--dark .chip.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.chips--dark .chip.is-active span { color: rgba(0,0,0,.6); }
.chips--dark .chip span { color: #888; }

.pgrid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 300px; gap: 20px; }
.pcard { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border-radius: var(--radius); background: #1a1a1a; color: var(--white); isolation: isolate; }
.pcard:nth-child(5n+1) { grid-column: span 7; grid-row: span 2; }
.pcard:nth-child(5n+2) { grid-column: span 5; grid-row: span 2; }
.pcard:nth-child(5n+3) { grid-column: span 5; grid-row: span 2; }
.pcard:nth-child(5n+4) { grid-column: span 7; grid-row: span 2; }
.pcard:nth-child(5n+5) { grid-column: span 12; grid-row: span 2; }
.pgrid.is-filtered .pcard { grid-column: span 6; grid-row: span 2; }
.pcard[hidden] { display: none; }
.pcard__media { position: absolute; inset: 0; z-index: -2; }
.pcard__media .cover { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .pcard__media .cover { transform: scale(1.06); }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.88) 100%); transition: background .4s; }
.pcard__top { display: flex; justify-content: space-between; gap: 10px; padding: 22px 22px 0; }
.pcard__chip, .pcard__count { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 30px; font-size: 12px; font-weight: 700; }
.pcard__chip { background: var(--yellow); color: var(--black); }
.pcard__count { background: rgba(0,0,0,.5); backdrop-filter: blur(6px); color: var(--white); }
.pcard__count svg { width: 16px; height: 16px; }
.pcard__body { position: relative; padding: 28px 30px 30px; }
.pcard__num { display: block; margin-bottom: 10px; font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--yellow); }
.pcard__title { max-width: 620px; font-size: clamp(20px, 2.2vw, 30px); }
.pcard__meta { margin-top: 10px; font-size: 13px; color: #c9c9c9; }
.pcard__text { max-width: 520px; max-height: 0; margin-top: 0; overflow: hidden; opacity: 0; font-size: 14px; color: #e2e2e2; transition: max-height .45s ease, opacity .35s ease, margin-top .35s ease; }
.pcard:hover .pcard__text, .pcard:focus-visible .pcard__text { max-height: 120px; margin-top: 12px; opacity: 1; }
.pcard__more { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--yellow); }
.pcard:hover .pcard__more .btn__ico { transform: translateX(5px); }

/* ---------- Страница проекта ---------- */
.project-hero { position: relative; display: flex; min-height: min(78vh, 760px); background: #111 center / cover no-repeat; }
.project-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 14%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%); }
.project-hero__inner { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding-top: 28px; padding-bottom: 0; }
.project-hero__plate { align-self: flex-start; max-width: 640px; margin-bottom: -1px; padding: 34px 40px 36px; background: var(--yellow); color: var(--black); border-radius: var(--radius) var(--radius) 0 0; }
.project-hero__kind { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 30px; background: var(--black); color: var(--yellow); font-size: 12px; font-weight: 700; }
.project-hero__plate h1 { color: var(--black); font-size: clamp(26px, 3.4vw, 46px); }
.project-hero__studio { margin-top: 12px; font-size: 15px; }
.project-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; list-style: none; font-size: 14px; font-weight: 600; }
.project-hero__facts li { display: inline-flex; align-items: center; gap: 6px; }
.project-hero__facts svg { width: 18px; height: 18px; }

.project-features { background: var(--white); color: var(--text); padding: 90px 0; overflow: hidden; }
.project-features__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.project-features__media { position: relative; min-height: 520px; }
.project-features__img { position: absolute; display: block; overflow: hidden; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.18); cursor: zoom-in; }
.project-features__img .cover { transition: transform .6s ease; }
.project-features__img:hover .cover { transform: scale(1.05); }
.project-features__img--1 { left: 0; top: 0; width: 56%; height: 62%; }
.project-features__img--2 { right: 0; top: 18%; width: 52%; height: 66%; z-index: 1; border: 6px solid var(--white); }
.project-features__img--3 { left: 10%; bottom: 0; width: 38%; height: 32%; z-index: 2; border: 6px solid var(--white); }
.project-features__note { position: absolute; left: 0; bottom: -34px; font-size: 12px; color: #8a8a8a; }
.project-features__list { list-style: none; counter-reset: feat; display: flex; flex-direction: column; gap: 34px; }
.project-features__list li { position: relative; counter-increment: feat; padding-left: 70px; }
.project-features__list li::before { content: counter(feat, decimal-leading-zero); position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--black); color: var(--yellow); font-family: var(--font-head); font-size: 14px; font-weight: 700; }
.project-features__list h2 { font-size: 20px; color: #111; }
.project-features__list p { margin-top: 10px; font-size: 15px; line-height: 1.65; color: #444; }

.project-gallery { background: var(--white); color: var(--text); padding: 20px 0 100px; }
.project-features + .project-gallery { padding-top: 40px; }
.project-page .project-hero + .project-gallery { padding-top: 90px; }
.project-gallery__grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 60px; align-items: start; }
.project-gallery__info { position: sticky; top: calc(var(--header-h) + 28px); }
.project-gallery__info h2 { font-size: clamp(22px, 2.2vw, 30px); color: #111; }
.project-gallery__text { margin-top: 20px; font-size: 15px; line-height: 1.7; color: #3a3a3a; }
.project-gallery__text p + p { margin-top: 12px; }
.project-gallery__label { margin-top: 28px; font-family: var(--font-head); font-size: 13px; font-weight: 600; color: #111; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; list-style: none; }
.tags li { padding: 8px 14px; border-radius: 30px; background: #f2f2f2; font-size: 13px; font-weight: 600; color: #222; }
.project-gallery__cta { margin-top: 32px; }
.project-gallery__cta p { margin-top: 14px; font-size: 13px; color: #6b6b6b; }
.btn__lead { width: 18px; height: 18px; }

.viewer { min-width: 0; }
.viewer__stage { position: relative; overflow: hidden; border-radius: var(--radius); background: #f0f0f0; aspect-ratio: 4 / 3; }
.viewer__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.viewer__img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.viewer__img.is-changing { opacity: .35; }
.viewer__nav { position: absolute; top: 50%; display: grid; place-items: center; width: 50px; height: 50px; margin-top: -25px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: #111; font-size: 28px; line-height: 1; box-shadow: 0 6px 20px rgba(0,0,0,.15); transition: background .2s, transform .2s; }
.viewer__nav:hover { background: var(--yellow); transform: scale(1.06); }
.viewer__nav--prev { left: 16px; }
.viewer__nav--next { right: 16px; }
.viewer__count { position: absolute; right: 16px; bottom: 16px; padding: 6px 12px; border-radius: 30px; background: rgba(0,0,0,.6); color: var(--white); font-size: 12px; font-weight: 600; pointer-events: none; }
.viewer__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }
.viewer__thumb { position: relative; flex: none; width: 96px; height: 72px; overflow: hidden; border-radius: 10px; opacity: .55; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .2s, outline-color .2s; }
.viewer__thumb:hover { opacity: .9; }
.viewer__thumb.is-active { opacity: 1; outline-color: var(--yellow); }

.project-page .projects { padding-top: 90px; }
.project-page .collab { padding-top: 0; }
.project-page .collab--photo { padding-top: 110px; }

/* Появление снизу (сетка проектов) */
.js .reveal--up { transform: translateY(40px); --reveal-time: 1s; }

@media (max-width: 1000px) {
  .pgrid { grid-auto-rows: 240px; gap: 14px; }
  .pcard:nth-child(n), .pgrid.is-filtered .pcard { grid-column: span 12; grid-row: span 2; }
  .pcard__text { max-height: none; margin-top: 12px; opacity: 1; }
  .project-hero { min-height: 520px; }
  .project-hero__plate { padding: 26px 22px 28px; }
  .project-features__grid, .project-gallery__grid { grid-template-columns: 1fr; gap: 40px; }
  .project-features__media { min-height: 380px; }
  .project-gallery__info { position: static; }
  .projects__actions .link-under { display: none; }
}
@media (max-width: 600px) {
  .projects-hero__stats div { min-width: 0; flex: 1 1 40%; }
  .pcard__body { padding: 22px 20px 22px; }
  .project-features__media { min-height: 300px; }
  .viewer__nav { width: 40px; height: 40px; margin-top: -20px; font-size: 22px; }
  .viewer__thumb { width: 76px; height: 58px; }
}

/* ---------- Блок «Вопросы и ответы» ---------- */
.faq-block { background: var(--white); color: var(--text); padding: 90px 0; }
.project-gallery + .faq-block { padding-top: 0; }
.faq-block__grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 64px; align-items: start; }
.faq-block__head { position: sticky; top: calc(var(--header-h) + 28px); }
.faq-block__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a8a8a; }
.faq-block__eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--yellow); }
.faq-block h2 { margin-top: 14px; font-size: clamp(24px, 2.6vw, 36px); color: #111; }
.faq-block__lead { margin-top: 16px; font-size: 15px; line-height: 1.65; color: #555; }
.faq-block__ask { position: relative; display: flex; flex-direction: column; gap: 16px; margin-top: 32px; padding: 26px; overflow: hidden; border-radius: 22px; background: #111; color: var(--white); isolation: isolate; }
.faq-block__ask::before { content: ""; position: absolute; right: -70px; top: -90px; z-index: -1; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,196,0,.3) 0%, rgba(255,196,0,0) 65%); }
.faq-block__ask-top { display: flex; align-items: center; gap: 14px; }
.faq-block__ask-ico { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--yellow); color: var(--black); }
.faq-block__ask-ico svg { width: 26px; height: 26px; }
.faq-block__ask-title { font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.faq-block__ask-note { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 12px; font-weight: 600; color: #b8b8b8; }
.faq-block__ask-note i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.18); }
.faq-block__ask-text { font-size: 14px; line-height: 1.55; color: #c9c9c9; }
.faq-block__ask-phone { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.faq-block__ask-phone svg { flex: none; width: 20px; height: 20px; color: var(--yellow); }
.faq-block__ask-phone span { display: flex; flex-direction: column; gap: 2px; }
.faq-block__ask-phone b { font-family: var(--font-head); font-size: 16px; font-weight: 600; transition: color .2s; }
.faq-block__ask-phone small { font-size: 12px; color: #9a9a9a; }
.faq-block__ask-phone:hover b { color: var(--yellow); }
.faq-block .faq__item summary { font-size: 16px; padding: 22px 24px; }
.faq-block .faq__answer { padding: 0 24px 24px; }

@media (max-width: 1000px) {
  .faq-block { padding: 64px 0; }
  .faq-block__grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-block__head { position: static; }
}
@media (max-width: 600px) {
  .faq-block .faq__item summary { padding: 16px; font-size: 14px; }
  .faq-block .faq__answer { padding: 0 16px 18px; }
}

/* ---------- Тематический текстовый блок ---------- */
.text-block { background: var(--white); color: var(--text); padding: 90px 0 0; }
.project-gallery + .text-block { padding-top: 0; }
.text-block + .faq-block { padding-top: 80px; }
.text-block__grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 56px; border-top: 1px solid #e8e8e8; }
.pgrid-section + .text-block .text-block__grid { padding-top: 0; border-top: 0; }
.text-block__head { position: sticky; top: calc(var(--header-h) + 28px); }
.text-block__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a8a8a; }
.text-block__eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--yellow); }
.text-block h2 { margin-top: 14px; font-size: clamp(24px, 2.6vw, 36px); color: #111; }
.text-block__main { position: relative; max-width: 820px; }
.text-block__body { font-size: 16px; }
.text-block__body > p:first-child { font-size: 18px; }
.text-block__body h3 { margin-top: 30px; font-size: 18px; }
.text-block__main.is-collapsed .text-block__body { position: relative; max-height: 320px; overflow: hidden; }
.text-block__main.is-collapsed .text-block__body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, rgba(255,255,255,0), var(--white)); pointer-events: none; }
.text-block__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 0; border: 0; background: none; font-family: var(--font-head); font-size: 14px; font-weight: 600; color: #111; border-bottom: 2px solid var(--yellow); padding-bottom: 4px; }
.text-block__more[hidden] { display: none; }
.text-block__more svg { width: 18px; height: 18px; transition: transform .25s; }
.text-block__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.text-block__more:hover { color: #000; border-color: var(--yellow-dark); }

@media (max-width: 1000px) {
  .text-block { padding-top: 64px; }
  .text-block__grid { grid-template-columns: 1fr; gap: 20px; padding-top: 40px; }
  .text-block__head { position: static; }
  .text-block + .faq-block { padding-top: 56px; }
}

/* ---------- Каталог: витрина разделов ---------- */
.cat-overview { background: var(--black); padding: 60px 0 70px; }
.cat-overview__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.cat-overview__head h2 { font-size: clamp(22px, 2.4vw, 32px); }
.cat-overview__head p { font-size: 14px; color: #a8a8a8; }
.cat-overview__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 170px; padding: 16px; overflow: hidden; border: 1px solid var(--card-line); border-radius: 18px; background: var(--card); isolation: isolate; transition: border-color .25s; }
.cat-tile:hover { border-color: var(--yellow); }
.cat-tile__img { position: absolute; inset: 0; z-index: -2; }
.cat-tile__img .cover { transition: transform .6s ease; }
.cat-tile:hover .cat-tile__img .cover { transform: scale(1.08); }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.85) 100%); }
.cat-tile__num { font-family: var(--font-head); font-size: 12px; font-weight: 600; color: var(--yellow); }
.cat-tile__title { margin-top: auto; font-size: 15px; font-weight: 600; line-height: 1.25; }
.cat-tile .arrow-long { color: var(--white); }
.cat-tile:hover .arrow-long { transform: translateX(7px); }

/* Липкая навигация по разделам */
.cat-nav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(0,0,0,.92); backdrop-filter: blur(8px); border-top: 1px solid #1f1f1f; border-bottom: 1px solid #1f1f1f; }
.cat-nav__inner { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.cat-nav__inner::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; padding: 8px 14px; border-radius: 30px; font-size: 13px; font-weight: 600; color: #cfcfcf; white-space: nowrap; transition: background .2s, color .2s; }
.cat-nav a:hover { color: var(--white); background: #1d1d1d; }
.cat-nav a.is-active { background: var(--yellow); color: var(--black); }

/* ---------- Каталог: раздел ---------- */
.cat-section { padding: 80px 0 60px; scroll-margin-top: calc(var(--header-h) + 60px); }
.cat-section--dark { background: var(--section-dark); color: var(--white); }
.cat-section--light { background: var(--white); color: var(--text); }
.cat-section__grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 60px; align-items: start; }
.cat-section__num { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--yellow); }
.cat-section--light .cat-section__num { color: var(--yellow-dark); }
.cat-section h2 { margin-top: 12px; font-size: clamp(26px, 2.8vw, 38px); }
.cat-section--light h2 { color: #111; }
.cat-section__text { margin: 18px 0 26px; font-size: 15px; line-height: 1.65; opacity: .85; }
.cat-perks { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; list-style: none; }
.cat-perks li { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.4; opacity: .9; }
.cat-perks__ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 196, 0, .14); color: var(--yellow); }
.cat-section--light .cat-perks__ico { background: #fff4cc; color: #8a6a00; }
.cat-perks__ico svg { width: 20px; height: 20px; }

.cat-section__info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.cat-card { padding: 22px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.cat-section--light .cat-card { background: #f6f6f6; border-color: #ececec; }
.cat-card:only-of-type { grid-column: 1 / -1; }
.cat-card__label { margin-bottom: 14px; font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.cat-chips li { padding: 7px 13px; border-radius: 30px; background: rgba(255,255,255,.09); font-size: 13px; font-weight: 500; }
.cat-section--light .cat-chips li { background: var(--white); border: 1px solid #e2e2e2; }
.cat-chips--makers li { font-weight: 700; }
.cat-note { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px; border-left: 4px solid var(--yellow); border-radius: 0 14px 14px 0; background: rgba(255, 196, 0, .1); font-size: 14px; font-weight: 500; }
.cat-note svg { flex: none; width: 20px; height: 20px; color: var(--yellow); }
.cat-gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.cat-gallery__item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: #ddd; cursor: zoom-in; }
.cat-gallery__item .cover { transition: transform .6s ease; }
.cat-gallery__item:hover .cover { transform: scale(1.06); }

.cat-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 50px; padding: 20px 26px; border-radius: 18px; border: 1px dashed rgba(255,255,255,.25); }
.cat-section--light .cat-cta { border-color: #d6d6d6; }
.cat-cta p { font-size: 15px; }
.cat-cta b { font-family: var(--font-head); font-weight: 600; }

.catalog-page .text-block { padding-top: 90px; }
.catalog-page .help { padding-top: 0; }
.catalog-page .partners { padding-top: 80px; }

@media (max-width: 1200px) {
  .cat-overview__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1000px) {
  .cat-overview__head { flex-direction: column; align-items: flex-start; }
  .cat-overview__grid { grid-template-columns: repeat(3, 1fr); }
  .cat-section { padding: 56px 0 44px; }
  .cat-section__grid { grid-template-columns: 1fr; gap: 32px; }
  .cat-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .cat-overview__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-tile { min-height: 140px; }
  .cat-section__info { grid-template-columns: 1fr; }
  .cat-gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-gallery__item { border-radius: 10px; }
}

/* ---------- Кнопка-контур (на тёмном фоне) ---------- */
.btn--ghost { background: rgba(255,255,255,.06); color: var(--white); border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ---------- Двери: обложка ---------- */
.doors-hero { position: relative; display: flex; min-height: min(86vh, 780px); background: #111 center right / cover no-repeat; }
.doors-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.1) 75%), linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 35%); }
.doors-hero__inner { position: relative; display: flex; flex-direction: column; padding-top: 30px; padding-bottom: 36px; }
.doors-hero__content { margin: auto 0; padding: 60px 0; max-width: 620px; }
.doors-hero__kicker { font-family: var(--font-head); font-size: clamp(28px, 3.4vw, 46px); font-weight: 300; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.doors-hero h1 { margin-top: 6px; font-size: clamp(40px, 6.4vw, 92px); font-weight: 700; line-height: .95; letter-spacing: -.02em; }
.doors-hero__lead { margin-top: 24px; max-width: 420px; font-size: 18px; color: #e2e2e2; }
.doors-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.doors-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; }
.doors-perks li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(0,0,0,.4); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; line-height: 1.3; }
.doors-perks__ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--black); }
.doors-perks__ico svg { width: 20px; height: 20px; }

/* ---------- Двери: коллекции ---------- */
.doors-collections { background: var(--white); color: var(--text); padding: 90px 0; }
.doors-collections__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.doors-collections__text h2 { margin-top: 14px; font-size: clamp(26px, 3vw, 40px); color: #111; }
.doors-collections__text > p:not(.text-block__eyebrow) { margin-top: 18px; font-size: 16px; line-height: 1.65; color: #444; }
.doors-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0 32px; }
.doors-stats div { padding: 16px; border-radius: 16px; background: #f5f5f5; }
.doors-stats dt { font-family: var(--font-head); font-size: 30px; font-weight: 700; line-height: 1; color: #111; }
.doors-stats dd { margin-top: 8px; font-size: 12px; line-height: 1.35; color: #666; }

.fade-slider { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: #111; }
.fade-slider__slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 1.6s ease; }
.fade-slider__slide.is-active { opacity: 1; transform: none; }
.fade-slider__nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #111; font-size: 26px; line-height: 1; transition: background .2s; }
.fade-slider__nav:hover { background: var(--yellow); }
.fade-slider__nav--prev { left: 14px; }
.fade-slider__nav--next { right: 14px; }
.fade-slider__dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.fade-slider__dots button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.5); transition: background .2s, width .3s; }
.fade-slider__dots button.is-active { width: 44px; background: var(--yellow); }

/* ---------- Двери: каталог ---------- */
.doors-catalog { background: #f4f4f2; color: var(--text); padding: 90px 0; scroll-margin-top: var(--header-h); }
.doors-catalog__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 32px; }
.doors-catalog__head h2 { margin-top: 12px; font-size: clamp(28px, 3.2vw, 44px); color: #111; }
.doors-catalog__head > p { font-size: 15px; line-height: 1.6; color: #555; }

.doors-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.doors-tab { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 42px; padding: 0 16px; border: 1px solid #ddd; border-radius: 30px; background: var(--white); font-family: var(--font-head); font-size: 13px; font-weight: 600; color: #222; transition: border-color .2s, background .2s, color .2s; }
.doors-tab small { font-family: var(--font-body); font-size: 11px; font-weight: 600; color: #999; }
.doors-tab:hover { border-color: #111; }
.doors-tab[aria-selected="true"] { background: #111; border-color: #111; color: var(--white); }
.doors-tab[aria-selected="true"] small { color: var(--yellow); }

.doors-toolbar { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-top: 22px; padding: 22px; border-radius: 20px; background: var(--white); }
.doors-params { display: flex; flex-wrap: wrap; gap: 22px 32px; flex: 1; min-width: 0; }
.doors-params[hidden] { display: none; }
.doors-param { min-width: 0; max-width: 100%; }
.doors-param__title { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; font-size: 13px; }
.doors-param__title b { font-family: var(--font-head); font-weight: 600; color: #111; }
.doors-param__title span { color: #8a6a00; font-weight: 600; }
.doors-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.doors-swatch { position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; overflow: hidden; border: 2px solid #fff; border-radius: 50%; background: var(--sw, #eee); box-shadow: 0 0 0 1px #ddd; transition: box-shadow .2s, transform .2s; }
.doors-swatch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doors-swatch__mark { font-size: 11px; font-weight: 700; color: #555; }
.doors-swatch:hover:not(:disabled) { transform: scale(1.08); box-shadow: 0 0 0 1px #111; }
.doors-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--yellow); }
.doors-swatch:disabled { opacity: .25; cursor: not-allowed; }
.doors-select { min-width: 220px; height: 44px; padding: 0 40px 0 14px; border: 1px solid #ddd; border-radius: 12px; background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; appearance: none; font-size: 14px; color: #111; }
.doors-select:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255,196,0,.25); }
.doors-toolbar__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; width: 280px; }
.doors-search { position: relative; display: block; width: 100%; }
.doors-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: #999; }
.doors-search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border: 1px solid #ddd; border-radius: 12px; background: #fafafa; font-size: 14px; color: #111; }
.doors-search input:focus { outline: none; border-color: var(--yellow); background: var(--white); box-shadow: 0 0 0 4px rgba(255,196,0,.25); }
.doors-reset { padding: 0; border: 0; background: none; font-size: 13px; font-weight: 600; color: #111; border-bottom: 2px solid var(--yellow); }
.doors-note { margin-top: 18px; font-size: 14px; color: #555; }
.doors-status { font-size: 13px; color: #8a6a00; }
.doors-status:empty { display: none; }
.doors-count { margin: 6px 0 22px; font-size: 13px; color: #888; }

.doors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.door-card { display: flex; flex-direction: column; padding: 16px 16px 18px; border-radius: 20px; background: var(--white); transition: box-shadow .3s, transform .3s; }
.door-card:not(.door-card--skeleton):hover { box-shadow: 0 18px 40px rgba(0,0,0,.08); transform: translateY(-4px); }
.door-card__pic { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: linear-gradient(180deg, #f7f7f5 0%, #ecebe8 100%); }
.door-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.door-card:hover .door-card__img { transform: scale(1.04); }
.door-card__fallback { display: none; flex-direction: column; align-items: center; gap: 14px; padding: 20px; text-align: center; font-size: 12px; line-height: 1.4; color: #a5a5a5; }
.door-card__fallback svg { width: 56px; height: 112px; color: #c9c9c6; }
.door-card__pic.is-unavailable .door-card__img { display: none; }
.door-card__pic.is-unavailable .door-card__fallback { display: flex; }
.door-card__type { min-height: 2.7em; margin-top: 14px; font-size: 11px; font-weight: 600; line-height: 1.35; color: #8a8a8a; }
.door-card__model { margin-top: 6px; font-size: 18px; color: #111; }
.door-card__series { margin: 2px 0 14px; font-size: 13px; color: #777; }
.door-card__cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 12px 16px; border: 0; border-radius: 12px; background: #111; font-family: var(--font-head); font-size: 12px; font-weight: 600; color: var(--white); transition: background .2s, color .2s; }
.door-card__cta:hover { background: var(--yellow); color: var(--black); }
.door-card__arrow { transition: transform .2s; }
.door-card__cta:hover .door-card__arrow { transform: translateX(4px); }
.door-card--skeleton .door-card__pic, .door-card--skeleton span { background: linear-gradient(90deg, #eee 0%, #f6f6f6 50%, #eee 100%); background-size: 200% 100%; animation: skeleton 1.2s linear infinite; }
.door-card--skeleton span { display: block; height: 12px; margin-top: 14px; border-radius: 6px; }
.door-card--skeleton span:last-child { width: 60%; }
@keyframes skeleton { to { background-position: -200% 0; } }
.doors-empty { margin-top: 10px; padding: 24px; border-radius: 16px; background: var(--white); text-align: center; color: #555; }
.doors-empty button { padding: 0; border: 0; background: none; color: #111; font-weight: 700; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.doors-more { display: flex; justify-content: center; margin-top: 36px; }
.doors-more .btn[hidden] { display: none; }

/* ---------- Двери: салон ---------- */
.doors-salon { background: var(--section-dark); padding: 90px 0; overflow: hidden; }
.doors-salon__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.doors-salon__text h2 { margin-top: 14px; font-size: clamp(26px, 3vw, 40px); }
.doors-salon__text p:not(.text-block__eyebrow) { margin-top: 16px; font-size: 16px; line-height: 1.65; color: #d6d6d6; }
.doors-salon__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 30px; }
.doors-salon__media { position: relative; height: 560px; }
.doors-salon__img { position: absolute; display: block; overflow: hidden; border-radius: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.35); cursor: zoom-in; }
.doors-salon__img .cover { transition: transform .6s ease; }
.doors-salon__img:hover .cover { transform: scale(1.05); }
.doors-salon__img--1 { left: 0; top: 40px; width: 38%; height: 72%; }
.doors-salon__img--2 { left: 31%; top: 0; width: 38%; height: 80%; z-index: 1; border: 6px solid #0f0f0f; }
.doors-salon__img--3 { right: 0; bottom: 0; width: 38%; height: 70%; z-index: 2; border: 6px solid #0f0f0f; }

.doors-page .feedback { background: var(--black); }
.doors-page .text-block { padding-top: 90px; }

@media (max-width: 1200px) {
  .doors-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .doors-perks { grid-template-columns: repeat(2, 1fr); }
  .doors-collections__grid, .doors-salon__grid, .doors-catalog__head { grid-template-columns: 1fr; gap: 32px; }
  .doors-toolbar { flex-direction: column; }
  .doors-toolbar__side { width: 100%; align-items: flex-start; }
  .doors-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .doors-salon__media { height: 420px; }
}
@media (max-width: 600px) {
  .doors-hero { background-position: 70% center; }
  .doors-hero__content { padding: 40px 0; }
  .doors-perks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .doors-perks li { padding: 10px; font-size: 12px; }
  .doors-perks__ico { width: 34px; height: 34px; }
  .doors-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .doors-stats div { padding: 12px 10px; }
  .doors-stats dt { font-size: 22px; }
  .door-card { padding: 10px 10px 12px; border-radius: 16px; }
  .door-card__model { font-size: 15px; }
  .door-card__cta { padding: 10px 12px; font-size: 11px; }
  .doors-select { min-width: 0; width: 100%; }
  .doors-param { width: 100%; }
  .doors-salon__media { height: 340px; }
}

/* ---------- Шапка внутренней страницы без фото ---------- */
.page-hero:not([style]) { background: radial-gradient(circle at 85% 30%, rgba(255, 196, 0, .22) 0, transparent 38%), radial-gradient(circle at 10% 110%, rgba(255, 196, 0, .12) 0, transparent 40%), #0d0d0d; }
.page-hero:not([style])::before { background: none; }

/* ---------- Текстовая страница ---------- */
.text-page__body { background: var(--white); color: var(--text); padding: 64px 0 90px; }
.text-page__layout { display: grid; grid-template-columns: minmax(0, 820px); justify-content: center; }
.text-page__layout.has-toc { grid-template-columns: minmax(0, 1fr) 290px; gap: 64px; align-items: start; justify-content: stretch; }
.text-page__updated { margin-bottom: 28px; font-size: 13px; color: #8a8a8a; }
.text-page__article { max-width: 820px; }
.text-page__article .content > p:first-child { font-size: 17px; color: #262626; }
.text-page__article .content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.text-page__article .content th, .text-page__article .content td { padding: 12px 14px; border-bottom: 1px solid #e8e8e8; text-align: left; vertical-align: top; }
.text-page__article .content th { background: #f6f6f6; font-weight: 700; }
.text-page__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1200px; margin-top: 64px; padding: 28px 32px; border-radius: 20px; background: #f4f4f2; }
.text-page__layout:not(.has-toc) + .container .text-page__cta { max-width: 820px; margin-left: auto; margin-right: auto; }
.text-page__cta-title { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: #111; }
.text-page__cta p:not(.text-page__cta-title) { margin-top: 6px; font-size: 14px; color: #555; }
.text-page__cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.text-page__phone { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: #111; white-space: nowrap; }
.text-page__phone:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }

/* ---------- 404 ---------- */
.not-found__hero { position: relative; overflow: hidden; padding: 30px 0 90px; background: radial-gradient(circle at 78% 55%, rgba(255, 196, 0, .2) 0, transparent 35%), var(--black); }
.not-found__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; margin-top: 40px; }
.not-found__code { font-family: var(--font-head); font-size: clamp(110px, 17vw, 230px); font-weight: 700; line-height: .85; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px var(--yellow); background: linear-gradient(180deg, rgba(255, 196, 0, .25), rgba(255, 196, 0, 0) 75%); -webkit-background-clip: text; background-clip: text; }
.not-found h1 { margin-top: 18px; font-size: clamp(28px, 3.4vw, 46px); }
.not-found__lead { max-width: 520px; margin-top: 18px; font-size: 17px; line-height: 1.6; color: #cfcfcf; }
.not-found__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.not-found__door { display: flex; justify-content: center; perspective: 900px; }
.not-found__door-frame { position: relative; display: block; width: 210px; height: 380px; border: 8px solid #2b2b2b; border-bottom-width: 0; border-radius: 4px 4px 0 0; background: radial-gradient(ellipse at 30% 50%, #fff3c2 0%, var(--yellow) 35%, #b88400 100%); box-shadow: 0 0 120px 20px rgba(255, 196, 0, .35), inset 0 0 40px rgba(0, 0, 0, .25); }
.not-found__door-frame::after { content: ""; position: absolute; left: -60px; right: -60px; bottom: -30px; height: 30px; background: radial-gradient(ellipse at 40% 0%, rgba(255, 196, 0, .45), transparent 70%); }
.not-found__door-leaf { position: absolute; inset: 0; background: linear-gradient(90deg, #1e1e1e 0%, #2c2c2c 60%, #1a1a1a 100%); transform-origin: left center; transform: rotateY(-38deg); box-shadow: 18px 0 40px rgba(0, 0, 0, .6); animation: door-swing 5s ease-in-out infinite alternate; }
.not-found__door-leaf::before { content: ""; position: absolute; inset: 22px 20px; border: 1px solid rgba(255, 255, 255, .06); }
.not-found__door-leaf::after { content: ""; position: absolute; right: 18px; top: 50%; width: 6px; height: 34px; margin-top: -17px; border-radius: 3px; background: #c9a227; }
@keyframes door-swing { from { transform: rotateY(-30deg); } to { transform: rotateY(-46deg); } }

.not-found__nav { background: var(--white); color: var(--text); padding: 70px 0 90px; }
.not-found__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.not-found__head h2 { font-size: clamp(24px, 2.6vw, 34px); color: #111; }
.not-found__search { width: 360px; }
.not-found__links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.nf-card { display: flex; flex-direction: column; gap: 8px; min-height: 170px; padding: 22px; border-radius: 18px; background: #f4f4f2; color: #111; transition: background .25s, transform .25s; }
.nf-card[hidden] { display: none; }
.nf-card b { font-family: var(--font-head); font-size: 16px; font-weight: 600; line-height: 1.25; }
.nf-card span { font-size: 13px; line-height: 1.45; color: #666; }
.nf-card .arrow-long { margin-top: auto; }
.nf-card:hover { background: var(--yellow); transform: translateY(-3px); }
.nf-card:hover span { color: #333; }
.nf-card:hover .arrow-long { transform: translateX(7px); }
.not-found__label { margin: 40px 0 14px; font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8a8a8a; }
.not-found__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.not-found__chips li[hidden] { display: none; }
.not-found__chips a { display: inline-flex; padding: 9px 16px; border: 1px solid #dcdcdc; border-radius: 30px; font-size: 14px; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.not-found__chips a:hover { background: #111; border-color: #111; color: var(--white); }
.not-found__empty { margin-top: 24px; padding: 20px 24px; border-radius: 16px; background: #fff8de; font-size: 15px; }
.not-found__empty button { padding: 0; border: 0; background: none; font-weight: 700; color: #111; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .text-page__layout.has-toc { grid-template-columns: 1fr; gap: 24px; }
  .text-page__aside { order: -1; }
  .text-page__cta { flex-direction: column; align-items: flex-start; }
  .not-found__grid { grid-template-columns: 1fr; }
  .not-found__door { display: none; }
  .not-found__links { grid-template-columns: repeat(2, 1fr); }
  .not-found__head { flex-direction: column; align-items: flex-start; }
  .not-found__search { width: 100%; }
}
@media (max-width: 600px) {
  .text-page__body { padding: 40px 0 64px; }
  .text-page__cta { padding: 22px 20px; }
  .help__panel { padding: 28px 18px; border-radius: 22px; }
  .help__form { padding: 22px 18px; }
  .help__phone > span:last-child { font-size: 18px; }
  .not-found__links { grid-template-columns: 1fr; }
  .nf-card { min-height: 0; }
}

/* ---------- Квиз «Подбор материалов» ---------- */
.modal__dialog.quiz { display: block; max-width: 780px; overflow-y: auto; }
.quiz__form { display: flex; flex-direction: column; min-height: 560px; }
.quiz__form[hidden] { display: none; }
.quiz__head { padding: 34px 40px 0; }
.quiz__intro { margin-top: 10px; padding-right: 40px; font-size: 14px; color: #5a5a5a; }
.quiz__progress { height: 6px; margin-top: 20px; overflow: hidden; border-radius: 6px; background: #eee; }
.quiz__progress span { display: block; width: 25%; height: 100%; border-radius: 6px; background: var(--yellow); transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.quiz__count { margin-top: 10px; font-size: 12px; font-weight: 600; color: #8a8a8a; }
.quiz__count b { color: #111; }

.quiz__steps { flex: 1; padding: 26px 40px 10px; }
.quiz__step { display: none; min-width: 0; margin: 0; padding: 0; border: 0; }
.quiz__step.is-active { display: block; animation: quiz-in .35s ease; }
@keyframes quiz-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.quiz__step legend { padding: 0; font-family: var(--font-head); font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; line-height: 1.2; color: #111; }
.quiz__sub { margin-top: 8px; font-size: 13px; color: #8a8a8a; }

.quiz__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.quiz-opt { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 18px; border: 2px solid #ececec; border-radius: 18px; background: #fafafa; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.quiz-opt:hover { border-color: #d0d0d0; transform: translateY(-2px); }
.quiz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-opt__ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 14px; background: #fff; color: #111; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.quiz-opt__ico svg { width: 24px; height: 24px; }
.quiz-opt b { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: #111; }
.quiz-opt small { font-size: 12px; line-height: 1.45; color: #6a6a6a; }
.quiz-opt:has(input:checked) { border-color: var(--yellow); background: #fffaea; }
.quiz-opt:has(input:checked) .quiz-opt__ico { background: var(--yellow); }
.quiz-opt:has(input:focus-visible) { outline: 2px solid #111; outline-offset: 2px; }

.quiz__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.quiz-chip { position: relative; cursor: pointer; }
.quiz-chip input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-chip span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 2px solid #ececec; border-radius: 30px; background: #fafafa; font-size: 14px; font-weight: 600; color: #222; transition: border-color .2s, background .2s; }
.quiz-chip span::before { content: ""; width: 18px; height: 18px; border: 2px solid #cfcfcf; border-radius: 6px; background: #fff center / 12px no-repeat; transition: background-color .2s, border-color .2s; }
.quiz-chip:hover span { border-color: #d0d0d0; }
.quiz-chip input:checked + span { border-color: var(--yellow); background: #fffaea; }
.quiz-chip input:checked + span::before { border-color: #111; background-color: #111; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23FFC400' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.quiz-chip input:focus-visible + span { outline: 2px solid #111; outline-offset: 2px; }

.quiz-range { margin-top: 26px; }
.quiz-range__value { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 600; color: #8a8a8a; }
.quiz-range__value b { font-size: 56px; line-height: 1; color: #111; }
.quiz-range input[type="range"] { width: 100%; height: 34px; margin-top: 16px; background: transparent; accent-color: var(--yellow); appearance: none; -webkit-appearance: none; }
.quiz-range input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: #eee; }
.quiz-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border: 6px solid #fff; border-radius: 50%; background: var(--yellow); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); cursor: grab; }
.quiz-range input[type="range"]::-moz-range-track { height: 8px; border-radius: 8px; background: #eee; }
.quiz-range input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 6px solid #fff; border-radius: 50%; background: var(--yellow); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.quiz-range__scale { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: #9a9a9a; }
.quiz-range__presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.quiz-range__presets button { padding: 9px 14px; border: 1px solid #dcdcdc; border-radius: 30px; background: #fff; font-size: 13px; font-weight: 600; color: #222; transition: border-color .2s, background .2s; }
.quiz-range__presets button:hover { border-color: #111; background: #111; color: #fff; }

.quiz__summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 22px; list-style: none; }
.quiz__summary li { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: #f6f6f6; font-size: 13px; color: #333; }
.quiz__summary b { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a8a8a; }
.quiz__contacts { gap: 14px; }

.quiz__foot { display: flex; align-items: center; gap: 16px; padding: 18px 40px 30px; border-top: 1px solid #f0f0f0; }
.quiz__back { padding: 0; border: 0; background: none; font-family: var(--font-head); font-size: 14px; font-weight: 600; color: #6a6a6a; }
.quiz__back:hover { color: #111; }
.quiz__hint { flex: 1; text-align: right; font-size: 13px; font-weight: 600; color: #b8443a; }
.quiz__foot .btn { min-height: 50px; }
.quiz__foot .btn[hidden] { display: none; }
.quiz__done { min-height: 440px; padding: 40px; }

@media (max-width: 760px) {
  .quiz__head { padding: 26px 20px 0; }
  .quiz__steps { padding: 20px 20px 6px; }
  .quiz__foot { padding: 14px 20px 22px; }
  .quiz__options { grid-template-columns: 1fr; }
  .quiz-opt { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 14px; }
  .quiz-opt__ico { margin: 0; }
  .quiz-opt small { width: 100%; }
  .quiz__summary { grid-template-columns: 1fr; }
  .quiz-range__value b { font-size: 44px; }
  .quiz__form { min-height: 0; }
}

/* ---------- Мессенджеры ---------- */
.messengers { display: flex; flex-wrap: wrap; gap: 8px; }
.msg { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--white); transition: background .2s, color .2s, transform .2s; }
.msg svg { width: 20px; height: 20px; }
.msg:hover { background: var(--yellow); color: var(--black); transform: translateY(-2px); }
.messengers--labels .msg { display: inline-flex; gap: 8px; width: auto; height: 40px; padding: 0 14px 0 10px; border-radius: 30px; font-size: 13px; font-weight: 600; }
.footer__msg { margin-top: 14px; }
.mobile-nav__msg { margin-top: -4px; }
.contacts-card__msg { margin-top: 22px; }
.contacts-card__msg .msg { background: rgba(0,0,0,.1); color: var(--black); }
.contacts-card__msg .msg:hover { background: var(--black); color: var(--yellow); }
.contacts-card__route { display: inline-block; margin-top: 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.contacts-card__msg + .btn { margin-top: 30px; }
.contacts--no-map .contacts__container { min-height: 0; padding-top: 60px; padding-bottom: 60px; }

/* ---------- Двери: каталог из записей ---------- */
.doors-toolbar--simple { align-items: center; padding: 14px 16px; }
.doors-toolbar--simple .doors-tabs { flex: 1; min-width: 0; padding-bottom: 0; }
.doors-toolbar--simple .doors-search { width: 280px; flex: none; }
.door-card[hidden] { display: none; }
.door-card__pic { text-decoration: none; }
.door-card__pic > .door-card__fallback { display: flex; }
.door-card__swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.doors-swatch--sm { width: 26px; height: 26px; border-width: 2px; }
.doors-swatch--sm .doors-swatch__mark { font-size: 9px; }
.door-card__variant { margin-top: 6px; font-size: 12px; color: #777; }
.door-card__model a { color: inherit; transition: color .2s; }
.door-card__model a:hover { color: #8a6a00; }
.door-card__series b { color: #111; }

/* ---------- Страница двери ---------- */
.door-hero { background: #f4f4f2; color: var(--text); padding: 34px 0 70px; }
.door-hero .crumbs ol { color: #777; }
.door-hero .crumbs li + li::before { color: #bbb; }
.door-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 30px; }
.door-hero__pic { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 28px; background: linear-gradient(180deg, #fff 0%, #ecebe8 100%); }
.door-hero__img { width: 100%; height: 100%; object-fit: cover; }
.door-hero__series { display: inline-block; padding: 6px 14px; border-radius: 30px; background: #111; color: var(--yellow); font-family: var(--font-head); font-size: 12px; font-weight: 600; }
.door-hero__info h1 { margin-top: 16px; font-size: clamp(28px, 3.4vw, 46px); color: #111; }
.door-hero__type { margin-top: 10px; font-size: 15px; font-weight: 600; color: #6a6a6a; }
.door-hero__lead { margin-top: 16px; font-size: 16px; line-height: 1.6; color: #444; }
.door-hero__variants { margin-top: 26px; padding: 20px; border-radius: 18px; background: var(--white); }
.door-hero__label { font-size: 14px; color: #555; }
.door-hero__label b { color: #111; }
.door-hero__variants .door-card__swatches { margin-top: 12px; gap: 10px; }
.door-hero__price { margin-top: 22px; font-family: var(--font-head); font-size: 28px; font-weight: 700; color: #111; }
.door-hero__cta { margin-top: 22px; min-height: 56px; font-size: 14px; }
.door-hero__note { margin-top: 10px; font-size: 13px; color: #777; }
.door-hero__perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; list-style: none; }
.door-hero__perks li { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--white); font-size: 13px; font-weight: 600; color: #222; }
.door-hero__perks span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--black); }
.door-hero__perks svg { width: 18px; height: 18px; }

.door-details { background: var(--white); color: var(--text); padding: 70px 0; }
.door-details__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.door-specs h2 { margin-bottom: 18px; font-size: 22px; color: #111; }
.door-specs dl div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid #ececec; font-size: 14px; }
.door-specs dt { color: #777; }
.door-specs dd { font-weight: 600; text-align: right; color: #111; }
.door-related { padding-top: 70px; }
.door-related .related__head h2 { color: #111; }
.door-related .link-under { color: #111; }

@media (max-width: 1000px) {
  .doors-toolbar--simple { flex-direction: column; align-items: stretch; }
  .doors-toolbar--simple .doors-search { width: 100%; }
  .door-hero__grid, .door-details__grid { grid-template-columns: 1fr; gap: 32px; }
  .door-hero__pic { max-height: 520px; }
}
@media (max-width: 600px) {
  .door-hero__perks { grid-template-columns: 1fr; }
  .doors-swatch--sm { width: 22px; height: 22px; }
}

/* ---------- Плашка cookies ---------- */
.cookie {
  position: fixed; left: 50%; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 18px;
  width: min(760px, calc(100% - 32px)); padding: 16px 18px 16px 20px;
  background: #141414; color: #e6e6e6; border: 1px solid var(--card-line); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.45);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .4s ease, opacity .4s ease;
}
.cookie[hidden] { display: none; }
.cookie.is-shown { transform: translate(-50%, 0); opacity: 1; }
.cookie__ico { flex: none; width: 30px; height: 30px; color: var(--yellow); }
.cookie__text { flex: 1; margin: 0; font-size: 13px; line-height: 1.5; }
.cookie__text a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.cookie__btn { flex: none; }
@media (max-width: 600px) {
  .cookie { flex-wrap: wrap; gap: 12px; bottom: 12px; padding: 14px 16px; }
  .cookie__ico { width: 26px; height: 26px; align-self: flex-start; }
  .cookie__text { flex-basis: calc(100% - 40px); font-size: 12.5px; }
  .cookie__btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }

/* ---------- Анимации появления (как в оригинале: 100px, 3s) ---------- */
.js .reveal { opacity: 0; transition: opacity var(--reveal-time, 3s) ease, transform var(--reveal-time, 3s) cubic-bezier(.2, .7, .2, 1); }
.js .reveal--left { transform: translateX(-100px); }
.js .reveal--right { transform: translateX(100px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
[data-parallax] { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Кнопка «Смотреть товары» в разделах страницы «Категории» */
.cat-section__goods { margin-top: 10px; border: 1px solid rgba(255,255,255,.35); }
.cat-section--light .cat-section__goods { background: transparent; color: var(--black); border-color: rgba(0,0,0,.25); backdrop-filter: none; }
.cat-section--light .cat-section__goods:hover { background: var(--black); color: var(--white); border-color: var(--black); }

