/*
 * UCG Poland premium layer (poland.fiteclub.net).
 * Loaded after main.css. UCG navy #071C48 + orange #F97104, with a little gold.
 */

/* Numbered chapters: "01 — Sectors" ------------------------------------------ */
.chapter { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(28px, 3vw, 44px); font-family: "Manrope", sans-serif; font-size: .75rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); }
.chapter__n { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; letter-spacing: 0; color: var(--gold-deep); font-feature-settings: "lnum"; }
.chapter__rule { width: clamp(40px, 6vw, 88px); height: 1px; background: currentColor; opacity: .6; }
.chapter--light, .theme-dark .chapter { color: var(--gold-light); }
.theme-dark .chapter__n { color: var(--gold); }

/* Thin gold frame inset on featured imagery ---------------------------------- */
.gold-frame { position: relative; }
.gold-frame::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(226, 201, 142, .55); pointer-events: none; z-index: 2; transition: inset .9s var(--ease), border-color .9s var(--ease); }
a:hover .gold-frame::after, a:focus-visible .gold-frame::after { inset: 18px; border-color: rgba(226, 201, 142, .9); }

/* Film grain on dark bands (no images, pure CSS noise) ------------------------ */
.grain { isolation: isolate; }
.grain::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .05; mix-blend-mode: screen;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.grain > .container { position: relative; z-index: 1; }

/* Cinemagraph ----------------------------------------------------------------- */
.cine { position: relative; width: 100%; height: 100%; overflow: hidden; }
.cine__pic, .cine__pic img { width: 100%; height: 100%; object-fit: cover; }
.cine__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease); }
.cine__video.is-playing { opacity: 1; }
.promise__media .cine { aspect-ratio: 4 / 5; }

/* Hero ---------------------------------------------------------------------- */
.hero--commercial .hero__title { font-size: clamp(2.75rem, 1.4rem + 4.6vw, 6.25rem); line-height: 1; max-width: 15ch; }
.hero--commercial .hero__title .is-accent { color: var(--gold-light); }
.hero--commercial .hero__shade { background: linear-gradient(0deg, rgba(4, 18, 47, .92) 0%, rgba(4, 18, 47, .45) 45%, rgba(4, 18, 47, .25) 100%), linear-gradient(90deg, rgba(4, 18, 47, .7) 0%, rgba(4, 18, 47, 0) 65%); }
.hero__cities { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: clamp(36px, 5vh, 56px); font-size: .6875rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); }
.hero__cities li:not(:last-child)::after { content: ""; display: inline-block; width: 18px; height: 1px; margin: 0 12px; vertical-align: middle; background: rgba(226, 201, 142, .5); }
.hero__pause { position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(20px, 3vh, 32px); width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(245, 242, 237, .4); display: grid; place-items: center; color: var(--paper); opacity: .7; transition: opacity .4s var(--ease), border-color .4s var(--ease); }
.hero__pause:hover, .hero__pause:focus-visible { opacity: 1; border-color: var(--gold-light); }
.hero__pause span { width: 9px; height: 10px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.hero__pause[aria-pressed="true"] span { width: 0; height: 0; border: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
@media (max-width: 560px) { .hero__cities { display: none; } }

/* Brand mark: gold "POLAND" ----------------------------------------------------- */
.brand__region { color: var(--gold-light); border-left-color: rgba(226, 201, 142, .45); }

/* Sectors --------------------------------------------------------------------- */
.sectors__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sectors__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sectors__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } .sector:nth-child(even) { transform: translateY(64px); } .sectors__grid { padding-bottom: 64px; } }
.sector__link { position: relative; display: block; aspect-ratio: 3 / 4.4; overflow: hidden; color: var(--paper); background: var(--ink); }
.sector__media, .sector__pic, .sector__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sector__pic img { transition: transform 1.8s var(--ease); }
.sector__link::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(4, 18, 47, .9) 0%, rgba(4, 18, 47, .2) 55%, rgba(4, 18, 47, 0) 100%); transition: background .9s var(--ease); }
.sector__body { position: absolute; inset: auto 0 0; z-index: 3; padding: clamp(24px, 2.2vw, 36px); display: grid; gap: 10px; }
.sector__num { font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-light); }
.sector__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.35rem); line-height: 1.05; }
.sector__text { font-size: .9375rem; color: rgba(245, 242, 237, .84); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .9s var(--ease), opacity .8s var(--ease); }
.sector__place { font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); }
.sector__link:hover .sector__pic img, .sector__link:focus-visible .sector__pic img { transform: scale(1.07); }
.sector__link:hover::before, .sector__link:focus-visible::before { background: linear-gradient(0deg, rgba(4, 18, 47, .94) 0%, rgba(4, 18, 47, .55) 65%, rgba(4, 18, 47, .25) 100%); }
.sector__link:hover .sector__text, .sector__link:focus-visible .sector__text { max-height: 140px; opacity: 1; }
@media (hover: none) { .sector__text { max-height: 140px; opacity: 1; } }

/* Services: three columns, residential quieter ---------------------------------- */
@media (min-width: 1100px) {
	.services__grid--3 { grid-template-columns: repeat(3, 1fr); }
	.services__grid--3 .svc:nth-child(4n + 2), .services__grid--3 .svc:nth-child(4n + 4) { transform: none; }
	.services__grid--3 .svc:nth-child(3n + 2) { transform: translateY(56px); }
}
.svc--minor .svc__link { filter: saturate(.75); }

/* Built for Poland -------------------------------------------------------------- */
.built__grid { display: grid; gap: clamp(56px, 7vw, 120px); }
@media (min-width: 1000px) { .built__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } .built__intro { position: sticky; top: calc(var(--header-h-sm) + 40px); } }
.built__media { aspect-ratio: 3 / 2; overflow: hidden; max-width: 560px; }
.built__media picture, .built__media img { width: 100%; height: 100%; object-fit: cover; }
.built__list { display: grid; gap: 0; counter-reset: b; }
@media (min-width: 700px) { .built__list { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 4vw, 64px); } }
.built__item { padding: clamp(28px, 3vw, 40px) 0; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.built__tag { font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-text); }
.built__h { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 1.2rem + .8vw, 2rem); line-height: 1.1; }
.built__item p { color: var(--muted); font-size: .96875rem; }

/* Commercial projects on navy --------------------------------------------------- */
.theme-dark .card__title, .theme-dark .card__link { color: var(--paper); }
.theme-dark .card__meta, .theme-dark .cstudy__illus { color: var(--steel); }
.theme-dark .card__more { color: var(--gold-light); }
.theme-dark .card__media { background: var(--ink-3); }
@media (min-width: 700px) { .pgrid--feature { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pgrid--feature { grid-template-columns: repeat(3, 1fr); } .pgrid--feature > :nth-child(3n + 2) { transform: translateY(48px); } .pgrid--feature { padding-bottom: 48px; } }
.cstudy__illus { margin-top: clamp(32px, 4vw, 48px); font-size: .8125rem; color: var(--muted); letter-spacing: .02em; }

/* Final CTA with cinemagraph ---------------------------------------------------- */
.final--cine .final__media { inset: 0; }
.final--cine .final__media .cine { height: 100%; }

/* Buttons: orange carries the action, navy text; gold hairline on ghost-on-dark - */
.btn--primary { --btn-fg: var(--ink-2); }
.btn--light { --btn-bd: rgba(226, 201, 142, .6); }
.theme-dark .btn--ghost { --btn-bd: rgba(226, 201, 142, .5); }

/* Links in body copy: orange that passes contrast on paper ---------------------- */
.lead a, .faq a, .prose a { color: var(--orange-text); }

/* Custom cursor ring (desktop) ------------------------------------------------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; width: 0; height: 0; pointer-events: none; }
.cursor__t { position: absolute; left: -44px; top: -44px; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 28, 72, .78); border: 1px solid rgba(226, 201, 142, .7); color: var(--gold-light); font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; backdrop-filter: blur(4px); transform: scale(0); opacity: 0; transition: transform .5s var(--ease), opacity .4s var(--ease); }
.cursor.is-on .cursor__t { transform: scale(1); opacity: 1; }

/* Page hero for the new inner pages -------------------------------------------- */
.lede-grid { display: grid; gap: clamp(32px, 5vw, 96px); }
@media (min-width: 1000px) { .lede-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.lede-grid .prose p + p { margin-top: 1.1em; }
.prose { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--muted); max-width: 60ch; }
.inc-list { display: grid; gap: 0; }
@media (min-width: 800px) { .inc-list { grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 3vw, 48px); } }
.inc-list li { padding: clamp(28px, 3vw, 40px) 0; border-top: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.inc-list .n { font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-deep); }
.inc-list h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.45rem, 1.2rem + .6vw, 1.9rem); line-height: 1.1; }
.inc-list p { color: var(--muted); font-size: .96875rem; }
.theme-dark .inc-list li { border-top-color: var(--line-light); }
.theme-dark .inc-list p { color: var(--muted-light); }
.theme-dark .inc-list .n { color: var(--gold); }

.gallery3 { display: grid; gap: 16px; }
@media (min-width: 800px) { .gallery3 { grid-template-columns: 1.4fr 1fr 1fr; align-items: end; } .gallery3 > :nth-child(2) { transform: translateY(-48px); } }
.gallery3 figure { overflow: hidden; }
.gallery3 picture, .gallery3 img { width: 100%; height: 100%; object-fit: cover; }
.gallery3 > :first-child { aspect-ratio: 4 / 3; }
.gallery3 > :not(:first-child) { aspect-ratio: 4 / 5; }

.sector-band { display: grid; gap: clamp(32px, 5vw, 96px); align-items: center; padding-block: clamp(56px, 7vw, 112px); border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.sector-band:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 1000px) { .sector-band { grid-template-columns: 1fr 1fr; } .sector-band:nth-child(even) .sector-band__media { order: 2; } }
.sector-band__media { aspect-ratio: 5 / 4; overflow: hidden; }
.sector-band__media picture, .sector-band__media img { width: 100%; height: 100%; object-fit: cover; }
.sector-band__num { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: 1; color: var(--gold); display: block; margin-bottom: 16px; }
.sector-band h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.6rem); line-height: 1.02; margin-bottom: 20px; }
.sector-band .place { margin-top: 20px; font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }

.compare-table { width: 100%; border-collapse: collapse; font-size: .96875rem; }
.compare-table th, .compare-table td { text-align: left; padding: 20px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { font-size: .6875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); border-top: 0; }
.compare-table thead th:last-child { color: var(--orange-text); }
.compare-table tbody th { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; width: 22%; }
.compare-table td:last-child { color: var(--ink); font-weight: 500; }
.compare-table td:nth-child(2) { color: var(--muted); }
@media (max-width: 760px) {
	.compare-table thead { display: none; }
	.compare-table tr { display: grid; padding: 20px 0; border-top: 1px solid var(--line); }
	.compare-table th, .compare-table td { border: 0; padding: 4px 0; width: auto; }
	.compare-table td:nth-child(2)::before { content: attr(data-l) ": "; font-weight: 600; }
	.compare-table td:last-child::before { content: attr(data-l) ": "; color: var(--orange-text); }
}

.fx-note { font-size: .75rem; color: var(--muted-light); margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
	.cine__video { display: none; }
	.sector:nth-child(even), .services__grid--3 .svc, .pgrid--feature > * { transform: none !important; }
}
.spaced-cta { margin-top: 32px; }
@media (min-width: 800px) { .inc-list--2 { grid-template-columns: repeat(2, 1fr); } }

/* Seven nav items: full menu from 1340px, burger below; phone only on very wide screens. */
@media (min-width: 1100px) and (max-width: 1339px) { .nav { display: none; } .burger { display: inline-flex; } }
@media (min-width: 1340px) { .nav__list { gap: clamp(16px, 1.5vw, 34px); } .nav__link { font-size: .75rem; letter-spacing: .1em; } }
@media (max-width: 1699px) { .site-header__phone { display: none !important; } }

/* Sample-project label on residential pages */
.sample-tag { margin-top: 18px; display: inline-block; padding: 6px 12px; border: 1px solid rgba(226, 201, 142, .55); color: var(--gold-light); font-size: .6875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
