/* ============================================================
   М-СТАНДАРТ — premium-шар (v36)
   Темний графіт + тепле золото, світлі «студійні» секції каталогу.
   Підключається після main.css. Анімації — тільки longhand.
   ============================================================ */

:root {
  --px-bg: #1C2126;
  --px-bg-2: #232A30;
  --px-bg-3: #2A3138;
  --px-ink: #F3F0E9;
  --px-mute: #A9AEB3;
  --px-gold: #C4AE82;
  --px-gold-soft: #E2D6B8;
  --px-green: #2FA565;
  --px-line: rgba(255, 255, 255, .09);
  --px-paper: #F4F1EA;
  --px-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --px-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------------- Шапка та топбар: темне скло ---------------- */

.topbar { background: #161A1E; border-bottom: 1px solid rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .7); }
.topbar a:hover { color: var(--px-gold-soft); }

.header {
  background: rgba(28, 33, 38, .82);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  box-shadow: none;
}
.header.is-scrolled { box-shadow: 0 14px 44px rgba(0, 0, 0, .38); }
.header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 169, 106, .55) 50%, transparent 100%);
  opacity: 0; transition: opacity .4s;
}
.header.is-scrolled::after { opacity: 1; }
.logo__img { filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45)); }

.nav__link { color: #E6E2D9; font-weight: 500; letter-spacing: .01em; border-radius: 999px; transition: color .2s, background .2s; }
.nav__link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav__item.is-active > .nav__link { color: var(--px-gold-soft); background: rgba(201, 169, 106, .10); }
.nav__drop {
  background: rgba(35, 42, 48, .97); border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.nav__drop::before { background: #232A30; border-color: rgba(255, 255, 255, .09); }
.nav__drop a { color: #CBC7BD; }
.nav__drop a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav__drop a.is-active { color: var(--px-gold-soft); background: rgba(201, 169, 106, .10); }
.header__phone a { color: #fff; }
.header__phone a:hover { color: var(--px-gold-soft); }
.header__phone span { color: var(--px-mute); }

.burger { background: transparent; border-color: rgba(255, 255, 255, .2); }
.burger span { background: #fff; }
.mnav { background: #20262C; border-top: 1px solid rgba(255, 255, 255, .06); }
.mnav__group { border-bottom-color: rgba(255, 255, 255, .07); }
.mnav__head, .mnav__direct { color: #ECE8DF; }
.mnav__head.is-active, .mnav__direct:hover { color: var(--px-gold-soft); }
.mnav__sub a { color: #BDB9AF; border-bottom-color: rgba(255, 255, 255, .06); }
.mnav .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }

/* ---------------- Підвал ---------------- */

.footer { background: #161A1E; position: relative; }
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 106, .5), transparent);
}
.footer h4 { font-size: 12px; letter-spacing: .18em; font-weight: 600; color: var(--px-gold); }
.footer ul a { transition: color .2s, transform .2s; }
.footer ul a:hover { transform: translateX(4px); }
.page--home + .footer { margin-top: 0; }

/* ---------------- Спільні елементи ---------------- */

.px { background: var(--px-bg); color: var(--px-ink); overflow: hidden; }
.px h1, .px h2, .px h3 { font-family: var(--px-serif); font-weight: 400; letter-spacing: -.01em; }
.px i { font-style: italic; }

.px-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--px-gold);
}
.px-eyebrow::before { content: ""; width: 38px; height: 1px; background: currentColor; opacity: .7; }

.px-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
  transition: transform .25s var(--px-ease), box-shadow .3s, background .3s, color .3s, border-color .3s;
}
.px-btn--accent {
  color: #fff; background: linear-gradient(160deg, #F08A3C 0%, #D4651A 100%);
  box-shadow: 0 10px 34px rgba(238, 122, 40, .38), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.px-btn--accent:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 48px rgba(238, 122, 40, .55), inset 0 1px 0 rgba(255, 255, 255, .28); }
.px-btn--line { color: var(--px-ink); border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .03); }
.px-btn--line:hover { color: #fff; border-color: var(--px-gold); box-shadow: 0 0 0 1px rgba(201, 169, 106, .35), 0 0 34px rgba(201, 169, 106, .22); transform: translateY(-2px); }
.px-btn--dark { color: #1A1D20; border: 1px solid rgba(26, 29, 32, .28); }
.px-btn--dark:hover { color: #fff; background: #1A1D20; border-color: #1A1D20; transform: translateY(-2px); }
.px-btn svg { width: 18px; height: 18px; }

.px-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: .04em; color: inherit;
  padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: gap .25s var(--px-ease), color .2s;
}
.px-link::after { content: "→"; transition: transform .25s var(--px-ease); }
.px-link:hover { gap: 16px; color: var(--px-gold); }

/* поява при скролі (тільки коли працює JS) */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--px-ease), transform .9s var(--px-ease); }
.js [data-reveal="flip"] { transform: perspective(1200px) rotateX(14deg) translate3d(0, 40px, 0); transform-origin: 50% 100%; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------- Hero ---------------- */

.px-hero { position: relative; isolation: isolate; padding: clamp(40px, 6vh, 76px) 0 0; min-height: calc(100vh - 116px); display: flex; flex-direction: column; }
.px-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(120% 90% at 78% 38%, #343D45 0%, rgba(35, 39, 43, 0) 60%),
    linear-gradient(180deg, #20262C 0%, #1C2126 100%);
}
.px-hero__glow { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.px-hero__glow i { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.px-hero__glow i:nth-child(1) {
  width: 46vw; height: 46vw; right: 4vw; top: -12vw;
  background: radial-gradient(circle, rgba(214, 226, 235, .17) 0%, rgba(214, 226, 235, 0) 68%);
  animation-name: px-drift-a; animation-duration: 16s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate;
}
.px-hero__glow i:nth-child(2) {
  width: 38vw; height: 38vw; left: -12vw; bottom: -14vw;
  background: radial-gradient(circle, rgba(47, 165, 101, .13) 0%, rgba(47, 165, 101, 0) 68%);
  animation-name: px-drift-b; animation-duration: 20s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate;
}
.px-hero__glow i:nth-child(3) {
  width: 26vw; height: 26vw; right: 30vw; bottom: 4vw;
  background: radial-gradient(circle, rgba(214, 226, 235, .07) 0%, rgba(214, 226, 235, 0) 70%);
  animation-name: px-drift-a; animation-duration: 24s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate-reverse;
}
@keyframes px-drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-5vw, 4vw, 0) scale(1.12); } }
@keyframes px-drift-b { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, -3vw, 0) scale(1.1); } }

.px-hero__grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
}

.px-hero__grid { flex: 1; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: 40px; }
.px-hero__txt { position: relative; z-index: 2; padding-bottom: 20px; }
.px-hero__title {
  margin: 26px 0 26px; font-size: clamp(46px, 5.6vw, 92px); line-height: .98; font-weight: 300; color: #fff;
}
.px-hero__title i {
  background: linear-gradient(100deg, #F1ECE0 0%, #CFE3D4 50%, #8FCBA6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em;
}
.px-hero__lead { max-width: 500px; font-size: 17.5px; line-height: 1.7; color: #C3C8CC; }
.px-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* сцена з панелями */
.px-stage { position: relative; height: clamp(440px, 66vh, 680px); perspective: 1500px; perspective-origin: 50% 45%; }
.px-stage__in {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(calc(var(--my, 0) * -5deg)) rotateY(calc(var(--mx, 0) * 7deg));
  transition: transform .5s var(--px-ease);
}
.px-stage__floor {
  position: absolute; left: 4%; right: 4%; bottom: 3%; height: 22%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(226, 232, 236, .16) 0%, rgba(226, 232, 236, 0) 70%);
  filter: blur(14px); transform: rotateX(72deg) translateZ(-40px);
}
.px-panel {
  position: absolute; bottom: 8%; width: 31%; aspect-ratio: 320 / 716; margin: 0;
  border-radius: 4px; overflow: hidden; transform-style: preserve-3d;
  box-shadow: 0 50px 80px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .06), 0 0 80px rgba(228, 207, 160, .08);
  transition: transform .9s var(--px-ease), box-shadow .5s;
}
.px-panel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, 0) 38%, rgba(255, 255, 255, .08) 100%); }
.px-panel__shine {
  position: absolute; top: -20%; bottom: -20%; left: -60%; width: 46%; z-index: 2;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 244, 214, .30) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-14deg);
  animation-name: px-shine; animation-duration: 7s; animation-timing-function: ease-in-out; animation-iteration-count: infinite;
}
.px-panel--2 .px-panel__shine { animation-delay: .7s; }
.px-panel--3 .px-panel__shine { animation-delay: 1.4s; }
@keyframes px-shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }

.px-panel--1 { left: 1%; transform: translateZ(-60px) rotateY(calc(20deg - var(--sp, 0) * 12deg)) translateY(calc(var(--sp, 0) * -18px)); }
.px-panel--2 { left: 34.5%; bottom: 4%; z-index: 2; transform: translateZ(60px) rotateY(calc(var(--sp, 0) * -6deg)) translateY(calc(var(--sp, 0) * -44px)); }
.px-panel--3 { left: 68%; transform: translateZ(-60px) rotateY(calc(-20deg + var(--sp, 0) * 12deg)) translateY(calc(var(--sp, 0) * -18px)); }
.px-panel:hover { box-shadow: 0 60px 90px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(226, 232, 236, .22), 0 0 110px rgba(228, 207, 160, .2); }

/* вхід панелей: тільки з JS, інакше вони просто стоять */
.js .px-panel { animation-name: px-rise; animation-duration: 1.3s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); animation-fill-mode: backwards; }
.js .px-panel--1 { animation-delay: .15s; }
.js .px-panel--2 { animation-delay: .3s; }
.js .px-panel--3 { animation-delay: .45s; }
@keyframes px-rise { from { opacity: 0; translate: 0 70px; } to { opacity: 1; translate: 0 0; } }

/* факти під hero */
.px-facts {
  position: relative; z-index: 2; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 34px; border-top: 1px solid var(--px-line); width: 100%;
}
.px-facts li { position: relative; padding: 26px 26px 30px 0; }
.px-facts li + li { padding-left: 26px; border-left: 1px solid var(--px-line); }
.px-facts li::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px;
  background: linear-gradient(90deg, var(--px-gold), rgba(201, 169, 106, 0)); transition: width .6s var(--px-ease);
}
.px-facts li:hover::before { width: 100%; }
.px-facts__n { display: block; font-family: var(--px-serif); font-style: italic; font-size: 15px; color: var(--px-gold); margin-bottom: 10px; }
.px-facts b { display: block; font-family: var(--px-serif); font-weight: 500; font-size: 25px; line-height: 1.15; color: #fff; }
.px-facts span:last-child { display: block; margin-top: 6px; font-size: 13.5px; color: var(--px-mute); line-height: 1.5; }

/* ---------------- Каталог (світла студія) ---------------- */

.px-cats { position: relative; background: var(--px-paper); color: #1A1D20; padding: clamp(70px, 9vw, 130px) 0; }
.px-cats::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 160px; pointer-events: none;
  background: linear-gradient(180deg, rgba(28, 33, 38, .10), rgba(28, 33, 38, 0));
}
.px-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: clamp(34px, 4vw, 60px); position: relative; }
.px-head h2 { margin-top: 18px; font-size: clamp(38px, 4.4vw, 68px); line-height: 1; font-weight: 300; color: inherit; }
.px-head h2 i { color: #9C7C3C; }
.px-cats .px-eyebrow { color: #8A6D33; }

.px-cats__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(220px, 21vw, 310px); gap: 18px; perspective: 1600px; }
.px-card {
  position: relative; display: block; overflow: hidden; border-radius: 6px; color: #fff; background: #2A2D30;
  transform: rotateX(calc(var(--ty, 0) * -7deg)) rotateY(calc(var(--tx, 0) * 9deg));
  transform-style: preserve-3d; transition: transform .45s var(--px-ease), box-shadow .45s;
  box-shadow: 0 18px 40px -22px rgba(20, 24, 28, .55);
}
.px-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.px-card:nth-child(6), .px-card:nth-child(7) { grid-column: span 2; }
.px-card:hover { color: #fff; box-shadow: 0 40px 70px -26px rgba(20, 24, 28, .7), 0 0 0 1px rgba(201, 169, 106, .55), 0 0 60px rgba(201, 169, 106, .28); }
.px-card__img { position: absolute; inset: 0; }
.px-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 1.1s var(--px-ease), filter .6s; filter: saturate(.92) brightness(.94); }
.px-card:hover .px-card__img img { transform: scale(1.12); filter: saturate(1.04) brightness(1); }
.px-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 22, 26, 0) 38%, rgba(18, 22, 26, .82) 100%);
}
.px-card__glare {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at calc(var(--gx, .5) * 100%) calc(var(--gy, .5) * 100%), rgba(255, 244, 214, .26), rgba(255, 244, 214, 0) 60%);
}
.px-card:hover .px-card__glare { opacity: 1; }
.px-card__body { position: absolute; z-index: 3; left: 24px; right: 24px; bottom: 22px; display: grid; gap: 4px; transform: translateZ(40px); }
.px-card__n { font-family: var(--px-serif); font-style: italic; font-size: 15px; color: var(--px-gold-soft); }
.px-card b { font-family: var(--px-serif); font-weight: 500; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.1; }
.px-card:nth-child(1) b { font-size: clamp(30px, 3vw, 46px); }
.px-card__sub { font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.px-card__arrow {
  position: absolute; z-index: 3; right: 20px; top: 20px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px;
  border: 1px solid rgba(255, 255, 255, .4); background: rgba(28, 33, 38, .25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translate3d(-8px, 8px, 30px); transition: opacity .35s, transform .45s var(--px-ease), background .3s, border-color .3s;
}
.px-card:hover .px-card__arrow { opacity: 1; transform: translate3d(0, 0, 30px); background: var(--px-gold); border-color: var(--px-gold); color: #14171A; }

/* ---------------- Реставрація (відео) ---------------- */

.px-split { position: relative; isolation: isolate; padding: clamp(90px, 12vw, 170px) 0; }
.px-split__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.px-split__media video, .px-split__media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(calc(1.06 + var(--vp, 0) * .08)); }
.px-split__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18, 22, 26, .92) 0%, rgba(18, 22, 26, .66) 46%, rgba(18, 22, 26, .18) 100%),
              linear-gradient(180deg, rgba(28, 33, 38, 1) 0%, rgba(28, 33, 38, 0) 18%, rgba(28, 33, 38, 0) 82%, rgba(28, 33, 38, 1) 100%);
}
.px-split__txt { max-width: 620px; }
.px-split h2 { margin: 22px 0 22px; font-size: clamp(34px, 3.8vw, 58px); line-height: 1.06; font-weight: 300; color: #fff; }
.px-split p { font-size: 17px; line-height: 1.7; color: #C9C5BB; max-width: 520px; }
.px-split .px-btn { margin-top: 34px; }

/* ---------------- Вироби та послуги ---------------- */

.px-lists { background: var(--px-bg); padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.px-lists__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 96px); }
.px-lists h2 { margin: 18px 0 30px; font-size: clamp(32px, 3.2vw, 50px); line-height: 1.05; font-weight: 300; color: #fff; }
.px-rows { list-style: none; border-top: 1px solid var(--px-line); }
.px-rows a {
  position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px;
  padding: 22px 6px; border-bottom: 1px solid var(--px-line); color: #E9E5DC;
  font-size: 18px; transition: padding .35s var(--px-ease), color .25s;
}
.px-rows a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: linear-gradient(90deg, rgba(201, 169, 106, .12), rgba(201, 169, 106, 0) 70%);
}
.px-rows a:hover { padding-left: 20px; color: #fff; }
.px-rows a:hover::before { opacity: 1; }
.px-rows em { font-family: var(--px-serif); font-style: italic; font-size: 15px; color: var(--px-gold); }
.px-rows span:last-child { color: var(--px-gold); transition: transform .35s var(--px-ease); }
.px-rows a:hover span:last-child { transform: translateX(6px); }

/* ---------------- Фінальний блок ---------------- */

.px-cta { position: relative; isolation: isolate; padding: clamp(80px, 10vw, 150px) 0; background: var(--px-bg-2); text-align: center; overflow: hidden; }
.px-cta::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: 90vw; height: 90vw; max-width: 1300px; max-height: 1300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(214, 226, 235, .10) 0%, rgba(47, 165, 101, .07) 38%, rgba(35, 42, 48, 0) 66%);
  animation-name: px-pulse; animation-duration: 9s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate;
}
@keyframes px-pulse { from { opacity: .65; } to { opacity: 1; } }
.px-cta__blurb { max-width: 860px; margin: 26px auto 0; font-family: var(--px-serif); font-weight: 300; font-size: clamp(26px, 2.7vw, 42px); line-height: 1.25; color: #fff; }
.px-cta__phone {
  display: inline-block; margin-top: 44px; font-family: var(--px-serif); font-weight: 400; font-size: clamp(38px, 5vw, 76px); line-height: 1; color: #fff;
  background: linear-gradient(100deg, #fff 0%, #EEF1EC 60%, #BFDCC8 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  transition: filter .3s;
}
.px-cta__phone:hover { filter: drop-shadow(0 0 22px rgba(228, 207, 160, .45)); }
.px-cta__meta { margin-top: 14px; font-size: 14.5px; color: var(--px-mute); }
.px-cta__meta a { color: #D8D4CA; }
.px-cta__meta a:hover { color: var(--px-gold-soft); }
.px-cta__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ---------------- Адаптив ---------------- */

@media (max-width: 1340px) {
  .px-hero__title { font-size: clamp(44px, 5.4vw, 76px); }
  .px-stage { height: clamp(400px, 56vh, 560px); }
}
@media (max-width: 1020px) {
  .px-hero { min-height: 0; padding-top: 44px; }
  .px-hero__grid { grid-template-columns: 1fr; gap: 10px; }
  .px-stage { height: 440px; max-width: 560px; width: 100%; margin: 0 auto; }
  .px-facts { grid-template-columns: repeat(2, 1fr); }
  .px-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .px-facts li:nth-child(n+3) { border-top: 1px solid var(--px-line); }
  .px-cats__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 250px; }
  .px-card:nth-child(1) { grid-row: span 1; }
  .px-card:nth-child(6) { grid-column: span 1; }
  .px-lists__grid { grid-template-columns: 1fr; }
  .px-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .px-hero__title { font-size: clamp(38px, 11.5vw, 54px); margin: 20px 0; }
  .px-hero__lead { font-size: 16px; }
  .px-btn { min-height: 50px; padding: 0 24px; width: 100%; }
  .px-hero__cta { margin-top: 28px; }
  .px-stage { height: 340px; }
  .px-facts li { padding: 20px 14px 22px 0; }
  .px-facts li + li { padding-left: 14px; }
  .px-facts li:nth-child(3) { padding-left: 0; }
  .px-facts b { font-size: 20px; }
  .px-cats__grid { grid-template-columns: 1fr; grid-auto-rows: 230px; gap: 12px; }
  .px-card:nth-child(n) { grid-column: span 1; }
  .px-card__arrow { opacity: 1; transform: none; }
  .px-rows a { font-size: 16.5px; padding: 18px 2px; grid-template-columns: 36px 1fr auto; }
  .px-split__media::after { background: linear-gradient(180deg, rgba(28, 33, 38, 1) 0%, rgba(18, 22, 26, .72) 22%, rgba(18, 22, 26, .8) 78%, rgba(28, 33, 38, 1) 100%); }
}
@media (max-width: 359px) {
  .px-facts { grid-template-columns: 1fr; }
  .px-facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--px-line); }
}

@media (hover: none) {
  .px-card { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .px-hero__glow i, .px-panel__shine, .px-cta::before, .js .px-panel { animation-name: none; }
  .px-panel__shine { display: none; }
  .px-stage__in, .px-card { transform: none; transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}


/* ============================================================
   Внутрішні сторінки (v37)
   ============================================================ */

.page.page--inner { padding-top: 0; }

.px-phead { position: relative; isolation: isolate; overflow: hidden; background: var(--px-bg); color: #fff; padding: 30px 0 clamp(40px, 5vw, 68px); margin-bottom: clamp(30px, 4vw, 54px); }
.px-phead::before {
  content: ""; position: absolute; z-index: -1; right: -8vw; top: -22vw; width: 52vw; height: 52vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 226, 235, .14) 0%, rgba(214, 226, 235, 0) 66%); filter: blur(60px);
  animation-name: px-drift-a; animation-duration: 18s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate;
}
.px-phead::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 106, .6), transparent);
}
.px-phead .crumbs { margin: 0; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--px-mute); }
.px-phead .crumbs a { color: #CFCBC1; }
.px-phead .crumbs a:hover { color: var(--px-gold-soft); }
.px-phead .crumbs [aria-current] { color: var(--px-gold); font-weight: 600; }
.px-phead .crumbs li + li::before { color: rgba(255, 255, 255, .3); }
.px-phead__title {
  margin-top: clamp(22px, 3vw, 40px); max-width: 980px;
  font-family: var(--px-serif); font-weight: 300; font-size: clamp(36px, 4.8vw, 74px); line-height: 1.03; letter-spacing: -.01em; color: #fff;
}

.page--inner .paper { padding: 0 0 20px; border: 0; }
.content p:empty { display: none; }

/* сітка зразків */
.px-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0 0 22px; }
.px-sample {
  position: relative; margin: 0; border-radius: 6px; overflow: hidden; background: #D7D5D0;
  box-shadow: 0 16px 34px -22px rgba(20, 24, 28, .5);
  transition: transform .5s var(--px-ease), box-shadow .5s, opacity .9s var(--px-ease);
}
.px-sample a.lb { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.content .px-sample img, .content .px-sample a.lb img {
  width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; margin: 0; border-radius: 0; box-shadow: none;
  transition: transform 1s var(--px-ease);
}
.px-sample figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 22, 26, 0), rgba(18, 22, 26, .8));
  font-family: var(--px-serif); font-size: 20px; font-weight: 500; line-height: 1.15; color: #fff;
}
.px-sample::after {
  content: "+"; position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; font-weight: 300; color: #14171A; background: var(--px-gold);
  opacity: 0; transform: scale(.7); transition: opacity .3s, transform .4s var(--px-ease); pointer-events: none;
}
.js .px-sample[data-reveal].is-in:hover, .px-sample:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -26px rgba(20, 24, 28, .7), 0 0 0 1px rgba(201, 169, 106, .6), 0 0 50px rgba(201, 169, 106, .25); }
.content .px-sample:hover img { transform: scale(1.07); box-shadow: none; }
.px-sample:hover::after { opacity: 1; transform: scale(1); }

/* нестандартні пропорції (накладки, карнизи, декор): фото цілком, підпис під ним */
.px-sample--fit { background: #fff; display: flex; flex-direction: column; }
.px-sample--fit a.lb { padding: 14px; background: #fff; }
.content .px-sample--fit img, .content .px-sample--fit a.lb img { object-fit: contain; }
.px-sample--fit figcaption {
  position: static; padding: 12px 16px 16px; background: #fff; color: #22282D; font-size: 17px; border-top: 1px solid #ECE8DE;
}
.content .px-sample--fit:hover img { transform: scale(1.03); }

/* картки категорій на сторінці розділу */
.px-cats__grid--page { margin-bottom: 30px; }
.content .px-card { font-weight: 400; }
.content .px-card__img img { max-width: none; margin: 0; border-radius: 0; box-shadow: none; }
.content .px-card:hover .px-card__img img { box-shadow: none; }

/* лайтбокс-галерея */
.lightbox { background: rgba(14, 17, 20, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.lightbox img { box-shadow: 0 40px 100px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
.lightbox__x, .lightbox__nav {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: #fff; font-size: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .22);
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--px-ease);
}
.lightbox__nav { top: 50%; margin-top: -26px; }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }
.lightbox__x:hover, .lightbox__nav:hover { background: var(--px-gold); border-color: var(--px-gold); color: #14171A; }
.lightbox__nav--prev:hover { transform: translateX(-3px); }
.lightbox__nav--next:hover { transform: translateX(3px); }
.lightbox__nav[hidden] { display: none; }
.lightbox__cap {
  position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; pointer-events: none;
  font-family: var(--px-serif); font-size: 22px; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.lightbox__cap small { display: block; margin-top: 2px; font-family: var(--font); font-size: 12px; letter-spacing: .2em; color: var(--px-gold); }

@media (max-width: 1020px) {
  .px-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 640px) {
  .px-phead { padding: 22px 0 34px; }
  .px-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .px-sample figcaption { font-size: 16px; padding: 30px 12px 10px; }
  .px-sample--fit figcaption { font-size: 14.5px; padding: 10px 12px 12px; }
  .px-sample::after { display: none; }
  .lightbox__nav { width: 44px; height: 44px; margin-top: -22px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__cap { font-size: 18px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .px-phead::before { animation-name: none; }
  .px-sample, .px-sample img { transition: none; }
}

/* лист не «проявляється» цілком — з'являються самі зразки */
.page--inner .paper.reveal { opacity: 1; transform: none; transition: none; }
.lightbox img { max-height: 80vh; margin-bottom: 34px; }


/* ============================================================
   v38: м'які переходи, картки товарів, галереї, типографіка
   ============================================================ */

/* факти під hero — на всю ширину контейнера (flex-колонка стискала блок) */
.px-hero > .wrap { width: 100%; }

/* світлий блок — «аркуш» на темному тлі, без різкої межі */
.px-cats {
  margin: 0 clamp(8px, 1.2vw, 22px); border-radius: clamp(26px, 3vw, 48px); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 -40px 90px -50px rgba(226, 232, 236, .22), 0 40px 90px -50px rgba(226, 232, 236, .16);
}
.px-cats::before { display: none; }
.px-hero { padding-bottom: clamp(18px, 2.4vw, 34px); }
.px-split { margin-top: calc(clamp(26px, 3vw, 48px) * -1); padding-top: calc(clamp(90px, 12vw, 170px) + clamp(26px, 3vw, 48px)); }
.px-cats { position: relative; z-index: 1; }

/* внутрішні сторінки: темна шапка «перетікає» у світлий аркуш */
.px-phead { margin-bottom: 0; padding-bottom: calc(clamp(40px, 5vw, 68px) + clamp(26px, 3vw, 44px)); }
.px-phead::after {
  left: 0; right: 0; bottom: -1px; height: clamp(26px, 3vw, 44px);
  background: var(--bg); border-radius: clamp(26px, 3vw, 44px) clamp(26px, 3vw, 44px) 0 0;
  box-shadow: 0 -30px 70px -30px rgba(226, 232, 236, .22);
}
.page--inner > .wrap { padding-top: clamp(8px, 1.4vw, 22px); }

/* підвал — темний аркуш, що піднімається зі світлої сторінки */
.footer { border-radius: clamp(26px, 3vw, 44px) clamp(26px, 3vw, 44px) 0 0; overflow: hidden; }
.footer::before { left: 12%; right: 12%; }
.page--home + .footer { border-radius: 0; }
.page--home + .footer::before { left: 0; right: 0; }

/* картки товарів (Arkopa) */
.px-grid--prod { gap: 20px; }
.px-prod {
  display: flex; flex-direction: column; background: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 16px 34px -24px rgba(20, 24, 28, .45);
  transition: transform .5s var(--px-ease), box-shadow .5s, opacity .9s var(--px-ease);
}
.px-prod:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -28px rgba(20, 24, 28, .6), 0 0 0 1px rgba(201, 169, 106, .55), 0 0 46px rgba(201, 169, 106, .2); }
.px-prod__img { aspect-ratio: 1 / 1; overflow: hidden; background: #E8E5DE; }
.content .px-prod__img img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; margin: 0 !important; border: 0 !important; border-radius: 0; box-shadow: none; transition: transform 1s var(--px-ease); }
.content .px-prod:hover .px-prod__img img { transform: scale(1.06); box-shadow: none; }
.px-prod__body { padding: 16px 18px 18px; text-align: left; font-size: 14px; line-height: 1.55; color: #5A6166; display: flex; flex-direction: column; flex: 1; }
.content .px-prod__body p { margin: 0 0 8px; }
.content .px-prod__body p:last-child { margin: auto 0 0; padding-top: 10px; border-top: 1px solid #ECE8DE; }
.px-prod__body > p:first-child b { display: block; margin-bottom: 4px; font-family: var(--px-serif); font-weight: 500; font-size: 21px; line-height: 1.15; color: #1A1D20; }
.px-prod__body i { font-style: normal; font-size: 12.5px; letter-spacing: .04em; color: #7A8087; }
.content .px-prod__body font[color] { color: #1A1D20; font-family: var(--px-serif); font-size: 23px; font-weight: 500; }

/* фотогалереї (3D, Художні): фото не більші за оригінал */
.px-grid--gallery { grid-template-columns: repeat(auto-fit, minmax(200px, 270px)); justify-content: center; align-items: start; }
.px-sample--photo a.lb { aspect-ratio: auto; }

/* типографіка контенту */
.page--inner .content h2, .page--inner .content h3 { font-family: var(--px-serif); font-weight: 400; letter-spacing: -.005em; color: #1A1D20; }
.page--inner .content h2 { font-size: clamp(28px, 2.8vw, 42px); line-height: 1.1; margin: 44px 0 20px; }
.page--inner .content h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.page--inner .content h2[align="center"]::after {
  content: ""; display: block; width: 60px; height: 1px; margin: 16px auto 0; background: var(--px-gold);
}
.page--inner .content hr { border: 0; height: 1px; width: auto !important; margin: 36px 0; background: linear-gradient(90deg, transparent, rgba(185, 152, 90, .6), transparent); }
.page--inner .content > p > img, .page--inner .content p[align="center"] > img { border-radius: 6px; box-shadow: 0 20px 44px -26px rgba(20, 24, 28, .45); }

@media (max-width: 640px) {
  .px-prod__body { padding: 12px 12px 14px; font-size: 13px; }
  .px-prod__body > p:first-child b { font-size: 17px; }
  .content .px-prod__body font[color] { font-size: 19px; }
  .px-grid--gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .px-prod, .px-prod__img img { transition: none; }
}

/* текстові сторінки: спокійніші акценти */
.page--inner .content ul > li::before { background: var(--px-gold); }
.page--inner .content font[color="#ff8040" i] { color: #9C7C3C; font-family: var(--px-serif); font-style: italic; font-weight: 500; }
.page--inner .content font[color="#ff0000" i] { color: #B4472B; }
.page--inner .content table:has(a.btn) { border: 0; background: none; box-shadow: none; }
.page--inner .content table:has(a.btn) td { border: 0; background: none; padding-left: 0; }
.page--inner .content a.btn { border-radius: 999px; padding: 12px 22px; }

/* останні випадні меню відкриваються вліво — без горизонтальної прокрутки */
.nav__item:nth-last-child(-n+2) > .nav__drop { left: auto; right: 0; }
.nav__item:nth-last-child(-n+2) > .nav__drop::before { left: auto; right: 28px; }


/* ============================================================
   v40: шапка — суцільний графіт; відео-блоки
   ============================================================ */

/* шапка була напівпрозора над світлим body і читалась як сіра плашка */
.topbar { background: #14181C; }
.header { background: rgba(23, 27, 32, .97); border-bottom-color: rgba(255, 255, 255, .08); }
.header a.header__phone, .header__phone { color: #fff; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.header a.header__phone:hover { color: var(--px-gold-soft); }
.header__cta .btn--soft { border-radius: 999px; border-color: rgba(255, 255, 255, .28); color: #fff; font-weight: 600; padding: 11px 20px; }
.header__cta .btn--soft:hover { background: linear-gradient(160deg, #F08A3C 0%, #D4651A 100%); border-color: transparent; }
@media (min-width: 1560px) {
  .nav__link { font-size: 14.5px; padding: 10px 13px; }
}

/* заголовок вітрини: три рядки замість чотирьох */
.px-hero__title { font-size: clamp(46px, 5vw, 80px); }

/* відео-блок із текстом праворуч (сюжет відео ліворуч) */
.px-split--right .wrap { display: flex; justify-content: flex-end; }
.px-split--right .px-split__media::after {
  background: linear-gradient(270deg, rgba(18, 22, 26, .93) 0%, rgba(18, 22, 26, .68) 46%, rgba(18, 22, 26, .12) 100%),
              linear-gradient(180deg, rgba(28, 33, 38, 1) 0%, rgba(28, 33, 38, 0) 18%, rgba(28, 33, 38, 0) 82%, rgba(28, 33, 38, 1) 100%);
}
.px-lists + .px-split { margin-top: 0; padding-top: clamp(90px, 12vw, 170px); }

/* відео-фон шапки сторінки */
.px-phead--video { padding-top: 36px; padding-bottom: calc(clamp(70px, 9vw, 130px) + clamp(26px, 3vw, 44px)); }
.px-phead--video::before { display: none; }
.px-phead__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.px-phead__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-phead__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18, 22, 26, .88) 0%, rgba(18, 22, 26, .55) 50%, rgba(18, 22, 26, .2) 100%),
              linear-gradient(180deg, rgba(18, 22, 26, .5) 0%, rgba(18, 22, 26, 0) 40%);
}
.px-phead--video .px-phead__title { margin-top: clamp(40px, 6vw, 90px); text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }

@media (max-width: 640px) {
  .px-split--right .px-split__media::after { background: linear-gradient(180deg, rgba(28, 33, 38, 1) 0%, rgba(18, 22, 26, .72) 22%, rgba(18, 22, 26, .8) 78%, rgba(28, 33, 38, 1) 100%); }
  .px-phead--video { padding-bottom: calc(60px + 26px); }
}


/* ============================================================
   v41: сервісні сторінки (Реставрація, Конструкторські послуги)
   ============================================================ */

.page--service { position: relative; }
.page--service > .wrap:first-child { position: absolute; left: 0; right: 0; top: 26px; z-index: 3; }
.page--service .crumbs { margin: 0; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--px-mute); }
.page--service .crumbs a { color: #CFCBC1; }
.page--service .crumbs a:hover { color: var(--px-gold-soft); }
.page--service .crumbs [aria-current] { color: var(--px-gold); font-weight: 600; }
.page--service .crumbs li + li::before { color: rgba(255, 255, 255, .3); }

.phero {
  width: 100%; border-radius: 0; margin: 0; min-height: clamp(480px, 68vh, 720px);
  background-color: var(--px-bg); padding-bottom: clamp(26px, 3vw, 44px);
}
.phero__veil {
  background: linear-gradient(90deg, rgba(18, 22, 26, .92) 0%, rgba(18, 22, 26, .72) 40%, rgba(18, 22, 26, .25) 72%, rgba(18, 22, 26, .1) 100%),
              linear-gradient(180deg, rgba(18, 22, 26, .55) 0%, rgba(18, 22, 26, 0) 30%);
}
.phero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; height: clamp(26px, 3vw, 44px);
  background: var(--bg); border-radius: clamp(26px, 3vw, 44px) clamp(26px, 3vw, 44px) 0 0;
}
.phero__in { padding-top: 90px; }
.phero__eyebrow { font-size: 12px; letter-spacing: .26em; color: var(--px-gold); }
.phero__eyebrow::before { width: 38px; background: currentColor; opacity: .7; }
.phero__title { font-weight: 300; font-size: clamp(40px, 5vw, 80px); line-height: 1.02; color: #fff; margin: 22px 0 22px; }
.phero__title em { background: linear-gradient(100deg, #F1ECE0 0%, #CFE3D4 50%, #8FCBA6 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .08em; }
.phero__lead { font-size: 17.5px; line-height: 1.7; color: #C3C8CC; max-width: 520px; margin-bottom: 34px; }
.phero .btn, .kcta .btn { min-height: 54px; padding: 0 30px; border-radius: 999px; font-size: 14.5px; font-weight: 600; letter-spacing: .04em; }
.phero .btn--primary, .kcta .btn--primary { box-shadow: 0 10px 34px rgba(238, 122, 40, .38), inset 0 1px 0 rgba(255, 255, 255, .28); }
.phero .btn--ghost, .kcta .btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .03); }
.phero .btn--ghost:hover, .kcta .btn--ghost:hover { background: transparent; color: #fff; border-color: var(--px-gold); box-shadow: 0 0 0 1px rgba(196, 174, 130, .35), 0 0 34px rgba(196, 174, 130, .22); }

/* секції */
.rintro { padding: clamp(18px, 2.4vw, 34px) 0 10px; }
.rintro__text { font-family: var(--px-serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.35; color: #1A1D20; max-width: 30em; }
.ksec { padding: clamp(34px, 4vw, 60px) 0 10px; }
.ksec__head h2 { font-weight: 300; font-size: clamp(32px, 3.4vw, 52px); line-height: 1.05; color: #1A1D20; margin-bottom: 26px; }
.ksec__head h2::after { content: ""; display: block; width: 60px; height: 1px; margin-top: 18px; background: var(--px-gold); }
.ksec__sub { margin: -10px 0 22px; color: #5A6166; }

.kcard, .kadv__card, .rstep {
  background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; border-radius: 6px;
  box-shadow: 0 16px 34px -24px rgba(20, 24, 28, .45);
  transition: transform .5s var(--px-ease), box-shadow .5s, opacity .9s var(--px-ease);
}
.kadv__card:hover, .rstep:hover, .kcard:hover { transform: translateY(-5px); box-shadow: 0 34px 60px -28px rgba(20, 24, 28, .6), 0 0 0 1px rgba(196, 174, 130, .55), 0 0 46px rgba(196, 174, 130, .2); }
.kcard h3 { font-weight: 500; font-size: 28px; color: #1A1D20; }
.klist .knum, .rstep__num { font-family: var(--px-serif); font-style: italic; color: #9C7C3C; }
.kadv__ico { border-radius: 50%; background: #F1EEE6; color: #1B7A43; }
.kadv__card b, .rstep b { font-weight: 600; color: #1A1D20; }
.rstep b { font-family: var(--px-serif); font-weight: 500; font-size: 23px; }

/* До / Після */
.ba { border-radius: 6px; box-shadow: 0 30px 60px -34px rgba(20, 24, 28, .6); }
.ba__tag { border-radius: 999px; letter-spacing: .14em; }

/* порівняння */
.rcmp { border: 0; border-radius: 6px; background: #fff; box-shadow: 0 16px 34px -24px rgba(20, 24, 28, .45); }
.rcmp__head span { background: #1C2126; color: #fff; font-weight: 600; letter-spacing: .04em; }
.rcmp__row span { padding: 16px 22px; }
.rcmp__rest { color: #135C32; font-weight: 600; }
.rquote {
  border-radius: 6px; background: #1C2126; color: #fff; border: 0; padding: clamp(26px, 3vw, 44px);
  font-family: var(--px-serif); font-style: italic; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.3;
}

/* фінальна смуга */
.kcta { position: relative; isolation: isolate; overflow: hidden; background: var(--px-bg-2); margin-top: clamp(40px, 5vw, 70px); }
.kcta::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 90vw; height: 90vw; max-width: 1200px; max-height: 1200px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(214, 226, 235, .10) 0%, rgba(47, 165, 101, .07) 38%, rgba(35, 42, 48, 0) 66%);
}
.kcta__in { padding-top: clamp(40px, 5vw, 70px); padding-bottom: clamp(40px, 5vw, 70px); }
.kcta__phrase { font-style: normal; font-weight: 300; font-size: clamp(26px, 2.8vw, 42px); line-height: 1.15; }
.kcta__phone { color: #fff; font-family: var(--px-serif); font-size: 26px; }
.page--service + .footer { border-radius: 0; }
.page--service + .footer::before { left: 0; right: 0; }

/* контактні таблиці (іконка + телефон) без табличних рамок */
.page--inner .content table:has(.cico) { border: 0; background: none; }
.page--inner .content table:has(.cico) td { border: 0; background: none; }

@media (max-width: 640px) {
  .phero { width: 100%; border-radius: 0; min-height: 440px; }
  .phero__in { padding-top: 70px; }
  .phero__veil { background: linear-gradient(180deg, rgba(18, 22, 26, .78) 0%, rgba(18, 22, 26, .7) 100%); }
  .phero .btn, .kcta .btn { min-height: 50px; padding: 0 22px; }
  .rcmp__row span { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .kcard, .kadv__card, .rstep { transition: none; }
}
.page.page--service { padding-top: 0; }
.phero__in { width: 100%; }


/* ============================================================
   v42: відео-відгуки, сторінка «Замовити дзвінок»
   ============================================================ */

.px-video { position: relative; max-width: 820px; margin: 14px auto 6px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #1C2126; box-shadow: 0 30px 60px -34px rgba(20, 24, 28, .6); }
.content .px-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.content p:has(> .px-video) { margin: 0; }

.px-contact { max-width: 860px; margin: clamp(10px, 3vw, 40px) auto clamp(30px, 5vw, 70px); text-align: center; }
.content a.px-contact__phone { display: inline-block; font-family: var(--px-serif); font-weight: 400; font-size: clamp(40px, 5.6vw, 84px); line-height: 1; color: #1A1D20; white-space: nowrap; transition: color .3s; }
.content a.px-contact__phone:hover { color: #135C32; }
.px-contact__meta { margin-top: 16px; font-size: 15.5px; color: #5A6166; }
.content .px-contact__meta a { color: #22282D; font-weight: 600; }
.px-contact__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.content .px-contact__btns a { font-weight: 600; }
.content .px-contact__btns .px-btn--accent { color: #fff; }
.px-contact__addr { margin-top: 30px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #7A8087; }
@media (max-width: 640px) {
  .px-contact__btns .px-btn { width: 100%; }
}


/* ============================================================
   v43: сторінка «Прайси»
   ============================================================ */

.px-notice {
  display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(22px, 3vw, 38px) !important; padding: 16px 22px;
  border-radius: 6px; background: #fff; border-left: 3px solid #B4472B; color: #22282D; font-size: 15.5px; font-weight: 500;
  box-shadow: 0 16px 34px -26px rgba(20, 24, 28, .45);
}
.px-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: clamp(34px, 5vw, 70px); }
.px-price {
  position: relative; display: flex; flex-direction: column; min-height: 300px; padding: clamp(24px, 2.4vw, 36px);
  border-radius: 6px; background: #fff; box-shadow: 0 16px 34px -24px rgba(20, 24, 28, .45);
  transition: transform .5s var(--px-ease), box-shadow .5s, opacity .9s var(--px-ease);
}
.px-price::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 6px 6px 0 0; background: linear-gradient(90deg, var(--px-gold), rgba(196, 174, 130, 0)); }
.px-price:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -28px rgba(20, 24, 28, .6), 0 0 0 1px rgba(196, 174, 130, .55), 0 0 46px rgba(196, 174, 130, .2); }
.px-price__n { font-family: var(--px-serif); font-style: italic; font-size: 17px; color: #9C7C3C; }
.page--inner .content .px-price h2 { margin: 14px 0 10px; font-size: clamp(26px, 2.3vw, 36px); line-height: 1.1; text-align: left; }
.page--inner .content .px-price h2::after { display: none; }
.content .px-price__sub { margin: 0; font-size: 14.5px; line-height: 1.55; color: #5A6166; }
.px-price__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 26px; }
.content .px-price__btns .px-btn { min-height: 48px; padding: 0 22px; font-size: 14px; font-weight: 600; }
.content .px-price__btns .px-btn--accent { color: #fff; }

.px-info { padding: clamp(26px, 3.4vw, 54px); border-radius: 6px; background: #fff; box-shadow: 0 16px 34px -24px rgba(20, 24, 28, .45); }
.page--inner .content .px-info h2 { margin-top: 0; text-align: left; }
.page--inner .content .px-info h2[align="center"]::after { margin-left: 0; }
.content .px-info > ul { columns: 2; column-gap: clamp(30px, 5vw, 80px); margin: 0 0 22px; padding: 0; }
.content .px-info > ul > li { break-inside: avoid; padding: 11px 0 11px 22px; margin: 0; border-bottom: 1px solid #EFEBE2; font-size: 15px; line-height: 1.5; }
.content .px-info > ul > li::before { top: 1.25em; }
.content .px-info ul ul { margin: 8px 0 0; }
.content .px-info > p { margin: 0 0 6px; font-size: 14px; color: #5A6166; }

@media (max-width: 1020px) {
  .px-prices { grid-template-columns: 1fr; }
  .px-price { min-height: 0; }
  .content .px-info > ul { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .px-price { transition: none; }
}


/* ============================================================
   v44: таблиці, статті, відгуки, зображення
   ============================================================ */

/* таблиці-верстки старого сайту: без рамок і смуг */
.page--inner .content table.t1, .page--inner .content table.t1 td, .page--inner .content table.t1 th { border: 0; background: none; }
.page--inner .content table.t1 tr:nth-child(even) td { background: none; }

/* таблиці даних */
.px-tablewrap { overflow-x: auto; margin: 18px 0 30px; border-radius: 6px; background: #fff; box-shadow: 0 16px 34px -24px rgba(20, 24, 28, .45); }
.page--inner .content .px-tablewrap table { width: 100% !important; height: auto !important; margin: 0; border-collapse: collapse; font-size: 15px; }
.page--inner .content .px-tablewrap td, .page--inner .content .px-tablewrap th {
  border: 0; border-bottom: 1px solid #EFEBE2; padding: 13px 18px; background: none; text-align: left; vertical-align: top; color: #22282D;
}
.page--inner .content .px-tablewrap tr:nth-child(even) td { background: #FAF9F5; }
.page--inner .content .px-tablewrap tr:hover td { background: #F3F0E7; }
.page--inner .content .px-tablewrap tr:first-child td, .page--inner .content .px-tablewrap th {
  background: #1C2126; color: #fff; font-weight: 600; font-size: 13.5px; letter-spacing: .04em; border-bottom: 0;
}
.page--inner .content .px-tablewrap tr:first-child td *, .page--inner .content .px-tablewrap th * { color: inherit; }
.page--inner .content .px-tablewrap tr:last-child td { border-bottom: 0; }

/* посилання-смуга (у статтях був червоний пунктирний банер) */
.content a.px-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 30px; padding: 20px 28px;
  border-radius: 6px; background: #1C2126; color: #fff; font-family: var(--px-serif); font-size: clamp(20px, 2vw, 26px); font-weight: 400;
  transition: box-shadow .35s, transform .35s var(--px-ease);
}
.content a.px-banner::after { content: "→"; font-family: var(--font); font-size: 20px; color: var(--px-gold); transition: transform .35s var(--px-ease); }
.content a.px-banner:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(196, 174, 130, .5), 0 20px 46px -22px rgba(20, 24, 28, .7); }
.content a.px-banner:hover::after { transform: translateX(6px); }

/* статті: зручна довжина рядка */
.px-phead--article .px-phead__title { font-size: clamp(32px, 3.8vw, 58px); max-width: 900px; }
.px-phead--article + .wrap .content { max-width: 900px; font-size: 17px; line-height: 1.75; }
.px-phead--article + .wrap .content p[align="justify"], .page--inner .content p[align="justify"] { text-align: left; }

/* зображення та заголовки в старому контенті */
.page--inner .content img { border: 0 !important; border-radius: 6px; }
.page--inner .content h2 font, .page--inner .content h3 font, .page--inner .content h2 u, .page--inner .content h3 u { color: inherit; text-decoration: none; }
.page--inner .content h2 { text-wrap: balance; }

/* відгуки з фото: картка */
.page--inner .content table.t1:has(> tbody > tr > td[width="210"]) {
  margin: 0 0 18px; border-radius: 6px; background: #fff; box-shadow: 0 16px 34px -24px rgba(20, 24, 28, .45); border-collapse: separate; border-spacing: 0; overflow: hidden;
}
.page--inner .content table.t1:has(> tbody > tr > td[width="210"]) td { padding: 22px 26px; vertical-align: middle; font-size: 15.5px; line-height: 1.65; text-align: left; }
.page--inner .content table.t1:has(> tbody > tr > td[width="210"]) td[width="210"] { padding-right: 0; }
.page--inner .content table.t1:has(> tbody > tr > td[width="210"]) img { display: block; box-shadow: none; }

@media (max-width: 640px) {
  .page--inner .content .px-tablewrap td, .page--inner .content .px-tablewrap th { padding: 10px 12px; font-size: 13.5px; white-space: nowrap; }
  .page--inner .content table.t1:has(> tbody > tr > td[width="210"]) td { display: block; width: auto; padding: 16px; }
  .page--inner .content table.t1:has(> tbody > tr > td[width="210"]) td[width="210"] { padding-bottom: 0; }
  .content a.px-banner { padding: 16px 18px; }
}


/* ============================================================
   v46: плашка-попередження з телефонами
   ============================================================ */

.content .px-notice--phones { justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; padding: 18px 22px; }
.px-notice__phones { display: flex; flex-wrap: wrap; gap: 10px; }
.content .px-notice__phones a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid rgba(26, 29, 32, .2); color: #1A1D20; font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--px-ease);
}
.px-notice__phones svg { width: 16px; height: 16px; color: #1B7A43; transition: color .25s; }
.content .px-notice__phones a:hover { background: #1C2126; border-color: #1C2126; color: #fff; transform: translateY(-2px); }
.px-notice__phones a:hover svg { color: var(--px-gold); }
@media (max-width: 640px) {
  .px-notice__phones, .content .px-notice__phones a { width: 100%; justify-content: center; }
}

/* v47: сервісні сторінки — без світлої смуги перед підвалом; 5 карток в один ряд */
.page--service + .footer { margin-top: 0; }
@media (min-width: 1100px) {
  .kadv__grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .kadv__grid:has(> :nth-child(5):last-child) .kadv__card { padding: 22px 20px; }
}


/* ============================================================
   v48: креслення на білому аркуші (Профілі фрезерування, Пілястри)
   ============================================================ */

.px-sheet {
  max-width: 940px; margin: 0 auto clamp(26px, 4vw, 50px); padding: clamp(16px, 3.4vw, 50px); border-radius: 6px; background: #fff;
  box-shadow: 0 30px 60px -34px rgba(20, 24, 28, .55);
  transition: box-shadow .5s, transform .5s var(--px-ease), opacity .9s var(--px-ease);
}
.px-sheet:hover { box-shadow: 0 40px 70px -34px rgba(20, 24, 28, .65), 0 0 0 1px rgba(196, 174, 130, .5); }
.px-sheet a.lb { display: block; }
.content .px-sheet img, .content .px-sheet a.lb img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border-radius: 0; box-shadow: none; }
.content .px-sheet:hover img { transform: none; box-shadow: none; }
.px-cats__grid--page + .px-banner { margin-top: -10px; }


/* ============================================================
   v49: RAL-підбирач («Фарбовані фасади»)
   ============================================================ */

.px-ral { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); margin: clamp(20px, 3vw, 40px) 0 clamp(30px, 5vw, 70px); align-items: start; }
.px-ral__stage { align-self: stretch; }
.px-ral__sticky { position: sticky; top: 104px; padding: clamp(22px, 3vw, 44px); border-radius: 6px; background: radial-gradient(120% 90% at 50% 30%, #3A434B 0%, #1C2126 70%); box-shadow: 0 34px 70px -40px rgba(20, 24, 28, .8); perspective: 1400px; }
.px-ral__facade {
  position: relative; overflow: hidden; max-width: 440px; margin: 0 auto; border-radius: 3px; background-color: var(--ral, #F0EFEA);
  transform: rotateX(calc(var(--ty, 0) * -6deg)) rotateY(calc(var(--tx, 0) * 8deg));
  transition: background-color .8s cubic-bezier(.2, .7, .2, 1), transform .5s var(--px-ease);
  box-shadow: 0 50px 70px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .06);
}
.content .px-ral__facade img { display: block; width: 100%; height: auto; max-width: none; margin: 0; border-radius: 0; box-shadow: none; mix-blend-mode: multiply; }
.content .px-ral__facade:hover img { transform: none; box-shadow: none; }
.px-ral__facade::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, .10) 100%); }
.px-ral__shine {
  position: absolute; top: -20%; bottom: -20%; left: -70%; width: 50%; z-index: 2; pointer-events: none; transform: skewX(-14deg);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .34) 50%, rgba(255, 255, 255, 0) 100%);
}
.px-ral__facade.is-shine .px-ral__shine { animation-name: px-ral-shine; animation-duration: 1.1s; animation-timing-function: cubic-bezier(.3, .6, .3, 1); animation-fill-mode: both; }
@keyframes px-ral-shine { from { left: -70%; } to { left: 130%; } }

.px-ral__cap { display: flex; align-items: center; gap: 16px; max-width: 440px; margin: clamp(18px, 2.4vw, 30px) auto 0; color: #fff; }
.px-ral__chip { flex: none; width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 10px 26px rgba(0, 0, 0, .45); transition: background-color .6s; }
.px-ral__cap b { display: block; font-family: var(--px-serif); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1; color: #fff; }
.px-ral__cap span { display: block; margin-top: 6px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--px-mute); }

.px-ral__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.px-ral__tab {
  display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 16px 0 8px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(26, 29, 32, .16); background: #fff; color: #22282D; font: inherit; font-size: 14px; font-weight: 600;
  transition: background .25s, color .25s, border-color .25s;
}
.px-ral__tab i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.px-ral__tab span { font-weight: 500; font-size: 12px; color: #8B9096; }
.px-ral__tab:hover { border-color: #1C2126; }
.px-ral__tab.is-on { background: #1C2126; border-color: #1C2126; color: #fff; }
.px-ral__tab.is-on span { color: var(--px-gold); }

.px-ral__grid { display: none; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.px-ral__grid.is-on { display: grid; animation-name: px-ral-in; animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
@keyframes px-ral-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.px-ral__sw {
  display: block; padding: 6px 6px 8px; border: 0; border-radius: 6px; background: #fff; cursor: pointer; font: inherit; text-align: center;
  box-shadow: 0 10px 22px -18px rgba(20, 24, 28, .5); transition: transform .3s var(--px-ease), box-shadow .3s;
}
.px-ral__sw i { display: block; aspect-ratio: 1 / 1; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.px-ral__sw span { display: block; margin-top: 7px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: #4A5258; }
.px-ral__sw:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -18px rgba(20, 24, 28, .6); }
.px-ral__sw.is-on { box-shadow: 0 0 0 2px #1C2126, 0 18px 30px -18px rgba(20, 24, 28, .6); }
.px-ral__sw.is-on span { color: #1A1D20; }
.px-ral__sw:focus-visible, .px-ral__tab:focus-visible { outline: 2px solid #1B7A43; outline-offset: 2px; }

@media (max-width: 1020px) {
  .px-ral { grid-template-columns: minmax(0, 1fr); }
  .px-ral__panel { min-width: 0; }
  .px-ral__sticky { position: static; }
  .px-ral__facade { max-width: 320px; transform: none; }
  .px-ral__cap { max-width: 320px; }
}
@media (max-width: 640px) {
  .px-ral__tabs { flex-wrap: nowrap; overflow-x: auto; margin-right: -22px; padding: 0 22px 6px 0; scrollbar-width: none; }
  .px-ral__tabs::-webkit-scrollbar { display: none; }
  .px-ral__tab { flex: none; }
  .px-ral__grid { grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; }
  .px-ral__facade { max-width: 240px; }
  .px-ral__cap { max-width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .px-ral__facade { transition: none; transform: none; }
  .px-ral__facade.is-shine .px-ral__shine, .px-ral__grid.is-on { animation-name: none; }
}


/* ============================================================
   v50: RAL-підбирач на сірому студійному тлі
   ============================================================ */

.px-ral__sticky { padding: 0; background: none; box-shadow: none; }
.px-ral__studio {
  position: relative; overflow: hidden; border-radius: 6px; background: #A9ABAA;
  box-shadow: 0 34px 70px -40px rgba(20, 24, 28, .7);
  transform: rotateX(calc(var(--ty, 0) * -3deg)) rotateY(calc(var(--tx, 0) * 4deg)); transition: transform .5s var(--px-ease);
}
.content .px-ral__studio .px-ral__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; border-radius: 0; box-shadow: none; mix-blend-mode: normal; }
.content .px-ral__studio:hover img { transform: none; box-shadow: none; }
.px-ral__facade { position: absolute; max-width: none; margin: 0; border-radius: 0; transform: none; box-shadow: none; transition: background-color .8s cubic-bezier(.2, .7, .2, 1); }
.content .px-ral__facade img { width: 100%; height: 100%; }
.px-ral__facade::after { background: linear-gradient(115deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .06) 100%); }

.px-ral__cap { max-width: none; margin: 20px 4px 0; color: #1A1D20; }
.px-ral__chip { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 10px 24px -10px rgba(20, 24, 28, .5); }
.px-ral__cap b { color: #1A1D20; }
.px-ral__cap span { color: #5A6166; }

@media (max-width: 1020px) {
  .px-ral__studio { max-width: 460px; margin: 0 auto; transform: none; }
  .px-ral__facade { max-width: none; }
  .px-ral__cap { max-width: 460px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .px-ral__facade { max-width: none; }
  .px-ral__cap { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .px-ral__studio { transform: none; transition: none; }
}

/* фото іншої пропорції в стандартній сітці: та сама картка, фото цілком на сірому тлі */
.px-sample--contain a.lb { background: radial-gradient(90% 90% at 50% 40%, #CDCED0 0%, #A3A4A7 100%); }
.content .px-sample--contain img, .content .px-sample--contain a.lb img { object-fit: contain; padding: 16px 0 44px; }


/* ============================================================
   v51: кнопка зв'язку з меню, модальне вікно зворотного дзвінка
   ============================================================ */

.px-fab { position: fixed; right: 22px; bottom: 22px; z-index: 85; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.px-fab .call-fab { position: relative; right: auto; bottom: auto; border: 0; cursor: pointer; padding: 0; display: grid; place-items: center; }
.px-fab__ico { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity .25s, transform .35s var(--px-ease); }
.px-fab__ico svg { width: 26px; height: 26px; }
.px-fab__ico--x { opacity: 0; transform: rotate(-90deg) scale(.6); }
.px-fab.is-open .px-fab__ico { opacity: 0; transform: rotate(90deg) scale(.6); }
.px-fab.is-open .px-fab__ico--x { opacity: 1; transform: none; }
.px-fab.is-open .call-fab { background: #1C2126; box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }

.px-fab__menu { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; visibility: hidden; pointer-events: none; }
.px-fab.is-open .px-fab__menu { visibility: visible; pointer-events: auto; }
.px-fab__item {
  display: inline-flex; align-items: center; gap: 12px; color: #1A1D20; font-size: 14.5px; font-weight: 600;
  opacity: 0; transform: translate3d(0, 14px, 0) scale(.96); transition: opacity .3s, transform .4s var(--px-ease);
}
.px-fab.is-open .px-fab__item { opacity: 1; transform: none; }
.px-fab.is-open .px-fab__item:nth-last-child(2) { transition-delay: .05s; }
.px-fab.is-open .px-fab__item:nth-last-child(3) { transition-delay: .1s; }
.px-fab__item span { padding: 9px 16px; border-radius: 999px; background: #fff; box-shadow: 0 12px 30px -12px rgba(20, 24, 28, .55); white-space: nowrap; }
.px-fab__item i { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #1C2126; box-shadow: 0 12px 30px -10px rgba(20, 24, 28, .6); transition: transform .3s var(--px-ease), background .3s; }
.px-fab__item svg { width: 22px; height: 22px; }
.px-fab__item--viber i { background: #7360F2; }
.px-fab__item:hover { color: #1A1D20; }
.px-fab__item:hover i { transform: scale(1.08); }
.px-fab__item:first-child i { background: linear-gradient(160deg, #F08A3C 0%, #D4651A 100%); }
.px-fab.is-open ~ .to-top { opacity: 0; visibility: hidden; }

.px-modal { position: fixed; inset: 0; z-index: 230; display: grid; place-items: center; padding: 20px; background: rgba(14, 17, 20, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.px-modal[hidden] { display: none; }
.px-modal__box { position: relative; width: min(100%, 460px); padding: clamp(26px, 4vw, 44px); border-radius: 10px; background: #F6F4EF; color: #1A1D20; box-shadow: 0 50px 120px rgba(0, 0, 0, .55); animation-name: px-ral-in; animation-duration: .4s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
.px-modal__box .px-eyebrow { color: #8A6D33; }
.px-modal__box h2 { margin: 16px 0 22px; font-family: var(--px-serif); font-weight: 400; font-size: clamp(28px, 4vw, 38px); line-height: 1.1; }
.px-modal__x { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: #1A1D20; cursor: pointer; display: grid; place-items: center; }
.px-modal__x:hover { background: rgba(26, 29, 32, .08); }
.px-modal__x svg { width: 20px; height: 20px; }
.px-modal__form { display: grid; gap: 14px; }
.px-modal__form label span { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #5A6166; }
.px-modal__form input:not([hidden]) { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 6px; border: 1px solid rgba(26, 29, 32, .2); background: #fff; font: inherit; font-size: 17px; color: #1A1D20; }
.px-modal__form input:focus { outline: 2px solid #1B7A43; outline-offset: 1px; border-color: transparent; }
.px-modal__form .px-btn { width: 100%; margin-top: 6px; border: 0; cursor: pointer; font-family: inherit; }
.px-modal__form .px-btn[disabled] { opacity: .6; cursor: wait; }
.px-modal__note { margin: 0; text-align: center; font-size: 13px; color: #5A6166; }
.px-modal__done, .px-modal__fail { font-size: 17px; line-height: 1.6; }
.px-modal__done b { display: block; font-family: var(--px-serif); font-weight: 400; font-size: 32px; }
.px-modal__fail a { font-weight: 700; white-space: nowrap; }

@media (max-width: 640px) {
  .px-fab { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .px-fab__item, .px-fab__ico { transition: none; }
  .px-modal__box { animation-name: none; }
}


/* ============================================================
   v52: сторінка 404
   ============================================================ */

.px-phead--404 { min-height: 62vh; display: flex; align-items: center; padding-top: 60px; }
.px-phead--404 .px-phead__title { margin-top: 22px; }
.px-404__lead { max-width: 560px; margin: 22px 0 0; font-size: 17.5px; line-height: 1.7; color: #C3C8CC; }
.px-404__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.px-phead--404 > .wrap { width: 100%; }

/* v53: меню кнопки зв'язку — зелений «Подзвонити»; на комп'ютері поруч видно номер */
.px-fab__item--call i { background: linear-gradient(160deg, #23944F 0%, #135C32 100%); }
.px-fab__item span b { display: none; margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(26, 29, 32, .18); font-weight: 700; }
@media (hover: hover) {
  .px-fab__item span b { display: inline; }
}

/* ============================================================
   v54: мобільний прохід (375px)
   ============================================================ */
@media (max-width: 640px) {
  /* сервісний hero: крихти у два рядки наїжджали на надзаголовок */
  .phero__eyebrow { display: none; }
  .phero__in { padding-top: 104px; }
  .phero__title { margin-top: 0; }

  /* відео-блок із текстом праворуч: на телефоні текст на всю ширину */
  .px-split--right .wrap { display: block; }

  /* порівняння «Реставрація / Новий комплект»: кожне значення з підписом */
  .rcmp__head { display: none; }
  .rcmp__row { padding: 6px 0 10px; }
  .rcmp__row .rcmp__lbl { padding: 12px 16px 4px !important; font-family: var(--px-serif); font-size: 21px; font-weight: 500; color: #1A1D20; }
  .rcmp__row:not(.rcmp__head) span:nth-child(n+2) { padding: 6px 16px; }
  .rcmp__row:not(.rcmp__head) span:nth-child(n+2)::before { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .rcmp__row:not(.rcmp__head) span:nth-child(2)::before { content: "Реставрація"; color: #1B7A43; }
  .rcmp__row:not(.rcmp__head) span:nth-child(3)::before { content: "Новий комплект"; color: #7A8087; }

  /* контакти у фінальному блоці головної — по рядку */
  .px-cta__meta { line-height: 1.9; }
}

/* v55: закрите меню кнопки зв'язку не перехоплює натискання під собою */
.px-fab { pointer-events: none; }
.px-fab .call-fab { pointer-events: auto; }
.px-fab.is-open .px-fab__menu, .px-fab.is-open .px-fab__item { pointer-events: auto; }

/* v56: бургер із підписом «Меню» */
.burger__txt { display: none; }
@media (max-width: 1020px) {
  .burger {
    display: grid; width: auto; height: 46px; padding: 0 14px 0 16px; border-radius: 999px;
    grid-template-columns: auto 20px; grid-template-rows: repeat(3, 2px); row-gap: 5px; column-gap: 11px;
    align-content: center; align-items: center;
  }
  .burger span { grid-column: 2; }
  .burger__txt { display: block; grid-column: 1; grid-row: 1 / 4; font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; line-height: 1; }
}

/* v57: кнопка «Меню» — зелена, як логотип, з відблиском */
@media (max-width: 1020px) {
  .burger {
    position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .28);
    background: linear-gradient(160deg, #35B56E 0%, #1F8F4D 42%, #135C32 100%);
    box-shadow: 0 10px 24px -8px rgba(31, 143, 77, .75), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -8px 14px -8px rgba(0, 0, 0, .35);
  }
  .burger::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0));
  }
  .burger::after {
    content: ""; position: absolute; top: -30%; bottom: -30%; left: -60%; width: 42%; pointer-events: none; transform: skewX(-18deg);
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 100%);
    animation-name: px-burger-shine; animation-duration: 4.5s; animation-timing-function: ease-in-out; animation-iteration-count: infinite;
  }
  .burger span, .burger__txt { position: relative; z-index: 1; }
  .burger__txt { text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
  .burger.is-open { background: linear-gradient(160deg, #2A3138 0%, #1C2126 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
  .burger.is-open::after { animation-name: none; opacity: 0; }
}
@keyframes px-burger-shine { 0%, 62% { left: -60%; } 88%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) {
  .burger::after { animation-name: none; opacity: 0; }
}


/* ============================================================
   v58: текстові сторінки та картки контактів
   ============================================================ */

.px-text { max-width: 900px; font-size: 17px; line-height: 1.75; }
.page--inner .content .px-text p[align="justify"] { text-align: left; }
.page--inner .content .px-text h2, .page--inner .content .px-text h3 { text-align: left; }
.page--inner .content .px-text h2[align="center"]::after { margin-left: 0; }
.px-text > p:first-child { font-size: 19px; color: #22282D; }
/* виділений абзац по центру → виноска */
.page--inner .content .px-text p[align="center"]:has(> strong:only-child),
.page--inner .content .px-text p[align="center"]:has(> b:only-child) {
  margin: 30px 0; padding: 22px 26px; text-align: left; border-radius: 6px; background: #fff;
  border-left: 3px solid var(--px-gold); box-shadow: 0 16px 34px -26px rgba(20, 24, 28, .45);
  font-family: var(--px-serif); font-size: clamp(20px, 2vw, 25px); line-height: 1.35;
}
.page--inner .content .px-text p[align="center"]:has(> strong:only-child) strong,
.page--inner .content .px-text p[align="center"]:has(> b:only-child) b { font-weight: 500; color: #1A1D20; }

/* контакти: іконка + текст картками */
.content ul.px-clist { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin: 6px 0 26px; padding: 0; }
.content ul.px-clist > li {
  display: flex; align-items: center; gap: 16px; margin: 0; padding: 16px 20px; border-radius: 6px; background: #fff;
  box-shadow: 0 14px 30px -24px rgba(20, 24, 28, .45); font-size: 17px; line-height: 1.45; color: #22282D;
  transition: transform .35s var(--px-ease), box-shadow .35s;
}
.content ul.px-clist > li::before { display: none; }
.content ul.px-clist > li:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -24px rgba(20, 24, 28, .6), 0 0 0 1px rgba(196, 174, 130, .5); }
.content ul.px-clist .cico { flex: none; width: 44px; height: 44px; margin: 0; border-radius: 50%; display: grid; place-items: center; background: #EEF5F0; color: #1B7A43; }
.content ul.px-clist a, .content ul.px-clist strong { font-weight: 600; color: #1A1D20; text-decoration: none; }
.content ul.px-clist a font, .content ul.px-clist u { color: inherit; text-decoration: none; }
.content ul.px-clist a:hover { color: #135C32; }
.px-text ul.px-clist { max-width: 640px; }

@media (max-width: 640px) {
  .px-text { font-size: 16px; }
  .px-text > p:first-child { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .content ul.px-clist > li { transition: none; }
}
/* виділений рядок-заголовок h4 по центру — та сама виноска */
.page--inner .content .px-text h4[align="center"] {
  margin: 30px 0; padding: 22px 26px; text-align: left; border-radius: 6px; background: #fff;
  border-left: 3px solid var(--px-gold); box-shadow: 0 16px 34px -26px rgba(20, 24, 28, .45);
  font-family: var(--px-serif); font-weight: 500; font-size: clamp(20px, 2vw, 25px); line-height: 1.35; color: #1A1D20;
}

/* ============================================================
   v59: форма «Зворотний дзвінок» — повідомлення і фото
   ============================================================ */

.px-modal { place-items: start center; overflow-y: auto; overscroll-behavior: contain; }
.px-modal__box { margin: auto 0; }
.px-modal__form[hidden] { display: none; }
.px-modal__form textarea {
  display: block; width: 100%; min-height: 92px; padding: 13px 16px; border-radius: 6px; border: 1px solid rgba(26, 29, 32, .2);
  background: #fff; font: inherit; font-size: 17px; line-height: 1.45; color: #1A1D20; resize: vertical;
}
.px-modal__form textarea:focus { outline: 2px solid #1B7A43; outline-offset: 1px; border-color: transparent; }
.px-modal__form ::placeholder { color: #9AA0A5; }
.px-modal__files { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.px-modal__attach {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px;
  border: 1px dashed rgba(26, 29, 32, .38); background: transparent; font: inherit; font-size: 14.5px; font-weight: 600;
  color: #1A1D20; cursor: pointer; transition: background .25s, border-color .25s;
}
.px-modal__attach:hover { background: #fff; border-color: #1B7A43; }
.px-modal__attach:focus-visible { outline: 2px solid #1B7A43; outline-offset: 2px; }
.px-modal__attach[disabled] { opacity: .45; cursor: default; }
.px-modal__attach svg { width: 18px; height: 18px; color: #1B7A43; }
.px-modal__hint { font-size: 13px; color: #5A6166; }
.px-modal__thumbs { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.px-modal__thumbs:empty { display: none; }
.px-modal__thumb { position: relative; width: 68px; height: 68px; }
.px-modal__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; box-shadow: 0 10px 22px -14px rgba(20, 24, 28, .6); }
.px-modal__thumb button {
  position: absolute; right: -9px; top: -9px; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 2px solid #F6F4EF;
  background: #1C2126; color: #fff; cursor: pointer; display: grid; place-items: center;
}
.px-modal__thumb button svg { width: 11px; height: 11px; }
.px-modal__msg { margin: 0; font-size: 14px; line-height: 1.45; color: #B3401A; }
.px-modal__msg[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .px-modal__attach { transition: none; }
}
