/* Install Engineering redesign: inner pages (catalogue, products, projects, company pages, calculators).
   Same two voices as the homepage (site.css):
   - Install: navy page heroes with the drawing grid, project sheets, data tables, the tri-colour signature.
   - Samsung Climate Solutions: grey and white product surfaces, round cards, pill filters and buttons in Samsung blue. */

[data-sys="ac"] { --sys: var(--cool); }
[data-sys="heat"] { --sys: var(--heat); }
[data-sys="vent"] { --sys: var(--air); }
[data-sys="water"] { --sys: #2a9fd6; }

.sec--tight { padding-block: clamp(48px, 6vw, 88px); }
.h3-title { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); font-stretch: 80%; font-weight: 600; line-height: 1.05; letter-spacing: -.015em; color: var(--navy); text-wrap: balance; }
.projects .h3-title { color: var(--on-dark); }
.btn__icon { width: 18px; height: 18px; flex: none; }

/* ---------- breadcrumb ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: .875rem; color: var(--on-dark-2); }
.crumbs li { display: flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 12px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .55; }
.crumbs a { padding: 6px 0; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: #fff; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42ch; }
.crumbs--light { color: var(--steel); }
.crumbs--light a:hover { color: var(--black); }
.crumbs--light [aria-current] { color: var(--black); }

/* ---------- page hero (Install: navy, drawing grid, glow) ---------- */
.phero { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark);
  padding: calc(var(--head-h) + clamp(20px, 3vw, 40px)) 0 clamp(56px, 7vw, 104px);
  background:
    radial-gradient(55% 75% at 92% 0%, rgba(61, 139, 255, .2), transparent 62%),
    radial-gradient(45% 60% at 0% 100%, rgba(20, 40, 160, .32), transparent 62%),
    var(--night); }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 70% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 85% at 70% 30%, #000 20%, transparent 78%); }
.phero__media { position: absolute; inset: 0 0 0 auto; z-index: -2; width: min(60%, 980px); }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--night) 0%, rgba(5, 11, 22, .82) 26%, rgba(5, 11, 22, .38) 62%, rgba(5, 11, 22, .5) 100%),
  linear-gradient(0deg, rgba(5, 11, 22, .9) 0%, rgba(5, 11, 22, 0) 45%); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px clamp(40px, 6vw, 110px); align-items: end; margin-top: clamp(40px, 6vw, 96px); }
.phero__main { min-width: 0; }
.phero__kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 15px 7px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(5, 11, 22, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .875rem; font-weight: 600; letter-spacing: .02em; color: #fff; }
.phero__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sys, var(--electric-soft)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sys, var(--electric-soft)) 24%, transparent), 0 0 12px var(--sys, var(--electric-soft)); }
.phero__title { max-width: 15ch; font-size: clamp(2.75rem, 1.4rem + 5vw, 6.25rem); font-stretch: 76%; font-weight: 600; line-height: .92; letter-spacing: -.025em; color: #fff; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.phero__lead { max-width: 56ch; margin-top: clamp(18px, 2vw, 28px); font-size: clamp(1.0625rem, .98rem + .4vw, 1.25rem); line-height: 1.55; color: rgba(255, 255, 255, .84); text-wrap: pretty; }
.phero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.phero__aside { min-width: 0; }
.phero--image .phero__aside > .phero__stats { padding: 6px 24px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; background: rgba(5, 11, 22, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.phero--image .phero__aside > .phero__stats::before { left: 24px; }
.phero--image .phero__stats > div:last-child { border-bottom: 0; }
.phero__stats { position: relative; display: grid; border-top: 1px solid rgba(255, 255, 255, .18); }
.phero__stats::before { content: ""; position: absolute; left: 0; top: -1px; width: 96px; height: 2px; background: var(--tri); }
.phero__stats > div { display: grid; grid-template-columns: minmax(5.5ch, auto) 1fr; gap: 4px 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.phero__stats dd { order: -1; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); font-stretch: 80%; font-weight: 600; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.phero__stats dt { font-size: .9375rem; line-height: 1.4; color: var(--on-dark-2); }
.phero__stats--facts > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
.phero__stats--facts dd { order: 0; font-size: 1.1875rem; font-stretch: 90%; white-space: normal; }
.phero__stats--facts dt { font-size: .8125rem; }
.partner-tag--light { color: #fff; }
.partner-tag--light .partner-tag__role { background: rgba(255, 255, 255, .14); color: #fff; }
.partner-tag--light .partner-tag__role svg { color: #fff; }
.phero .partner-tag--light .sam-mark { width: 128px; height: 20px; }
.phero .partner-tag--light { padding: 22px 24px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px; background: rgba(5, 11, 22, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.logo-card { display: inline-grid; padding: 26px 30px; border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .8); }
.logo-card img { width: 210px; height: auto; }

/* ---------- Samsung page hero (Samsung voice) ---------- */
.shero { background: var(--grey); padding: calc(var(--head-h) + 24px) 0 clamp(56px, 6vw, 96px); }
.shero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px clamp(40px, 5vw, 96px); align-items: center; margin-top: clamp(28px, 4vw, 56px); }
.shero__main { display: grid; gap: 26px; justify-items: start; }
.shero .partner-tag .sam-mark { width: 124px; height: 19px; }
.shero__title { max-width: 14ch; font-size: clamp(2.5rem, 1.3rem + 4.2vw, 5.25rem); font-stretch: 80%; font-weight: 700; line-height: .98; letter-spacing: -.022em; color: var(--black); text-wrap: balance; }
.shero__lead { max-width: 52ch; font-size: clamp(1.0625rem, .98rem + .4vw, 1.25rem); line-height: 1.55; color: var(--steel); }
.shero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.shero__media { overflow: hidden; aspect-ratio: 5 / 4; border-radius: var(--r-card); background: #fff; }
.shero__media img { width: 100%; height: 100%; object-fit: cover; }
.shero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 5vw, 72px); }
.shero__facts > div { display: grid; gap: 6px; padding: 22px 24px; border-radius: 20px; background: #fff; }
.shero__facts dt { font-size: 1.375rem; font-stretch: 86%; font-weight: 700; color: var(--black); }
.shero__facts dd { color: var(--steel); }
.view-samsung .samsung, .catalog--white { background: #fff; }
.view-samsung .samsung .prod { border: 1px solid var(--grey-2); }

/* ---------- catalogue (Samsung voice: grey surface, white cards, pill filters) ---------- */
.catalog, .ctiles-sec { background: var(--grey); }
.phero + .sec { padding-top: clamp(56px, 7vw, 112px); }
.phero + .catalog, .phero + .projects--page { padding-top: clamp(48px, 6vw, 88px); }
.ctiles-sec { padding-bottom: 0; }
.ctiles-sec + .catalog { padding-top: clamp(40px, 5vw, 64px); }
.ctiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ctile { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--r-card); background: #fff; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.ctile:hover, .ctile:focus-within { box-shadow: 0 30px 60px -36px rgba(12, 30, 60, .35); transform: translateY(-3px); }
.ctile__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--grey-2); }
.ctile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ctile:hover .ctile__media img { transform: scale(1.04); }
.ctile__body { display: grid; align-content: start; gap: 8px; padding: 20px 22px 22px; border-top: 3px solid var(--sys); }
.ctile__name { display: flex; align-items: center; gap: 12px; font-size: 1.375rem; font-stretch: 84%; font-weight: 600; line-height: 1.1; color: var(--black); }
.ctile__name a { text-decoration: none; }
.ctile__name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.ctile__body p { font-size: .9375rem; line-height: 1.5; color: var(--steel); }
.ctile__body .ctile__n { margin-top: 4px; font-weight: 600; color: var(--sam-blue); }

.samstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 16px; padding: 18px 20px 18px 26px; border: 1px solid var(--grey-2); border-radius: 20px; background: #fff; }
.samstrip__text { flex: 1 1 320px; font-weight: 500; color: var(--ink); }
.catalog .samstrip { margin: 0 0 28px; }

.cbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1.5px solid #cfd6df; border-radius: 999px; background: #fff; color: var(--black); font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; touch-action: manipulation; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.chip:hover { border-color: var(--black); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { border-color: var(--black); background: var(--black); color: #fff; }
.chip[data-sys]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sys); }
.chip--samsung[aria-pressed="true"] { border-color: var(--sam-blue); background: var(--sam-blue); }
.chip__n { font-size: .8125rem; font-weight: 600; opacity: .6; font-variant-numeric: tabular-nums; }
.chips--dark .chip { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .04); color: #fff; }
.chips--dark .chip:hover { border-color: #fff; }
.chips--dark .chip[aria-pressed="true"], .chips--dark .chip[aria-current="page"] { border-color: #fff; background: #fff; color: var(--black); }
.csearch { position: relative; flex: 0 1 360px; display: block; }
.csearch svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--steel); pointer-events: none; }
.csearch input { width: 100%; min-height: 48px; padding: 0 18px 0 48px; border: 1.5px solid #cfd6df; border-radius: 999px; background: #fff; color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.csearch input:hover { border-color: var(--steel); }
.csearch input:focus-visible { outline: none; border-color: var(--sam-blue); box-shadow: 0 0 0 4px rgba(20, 40, 160, .16); }
.cbar--search { margin: 20px 0 22px; }
.ccount { font-size: .9375rem; font-weight: 600; color: var(--steel); }
.ccount--dark { margin: 14px 0 22px; color: var(--on-dark-2); }

.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.pcard { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 20px; background: #fff; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.pcard:hover, .pcard:focus-within { box-shadow: 0 26px 50px -32px rgba(12, 30, 60, .4); transform: translateY(-3px); }
.pcard[hidden] { display: none; }
.pcard__media { display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 3; padding: 16px 20px; background: #fff; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.045); }
.pcard__none { width: 42%; height: auto; color: var(--steel); opacity: .22; }
.pcard__body { display: grid; align-content: start; gap: 6px; padding: 14px 20px 22px; border-top: 1px solid var(--grey); }
.pcard__brand { display: inline-flex; align-items: center; gap: 8px; min-height: 22px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--steel); }
.pcard__brand--samsung { color: var(--black); }
.pcard__brand--samsung .sam-mark { width: 74px; height: 11px; }
.pcard__brand--azuri { color: #0b6db0; letter-spacing: .14em; text-transform: uppercase; }
.pcard__brand--sys::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sys); }
.pcard__name { font-size: 1.0625rem; font-weight: 600; line-height: 1.28; color: var(--black); text-wrap: pretty; overflow-wrap: anywhere; }
.pcard__name a { text-decoration: none; }
.pcard__name a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.pcard__name a:hover { text-decoration: underline; }
.pcard__type { font-size: .875rem; color: var(--steel); }
.pcard__go { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sam-blue); color: #fff; opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease); pointer-events: none; }
.pcard__go svg { width: 18px; height: 18px; }
.pcard:hover .pcard__go, .pcard:focus-within .pcard__go { opacity: 1; transform: none; }
.cempty { display: grid; justify-items: start; gap: 16px; padding: 40px 0 8px; color: var(--steel); font-size: 1.0625rem; }
.cempty[hidden] { display: none; }
.catalog--related .related-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }

/* ---------- product page ---------- */
.product { padding: calc(var(--head-h) + 20px) 0 clamp(56px, 7vw, 104px); background: #fff; }
.product__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(40px, 5vw, 88px); align-items: start; margin-top: 24px; }
.pgal { position: sticky; top: calc(var(--head-h) + 24px); display: grid; gap: 12px; min-width: 0; }
.pgal__main { display: grid; place-items: center; overflow: hidden; aspect-ratio: 5 / 4; max-height: 620px; padding: clamp(20px, 4vw, 56px); border: 1px solid var(--grey-2); border-radius: var(--r-card); background: #fff; }
.pgal__main img { width: 100%; height: 100%; object-fit: contain; }
.pgal__main--none svg { width: 36%; color: var(--steel); opacity: .2; }
.pgal__thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.pgal__thumbs button { display: grid; place-items: center; overflow: hidden; width: 78px; aspect-ratio: 1 / 1; padding: 6px; border: 1.5px solid var(--grey-2); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s var(--ease); }
.pgal__thumbs button:hover { border-color: var(--steel); }
.pgal__thumbs button[aria-pressed="true"] { border-color: var(--black); }
.pgal__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pinfo { display: grid; align-content: start; gap: 18px; min-width: 0; }
.pinfo .partner-tag .partner-tag__role { background: var(--grey); }
.pinfo__brand { display: flex; align-items: center; gap: 14px; font-size: .875rem; font-weight: 600; color: var(--steel); }
.pinfo__brand img { width: 96px; height: auto; }
.pinfo__type { font-size: .9375rem; font-weight: 600; color: var(--steel); }
.pinfo__title { font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.75rem); font-stretch: 80%; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: var(--black); text-wrap: balance; overflow-wrap: anywhere; }
.pinfo__model { font-size: .9375rem; color: var(--steel); }
.pinfo__model span { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.pinfo__lead { max-width: 58ch; font-size: 1.0625rem; color: var(--steel); text-wrap: pretty; }
.pinfo__specs { display: grid; gap: 10px; padding: 18px 0; border-block: 1px solid var(--grey-2); }
.pinfo__specs li, .pinfo__promise li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; line-height: 1.45; }
.pinfo__specs svg, .pinfo__promise svg { width: 18px; height: 18px; margin-top: 2px; color: var(--sam-blue); }
.pinfo__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.pinfo__promise { display: grid; gap: 8px; padding: 18px 20px; border-radius: 16px; background: var(--grey); font-size: .9375rem; }
.product-more { padding-top: 0; background: #fff; }
.product-more__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(40px, 5vw, 88px); align-items: start; padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--grey-2); }
.product-more__in--one { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.product-aside { position: sticky; }
.product-more .h3-title { margin-bottom: 22px; }
.spec-table { width: 100%; border-top: 2px solid var(--navy); font-variant-numeric: tabular-nums; }
.spec-table th, .spec-table td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 52%; padding-right: 16px; font-weight: 500; color: var(--steel); }
.spec-table td { font-weight: 600; color: var(--ink); }
.note { display: grid; gap: 6px; padding: 20px 22px; border-radius: 16px; background: var(--grey); }
.note a { color: var(--sam-blue); font-weight: 600; }

/* ---------- running text ---------- */
.prose { max-width: 68ch; color: #2a3445; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.375rem, 1.15rem + .7vw, 1.75rem); font-stretch: 86%; font-weight: 600; line-height: 1.15; color: var(--navy); }
.prose h3, .prose h4 { margin-top: 1.5em; font-size: 1.1875rem; font-weight: 600; line-height: 1.25; color: var(--navy); }
.prose > :first-child { margin-top: 0; }
.prose ul { display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sam-blue); }
.prose ol { padding-left: 1.4em; list-style: decimal; }
.prose ol li + li { margin-top: 6px; }
.prose a { color: var(--sam-blue); font-weight: 500; }
.prose strong, .prose b { font-weight: 600; color: var(--black); }
.prose em { color: var(--steel); }
.prose table { width: 100%; font-size: .9375rem; }
.prose th, .prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.page-body .prose { margin-inline: auto; }
.prose--legal { max-width: 72ch; }
.prose--legal section + section { margin-top: 2.2em; padding-top: 2.2em; border-top: 1px solid var(--line); }
.prose--legal section > * + * { margin-top: .9em; }
.prose--legal h2 { margin-top: 0; }
.prose--legal .legal__date { margin-top: 2.4em; font-size: .9375rem; color: var(--steel); }

/* ---------- projects ---------- */
.projects--page .pbar, .projects--more .pbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.projects--more .pbar { margin-bottom: clamp(28px, 4vw, 48px); }
.sheet[hidden] { display: none; }
.project-page .phero { padding-bottom: clamp(104px, 12vw, 176px); }
.project-cover { position: relative; z-index: 1; margin-top: calc(-1 * clamp(72px, 9vw, 136px)); }
.project-cover a { display: block; overflow: hidden; aspect-ratio: 16 / 8; border-radius: var(--r-card); background: var(--night-2); box-shadow: 0 50px 90px -60px rgba(5, 11, 22, .8); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.project-cover a:hover img { transform: scale(1.02); }
.project-body__in { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px clamp(40px, 6vw, 110px); align-items: start; }
.project-aside { position: sticky; top: calc(var(--head-h) + 24px); display: grid; justify-items: start; gap: 14px; padding: 26px; border-radius: 20px; background: var(--grey); }
.project-aside p { color: var(--steel); }
.project-aside__phone { font-size: 1.125rem; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.project-aside__phone:hover { text-decoration: underline; }
.gallery-sec { padding-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.gallery a { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-media); background: var(--grey); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }

/* photo viewer */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(3, 7, 15, .96); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(3, 7, 15, .9); }
.lightbox img { max-width: min(1600px, calc(100vw - 160px)); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 12px; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 50%; background: rgba(5, 11, 22, .6); color: #fff; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.lightbox__btn:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__btn--close { top: 20px; right: 20px; }
.lightbox__btn--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: .9375rem; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.lightbox :focus-visible { outline-color: var(--electric-soft); }

/* ---------- about ---------- */
.about-page__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(40px, 6vw, 110px); align-items: start; }
.about-page__text { display: grid; gap: 28px; }
.about-page .prose { max-width: 64ch; }
.figures--six { position: sticky; top: calc(var(--head-h) + 24px); }
.figures--six b { font-size: clamp(2rem, 1.5rem + 1.3vw, 2.875rem); white-space: nowrap; }
.iso { display: flex; flex-wrap: wrap; gap: 10px; }
.iso li { display: grid; gap: 2px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px; }
.iso b { font-weight: 700; color: var(--navy); }
.iso span { font-size: .875rem; color: var(--steel); }

/* ---------- blog ---------- */
.bcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.bcard { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--r-card); background: var(--grey); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.bcard:hover, .bcard:focus-within { box-shadow: 0 30px 60px -38px rgba(12, 30, 60, .4); transform: translateY(-3px); }
.bcard:first-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: none; }
.bcard__media { overflow: hidden; aspect-ratio: 16 / 9; background: var(--grey-2); }
.bcard:first-child .bcard__media { position: relative; aspect-ratio: auto; min-height: 400px; }
.bcard:first-child .bcard__media img { position: absolute; inset: 0; }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bcard:hover .bcard__media img { transform: scale(1.03); }
.bcard__body { display: grid; align-content: start; gap: 12px; padding: clamp(22px, 2.8vw, 40px); }
.bcard:first-child .bcard__body { align-content: center; }
.bcard__kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; color: var(--sam-blue); text-transform: uppercase; }
.bcard__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); font-stretch: 84%; font-weight: 600; line-height: 1.08; color: var(--black); text-wrap: balance; }
.bcard__title a { text-decoration: none; }
.bcard__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.bcard__lead { color: var(--steel); }
.bcard__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 600; color: var(--black); }
.bcard__more svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.bcard:hover .bcard__more svg { transform: translateX(4px); }

/* ---------- call to action (Samsung blue) ---------- */
.cta-wrap { padding-block: clamp(56px, 7vw, 104px); background: #fff; }
.cta-band { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 48px; padding: clamp(30px, 5vw, 72px); border-radius: 32px; color: #fff;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(80, 110, 255, .55) 0%, transparent 58%),
    linear-gradient(135deg, #1428a0 0%, #0f1f80 58%, #0a1560 100%); box-shadow: 0 40px 80px -50px rgba(20, 40, 160, .8); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 90% 10%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 90% at 90% 10%, #000 10%, transparent 70%); }
.cta-band__text { display: grid; justify-items: start; gap: 18px; }
.cta-band__title { max-width: 18ch; font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem); font-stretch: 80%; font-weight: 600; line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.cta-band__text > p:last-child { max-width: 54ch; font-size: 1.0625rem; color: rgba(255, 255, 255, .84); }
.cta-band__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band :focus-visible { outline-color: #fff; }

/* ---------- quote page ---------- */
.contact--page { padding-top: calc(var(--head-h) + clamp(32px, 4vw, 64px)); }
.contact--page h1.h2 { font-size: clamp(2.5rem, 1.4rem + 4vw, 5rem); }

/* ---------- calculators ---------- */
.calc-sec { background: var(--grey); }
.calc-tabs { margin-bottom: 24px; }
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); overflow: hidden; border-radius: 28px; background: #fff; box-shadow: 0 40px 80px -60px rgba(12, 30, 60, .5); }
.calc[hidden] { display: none; }
.calc__controls { display: grid; align-content: start; gap: 30px; padding: clamp(24px, 4vw, 52px); }
.calc__field { display: grid; gap: 12px; }
.calc__label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-weight: 600; color: var(--black); }
.calc__label output { color: var(--sam-blue); font-variant-numeric: tabular-nums; }
.calc input[type="range"] { --fill: 50%; width: 100%; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(var(--sam-blue), var(--sam-blue)) 0 / var(--fill) 100% no-repeat, var(--grey-2); }
.calc input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(var(--sam-blue), var(--sam-blue)) 0 / var(--fill) 100% no-repeat, var(--grey-2); }
.calc input[type="range"]::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -10px; border: 2px solid var(--sam-blue); border-radius: 50%; background: #fff; box-shadow: 0 4px 12px -4px rgba(20, 40, 160, .6); -webkit-appearance: none; appearance: none; }
.calc input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 2px solid var(--sam-blue); border-radius: 50%; background: #fff; box-shadow: 0 4px 12px -4px rgba(20, 40, 160, .6); }
.calc input[type="range"]:focus-visible { outline: none; }
.calc input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(20, 40, 160, .22); }
.calc input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgba(20, 40, 160, .22); }
.calc__hint { font-size: .875rem; line-height: 1.45; color: var(--steel); }
.calc__hint[hidden] { display: none; }
.calc__scale { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--steel); }
.calc .chip[aria-pressed="true"], .calc-tabs .chip[aria-pressed="true"] { border-color: var(--sam-blue); background: var(--sam-blue); }
.calc__result { position: relative; isolation: isolate; display: grid; align-content: start; gap: 14px; padding: clamp(24px, 4vw, 52px); color: #fff;
  background: radial-gradient(70% 60% at 100% 0%, rgba(61, 139, 255, .2), transparent 62%), var(--night-2); }
.calc__result::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 40px 40px; }
.calc__k { font-size: .875rem; font-weight: 600; color: var(--on-dark-2); }
.calc__v { display: flex; align-items: baseline; gap: 10px; font-size: clamp(3.5rem, 2.4rem + 4vw, 6rem); font-stretch: 76%; font-weight: 600; line-height: .9; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc__v span:not([data-s-save]):not([data-c-kw]):not([data-v-flow]) { font-size: .42em; color: var(--on-dark-2); }
/* One markup for both languages: 871 € in Albanian, €871 in English. */
html[lang^="en"] .calc__v .calc__cur { order: -1; }
.calc-home .sec-head { margin-bottom: clamp(32px, 4vw, 56px); }
.calc__note { color: var(--on-dark-2); }
.calc__rows { display: grid; border-top: 1px solid var(--rule-dark); }
.calc__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule-dark); }
.calc__rows dt { color: var(--on-dark-2); }
.calc__rows dd { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__rec { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: rgba(255, 255, 255, .05); }
.calc__rec-name { font-size: 1.375rem; font-stretch: 86%; font-weight: 600; }
.calc__rec p:last-child { color: var(--on-dark-2); }
.calc__result .btn { justify-self: start; margin-top: 6px; }
.calc__fine { font-size: .8125rem; color: var(--on-dark-2); }
.calc__fine a { color: #fff; }
.calc__result :focus-visible { outline-color: var(--electric-soft); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pgrid--four .pcard:nth-child(4) { display: none; }
}
@media (max-width: 1023px) {
  .phero__grid, .product__grid, .product-more__in, .product-more__in--one, .project-body__in, .about-page__in, .calc, .cta-band, .shero__grid { grid-template-columns: minmax(0, 1fr); }
  .phero__grid { align-items: start; }
  .phero__aside { max-width: 560px; }
  .ctiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgal, .project-aside, .figures--six { position: static; }
  .pgal__main { max-height: 560px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bcards { grid-template-columns: minmax(0, 1fr); }
  .bcard:first-child { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .bcard:first-child .bcard__media { min-height: 0; aspect-ratio: 16 / 9; }
  .bcard:first-child .bcard__media img { position: static; }
  .cta-band { align-items: start; }
  .shero__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) {
  .phero__media { width: 100%; opacity: .5; }
  .phero__media::after { background: linear-gradient(0deg, var(--night) 0%, rgba(5, 11, 22, .6) 60%, rgba(5, 11, 22, .4) 100%); }
  .phero__grid { margin-top: 36px; }
  .crumbs [aria-current] { max-width: 24ch; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pgrid--four .pcard:nth-child(4) { display: grid; }
  .pcard__media { padding: 12px; }
  .pcard__body { padding: 12px 14px 16px; }
  .pcard__name { font-size: .9688rem; }
  .pcard__go { display: none; }
  .cbar { align-items: stretch; }
  .csearch { flex: 1 1 100%; order: -1; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%); }
  .chips::-webkit-scrollbar { display: none; }
  .calc .chips, .calc-tabs { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; -webkit-mask-image: none; mask-image: none; }
  .ctiles { grid-template-columns: minmax(0, 1fr); }
  .ctile { grid-template-columns: 40% 1fr; grid-template-rows: none; }
  .ctile__media { aspect-ratio: auto; }
  .ctile__body { border-top: 0; border-left: 3px solid var(--sys); padding: 16px 16px 18px; }
  .ctile__name { font-size: 1.25rem; }
  .shero__facts { grid-template-columns: minmax(0, 1fr); }
  .project-cover a { aspect-ratio: 4 / 3; }
  .lightbox img { max-width: calc(100vw - 24px); max-height: calc(100vh - 160px); }
  .lightbox__btn--prev, .lightbox__btn--next { top: auto; bottom: 14px; transform: none; }
  .lightbox__count { bottom: 30px; }
  .cta-band { border-radius: 24px; }
  .cta-band__ctas .btn { flex: 1 1 100%; }
  .samstrip { padding: 18px; }
}
@media (max-width: 420px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .spec-table th { width: 46%; }
}
