/* ==========================================================================
   StuckArt — podstránky a detaily (Služby, Realizácie, CANDIS, O nás,
   Kontakt, detail služby/realizácie, bežné stránky).
   ========================================================================== */

/* ---------- Hlavička podstránky ---------- */
.page-header { position: relative; display: flex; align-items: flex-end; background: var(--ink); color: var(--light); overflow: hidden; }
.page-header--green { background: var(--green); }
.page-header.has-image { min-height: clamp(520px, 78svh, 760px); }
.page-header__media { position: absolute; inset: 0; background: var(--ink-2); }
.page-header__media img { width: 100%; height: 100%; object-fit: cover; }
.page-header__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 20, 15, 0.8) 0%, rgba(22, 20, 15, 0.5) 60%, rgba(22, 20, 15, 0.25) 100%); }
.page-header--green .page-header__overlay { background: linear-gradient(90deg, rgba(34, 48, 43, 0.92) 0%, rgba(34, 48, 43, 0.62) 60%, rgba(34, 48, 43, 0.3) 100%); }
@media (max-width: 767px) { .page-header__overlay { background: rgba(22, 20, 15, 0.7); } .page-header--green .page-header__overlay { background: rgba(34, 48, 43, 0.82); } }
.page-header__content { position: relative; padding-top: calc(var(--header-h) + 72px); padding-bottom: clamp(56px, 8vw, 104px); }
.page-header__title { margin: 0 0 24px; max-width: 20ch; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.2vw, 76px); line-height: 1.05; letter-spacing: -0.02em; color: var(--light); }
.page-header__text { margin: 0 0 36px; max-width: 52ch; font-size: 18px; color: var(--on-dark); }
.page-header__text:last-child { margin-bottom: 0; }
.page-header__meta { margin: -8px 0 24px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.04em; color: rgba(251, 249, 245, 0.8); }
.page-header__back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 20px; font-size: 14px; color: rgba(251, 249, 245, 0.8); }
.page-header__back:hover { color: var(--light); }
.page-header .wordmark { color: var(--light); }

/* ---------- Postup spolupráce ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: step; }
.steps__item { background: var(--light); padding: 40px 28px; }
.steps__num { margin: 0 0 24px; font-family: var(--serif); font-weight: 300; font-size: 40px; line-height: 1; color: var(--accent); }
.steps__title { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; }
.steps__text { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- CANDIS povrchy ---------- */
.finishes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.finish { background: var(--light); border: 1px solid var(--line); }
.finish__title { margin: 24px 24px 10px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.25; }
.finish__text { margin: 0 24px 28px; font-size: 15px; color: var(--muted); }
.finish > :first-child.finish__title { margin-top: 28px; }

/* ---------- História ---------- */
.milestones { margin-top: clamp(40px, 5vw, 64px); }
.milestones__item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 32px 0; border-top: 1px solid var(--line-dark); }
.milestones__item:last-child { border-bottom: 1px solid var(--line-dark); }
@media (min-width: 768px) { .milestones__item { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; } }
.milestones__year { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 40px; line-height: 1; color: var(--accent); }
.milestones__title { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.25; color: var(--light); }
.milestones__text { margin: 0; max-width: 60ch; font-size: 16px; color: var(--on-dark); }

/* ---------- Kontakt: showroomy + mapa (facade) ---------- */
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.room { background: var(--light); border: 1px solid var(--line); }
.room__body { padding: 28px 24px 32px; }
.room__city { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.25; }
.room__address { margin: 0 0 8px; font-size: 17px; }
.room__text { margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.map-facade { position: absolute; inset: 0; display: grid; place-items: center; }
.map-facade > img, .map-facade > .pattern { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-facade__btn { position: relative; z-index: 1; }
.map-facade__note { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; margin: 0; padding: 8px 12px; background: rgba(251, 249, 245, 0.94); font-size: 12px; line-height: 1.45; color: var(--muted); }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.company > * { max-width: 760px; }

/* ---------- Detail služby ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; }
@media (min-width: 1024px) { .detail { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 80px; } }
.detail__aside { background: var(--paper); border: 1px solid var(--line); padding: 32px 28px; }
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li { position: relative; padding-left: 22px; font-size: 16px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; background: var(--accent); }

/* ---------- Bežná stránka / 404 ---------- */
.page-plain { background: var(--light); padding-bottom: clamp(80px, 9vw, 120px); }
.page-plain__head { background: var(--paper); border-bottom: 1px solid var(--line); padding: calc(72px + clamp(56px, 7vw, 96px)) 0 clamp(40px, 5vw, 56px); margin-bottom: clamp(40px, 5vw, 64px); }
.page-plain__title { max-width: 22ch; }
.entry-content { font-size: 17px; line-height: 1.7; }
.post-list { display: flex; flex-direction: column; gap: 10px; list-style: none !important; padding: 0 !important; }
