/* 2a — Ուղի (infinite paving perspective). Default theme: dark. */

:root {
  --bg: #15140f; --text: #f5f3ea; --text-dim: #c2bfb2; --text-dim2: #a09d92;
  --line: #2a2820; --scrim: 21,20,15;
  --nav-bg: rgba(21,20,15,.92); --nav-text: #f5f3ea; --nav-text-dim: #cdcabd; --nav-line: #2a2820; --nav-active-bg: #1f1e17;
}
[data-theme="light"] {
  --bg: #f7f6f2; --text: #17170f; --text-dim: #4a4740; --text-dim2: #605c54;
  --line: #e2ded3; --scrim: 247,246,242;
  --nav-bg: rgba(247,246,242,.92); --nav-text: #17170f; --nav-text-dim: #524f48; --nav-line: #e2ded3; --nav-active-bg: #efece2;
}

.p4 { background: var(--bg); color: var(--text); }
:root { --wa-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16.004 3C9.377 3 4 8.373 4 15c0 2.34.666 4.53 1.823 6.39L4 29l7.82-1.79A11.94 11.94 0 0 0 16.004 27C22.63 27 28 21.627 28 15S22.63 3 16.004 3zm0 21.75c-1.96 0-3.78-.55-5.33-1.5l-.38-.22-4.64 1.06 1.08-4.52-.25-.4A9.72 9.72 0 0 1 6.25 15c0-5.38 4.37-9.75 9.754-9.75S25.75 9.62 25.75 15s-4.37 9.75-9.746 9.75zm5.37-7.3c-.29-.15-1.73-.86-2-.95-.27-.1-.46-.15-.66.14-.2.3-.75.95-.92 1.14-.17.2-.34.22-.63.08-.29-.15-1.22-.45-2.33-1.44-.86-.77-1.44-1.72-1.61-2.01-.17-.3-.02-.46.13-.6.13-.13.29-.34.44-.51.15-.17.2-.3.3-.5.1-.2.05-.37-.02-.52-.08-.15-.66-1.6-.91-2.19-.24-.58-.48-.5-.66-.5h-.56c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48 0 1.46 1.06 2.87 1.21 3.07.15.2 2.08 3.18 5.04 4.46.7.3 1.25.48 1.68.62.7.22 1.34.19 1.85.12.56-.08 1.73-.71 1.98-1.39.24-.68.24-1.26.17-1.39-.07-.13-.26-.2-.55-.35z'/%3E%3C/svg%3E"); }

/* ---------- site header ---------- */
.p4-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 24px;
  background: var(--nav-bg); backdrop-filter: blur(6px); border-bottom: 1px solid var(--nav-line);
}
@media (min-width: 900px) { .p4-header { padding: 18px 52px; } }
.p4-header__logo { height: 56px; width: auto; object-fit: contain; clip-path: inset(0 0 10% 0); }
.p4-header__pages { display: none; gap: 18px; font-size: 14px; white-space: nowrap; }
@media (min-width: 860px) { .p4-header__pages { display: flex; } }
@media (min-width: 1100px) { .p4-header__pages { gap: 26px; font-size: 15px; } }
.p4-header__pages a { color: var(--nav-text-dim); text-decoration: none; }
.p4-header__pages a:hover { color: var(--nav-text); }
.p4-header__pages a.is-active { color: var(--green); }
.p4-header__right { display: flex; align-items: center; gap: 12px; }
.p4-header__call { padding: 12px 20px; background: var(--green); color: #12120e; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.p4-header__burger { display: inline-flex; justify-content: center; min-width: 38px; border: 1px solid var(--nav-line); background: transparent; color: var(--nav-text); font: inherit; font-size: 13px; padding: 8px 12px; cursor: pointer; }
@media (min-width: 860px) { .p4-header__burger { display: none; } }
/* with the burger showing, the theme switch lives inside the phone menu */
@media (max-width: 859px) { .p4-header__right .theme-toggle { display: none; } }
.p4-header__mobile-theme { align-self: flex-start; margin-top: 12px; }
/* phones: the full international number needs a tighter header to fit */
@media (max-width: 479px) {
  .p4-header { padding: 12px 14px; gap: 10px; }
  .p4-header__logo { height: 44px; }
  .p4-header__right { gap: 6px; }
  .p4-header__right .theme-toggle, .p4-header__burger { padding: 8px 9px; }
  .p4-header__call { padding: 10px 11px; font-size: 13px; }
}
.p4-header__mobile { display: none; flex-direction: column; padding: 0 24px 16px; gap: 2px; }
.p4-header__mobile.is-open { display: flex; }
.p4-header__mobile a { padding: 10px 4px; color: var(--nav-text-dim); text-decoration: none; border-bottom: 1px solid var(--nav-line); }
.p4-header__mobile a.is-active { color: var(--green); }
@media (min-width: 860px) { .p4-header__mobile { display: none !important; } }

/* ---------- inner page hero (products / about / gallery) ---------- */
.p4-page-hero { padding: 56px 24px 36px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .p4-page-hero { padding: 86px 52px 48px; } }
.p4-page-hero .p4-eyebrow { margin-bottom: 14px; }
.p4-page-hero h1 { font-family: 'Noto Serif Armenian', serif; font-size: clamp(34px, 5.5vw, 58px); font-weight: 700; line-height: 1.05; max-width: 820px; }
.p4-page-hero p { margin-top: 16px; max-width: 560px; font-size: 17px; line-height: 1.6; color: var(--text-dim); }

/* ---------- footer ---------- */
.p4-footer { border-top: 1px solid var(--line); padding: 40px 24px; display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
@media (min-width: 900px) { .p4-footer { padding: 56px 52px; } }
.p4-footer__brand { font-family: 'Noto Serif Armenian', Georgia, serif; font-weight: 700; letter-spacing: .08em; }
.p4-footer__brand span { color: var(--green); }
.p4-footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--text-dim); min-width: 180px; }
.p4-footer__col a { color: var(--text-dim); text-decoration: none; }
.p4-footer__col a:hover { color: var(--green); }
.p4-footer__meta { width: 100%; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-dim2); }

.p4-hero { position: relative; height: 560px; overflow: hidden; }
@media (min-width: 900px) { .p4-hero { height: 820px; } }
/* phones: four CTAs as a 2×2 grid, and let the hero grow instead of clipping */
@media (max-width: 599px) {
  .p4-hero { height: auto; min-height: 560px; padding-bottom: 48px; }
  .p4-hero .p4-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 420px; }
  .p4-hero .p4-ctas > a { display: inline-flex; align-items: center; justify-content: center; padding: 14px 10px; font-size: 14px; text-align: center; }
  .p4-hero .p4-ctas > a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.p4-plane-wrap { position: absolute; left: -30%; right: -30%; bottom: 0; height: 360px; perspective: 420px; perspective-origin: 50% 0%; }
@media (min-width: 900px) { .p4-plane-wrap { height: 560px; perspective: 520px; } }
.p4-plane {
  position: absolute; inset: 0;
  transform: rotateX(72deg); transform-origin: 50% 0%;
  background-color: #2a2a24;
  overflow: hidden;
}
.p4-plane__grid { position: absolute; left: 0; right: 0; top: -80px; bottom: -80px; display: flex; flex-wrap: wrap; animation: planeRoll 9s linear infinite; }
.p4-tile {
  width: 80px; height: 80px; flex: 0 0 80px;
  background-position: top center; background-size: 80px 80px; background-repeat: repeat;
}
.p4-plane-top-fade { position: absolute; left: 0; right: 0; top: 0; height: 46px; background: linear-gradient(to bottom, var(--bg) 0%, rgba(0,0,0,0) 100%); pointer-events: none; z-index: 1; }
@media (min-width: 900px) { .p4-plane-top-fade { height: 64px; } }

.p4-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: linear-gradient(to bottom, rgba(var(--scrim),1) 0%, rgba(var(--scrim),.8) 30%, rgba(var(--scrim),.62) 55%, rgba(var(--scrim),.25) 78%, rgba(var(--scrim),.8) 100%); }
.p4-horizon { position: absolute; left: 0; right: 0; top: 42%; height: 2px; background: var(--green); animation: horizonGlow 4.5s ease-in-out infinite; }

.p4-hero__copy { position: relative; z-index: 2; padding: 48px 24px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
@media (min-width: 900px) { .p4-hero__copy { padding: 92px 52px 0; gap: 26px; } }
.p4-eyebrow { font-size: 13px; letter-spacing: .34em; text-transform: uppercase; color: var(--green); }
.p4-h1 { margin: 0 auto; max-width: 900px; font-family: 'Noto Serif Armenian', serif; font-size: clamp(40px, 7vw, 96px); line-height: .96; font-weight: 700; letter-spacing: -.03em; }
.p4-h1 .line { display: block; overflow: hidden; }
.p4-h1 .word { display: inline-block; }
.enter-target.in-view .word { animation: wordUp 1s cubic-bezier(.2,.9,.2,1) both; }
.enter-target.in-view .line:nth-child(2) .word { animation-delay: .17s; }
.p4-h1 .word--green { color: var(--green); margin-bottom: .14em; } /* room for descenders inside the overflow-hidden .line */
.p4-lead { max-width: 560px; font-size: 19px; line-height: 1.6; color: var(--text-dim); }
.enter-target.in-view .p4-lead { animation: wipeIn 1.5s ease-out .3s both; }
.p4-ctas { display: flex; gap: 14px; padding-top: 6px; flex-wrap: wrap; justify-content: center; }
.p4-btn-primary { position: relative; overflow: hidden; padding: 18px 34px; background: var(--green); color: #12120e; font-size: 16px; font-weight: 700; text-decoration: none; }
.p4-btn-primary .beam { position: absolute; top: 0; bottom: 0; width: 44px; background: rgba(255,255,255,.5); animation: beam 3.4s ease-in-out 1.2s infinite; }
.p4-btn-secondary { padding: 18px 34px; border: 1px solid rgba(148,146,138,.55); color: var(--text); font-size: 16px; text-decoration: none; }
.p4-btn-secondary:hover { border-color: var(--green); color: var(--green); }
.p4-btn-whatsapp { display: inline-flex; align-items: center; gap: 10px; padding: 18px 30px; background: #25d366; color: #0b1a0e; font-size: 16px; font-weight: 700; text-decoration: none; }
.p4-btn-whatsapp:hover { background: #2fe375; }
/* Facebook + Instagram icon pair (hero, contact, footer) */
.p4-social { display: flex; gap: 10px; justify-content: center; }
.p4-ctas > .p4-social { align-self: center; }
.p4-social a.p4-social__btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; color: #fff; text-decoration: none; box-shadow: 0 6px 18px -8px rgba(0,0,0,.6); transition: transform .2s ease, filter .2s ease, box-shadow .2s ease; }
.p4-social a.p4-social__btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 10px 22px -8px rgba(0,0,0,.7); }
.p4-social a.p4-social__btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.p4-social__btn svg { width: 22px; height: 22px; }
.p4-social__btn--fb { background: #1877f2; }
.p4-social__btn--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.p4-social--sm { justify-content: flex-start; gap: 8px; margin-top: 4px; }
/* footer pair follows the theme instead of brand colours, like the footer links */
.p4-social--sm a.p4-social__btn { width: 36px; height: 36px; box-shadow: none; background: transparent; border: 1px solid var(--line); color: var(--text-dim); }
.p4-social--sm a.p4-social__btn:hover { transform: none; filter: none; box-shadow: none; border-color: var(--green); color: var(--green); }
.p4-social--sm .p4-social__btn svg { width: 18px; height: 18px; }
.p4-btn-whatsapp::before { content: ""; width: 18px; height: 18px; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--wa-glyph) center / contain no-repeat; }

/* ---------- always-on WhatsApp shortcut ---------- */
.p4-whatsapp-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; box-shadow: 0 8px 20px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.p4-whatsapp-fab:hover { transform: scale(1.08); }
.p4-whatsapp-fab svg { width: 28px; height: 28px; fill: #fff; }

/* compact .p4-btn-whatsapp for the footer column */
.p4-footer__col a.p4-footer__whatsapp { align-self: flex-start; padding: 10px 16px; font-size: 14px; color: #0b1a0e; margin-top: 4px; }
.p4-footer__col a.p4-footer__whatsapp:hover { color: #0b1a0e; }
.p4-footer__whatsapp::before { width: 16px; height: 16px; }

.p4-seal { position: absolute; right: 20px; top: 20px; z-index: 3; width: 100px; height: 100px; border-radius: 50%; border: 1px solid var(--green); display: flex; align-items: center; justify-content: center; animation: sealSpin 28s linear infinite; }
@media (min-width: 900px) { .p4-seal { right: 56px; top: 52px; width: 150px; height: 150px; } }
.p4-seal__inner { width: 68%; height: 68%; border-radius: 50%; background: var(--green); color: #12120e; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'Noto Serif Armenian', serif; line-height: 1; }
.p4-seal__num { font-size: 24px; font-weight: 700; }
@media (min-width: 900px) { .p4-seal__num { font-size: 32px; } }
.p4-seal__label { font-size: 11px; letter-spacing: .1em; }

.p4-below { padding: 40px 24px 24px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .p4-below { padding: 64px 52px 30px; } }
.p4-below h2 { font-family: 'Noto Serif Armenian', serif; font-size: 34px; font-weight: 600; line-height: 1.15; }
@media (min-width: 900px) { .p4-below h2 { font-size: 40px; } }
.p4-below p { max-width: 390px; font-size: 16px; line-height: 1.6; color: var(--text-dim2); }

/* Reference design auto-advances a 3-panel track on desktop; we use one
   consistent, always-scrollable rail (with scroll-snap) at every width —
   simpler to keep correct, and it's the behaviour the reference itself
   specifies for mobile anyway. */
.p4-rail-viewport { overflow-x: auto; padding: 0 24px 40px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
@media (min-width: 900px) { .p4-rail-viewport { padding: 0 52px 56px; } }
.p4-rail { display: flex; width: max-content; gap: 16px; }
.p4-rail__panel { width: 220px; display: flex; flex-direction: column; gap: 12px; scroll-snap-align: start; flex-shrink: 0; color: inherit; text-decoration: none; }
@media (min-width: 900px) { .p4-rail__panel { width: 260px; } }
.p4-rail__img { height: 180px; background-size: cover; background-position: center; transition: filter .25s ease; }
@media (min-width: 900px) { .p4-rail__img { height: 260px; } }
.p4-rail__title { font-family: 'Noto Serif Armenian', serif; font-size: 22px; }
.p4-rail__meta { font-size: 15px; color: var(--text-dim2); }
.p4-rail__panel:hover .p4-rail__img { filter: brightness(1.08); }
.p4-rail__panel:hover .p4-rail__title { color: var(--green); }

.p4-ticker { border-top: 1px solid var(--line); overflow: hidden; padding: 26px 0; }
.p4-ticker:hover .p4-ticker__track { animation-play-state: paused; }
.p4-ticker__track { display: flex; gap: 56px; width: max-content; font-family: 'Noto Serif Armenian', serif; font-size: 22px; animation: tickerX 32s linear infinite; }
.p4-ticker__track b { color: var(--green); font-weight: 700; }

/* ---------- products page ---------- */
.p4-products { padding: 8px 24px 56px; display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .p4-products { grid-template-columns: 1fr 1fr; padding: 8px 52px 72px; gap: 24px; } }
@media (min-width: 1000px) { .p4-products { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1400px) { .p4-products { grid-template-columns: repeat(4, 1fr); } }
.p4-product { position: relative; border: 1px solid var(--line); display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: border-color .2s ease; }
.p4-product:hover, .p4-product:focus-within { border-color: var(--green); }
.p4-product__img { display: block; width: 100%; height: 200px; object-fit: cover; transition: filter .25s ease; }
.p4-product:hover .p4-product__img { filter: brightness(1.08); }
.p4-product__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.p4-product__title { font-family: 'Noto Serif Armenian', serif; font-size: 20px; line-height: 1.25; color: inherit; text-decoration: none; }
.p4-product__title::after { content: ""; position: absolute; inset: 0; } /* whole card clicks through to the product */
.p4-product__title:focus-visible { outline: none; }
.p4-ask { position: relative; z-index: 1; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--green); border-bottom: 1px dashed currentColor; }
.p4-ask::before { content: ""; width: 1em; height: 1em; flex: 0 0 auto; background: currentColor; -webkit-mask: var(--wa-glyph) center / contain no-repeat; mask: var(--wa-glyph) center / contain no-repeat; }
.p4-ask:hover { color: #25d366; }
.p4-product__price { color: var(--green); font-size: 18px; font-weight: 700; }
.p4-product__spec { font-size: 14px; color: var(--text-dim2); }
.p4-product__list { margin: 0; padding-left: 18px; font-size: 15px; color: var(--text-dim); line-height: 1.7; }

.p4-examples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-bottom: 32px; }
@media (min-width: 700px) { .p4-examples { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .p4-examples { grid-template-columns: repeat(6, 1fr); } }
.p4-examples img { width: 100%; height: 170px; object-fit: cover; display: block; }

/* ---------- about page ---------- */
.p4-about { padding: 8px 24px 56px; display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .p4-about { grid-template-columns: 1.1fr .9fr; padding: 8px 52px 72px; } }
.p4-about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.p4-about__stat { border: 1px solid var(--line); padding: 20px; }
.p4-about__stat b { display: block; font-family: 'Noto Serif Armenian', serif; font-size: 34px; color: var(--green); }
.p4-about__stat span { font-size: 14px; color: var(--text-dim2); }
.p4-about h2 { font-family: 'Noto Serif Armenian', serif; font-size: 26px; margin: 28px 0 14px; }
.p4-about ul { margin: 0; padding-left: 18px; font-size: 16px; line-height: 1.9; color: var(--text-dim); }
.p4-about__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.p4-about__photos img { width: 100%; height: 190px; object-fit: cover; }

/* ---------- gallery page ---------- */
.p4-gallery { padding: 8px 24px 56px; column-count: 1; column-gap: 14px; }
@media (min-width: 640px) { .p4-gallery { column-count: 2; padding: 8px 52px 72px; } }
@media (min-width: 1000px) { .p4-gallery { column-count: 3; } }
.p4-gallery img { width: 100%; display: block; margin-bottom: 14px; break-inside: avoid; }
.p4-gallery-heading { font-family: 'Noto Serif Armenian', serif; font-size: 28px; padding: 32px 24px 16px; }
@media (min-width: 640px) { .p4-gallery-heading { padding: 40px 52px 16px; } }
.p4-gallery-heading + .p4-gallery { padding-bottom: 8px; }

/* ---------- product catalog groups (products.html) ---------- */
.p4-catalog-group { padding: 32px 24px 0; }
@media (min-width: 900px) { .p4-catalog-group { padding: 40px 52px 0; } }
.p4-catalog-group h2 { font-family: 'Noto Serif Armenian', serif; font-size: 28px; margin-bottom: 16px; }
.p4-catalog-group .p4-products { padding: 0 0 8px; }
.p4-catalog-group__intro { max-width: 760px; font-size: 15px; line-height: 1.6; color: var(--text-dim); margin: -6px 0 20px; }
.p4-catalog-group__sub { font-family: 'Noto Serif Armenian', serif; font-size: 20px; margin: 24px 0 14px; }

.p4-filter-bar { position: sticky; top: 89px; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .p4-filter-bar { top: 93px; padding: 20px 52px; } }
@media (max-width: 699px) {
  .p4-filter-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 12px 24px; scroll-padding: 0 24px; -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
  .p4-filter-bar::-webkit-scrollbar { display: none; }
}
@media (max-width: 479px) { .p4-filter-bar { top: 69px; } } /* matches the compact phone header */
.p4-filter-chip { appearance: none; border: 1px solid var(--line); background: transparent; color: var(--text-dim); font: inherit; font-size: 13px; padding: 9px 16px; cursor: pointer; white-space: nowrap; }
.p4-filter-chip:hover { border-color: var(--green); color: var(--text); }
.p4-filter-chip.is-active { background: var(--green); border-color: var(--green); color: #12120e; font-weight: 700; }

/* ---------- product detail page ---------- */
.p4-pd { padding: 8px 24px 56px; display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .p4-pd { grid-template-columns: 1.1fr .9fr; padding: 8px 52px 72px; gap: 44px; } }
.p4-pd__main { display: block; width: 100%; height: 320px; padding: 0; border: 0; background-color: transparent; background-size: cover; background-position: center; cursor: zoom-in; }
.p4-pd__main:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media (min-width: 900px) { .p4-pd__main { height: 460px; } }
/* pigment bags / mold shots carry labels and dimensions — show the whole frame */
.p4-pd__main--contain { background-size: contain; background-repeat: no-repeat; }
.p4-pd__features { margin: 0 0 22px; padding-left: 18px; font-size: 15px; line-height: 1.8; color: var(--text-dim); }
.p4-pd__thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.p4-pd__thumb { width: 84px; height: 84px; flex: 0 0 84px; border: 2px solid transparent; background-size: cover; background-position: center; cursor: pointer; padding: 0; opacity: .6; }
.p4-pd__thumb:hover { opacity: 1; }
.p4-pd__thumb.is-active { opacity: 1; border-color: var(--green); }
.p4-pd__info h1 { font-family: 'Noto Serif Armenian', serif; font-size: clamp(28px, 4vw, 38px); margin: 10px 0 14px; line-height: 1.12; }
.p4-pd__price { font-size: 22px; font-weight: 700; color: var(--green); margin-bottom: 18px; }
.p4-pd__desc { font-size: 16px; line-height: 1.7; color: var(--text-dim); margin-bottom: 22px; }
.p4-pd__specs { border-collapse: collapse; width: 100%; margin-bottom: 28px; }
.p4-pd__specs tr { border-top: 1px solid var(--line); }
.p4-pd__specs tr:last-child { border-bottom: 1px solid var(--line); }
.p4-pd__specs th, .p4-pd__specs td { text-align: left; padding: 10px 0; font-size: 15px; font-weight: 400; }
.p4-pd__specs th { color: var(--text-dim2); width: 40%; }

/* ---------- portfolio page ---------- */
.p4-portfolio { padding: 8px 24px 56px; column-count: 1; column-gap: 14px; }
@media (min-width: 640px) { .p4-portfolio { column-count: 2; padding: 8px 52px 72px; } }
@media (min-width: 1000px) { .p4-portfolio { column-count: 3; } }
.p4-portfolio__item { margin: 0 0 14px; break-inside: avoid; }
.p4-portfolio__item img { width: 100%; display: block; }
.p4-portfolio__item figcaption { font-size: 14px; color: var(--text-dim2); padding: 8px 2px 0; }

/* ---------- services page ---------- */
/* Sticky showcase: on desktop the poster stays pinned on the left and swaps
   as each service on the right reaches mid-screen; phones get stacked cards. */
.p4-svc { padding: 24px 24px 56px; display: grid; gap: 20px; }
@media (min-width: 900px) { .p4-svc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; padding: 48px 52px 72px; } }

.p4-svc-stage { display: none; }
@media (min-width: 900px) {
  .p4-svc-stage { display: block; position: sticky; top: 124px; align-self: start; height: min(calc(100vh - 160px), 720px); overflow: hidden; border: 1px solid var(--line); }
  .p4-svc-stage__blur { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(34px) saturate(1.2) brightness(.55); transform: scale(1.1); }
  .p4-svc-stage__img { position: absolute; inset: 56px 32px 32px; width: calc(100% - 64px); height: calc(100% - 88px); object-fit: contain; filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)); clip-path: inset(100% 0 0 0); transition: clip-path .7s cubic-bezier(.7,0,.2,1); }
  .p4-svc-stage__img.is-on { clip-path: inset(0 0 0 0); }
  .p4-svc-bars { position: absolute; z-index: 2; top: 18px; left: 32px; right: 32px; display: flex; gap: 6px; }
  .p4-svc-bars button { flex: 1; height: 4px; padding: 0; border: 0; background: rgba(255,255,255,.28); cursor: pointer; position: relative; }
  .p4-svc-bars button::before { content: ""; position: absolute; inset: -10px 0; } /* bigger hit area */
  .p4-svc-bars button::after { content: ""; position: absolute; inset: 0; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
  .p4-svc-bars button.is-done::after, .p4-svc-bars button.is-on::after { transform: scaleX(1); }
  .p4-svc-bars button:hover { background: rgba(255,255,255,.5); }
}

.p4-svc-item { position: relative; overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 900px) {
  .p4-svc-item { border: 0; overflow: visible; min-height: 56vh; padding: 10vh 0 0 28px; border-left: 2px solid var(--line); opacity: .32; transform: translateX(10px); transition: opacity .45s ease, transform .45s ease, border-color .45s ease; }
  .p4-svc-item:first-child { padding-top: 12px; }
  .p4-svc-item.is-on { opacity: 1; transform: none; border-left-color: var(--green); }
}
.p4-svc-item__img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) { .p4-svc-item__img { display: none; } }
.p4-svc-item__body { position: relative; padding: 22px; }
@media (min-width: 900px) { .p4-svc-item__body { padding: 0; } }
.p4-svc-item__ghost { position: absolute; right: 12px; top: 10px; font-family: 'Noto Serif Armenian', serif; font-size: 120px; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(70,214,63,.22); pointer-events: none; user-select: none; }
@media (min-width: 900px) { .p4-svc-item__ghost { font-size: 220px; right: 0; top: -12px; } }
.p4-svc-item__n { font-size: 13px; letter-spacing: .3em; color: var(--green); }
.p4-svc-item h2 { font-family: 'Noto Serif Armenian', serif; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.12; margin: 10px 0 14px; max-width: 560px; }
.p4-svc-item p { max-width: 520px; font-size: 17px; line-height: 1.75; color: var(--text-dim); }
.p4-svc-links { display: flex; gap: 20px; margin-top: 16px; }
.p4-svc-links a { color: var(--green); text-decoration: none; font-weight: 700; }
.p4-svc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.p4-svc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; font-size: 14px; font-weight: 700; text-decoration: none; border: 1px solid var(--line); color: var(--text); transition: border-color .2s ease, color .2s ease, background .2s ease; }
.p4-svc-btn:hover { border-color: #25d366; color: #25d366; }
.p4-svc-btn--primary { background: var(--green); border-color: var(--green); color: #12120e; }
.p4-svc-btn--primary:hover { background: #5be454; border-color: #5be454; color: #12120e; }

@media (prefers-reduced-motion: reduce) {
  .p4-svc-stage__img, .p4-svc-item, .p4-svc-bars button::after { transition: none !important; }
}

/* ---------- home: shared section head ---------- */
.p4-home-section { padding: 48px 24px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .p4-home-section { padding: 64px 52px; } }
.p4-home-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.p4-home-section__head h2 { font-family: 'Noto Serif Armenian', serif; font-size: clamp(26px, 4vw, 36px); font-weight: 600; line-height: 1.15; }
.p4-home-section__head p { max-width: 480px; color: var(--text-dim2); font-size: 15px; line-height: 1.6; margin-top: 8px; }
.p4-home-section__more { color: var(--green); text-decoration: none; font-size: 15px; font-weight: 700; white-space: nowrap; }
.p4-home-section__more:hover { text-decoration: underline; }

/* ---------- home: product category showcase ---------- */
.p4-categories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
@media (max-width: 699px) { .p4-category:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 700px) { .p4-categories { grid-template-columns: repeat(4, 1fr); } }
.p4-category { position: relative; display: block; height: 190px; overflow: hidden; text-decoration: none; color: #fff; }
@media (min-width: 1100px) { .p4-category { height: 220px; } }
.p4-category img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.p4-category:hover img { transform: scale(1.07); }
.p4-category::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 80%); }
.p4-category__label { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; }
.p4-category__label strong { display: block; font-family: 'Noto Serif Armenian', serif; font-size: 16px; line-height: 1.25; margin-bottom: 4px; }
.p4-category__label span { font-size: 12px; color: #d8d8d2; }

/* ---------- home: four directions ---------- */
.p4-directions { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 700px) { .p4-directions { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .p4-directions { grid-template-columns: repeat(4, 1fr); } }
.p4-direction { border-left: 2px solid var(--line); padding-left: 18px; }
.p4-direction__num { display: block; font-family: 'Noto Serif Armenian', serif; color: var(--green); font-size: 28px; margin-bottom: 10px; }
.p4-direction h3 { font-size: 17px; margin-bottom: 8px; }
.p4-direction p { font-size: 14px; line-height: 1.6; color: var(--text-dim2); }

/* ---------- home: portfolio / gallery preview strips ---------- */
.p4-home-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .p4-home-strip { grid-template-columns: repeat(4, 1fr); } }
.p4-home-strip a { display: block; text-decoration: none; color: inherit; }
.p4-home-strip img { width: 100%; height: 170px; object-fit: cover; display: block; }
.p4-home-strip figcaption { font-size: 13px; color: var(--text-dim2); padding: 8px 2px 0; }

/* ---------- home: services preview ---------- */
.p4-home-services { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .p4-home-services { grid-template-columns: repeat(3, 1fr); } }
.p4-home-service { display: block; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .2s ease; }
.p4-home-service:hover { border-color: var(--green); }
.p4-home-service img { width: 100%; height: 170px; object-fit: cover; display: block; }
.p4-home-service__body { padding: 18px; }
.p4-home-service__body h3 { font-family: 'Noto Serif Armenian', serif; font-size: 18px; margin-bottom: 6px; }
.p4-home-service__body p { font-size: 14px; color: var(--text-dim2); line-height: 1.6; }

/* ---------- home: about preview ---------- */
.p4-home-about { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 900px) { .p4-home-about { grid-template-columns: 1fr 1fr; } }
.p4-home-about img { width: 100%; height: 280px; object-fit: cover; display: block; }
.p4-home-about p { font-size: 16px; line-height: 1.7; color: var(--text-dim); margin-bottom: 20px; }
.p4-home-about__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 24px; }

/* ---------- photo viewer (js/lightbox.js) ---------- */
[data-lightbox] img { cursor: zoom-in; }
[data-lightbox] img:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
html.p4-lb-open { overflow: hidden; }
.p4-lb { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(10,10,8,.97); }
.p4-lb[hidden] { display: none; }
.p4-lb__figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 100%; padding: 64px 16px 72px; }
@media (min-width: 760px) { .p4-lb__figure { padding: 56px 88px 64px; } }
.p4-lb__img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.p4-lb__cap { color: #d8d5c8; font-size: 14px; text-align: center; max-width: 720px; }
.p4-lb__close, .p4-lb__nav { position: absolute; border: 1px solid rgba(255,255,255,.25); background: rgba(20,20,16,.6); color: #fff; font: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .2s ease, color .2s ease; }
.p4-lb__close:hover, .p4-lb__nav:hover { border-color: var(--green); color: var(--green); }
.p4-lb__close:focus-visible, .p4-lb__nav:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.p4-lb__close { top: 14px; right: 14px; width: 44px; height: 44px; font-size: 18px; }
.p4-lb__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 64px; font-size: 34px; line-height: 1; }
.p4-lb__nav[hidden] { display: none; }
.p4-lb__nav--prev { left: 12px; }
.p4-lb__nav--next { right: 12px; }
@media (max-width: 759px) { .p4-lb__nav { top: auto; bottom: 14px; transform: none; width: 52px; height: 44px; font-size: 28px; } }
.p4-lb__count { position: absolute; top: 24px; left: 20px; color: #d8d5c8; font-size: 13px; letter-spacing: .14em; }

/* ---------- product page: breadcrumbs, left-aligned actions, pinned photos ---------- */
.p4-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 20px 24px 12px; font-size: 13px; color: var(--text-dim2); }
@media (min-width: 900px) { .p4-crumbs { padding: 24px 52px 16px; } }
.p4-crumbs a { color: var(--text-dim); text-decoration: none; }
.p4-crumbs a:hover { color: var(--green); }
.p4-crumbs [aria-current] { color: var(--text); }
.p4-pd__info .p4-ctas { justify-content: flex-start; }
@media (min-width: 900px) { .p4-pd__gallery { position: sticky; top: 124px; align-self: start; } }

/* product counts on the catalog filter */
.p4-filter-chip__n { margin-left: 4px; opacity: .6; font-weight: 400; }
.p4-contact-link { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--line); }
.p4-contact-link:hover { color: var(--green); border-color: var(--green); }
