/* ═══════════════════════════════════════════════
   plan-solar.css — Solar planning page (solar.html) only.
   Loads last, on top of style.css → home.css → planning.css → plan-calc.css.
   Tokens come from home.css (body.home): ink / volt / signal / paper / chalk.
   Does NOT touch .qt-*, .sdh-*, .mode-select (owned by plan-calc.css).
   ═══════════════════════════════════════════════ */

/* ── page rhythm ── */
.plan .section { padding: 104px 0; }
@media (max-width: 899px) { .plan .section { padding: 72px 0; } }

/* ── asymmetric section header: label, title left, lead right (like the homepage .h-head) ── */
.sol-head { margin-bottom: 48px; }
.sol-head .lead { margin-bottom: 0; }
@media (min-width: 900px) {
  .sol-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 28px; align-items: end; margin-bottom: 56px; }
  .sol-head .section-label { grid-column: 1 / -1; justify-self: start; }
  .sol-head h2 { grid-column: 1 / 8; margin-bottom: 0; }
  .sol-head .lead { grid-column: 8 / 13; max-width: none; padding-bottom: 4px; }
}

/* ═══════════ HERO — asymmetric, with a sunrise sitting on the red rule ═══════════ */
.plan .sol-hero { padding: 64px 0 132px; }
.plan .sol-hero .h-grid { position: relative; z-index: 1; row-gap: 0; }
.plan .sol-hero h1 { max-width: none; }
.plan .sol-hero h1 .hl { display: block; padding-left: .9em; font-size: 1.04em; line-height: .95; }
.plan .sol-hero .hero-chips { margin-top: 18px; }
.plan .sol-hero .hero-cta { gap: 18px; }
@media (min-width: 900px) {
  .plan .sol-hero .hero-eyebrow { grid-column: 1 / -1; justify-self: start; }
  .plan .sol-hero h1 { grid-column: 1 / 10; grid-row: 2; }
  .plan .sol-hero .hero-chips { grid-column: 10 / 13; grid-row: 2; align-self: end; justify-self: end; flex-direction: column; align-items: flex-end; margin: 0 0 22px; }
  .plan .sol-hero p.sub { grid-column: 5 / 11; margin: 36px 0 0; }
  .plan .sol-hero .hero-cta { grid-column: 5 / 12; margin-top: 30px !important; }
}
@media (max-width: 899px) {
  .plan .sol-hero { padding: 44px 0 96px; }
  .plan .sol-hero h1 .hl { padding-left: .4em; }
}

/* decorative sun: half disc rising off the red bottom rule + faint rays (desktop only) */
.sol-sun { display: none; }
@media (min-width: 900px) {
  .sol-sun { display: block; position: absolute; z-index: 0; right: max(40px, calc((100vw - 1240px) / 2 + 40px)); bottom: 8px;
    width: 220px; height: 110px; border-radius: 110px 110px 0 0; background: var(--volt); pointer-events: none; }
  .sol-sun::before { content: ""; position: absolute; left: 50%; bottom: -270px; width: 540px; height: 540px; margin-left: -270px;
    background: repeating-conic-gradient(from 0deg, rgba(255,212,0,.22) 0deg 1.4deg, transparent 1.4deg 12deg);
    -webkit-mask-image: radial-gradient(circle, transparent 0 28%, #000 29%, transparent 64%);
            mask-image: radial-gradient(circle, transparent 0 28%, #000 29%, transparent 64%); }
}

/* ═══════════ BUDGET BAND — volt card overlapping the hero, notes on the right ═══════════ */
.plan .sol-top { padding: 0 0 24px; }
.sol-top .bb-card { position: relative; z-index: 2; margin-top: -72px; }
.sol-top-notes { display: flex; flex-direction: column; gap: 16px; }
.sol-top-notes .note-box { font-size: .92rem; line-height: 1.55; }
@media (min-width: 900px) {
  .sol-top .bb-card { grid-column: 1 / 8; }
  .sol-top-notes { grid-column: 9 / 13; align-self: end; padding-bottom: 12px; }
}
@media (max-width: 899px) {
  .sol-top .bb-card { margin-top: -52px; padding: 28px 24px 26px; }
  .sol-top-notes { margin-top: 20px; }
}

/* ═══════════ 01 — product: portrait video + spec card ═══════════ */
@media (min-width: 900px) {
  .sol-product { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: stretch; }
}
.sol-product { gap: 28px; }
.product-video { aspect-ratio: 480 / 848; max-height: 82vh; object-fit: contain; background: var(--ink);
  border: 2px solid var(--ink); border-radius: 0; box-shadow: 8px 8px 0 var(--volt); }
.sol-media .pl-loc { font-size: .88rem; color: var(--ink-2); margin-top: 18px !important; }

.spec-card { border: 2px solid var(--ink); border-radius: 0; box-shadow: none; padding: 32px 32px 28px; display: flex; flex-direction: column; }
.spec-card .card-tag, .tag-street { align-self: flex-start; background: var(--ink); color: var(--volt); border-radius: 0;
  letter-spacing: .16em; font-size: .7rem; padding: 6px 10px; margin-bottom: 22px; }
.spec-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1; letter-spacing: -0.035em; margin-bottom: 6px; }
.spec-card .my { font-family: var(--font-serif); font-size: 1.2rem; color: var(--ink-2); margin-bottom: 26px; }

/* spec table → editorial data rows: hairline rules, small caps label, big display value */
.plan .spec-grid { background: none; border: 0; border-radius: 0; gap: 0 28px; border-top: 2px solid var(--ink); overflow: visible; }
.plan .spec-grid > div { background: none; padding: 14px 0 13px; border-bottom: 1px solid rgba(10,16,54,.16); }
.plan .spec-grid dt { font-size: .68rem; letter-spacing: .16em; color: var(--ink-3); }
.plan .spec-grid dd { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-top: 4px; }
@media (max-width: 420px) { .plan .spec-grid { gap: 0 16px; } .plan .spec-grid dd { font-size: 1.1rem; } }

.qty-note { margin-top: auto; padding: 14px 18px; border-radius: 0; background: var(--paper); color: var(--ink); border-left: 4px solid var(--signal); font-size: .9rem; }
.spec-card .qty-note { margin-top: 28px; }
@media (min-width: 900px) { .spec-card .spec-grid { margin-bottom: 28px; } .spec-card .qty-note { margin-top: auto; } }

/* sub-header inside a section (spec sheets) */
.sol-subhead { margin-top: 88px; margin-bottom: 28px; padding-top: 20px; border-top: 2px solid var(--ink);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; }
.sol-subhead h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.sol-subhead .lead { margin: 0; font-size: .95rem; }
@media (max-width: 899px) { .sol-subhead { margin-top: 64px; } }

/* ═══════════ place cards (spec sheets + street / flood examples) ═══════════ */
.plan .place-grid { gap: 28px; counter-reset: pl; }
.plan .place-card { position: relative; counter-increment: pl; border: 2px solid var(--ink); border-radius: 0; box-shadow: none; background: var(--chalk);
  overflow: visible; transition: transform .35s var(--ease-snap), box-shadow .35s var(--ease-snap); }
.plan .place-card figcaption h3::before { content: counter(pl, decimal-leading-zero); display: block; margin-bottom: 8px;
  font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.5rem; line-height: .9; letter-spacing: 0; color: var(--signal); }
.plan .place-card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--volt); }
.plan .place-card > a { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-bottom: 2px solid var(--ink); background: #EEE7D6; }
.plan .place-card > a img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease-snap); }
.plan .place-card:hover > a img { transform: scale(1.04); }
.plan .place-card figcaption { padding: 20px 22px 24px; gap: 10px; }
.plan .place-card h3 { font-size: 1.3rem; line-height: 1.1; letter-spacing: -0.025em; }
.plan .place-card .pl-loc { font-size: .92rem; color: var(--ink-2); }
.plan .place-card .pl-note { border-radius: 0; border: 0; border-left: 4px solid; padding: 10px 14px; font-size: .88rem; color: var(--ink); }
.plan .place-card .pl-note.flag { background: #FFF6D6; border-color: var(--volt); color: var(--ink); }
.plan .place-card .pl-note.good { background: var(--paper); border-color: var(--ink); color: var(--ink); }
/* spec sheets are A4 portrait documents — show them whole */
.sol-sheets .place-card > a { aspect-ratio: 1400 / 1980; background: var(--chalk); }
.sol-sheets .place-card > a img { object-fit: contain; }

/* ═══════════ 01 — pole spec → ink panel, image left / facts right ═══════════ */
.plan .sol-pole { margin-top: 88px; background: var(--ink); color: var(--chalk); border: 0; border-radius: 0; box-shadow: none; padding: 40px; }
.sol-pole h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin-bottom: 10px; color: var(--chalk); }
.sol-pole p.sd-sub { color: rgba(255,255,255,.74); font-size: .95rem; margin-bottom: 28px; }
.sol-pole p.sd-sub b { color: var(--volt); }
.sol-pole .plan-figure { border: 2px solid var(--chalk); box-shadow: 8px 8px 0 var(--volt); }
.sol-pole .plan-figure:hover { box-shadow: 12px 12px 0 var(--volt); }
.sol-pole .plan-figure img { aspect-ratio: 588 / 960; object-fit: cover; object-position: 50% 50%; }   /* crops the phone-screenshot chrome; lightbox shows it whole */
.sol-pole .spec-grid { border-top-color: var(--chalk); align-self: start; }
.sol-pole .spec-grid > div { border-bottom-color: rgba(255,255,255,.2); }
.sol-pole .spec-grid dt { color: rgba(255,255,255,.55); }
.sol-pole .spec-grid dd { color: var(--chalk); }
.sol-pole .grid { gap: 28px; }
@media (min-width: 900px) {
  .plan .sol-pole { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; column-gap: 56px; padding: 56px; }
  .sol-pole > .grid { display: contents; }
  .sol-pole h3 { grid-column: 2; grid-row: 1; margin-top: 8px; }
  .sol-pole p.sd-sub { grid-column: 2; grid-row: 2; }
  .sol-pole .plan-figure { grid-column: 1; grid-row: 1 / span 3; }
  .sol-pole .spec-grid { grid-column: 2; grid-row: 3; }
}
@media (max-width: 899px) { .plan .sol-pole { margin-top: 64px; padding: 28px 22px 32px; } .sol-pole .plan-figure { box-shadow: 6px 6px 0 var(--volt); } }
.sol-pole + .note-box { margin-top: 40px !important; }

/* ═══════════ 02 — plan figure + legend ═══════════ */
.plan .plan-figure { border: 2px solid var(--ink); border-radius: 0; box-shadow: 10px 10px 0 var(--ink); background: var(--chalk);
  transition: transform .35s var(--ease-snap), box-shadow .35s var(--ease-snap); }
.plan .plan-figure:hover { transform: translate(-3px, -3px); box-shadow: 13px 13px 0 var(--volt); }
.plan .plan-hint { right: 0; bottom: 0; border-radius: 0; background: var(--ink); color: var(--volt); backdrop-filter: none;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 9px 14px; }
@media (max-width: 899px) { .plan .plan-figure { box-shadow: 6px 6px 0 var(--ink); } }

.plan .legend { gap: 0; margin-top: 40px; border-top: 2px solid var(--ink); font-size: .92rem; }
.plan .legend > span { padding: 14px 28px 0 0; }
.plan .legend .dot, .plan .legend .sq { width: 14px; height: 14px; box-shadow: 0 0 0 1.5px var(--ink); }
.plan .legend .blue { background: #3E9BD8; }            /* matches the blue dots drawn on the hospital plan */
.plan .legend .yellow { background: var(--volt); }
.plan .legend .sq { border-radius: 0; }
.plan .legend .strike { color: var(--ink-3); text-decoration-thickness: 1.5px; }
@media (max-width: 640px) { .plan .legend { flex-direction: column; } .plan .legend > span { padding: 12px 0 0; } }

/* ═══════════ 05 — site photo groups: title left, contact sheet right ═══════════ */
.plan .site-group { margin-bottom: 64px; padding-top: 22px; border-top: 2px solid var(--ink); }
.plan .site-group:last-child { margin-bottom: 0; }
.plan .site-group h3 { display: block; font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin-bottom: 10px; }
.plan .site-group h3::before { content: none; }
.plan .site-group h3 .ct { display: block; margin-top: 8px; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.1rem; letter-spacing: 0; color: var(--signal); }
.plan .site-group > .pl-loc { font-size: .92rem; color: var(--ink-2); max-width: 34ch; }
.plan .site-grid { gap: 10px; }
.plan .site-grid a { position: relative; border: 0; border-radius: 0; box-shadow: none; overflow: hidden; background: #EEE7D6; }
.plan .site-grid a::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--volt); transition: box-shadow .3s var(--ease-snap); pointer-events: none; }
.plan .site-grid a:hover::after, .plan .site-grid a:focus-visible::after { box-shadow: inset 0 0 0 5px var(--volt); }
.plan .site-grid img { background: #EEE7D6; transition: transform .7s var(--ease-snap); }
.plan .site-grid a:hover img { transform: scale(1.06); }
@media (min-width: 900px) {
  .plan .site-group { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); grid-template-rows: auto 1fr; column-gap: 28px; }
  .plan .site-group h3 { grid-column: 1; grid-row: 1; }
  .plan .site-group > .pl-loc { grid-column: 1; grid-row: 2; }
  .plan .site-group .site-grid { grid-column: 2; grid-row: 1 / span 2; }
}

/* ═══════════ 06 — supplier: ink band, title left, contact card right ═══════════ */
.plan #kontak { background: var(--ink); color: var(--chalk); }
.plan #kontak .section-label { color: var(--volt); }
.plan #kontak h2 { color: var(--chalk); }
.sol-supplier { align-items: start; }
@media (min-width: 900px) {
  .sol-supplier-h { grid-column: 1 / 5; }
  .sol-supplier .contact-grid { grid-column: 6 / 13; }
}
.sol-supplier .contact-grid { grid-template-columns: minmax(0, 1fr); }
.plan .contact-card { background: var(--chalk); color: var(--ink); border: 2px solid var(--ink); border-radius: 0; box-shadow: none; padding: 32px; gap: 18px; }
.plan #kontak .contact-card { border-color: var(--chalk); box-shadow: 12px 12px 0 var(--volt); }
.plan .cc-head { align-items: center; gap: 14px; flex-wrap: wrap; }
.plan .cc-prio { width: 36px; height: 36px; border-radius: 0; background: var(--volt); color: var(--ink); font-size: 1rem; }
.plan .cc-head h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.05; letter-spacing: -0.03em; }
.plan .cc-star { border-radius: 0; background: var(--ink); color: var(--volt); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; }
.plan .cc-meta { font-size: .98rem; color: var(--ink-2); }
.plan .cc-meta b { color: var(--ink); }
.plan .cc-contacts { gap: 10px; }
.plan .cc-btn, .plan .cc-btn.mail { border-radius: 0; border: 2px solid var(--ink); color: var(--ink); font-weight: 700; padding: 10px 14px; max-width: 100%; overflow-wrap: anywhere;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat left / 0% 100%, var(--chalk);
  transition: background-size .35s var(--ease-snap), color .25s, transform .15s; }
.plan .cc-btn:hover { background-size: 100% 100%; color: var(--volt); border-color: var(--ink); }
.plan .cc-btn:active { transform: translate(2px, 2px); }
.plan .cc-note { border-radius: 0; background: var(--paper); border-left: 4px solid var(--signal); padding: 12px 16px; color: var(--ink); font-size: .9rem; }
.plan .cc-pic { border-top: 1px dashed rgba(10,16,54,.3); }
.plan .cc-pic select { border-radius: 0; border: 2px solid var(--ink); background: var(--chalk); }
.plan .cc-pic select:focus { border-color: var(--ink); box-shadow: 3px 3px 0 var(--volt); }
.plan .cc-pic.assigned select { border-color: var(--ink); background: var(--volt); color: var(--ink); }
@media (max-width: 899px) { .plan #kontak .contact-card { padding: 24px 20px; box-shadow: 8px 8px 0 var(--volt); } .sol-supplier-h h2 { margin-bottom: 4px; } }

/* ═══════════ 07 — budget: guests don't need the room reserved for the sticky total bar ═══════════ */
body.plan:not(.authed) #budget { padding-bottom: 104px !important; }
@media (max-width: 899px) { body.plan:not(.authed) #budget { padding-bottom: 72px !important; } }
.plan #budget .lock-note { padding: 18px 20px; font-weight: 700; }

/* ═══════════ legacy solar components (not on the page right now, kept on-brand in case they return) ═══════════ */
.plan .coming-soon { border-radius: 0; border: 2px dashed var(--ink); background: var(--chalk); color: var(--ink-2); }
.plan .check-box { border-radius: 0; border-color: var(--ink); }
.plan .check-item.done .check-box { background: var(--ink); border-color: var(--ink); color: var(--volt); }
.plan .progress { border-radius: 0; background: rgba(10,16,54,.1); }
.plan .progress-bar { border-radius: 0; background: var(--ink); }
.plan .sd-col { border-radius: 0; }
.plan .sd-tag { border-radius: 0; }

/* ═══════════ phone tightening ═══════════ */
.plan .cc-head h3 { flex: 1 1 14ch; }
@media (max-width: 899px) {
  .product-video { max-height: 64vh; }
  .plan .plan-hint { font-size: .62rem; padding: 6px 10px; letter-spacing: .1em; }
}
@media (max-width: 639px) {
  /* long A4 sheets → square top-crop previews; tap still opens the full sheet in the lightbox */
  .sol-sheets .place-card > a { aspect-ratio: 1 / 1; }
  .sol-sheets .place-card > a img { object-fit: cover; object-position: 50% 0; }
}
