/* Arkusz profilu frame_houses (domyszkieletowe.net).
   Odwzorowanie layoutu Claude Design: layout/Strona glowna.dc.html.
   Ladowany warunkowo w index.php tylko dla PORTAL_CONTENT_PROFILE = frame_houses.
   Paleta bazuje na zmiennych Bulmy z css/bulma/portal-theme.css
   (primary = pomarancz #F39200, link = hover #C97700, success = zielen #2F5A40). */

:root {
    --fh-accent: hsl(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-l));
    --fh-accent-hover: hsl(var(--bulma-link-h), var(--bulma-link-s), var(--bulma-link-l));
    --fh-green: hsl(var(--bulma-success-h), var(--bulma-success-s), var(--bulma-success-l));
    --fh-ink: #1f1b16;
    --fh-ink-deep: #211505;
    --fh-dark: #14110d;
    --fh-dark-2: #171310;
    --fh-cream: #faf8f5;
    --fh-cream-2: #f1ebe1;
    --fh-line: #ede6da;
    --fh-line-2: #e7dfd2;
    --fh-text: #4a4438;
    --fh-muted: #6b6255;
    --fh-soft: #8a7e6c;
    --fh-highlight: #fdf6ea;
}

/* ============ HERO ============ */

.main-presentation.is-frame-houses:not(.is-small) {
    background-image: url("/img/dom-modulowy-w-technologii-szkieletowej.jpg");
    background-position: center 60%;
    background-color: var(--fh-dark);
}

.main-presentation.is-frame-houses:not(.is-small)::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 12, 9, 0.38) 0%, rgba(15, 12, 9, 0) 26%, rgba(15, 12, 9, 0) 60%, rgba(15, 12, 9, 0.74) 100%),
        linear-gradient(88deg, rgba(15, 12, 9, 0.9) 4%, rgba(15, 12, 9, 0.62) 44%, rgba(15, 12, 9, 0.2) 76%, rgba(15, 12, 9, 0.32) 100%);
    pointer-events: none;
    z-index: 0;
}

.main-presentation.is-frame-houses .main-title {
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.fh-hero-sub {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-top: 1.1rem;
    max-width: 36rem;
}

.fh-hero-points {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    list-style: none;
    margin: 1.35rem 0 0;
    padding: 0;
}

.fh-hero-points li {
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    font-size: 0.97rem;
    gap: 0.75rem;
    line-height: 1.5;
}

.fh-hero-points li::before {
    align-items: center;
    background: var(--fh-accent);
    border-radius: 6px;
    color: var(--fh-ink-deep);
    content: "\2713";
    display: flex;
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 800;
    height: 1.25rem;
    justify-content: center;
    margin-top: 0.125rem;
    width: 1.25rem;
}

.fh-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-top: 1.6rem;
}

/* Przyciski wg designu */
.fh-btn {
    align-items: center;
    background: var(--fh-accent);
    border: 0;
    border-radius: 13px;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.35);
    color: var(--fh-ink-deep);
    display: inline-flex;
    font-size: 0.97rem;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    padding: 1rem 1.75rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.fh-btn:hover,
.fh-btn:focus-visible {
    background: var(--fh-accent-hover);
    color: #ffffff;
}

.fh-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    box-shadow: none;
    color: #ffffff;
    font-weight: 700;
}

.fh-btn--ghost:hover,
.fh-btn--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.fh-btn--dark {
    background: var(--fh-ink);
    box-shadow: none;
    color: #ffffff;
}

.fh-btn--dark:hover,
.fh-btn--dark:focus-visible {
    background: #33291b;
    color: #ffffff;
}

.fh-btn--outline-dark {
    background: transparent;
    border: 1.5px solid rgba(33, 21, 5, 0.4);
    box-shadow: none;
    color: var(--fh-ink-deep);
}

.fh-btn--outline-dark:hover,
.fh-btn--outline-dark:focus-visible {
    background: rgba(255, 255, 255, 0.25);
    color: var(--fh-ink-deep);
}

/* Box "Szybka wycena" w hero */
.fh-hero-box {
    backdrop-filter: blur(22px) saturate(1.25);
    background: rgba(21, 17, 12, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    box-shadow: 0 34px 64px -20px rgba(8, 6, 4, 0.55);
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.9rem 1.9rem 1.6rem;
}

.fh-hero-box__title {
    color: #ffffff;
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.fh-hero-box__text {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.fh-hero-box__note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    line-height: 1.55;
    margin: 0;
}

.fh-hero-box__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    padding-top: 0.9rem;
}

.fh-hero-box__footer a {
    color: var(--fh-accent);
    font-weight: 700;
}

.fh-hero-box__footer a:hover {
    color: var(--fh-accent-hover);
}

.fh-hero-box .fh-btn {
    width: 100%;
}

/* Znaczniki-kickery (kropka + uppercase) */
.fh-kicker {
    align-items: center;
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid var(--fh-line-2);
    border-radius: 999px;
    color: var(--fh-soft);
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 800;
    gap: 0.6rem;
    letter-spacing: 0.15em;
    padding: 0.45rem 0.9rem;
    text-transform: uppercase;
}

.fh-kicker::before {
    background: var(--fh-accent);
    border-radius: 999px;
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    height: 0.45rem;
    width: 0.45rem;
}

.fh-kicker--dark {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.32);
    color: rgba(255, 255, 255, 0.92);
}

/* ============ SEKCJE / PANELE ============ */

.fh-section {
    margin-top: 3.25rem;
}

.fh-panel {
    background: var(--fh-cream-2);
    border-radius: 20px;
    padding: 2.25rem 2rem;
}

.fh-panel--dark {
    background: var(--fh-dark-2);
    color: rgba(255, 255, 255, 0.78);
}

.fh-panel--dark .title,
.fh-panel--dark strong {
    color: #ffffff;
}

/* Siatka kart */
.fh-card-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 1.5rem 0;
}

.fh-card {
    background: #ffffff;
    border: 1px solid var(--fh-line);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.5rem 1.5rem 1.35rem;
}

.fh-card strong {
    color: var(--fh-ink);
    display: block;
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.fh-card span {
    color: var(--fh-muted);
    display: block;
    font-size: 0.9rem;
    line-height: 1.6;
}

.fh-card--num {
    counter-increment: fh-benefit;
}

.fh-card--num::before {
    align-items: center;
    background: var(--fh-accent);
    border-radius: 10px;
    color: var(--fh-ink-deep);
    content: counter(fh-benefit, decimal-leading-zero);
    display: flex;
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    height: 2.125rem;
    justify-content: center;
    width: 2.125rem;
}

.fh-card-grid--numbered {
    counter-reset: fh-benefit;
}

/* Kafle parametrow energetycznych (ciemny panel) */
.fh-energo-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.fh-energo-tile {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.35rem 1.25rem;
}

.fh-energo-tile strong {
    color: var(--fh-accent);
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.fh-energo-tile span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    line-height: 1.55;
}

/* Wyrozniona ramka-cytat */
.fh-note {
    background: #ffffff;
    border: 1px solid var(--fh-line);
    border-left: 4px solid var(--fh-accent);
    border-radius: 16px;
    color: var(--fh-text);
    margin: 1.5rem 0;
    padding: 1.25rem 1.4rem;
}

/* Chipy / pigulki */
.fh-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.25rem 0;
}

.fh-chip {
    background: #ffffff;
    border: 1px solid var(--fh-line-2);
    border-radius: 999px;
    color: var(--fh-text);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
}

/* ============ TABELE ============ */

.fh-table-wrap {
    background: #ffffff;
    border: 1px solid var(--fh-line);
    border-radius: 18px;
    margin: 1.5rem 0;
    overflow-x: auto;
    padding: 0.5rem 0.65rem;
}

.fh-table-wrap .table {
    background: transparent;
    min-width: 640px;
}

.fh-table-wrap .table th {
    border-bottom: 2px solid var(--fh-line-2);
    color: var(--fh-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 1rem 1.1rem;
    text-transform: uppercase;
}

.fh-table-wrap .table td {
    border-bottom: 1px solid #f1ebe0;
    color: var(--fh-muted);
    font-size: 0.9rem;
    padding: 0.875rem 1.1rem;
    vertical-align: top;
}

.fh-table-wrap .table td:first-child {
    color: var(--fh-text);
    font-weight: 700;
}

.fh-table-wrap .table.is-striped tbody tr:not(.is-selected):nth-child(even) {
    background-color: var(--fh-cream);
}

/* Tabela porownawcza: wyrozniona kolumna domu modulowego */
.fh-table-compare .table th:nth-child(2),
.fh-table-compare .table td:nth-child(2) {
    background: var(--fh-highlight);
    color: var(--fh-ink);
    font-weight: 600;
}

.fh-table-compare .table th:nth-child(2) {
    color: #b36d00;
    font-weight: 800;
}

/* ============ GALERIA REALIZACJI ============ */

.fh-gallery-head {
    margin-bottom: 1.25rem;
    max-width: 46rem;
}

.fh-gallery-label {
    color: var(--fh-soft);
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin: 1.75rem 0 0.9rem;
    text-transform: uppercase;
}

.fh-gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.fh-gallery-item {
    aspect-ratio: 4 / 3;
    background: var(--fh-line);
    border-radius: 16px;
    display: block;
    overflow: hidden;
    position: relative;
}

.fh-gallery-item img {
    display: block;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.4s ease;
    width: 100%;
}

.fh-gallery-item:hover img,
.fh-gallery-item:focus-visible img {
    transform: scale(1.04);
}

.fh-gallery-item::after {
    background: linear-gradient(180deg, rgba(15, 12, 9, 0) 55%, rgba(15, 12, 9, 0.55) 100%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.fh-gallery-item .fh-gallery-caption {
    backdrop-filter: blur(10px);
    background: rgba(21, 17, 12, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    bottom: 0.75rem;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    left: 0.75rem;
    line-height: 1.3;
    max-width: calc(100% - 1.5rem);
    overflow: hidden;
    padding: 0.5rem 0.875rem;
    position: absolute;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 1;
}

.fh-gallery-item--wide {
    aspect-ratio: 21 / 10;
    grid-column: 1 / -1;
    border-radius: 20px;
}

/* ============ FAQ (akordeon) ============ */

.fh-faq .fh-faq-item {
    background: #ffffff;
    border: 1px solid var(--fh-line);
    border-radius: 14px;
    margin: 0.6rem 0;
    overflow: hidden;
}

.fh-faq .fh-faq-item summary {
    align-items: center;
    color: var(--fh-ink);
    cursor: pointer;
    display: flex;
    font-size: 0.97rem;
    font-weight: 700;
    gap: 1rem;
    justify-content: space-between;
    line-height: 1.45;
    list-style: none;
    padding: 1.1rem 1.35rem;
}

.fh-faq .fh-faq-item summary::-webkit-details-marker {
    display: none;
}

.fh-faq .fh-faq-item summary::after {
    color: var(--fh-accent);
    content: "\25BE";
    flex: 0 0 auto;
    font-size: 0.95rem;
    font-weight: 800;
    transition: transform 0.25s ease;
}

.fh-faq .fh-faq-item[open] summary::after {
    transform: rotate(180deg);
}

.fh-faq .fh-faq-item summary:hover {
    background: #fbf8f2;
}

.fh-faq .fh-faq-item .fh-faq-answer {
    color: var(--fh-text);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
    padding: 0 1.35rem 1.25rem;
}

/* ============ SLOWNIK (nadpisanie generycznych kart) ============ */

#slownik-domy-modulowe.rainwater-glossary-section {
    border-top: 1px solid var(--fh-line-2);
    padding-top: 2rem;
}

#slownik-domy-modulowe .rainwater-benefit-card {
    border-color: var(--fh-line);
    border-radius: 16px;
    box-shadow: none;
    padding: 1.35rem 1.4rem;
}

#slownik-domy-modulowe .rainwater-benefit-card strong {
    color: var(--fh-ink);
    font-family: 'Sora', 'Manrope', sans-serif;
    font-weight: 700;
}

#slownik-domy-modulowe .rainwater-benefit-card span {
    color: var(--fh-muted);
}

/* ============ CTA / KONTAKT ============ */

.fh-cta {
    background: var(--fh-accent);
    border-radius: 20px;
    margin: 3rem 0 1rem;
    padding: 3.25rem 2rem;
    text-align: center;
}

.fh-cta h3 {
    color: var(--fh-ink-deep);
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 auto;
    max-width: 44rem;
}

.fh-cta p {
    color: rgba(33, 21, 5, 0.8);
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 1.1rem auto 0;
    max-width: 40rem;
}

.fh-cta .fh-hero-actions {
    justify-content: center;
    margin-top: 1.75rem;
}

/* Formularz ogolny: cieply, ciemny panel opisowy wg designu */
.fh-contact .form-column-title {
    background: var(--fh-dark-2);
    border-radius: 20px 0 0 20px;
}

.fh-contact .form-box {
    border-radius: 0 20px 20px 0;
}

/* ============ NAV TAGOW (kotwice tematyczne) ============ */

.fh-anchor-nav .tag {
    background: #ffffff;
    border: 1px solid var(--fh-line-2);
    border-radius: 999px;
    color: var(--fh-text);
    font-weight: 600;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.fh-anchor-nav .tag:hover {
    border-color: var(--fh-accent);
    color: var(--fh-accent-hover);
}

/* ============ KALKULATOR WYCENY DOMU (#kalkulator) ============ */

.fh-hero-box__label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fh-hero-box__select select {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--fh-ink);
}

.fh-calc {
    background: var(--fh-cream);
    scroll-margin-top: 5rem;
}

.fh-calc-intro {
    margin-bottom: 2.25rem;
    max-width: 46rem;
}

.fh-calc-intro p {
    color: var(--fh-text);
    line-height: 1.65;
}

.fh-calc-panel {
    background: #ffffff;
    border: 1px solid var(--fh-line-2);
    border-radius: 20px;
    height: 100%;
    padding: 1.75rem 1.6rem;
}

.fh-calc-step {
    align-items: center;
    color: var(--fh-ink);
    display: flex;
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.fh-calc-step__num {
    align-items: center;
    background: var(--fh-accent);
    border-radius: 10px;
    color: var(--fh-ink-deep);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.95rem;
    font-weight: 800;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.fh-calc-base {
    background: var(--fh-highlight);
    border: 1px solid var(--fh-line-2);
    border-radius: 12px;
    color: var(--fh-text);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    padding: 0.8rem 1rem;
}

.fh-calc-base strong {
    color: var(--fh-ink);
}

.fh-calc-note {
    background: var(--fh-cream-2);
    border-left: 4px solid var(--fh-accent);
    border-radius: 0 12px 12px 0;
    color: var(--fh-text);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.1rem;
    padding: 0.85rem 1rem;
}

.fh-calc-transport {
    color: var(--fh-muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

.fh-calc-options {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: 1fr;
}

.fh-calc-option {
    align-items: baseline;
    border: 1px solid var(--fh-line);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    gap: 0.7rem;
    padding: 0.7rem 0.9rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.fh-calc-option:hover {
    background: var(--fh-highlight);
    border-color: var(--fh-accent);
}

.fh-calc-option input[type="checkbox"] {
    flex: 0 0 auto;
    position: relative;
    top: 0.1rem;
}

.fh-calc-option__label {
    color: var(--fh-ink);
    flex: 1 1 auto;
    font-size: 0.92rem;
    line-height: 1.45;
}

.fh-calc-option__price {
    color: var(--fh-muted);
    flex: 0 0 auto;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.fh-calc button.fh-btn {
    cursor: pointer;
    font-family: inherit;
    width: 100%;
}

.fh-calc-result {
    background: var(--fh-dark);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.82);
    padding: 2rem 1.75rem;
}

.fh-calc-result__label {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.fh-calc-result__price {
    color: var(--fh-accent);
    display: block;
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.9rem;
}

.fh-calc-result__meta {
    font-size: 0.93rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.fh-calc-result__individual {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    margin: 1rem 0 0.75rem;
    padding-top: 1rem;
}

.fh-calc-result__note {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    line-height: 1.55;
    margin-top: 0.75rem;
}

.fh-calc-result .fh-hero-actions {
    margin-top: 1.4rem;
}

.fh-calc-result button.fh-btn {
    cursor: pointer;
    font-family: inherit;
    width: auto;
}

.fh-calc-lead {
    background: #ffffff;
    border: 1px solid var(--fh-line-2);
    border-radius: 20px;
    margin-top: 1.5rem;
    padding: 1.75rem 1.6rem;
}

/* ============ HEADER / NAVBAR NA HOME (przezroczysty overlay na ciemnym hero) ============ */

/* Header (logo + kontakt, desktop) nalozony na hero, bez wlasnego tla. */
.fh-header-overlay {
    background: transparent;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 40;
}

.fh-header-overlay .header-buttons a {
    color: #ffffff;
}

.fh-header-overlay .header-buttons a:hover {
    color: var(--fh-accent);
}

.fh-header-overlay .header-buttons__icon.i-email {
    background-image: url("/img/icon-email-w.svg");
}

.fh-header-overlay .header-buttons__icon.i-mobile {
    background-image: url("/img/icon-mobile-w.svg");
}

/* Navbar (menu) na home: przesuniety pod overlay-header na desktopie, jasne linki. */
@media screen and (min-width: 1024px) {
    .main-presentation.is-fh-home .navbar-parent {
        top: 5.5rem;
    }

    .main-presentation.is-fh-home .hero-body {
        margin-top: 12.5rem;
    }
}

.main-presentation.is-fh-home .navbar {
    background: transparent;
}

.main-presentation.is-fh-home .navbar-item,
.main-presentation.is-fh-home .navbar-link {
    color: rgba(255, 255, 255, 0.92) !important;
}

.main-presentation.is-fh-home .navbar-item:hover,
.main-presentation.is-fh-home .navbar-link:hover,
.main-presentation.is-fh-home .navbar-item.is-active,
.main-presentation.is-fh-home .navbar-link.is-active {
    color: var(--fh-accent) !important;
}

.main-presentation.is-fh-home .navbar-item:hover span,
.main-presentation.is-fh-home .navbar-link:hover span {
    border-bottom: solid 1px rgba(243, 146, 0, 0.55);
}

.main-presentation.is-fh-home .navbar-item.is-active span,
.main-presentation.is-fh-home .navbar-link.is-active span {
    border-bottom: solid 1px rgba(255, 255, 255, 0.6);
}

/* Burger mobilny: widoczny na ciemnym tle (tylko style, mechanika nav-burger.js bez zmian). */
.main-presentation.is-fh-home .navbar-burger {
    color: #ffffff;
}

.main-presentation.is-fh-home .navbar-burger:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Rozwiniete menu mobilne: pelne ciemne tlo dla czytelnosci. */
@media screen and (max-width: 1023px) {
    .main-presentation.is-fh-home .navbar-menu.is-active {
        background: var(--fh-dark);
        border-radius: 0 0 14px 14px;
        box-shadow: 0 28px 56px -20px rgba(0, 0, 0, 0.65);
    }

    .main-presentation.is-fh-home .navbar-menu.is-active .navbar-item,
    .main-presentation.is-fh-home .navbar-menu.is-active .navbar-link {
        color: rgba(255, 255, 255, 0.92) !important;
    }
}

/* ============ HERO: BADGE, AKCENT, PASEK STATYSTYK ============ */

.fh-hero-badge {
    margin-bottom: 1.15rem;
}

/* Tytul hero na home: odstep pod badge i skala wg designu (clamp zamiast stalych 4,5rem). */
.main-presentation.is-fh-home .main-title {
    font-size: clamp(2.25rem, 4.6vw, 3.6rem) !important;
    margin-top: 1rem !important;
}

.fh-accent-text {
    color: var(--fh-accent);
}

.fh-hero-stats {
    backdrop-filter: blur(10px);
    background: rgba(14, 11, 8, 0.52);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 1.375rem 0;
    position: relative;
    width: 100%;
    z-index: 1;
}

.fh-hero-stats__grid {
    display: grid;
    gap: 1.1rem 2.25rem;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}

.fh-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fh-hero-stat strong {
    color: #ffffff;
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
}

.fh-hero-stat span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    line-height: 1.45;
}

/* ============ UKLAD TEKST + ZDJECIE (media split) ============ */

.fh-media-split {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3.25rem;
}

.fh-media-split__text {
    flex: 1.1 1 380px;
    min-width: 280px;
}

.fh-media-split__media {
    display: flex;
    flex: 0.9 1 300px;
    flex-direction: column;
    gap: 1.1rem;
    min-width: 260px;
}

.fh-media-split__media img {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    box-shadow: 0 24px 48px -20px rgba(31, 27, 22, 0.35);
    display: block;
    object-fit: cover;
    width: 100%;
}

.content .fh-note--tight {
    margin: 0;
}

/* ============ WARIANTY SIATEK KART ============ */

.fh-card-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.fh-steps {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 0;
    margin-top: 2rem;
}

.fh-step-num {
    color: var(--fh-accent);
    display: block;
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fh-card--tech strong {
    align-items: center;
    display: flex;
    gap: 0.7rem;
}

.fh-card--tech strong::before {
    background: var(--fh-accent);
    border-radius: 3px;
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    height: 0.625rem;
    width: 0.625rem;
}

/* ============ KONFIGURACJA I ZASTOSOWANIE ============ */

.fh-config-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3.5rem;
}

.fh-config-col {
    flex: 1 1 320px;
    min-width: 280px;
}

/* ============ LISTY Z "PTASZKAMI" ============ */

.content ul.fh-checks,
.content ul.fh-check-cards {
    list-style: none;
    margin-left: 0;
    margin-top: 1.25rem;
    padding-left: 0;
}

.fh-checks {
    display: grid;
    gap: 0.75rem 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.fh-checks li,
.fh-check-cards li {
    align-items: flex-start;
    color: var(--fh-text);
    display: flex;
    font-size: 0.95rem;
    gap: 0.7rem;
    line-height: 1.55;
}

.content ul.fh-checks li + li,
.content ul.fh-check-cards li + li {
    margin-top: 0;
}

.fh-checks li::before,
.fh-check-cards li::before {
    align-items: center;
    background: var(--fh-accent);
    border-radius: 6px;
    color: var(--fh-ink-deep);
    content: "\2713";
    display: flex;
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 800;
    height: 1.125rem;
    justify-content: center;
    margin-top: 0.125rem;
    width: 1.125rem;
}

.fh-check-cards {
    display: grid;
    gap: 0.875rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.fh-check-cards li {
    background: #ffffff;
    border: 1px solid var(--fh-line);
    border-radius: 14px;
    color: #3a342c;
    font-weight: 600;
    padding: 1.1rem 1.25rem;
}

.fh-check-cards--compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.fh-check-cards--compact li {
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.9rem 1.1rem;
}

.fh-check-cards--compact li::before {
    margin-top: 0;
}

/* ============ NAGLOWEK SEKCJI WYSRODKOWANY ============ */

.fh-section-head--center {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    text-align: center;
}

.fh-section-head--center .fh-kicker {
    align-self: center;
}

.content .fh-section-head--center p {
    margin-bottom: 0;
    max-width: 46rem;
}

/* ============ MODELE DOMOW (#modele) ============ */

.fh-models-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.fh-model-card {
    background: #ffffff;
    border: 1px solid var(--fh-line);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fh-model-card__media {
    aspect-ratio: 4 / 3;
    background: var(--fh-line);
    display: block;
    overflow: hidden;
}

.fh-model-card__media img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    width: 100%;
}

.fh-model-card:hover .fh-model-card__media img,
.fh-model-card:focus-within .fh-model-card__media img {
    transform: scale(1.04);
}

.fh-model-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.5rem 1.5rem 1.6rem;
}

.content .fh-model-card__name {
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.fh-model-card__name a {
    color: var(--fh-ink);
}

.fh-model-card__name a:hover {
    color: var(--fh-accent-hover);
}

.fh-model-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fh-tag {
    background: #f7f3eb;
    border: 1px solid var(--fh-line-2);
    border-radius: 999px;
    color: var(--fh-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.375rem 0.8rem;
    white-space: nowrap;
}

.fh-tag--area {
    background: var(--fh-highlight);
    border-color: #f2dbb0;
    color: #b36d00;
    font-weight: 800;
}

.content .fh-model-card__desc {
    color: var(--fh-muted);
    flex: 1 1 auto;
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0;
}

.fh-model-card__price {
    border-top: 1px solid #efe9de;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 0.875rem;
}

.fh-model-card__price-label {
    color: #9a9082;
    font-size: 0.75rem;
    font-weight: 600;
}

.fh-model-card__price strong {
    color: var(--fh-ink);
    font-family: 'Sora', 'Manrope', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
}

.fh-model-card__price-note {
    color: #9a9082;
    font-size: 0.78rem;
}

.fh-model-card__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.2rem;
}

.fh-btn--sm {
    border-radius: 11px;
    box-shadow: none;
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
}

.fh-link-more {
    color: var(--fh-accent);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.fh-link-more:hover {
    color: var(--fh-accent-hover);
}

/* ============ RESPONSYWNOSC ============ */

@media screen and (max-width: 768px) {
    .fh-calc-panel,
    .fh-calc-lead {
        border-radius: 16px;
        padding: 1.3rem 1.1rem;
    }

    .fh-calc-result {
        border-radius: 16px;
        padding: 1.5rem 1.2rem;
    }

    .fh-calc-option {
        flex-wrap: wrap;
    }

    .fh-calc-option__price {
        flex-basis: 100%;
        margin-left: 1.7rem;
        text-align: left;
    }

    .fh-panel {
        border-radius: 16px;
        padding: 1.5rem 1.15rem;
    }

    .fh-hero-box {
        padding: 1.4rem 1.25rem 1.2rem;
    }

    .fh-cta {
        padding: 2.25rem 1.25rem;
    }

    .fh-gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .fh-gallery-item--wide {
        aspect-ratio: 16 / 10;
    }

    .fh-contact .form-column-title {
        border-radius: 20px 20px 0 0;
    }

    .fh-contact .form-box {
        border-radius: 0 0 20px 20px;
    }

    .fh-media-split {
        gap: 1.5rem;
    }

    .fh-hero-stats {
        padding: 1rem 0;
    }

    .fh-hero-stats__grid {
        gap: 0.9rem 1.25rem;
    }

    .fh-models-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .fh-config-cols {
        gap: 1.5rem;
    }
}
