/* Thermonowa layout & visual fixes — overrides the template without rewriting it */

:root {
    --tn-navy: #0c3c60;
    --tn-ink: #1a2330;
    --tn-muted: #5a6470;
    --tn-blue: #1f7ec4;
    --tn-orange: #e9a318;
    --tn-green: #e9a318;
    --tn-btn: #1f7ec4;
    --tn-bg: #f6f7f9;
    --tn-header-h: 96px;
    --tn-toc-h: 52px;
}

html {
    scroll-padding-top: 96px;
    scrollbar-gutter: stable;
    scroll-behavior: auto !important;
    overflow-anchor: none;
}

body {
    color: var(--tn-ink);
    overflow-x: hidden;
    overflow-anchor: none;
}

.text-muted {
    color: var(--tn-muted) !important;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Topbar + navbar ---- */

.tagline {
    position: relative;
    z-index: 1001;
    box-shadow: none;
    border-bottom: 1px solid #eceff3;
    padding: 0;
    background: #fff;
    height: 34px;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    font-synthesis: none;
    line-height: 34px;
    -webkit-font-smoothing: antialiased;
}

.tagline::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tn-blue) 0%, var(--tn-orange) 100%);
}

.tagline a,
.tagline a.text-dark,
.tagline .phone,
.tagline .email {
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1;
    color: var(--tn-navy) !important;
}

.tagline .mdi {
    display: inline-block;
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 14px;
    text-align: center;
    font-weight: 400 !important;
}

@media (min-width: 768px) {
    .tagline {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    body {
        padding-top: 34px;
    }
}

.navbar {
    top: 34px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 0 rgba(12, 60, 96, 0.08);
    padding: 0 !important;
    height: 62px;
    transition: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

.navbar.nav-sticky {
    top: 34px !important;
    box-shadow: 0 8px 24px rgba(12, 60, 96, 0.08);
}

.navbar-brands {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.navbar-brand {
    min-height: 50px;
    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
    margin-right: 0 !important;
}

.logo img,
.navbar-brand .logo-dark,
.navbar-brand img {
    width: 128px !important;
    height: 50px !important;
    object-fit: contain;
    margin-left: 0 !important;
}

.navbar-bosch {
    display: flex;
    align-items: center;
    padding-left: 12px;
    border-left: 1px solid #e4e8ee;
    line-height: 0;
}

.navbar-bosch img {
    height: 38px;
    width: auto;
    max-width: 92px;
    object-fit: contain;
    display: block;
}

.navbar-collapse {
    flex-grow: 0 !important;
    margin-left: auto;
}

.navbar-nav {
    flex-wrap: nowrap !important;
    flex-grow: 0 !important;
}

.navbar .navbar-nav .nav-link {
    padding: 21px 12px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: var(--tn-navy) !important;
    line-height: 20px !important;
    transition: color 0.15s ease !important;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--tn-blue) !important;
    font-weight: 400 !important;
}

.navbar .navbar-nav .nav-link.dropdown-toggle {
    padding-right: 22px !important;
}

.navbar .navbar-nav .nav-link.dropdown-toggle::after {
    margin-left: 0.4em;
    vertical-align: 0.15em;
}

.navbar-collapse .btn,
.navbar .btn.bg-gradiant {
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-synthesis: none;
    white-space: nowrap;
    padding: 10px 18px;
    border-radius: 8px;
    letter-spacing: 0.02em;
}

.navbar-cta {
    margin-left: 20px;
}

@media (max-width: 1199px) {
    .navbar .navbar-nav .nav-link {
        padding: 16px 8px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 767.98px) {
    :root {
        --tn-header-h: 70px;
    }

    .navbar,
    .navbar.nav-sticky {
        top: 0 !important;
    }
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 10px 16px !important;
        height: auto;
        min-height: 56px;
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 4px !important;
        font-size: 15px !important;
        white-space: normal;
    }

    .navbar-cta {
        margin: 12px 0 8px;
        display: block;
    }

    .navbar-cta .btn {
        display: inline-block;
    }

    .logo img,
    .navbar-brand img {
        width: 110px !important;
    }

    .navbar-bosch {
        padding-left: 8px;
    }

    .navbar-bosch img {
        height: 30px;
        max-width: 72px;
    }
}

/* ---- Hero ---- */

.home-5 {
    min-height: 0 !important;
    display: block !important;
    padding: 132px 0 56px !important;
    position: relative;
    background:
        radial-gradient(ellipse 72% 58% at 6% 0%, rgba(31, 126, 196, 0.16), transparent 58%),
        radial-gradient(ellipse 62% 52% at 98% 6%, rgba(233, 163, 24, 0.18), transparent 54%),
        #fff;
}

.home-5::before,
.home-5::after {
    display: none !important;
}

.home-5 .home-heading .home-title {
    font-size: clamp(1.75rem, 2.4vw, 2.45rem) !important;
    line-height: 1.32 !important;
    color: var(--tn-navy);
    font-weight: 700;
    margin-bottom: 12px;
}

.home-5 .home-heading .sub-title {
    font-size: clamp(1.05rem, 1.6vw, 1.35rem) !important;
    line-height: 1.45 !important;
    color: var(--tn-ink) !important;
    min-height: 0;
}

.typewrite {
    white-space: nowrap;
}

.home-5 .home-heading p {
    font-size: 1rem;
    line-height: 1.75;
    max-width: 62ch;
    margin-bottom: 1rem;
}

.home-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 1.5rem;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.bosch-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 8px 16px 8px 10px;
    margin: 0 0 1.25rem;
    box-shadow: 0 8px 24px rgba(12, 60, 96, 0.06);
}

.bosch-hero-badge img {
    height: 40px;
    width: auto;
    display: block;
}

.bosch-hero-badge span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tn-navy);
    line-height: 1.35;
    max-width: 16rem;
}

.bosch-partner {
    position: relative;
    color: #fff;
    padding: 72px 0;
    overflow: hidden;
}

.bosch-partner-bg {
    position: absolute;
    inset: 0;
}

.bosch-partner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bosch-partner-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(12, 60, 96, 0.94) 0%, rgba(12, 60, 96, 0.78) 52%, rgba(31, 126, 196, 0.58) 100%);
}

.bosch-partner-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.bosch-partner-logo-wrap {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 18px;
}

.bosch-partner-logo-wrap img {
    height: 52px;
    width: auto;
    display: block;
}

.bosch-partner-kicker {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tn-green);
    margin-bottom: 8px;
}

.bosch-partner h2 {
    color: #fff;
    font-size: clamp(1.45rem, 2.4vw, 2.1rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
}

.bosch-partner-inner > p {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 58ch;
}

.bosch-partner-roles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bosch-partner-roles div {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 3px solid var(--tn-green);
    border-radius: 12px;
    padding: 16px 14px;
}

.bosch-partner-roles strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.bosch-partner-roles span {
    display: block;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .bosch-hero-badge {
        align-items: flex-start;
        max-width: 100%;
    }

    .bosch-partner-roles {
        grid-template-columns: 1fr;
    }
}

.home-cta li {
    display: flex;
    align-items: center;
    margin: 0;
    line-height: 1;
}

.offer-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 1.5rem;
}

.offer-hero .home-title,
.offer-hero .sub-title {
    max-width: none;
}

.offer-hero .sub-title {
    margin-bottom: 1.25rem !important;
}

.offer-sent {
    background: #eaf4fb;
    border: 1px solid #c5dff0;
    color: var(--tn-navy);
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 0 auto 1rem;
}

.offer-chooser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 720px;
    margin: 1.35rem auto 0;
}

.offer-chooser a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 68px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.offer-chooser a:first-child {
    color: #155a8a;
    background: #eaf4fb;
    border: 2px solid var(--tn-blue);
}

.offer-chooser a:last-child {
    color: #7a5608;
    background: #fff6e4;
    border: 2px solid var(--tn-orange);
}

.offer-chooser a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(12, 60, 96, 0.45);
}

#offer-cs2000,
#offer-cs5800,
#hoszivattyu-csomagok {
    scroll-margin-top: calc(var(--tn-header-h) + 12px);
}

.offer-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
}

.offer-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e4e8ee;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px -24px rgba(12, 60, 96, 0.35);
    min-width: 0;
}

.offer-card.is-featured {
    border-color: var(--tn-orange);
    border-top: 3px solid var(--tn-orange);
    box-shadow: 0 20px 48px -20px rgba(233, 163, 24, 0.5);
}

.offer-card:not(.is-featured) {
    border-top: 3px solid var(--tn-blue);
}

.offer-card:target {
    outline: 2px solid var(--tn-blue);
    outline-offset: 3px;
}

.offer-photo {
    position: relative;
    background: linear-gradient(180deg, #e8f3fb 0%, #f6f7f9 100%);
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 24px 4px;
}

.offer-card.is-featured .offer-photo {
    background: linear-gradient(180deg, #fff4d8 0%, #f6f7f9 100%);
}

.offer-photo img {
    width: auto;
    max-width: 78%;
    height: 148px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 18px 24px rgba(12, 60, 96, 0.16));
}

.offer-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    background: var(--tn-green);
    color: var(--tn-navy);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
}

.offer-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 8px 22px 22px;
}

.offer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.offer-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tn-green);
}

.offer-phase {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tn-muted);
}

.offer-card h2 {
    font-size: 1.28rem;
    line-height: 1.3;
    color: var(--tn-navy);
    font-weight: 700;
    margin-bottom: 6px;
}

.offer-tag {
    color: var(--tn-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.offer-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 12px;
}

.offer-price strong {
    font-size: 1.85rem;
    letter-spacing: -0.03em;
    color: var(--tn-navy);
    font-weight: 800;
    line-height: 1;
}

.offer-price span {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--tn-muted);
}

.offer-win {
    background: #eaf4fb;
    border: 1px solid #c5dff0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tn-navy);
    line-height: 1.45;
    margin-bottom: 14px;
}

.offer-win.is-quiet {
    background: var(--tn-navy);
    border-color: var(--tn-navy);
    color: #fff;
}

.offer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
}

.offer-points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.offer-points li {
    position: relative;
    padding: 8px 0 8px 22px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--tn-ink);
    border-top: 1px solid #eef1f4;
}

.offer-points li:first-child {
    border-top: 0;
}

.offer-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tn-green);
}

.offer-actions .btn {
    flex: 1 1 140px;
    text-align: center;
}

.btn.offer-call {
    background: #fff;
    color: var(--tn-navy);
    border: 1px solid #d5dbe3;
    font-weight: 700;
}

.btn.offer-call:hover,
.btn.offer-call:focus {
    border-color: var(--tn-navy);
    color: var(--tn-navy);
    background: #f6f7f9;
}

.offer-note {
    max-width: 820px;
    margin: 1.25rem auto 0;
    text-align: center;
    color: var(--tn-muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

.offer-after {
    max-width: 760px;
    margin: 2.5rem auto 0;
    text-align: center;
}

.offer-after p {
    color: var(--tn-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.offer-after .home-cta {
    justify-content: center;
}

.order-modal .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.order-modal .modal-header {
    align-items: flex-start;
    border-bottom: 1px solid #eef1f4;
    padding: 20px 22px 14px;
}

.order-modal-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tn-green);
    margin: 0 0 4px;
}

.order-modal .modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tn-navy);
}

.order-pack-label {
    background: #eaf4fb;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tn-navy);
    margin-bottom: 14px;
}

.order-modal .modal-body {
    padding: 8px 22px 8px;
}

.order-modal label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--tn-navy);
    margin-bottom: 12px;
}

.order-modal label span {
    font-weight: 500;
    color: var(--tn-muted);
}

.order-modal input[type="text"],
.order-modal input[type="tel"],
.order-modal textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    border: 1px solid #d5dbe3;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.95rem;
    color: var(--tn-ink);
    background: #fff;
}

.order-modal input:focus,
.order-modal textarea:focus {
    outline: 2px solid var(--tn-green);
    border-color: var(--tn-green);
}

.order-gdpr {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    font-weight: 500 !important;
    color: var(--tn-ink) !important;
}

.order-gdpr input {
    margin-top: 3px;
}

.order-modal .modal-footer {
    border-top: 1px solid #eef1f4;
    padding: 14px 22px 20px;
    gap: 10px;
    justify-content: stretch;
}

.order-modal .modal-footer .btn {
    flex: 1;
}

.order-honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.order-form-error {
    margin: 0 0 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fdecea;
    color: #8a1f11;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
}

.order-form-done {
    padding: 8px 0 6px;
}

.order-done-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tn-navy);
    margin-bottom: 8px;
}

.order-form-done p {
    color: var(--tn-muted);
    line-height: 1.55;
    margin-bottom: 0;
}

.order-modal .btn:disabled {
    opacity: 0.7;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .offer-stage {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .offer-hero {
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .offer-chooser {
        grid-template-columns: 1fr;
    }

    .offer-note,
    .offer-after {
        text-align: left;
    }

    .offer-after .home-cta {
        justify-content: flex-start;
    }
}

.home-img {
    position: relative;
}

.home-img img,
.primary-img {
    display: block !important;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding-top: 0 !important;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(12, 60, 96, 0.12);
}

@media (max-width: 991.98px) {
    .home-5 {
        padding: 130px 0 48px !important;
        text-align: left;
    }

    .home-img {
        margin-top: 2rem;
    }
}

/* Inner pages should not use the landing hero chrome */
.page-hero {
    min-height: 0 !important;
    display: block !important;
    padding: 140px 0 64px !important;
    background:
        radial-gradient(ellipse 70% 42% at 0% 0%, rgba(31, 126, 196, 0.12), transparent 55%),
        radial-gradient(ellipse 52% 36% at 100% 0%, rgba(233, 163, 24, 0.12), transparent 50%),
        #fff;
}

.page-hero::before,
.page-hero::after {
    display: none !important;
}

.page-hero h1 {
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    line-height: 1.3;
    color: var(--tn-navy);
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .page-hero {
        padding: 130px 0 40px !important;
    }
}

@media (max-width: 767.98px) {
    .home-5 {
        padding: 100px 0 40px !important;
    }
    .page-hero {
        padding: 100px 0 32px !important;
    }
}

/* ---- Process / features ---- */

.features {
    padding: 72px 0 80px !important;
}

.process-visual {
    max-width: 420px;
    margin: 0 auto 2.5rem;
}

.process-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    padding: 24px 22px 22px;
    box-shadow: 0 8px 24px rgba(12, 60, 96, 0.04);
}

.process-card .process-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tn-navy);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.process-card h5 {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--tn-navy);
    text-transform: none;
    line-height: 1.35;
}

.process-card p {
    margin-bottom: 0;
    font-size: 0.92rem;
    line-height: 1.6;
}

.features-box {
    overflow: hidden;
}

/* ---- Full-width banner ---- */

.full-width-image {
    max-height: 480px;
}

.full-width-image img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    object-position: center 38%;
}

@media (max-width: 767.98px) {
    .full-width-image,
    .full-width-image img {
        height: 240px;
        max-height: 240px;
        object-position: center 30%;
    }
}

/* ---- Systems ---- */

.system-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 2.75rem;
}

.system-row:last-child {
    margin-bottom: 0;
}

.system-copy .system-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.system-copy .system-head i {
    font-size: 28px;
    color: var(--tn-green);
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.system-copy .system-head strong {
    color: var(--tn-navy);
    font-size: 1.05rem;
    line-height: 1.4;
}

.system-copy p {
    margin-bottom: 0.75rem;
}

.system-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: var(--tn-blue);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0;
    margin: 8px 0 0;
    list-style: none;
}

.system-photo {
    background: #f3f5f7;
    border-radius: 16px;
    overflow: hidden;
    min-height: 260px;
}

.system-photo img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.system-photo.is-product {
    display: flex;
    align-items: center;
    justify-content: center;
}

.system-photo.is-product img {
    height: auto;
    max-height: 320px;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .system-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .system-photo img {
        height: 240px;
    }
}

@media (min-width: 992px) {
    .col-lg-6 {
        width: 50%;
    }
}

/* Hide leftover before/after chrome if present */
#before-after:not(.system-photo) {
    min-height: 0;
}

/* ---- References ---- */

.ref-card {
    height: 100%;
    padding: 8px 12px 16px;
}

.ref-card img {
    width: 220px !important;
    height: 220px !important;
    max-width: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #fff !important;
    box-shadow: 0 12px 28px rgba(12, 60, 96, 0.12);
}

.ref-card h4 {
    font-size: 1.15rem;
    color: var(--tn-navy) !important;
    margin-top: 8px;
}

.challenge-photo img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 12px;
}

/* ---- Partner logos ---- */

#reflogos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 18px 28px;
}

#reflogos img {
    max-width: 140px;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 0;
    filter: grayscale(1);
    opacity: 0.85;
}

.cta h1,
.cta .display-4 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    color: var(--tn-navy);
}

/* ---- Contact ---- */

.contact-simple h2 {
    color: var(--tn-navy);
}

.contact-simple a.h3 {
    font-size: 1.35rem;
    word-break: break-word;
}

.contact-map .map,
.contact-map iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}

.bottom-footer p {
    line-height: 1.7;
}

/* ---- Service area map ---- */

.service-area {
    background: var(--tn-bg);
    padding-top: 56px !important;
    padding-bottom: 64px !important;
}

.service-area-title {
    color: var(--tn-navy);
    font-size: clamp(1.5rem, 2vw, 1.85rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-area-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
}

.service-area-list li {
    position: relative;
    padding-left: 14px;
    font-size: 0.95rem;
    color: var(--tn-navy);
}

.service-area-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tn-green);
}

.service-map-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(12, 60, 96, 0.1);
    background: #e8eef3;
}

#service-area-map {
    height: 460px;
    width: 100%;
    z-index: 1;
}

#service-area-map .leaflet-container,
.leaflet-container img,
.leaflet-tile-pane img {
    max-width: none !important;
    max-height: none !important;
}

.service-map-legend {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 500;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    padding: 6px 12px 6px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tn-navy);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(12, 60, 96, 0.12);
    pointer-events: none;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(162, 189, 49, 0.55);
    border: 2px solid var(--tn-navy);
    flex-shrink: 0;
}

.tn-hq-marker {
    background: none !important;
    border: none !important;
}

.tn-hq-pin {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--tn-navy);
    border: 3px solid #fff;
    box-shadow: 0 0 0 6px rgba(162, 189, 49, 0.35), 0 4px 10px rgba(12, 60, 96, 0.25);
}

.tn-town-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--tn-navy) !important;
    font-weight: 600;
    font-size: 12px;
    text-shadow: 0 0 4px #fff, 0 0 8px #fff;
}

.tn-town-label::before {
    display: none !important;
}

@media (max-width: 991.98px) {
    #service-area-map {
        height: 380px;
    }
}

@media (max-width: 575.98px) {
    #service-area-map {
        height: 320px;
    }

    .service-area-list {
        grid-template-columns: 1fr;
    }
}

/* ---- Subpage content ---- */

.page-hero .card,
.heat-pump-page .card,
.cold-storage-page .card {
    border-radius: 12px;
}

.accordion-item {
    border-radius: 10px !important;
    overflow: hidden;
    margin-bottom: 8px;
}

.accordion-button:not(.collapsed) {
    background: #f3f6ea;
    color: var(--tn-navy);
    box-shadow: none;
}

/* ---- Section titles ---- */

.sec-hd .sec-title {
    color: var(--tn-navy);
    font-size: clamp(1.4rem, 2vw, 1.85rem);
}

@media (max-width: 767.98px) {
    .sec-hd {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 2.25rem;
    }

    .sec-hd .heading {
        display: none;
    }

    .sec-hd .sec-title {
        display: block;
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
        white-space: normal;
        line-height: 1.3;
        font-size: 1.25rem !important;
        letter-spacing: 0.02em;
        text-align: center;
    }
}

/* ---- Buttons ---- */

.btn.bg-gradiant,
.navbar .btn.bg-gradiant {
    background: linear-gradient(135deg, var(--tn-blue) 0%, #1769a8 100%);
    border-color: #1769a8 !important;
    color: #fff !important;
}

.btn.bg-gradiant:hover,
.btn.bg-gradiant:focus {
    filter: brightness(1.08);
    color: #fff !important;
}

@media (max-width: 575.98px) {
    .home-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---- Specialty pages ---- */

.specialty-page {
    padding-bottom: 24px;
}

.specialty-hero {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.specialty-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tn-green);
    margin-bottom: 10px;
}

.specialty-hero h1 {
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    line-height: 1.25;
    color: var(--tn-navy);
    font-weight: 700;
    margin-bottom: 12px;
}

.specialty-hero .lead {
    font-size: 1.08rem;
    color: var(--tn-muted);
    margin-bottom: 0;
}

.specialty-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 2.75rem;
}

.specialty-switch a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--tn-navy);
    background: #fff;
    border: 1px solid #e4e8ee;
    text-decoration: none;
    transition: all 0.2s ease;
}

.specialty-switch a:hover {
    border-color: var(--tn-green);
    color: var(--tn-navy);
}

.specialty-switch a.is-active {
    background: var(--tn-blue);
    border-color: var(--tn-blue);
    color: #fff;
}

.specialty-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 3.25rem;
}

.specialty-split.is-flipped {
    grid-template-columns: 0.95fr 1.05fr;
}

.specialty-split.is-flipped .specialty-copy {
    order: -1;
}

.specialty-photo {
    background: #f3f5f7;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    min-height: 240px;
}

.specialty-photo img {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 16px;
    box-shadow: none;
    display: block;
    object-fit: cover;
    object-position: center;
}

.specialty-photo.is-product {
    aspect-ratio: auto;
    min-height: 0;
}

.specialty-photo.is-product img {
    height: auto;
    max-height: 520px;
    object-fit: contain;
}

.compare-pair .feature-card {
    border-top: 3px solid var(--tn-green);
}

.specialty-copy h2 {
    font-size: 1.35rem;
    color: var(--tn-navy);
    font-weight: 700;
    margin-bottom: 12px;
}

.specialty-copy p {
    color: var(--tn-muted);
    line-height: 1.7;
    margin-bottom: 0.85rem;
}

.specialty-section-title {
    font-size: 1.35rem;
    color: var(--tn-navy);
    font-weight: 700;
    text-align: center;
    margin: 0 0 1.5rem;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 3.25rem;
}

.feature-cards.is-2 {
    grid-template-columns: repeat(2, 1fr);
}

.feature-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 8px 24px rgba(12, 60, 96, 0.04);
    height: 100%;
}

.feature-card h3 {
    font-size: 1.02rem;
    color: var(--tn-navy);
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    margin: 0;
    color: var(--tn-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.feature-card .card-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tn-navy);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.compare-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 3.25rem;
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 3.25rem;
}

.before-after-grid figure {
    margin: 0;
}

.before-after-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(12, 60, 96, 0.08);
}

.before-after-grid figcaption {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tn-muted);
    margin-top: 8px;
}

.specialty-cta {
    text-align: center;
    background: var(--tn-navy);
    color: #fff;
    border-radius: 16px;
    padding: 40px 28px;
    margin: 8px 0 16px;
}

.specialty-cta h2 {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.specialty-cta p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 18px;
}

.specialty-cta .btn {
    background: var(--tn-green) !important;
    border-color: var(--tn-green) !important;
    color: var(--tn-navy) !important;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .specialty-split,
    .specialty-split.is-flipped {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .specialty-split.is-flipped .specialty-copy {
        order: 0;
    }

    .feature-cards,
    .feature-cards.is-2,
    .compare-pair {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575.98px) {
    .feature-cards,
    .feature-cards.is-2,
    .compare-pair,
    .before-after-grid {
        grid-template-columns: 1fr;
    }

    .before-after-grid img {
        height: 220px;
    }
}

/* ---- Facility management ---- */

.fm-note {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--tn-muted);
    padding: 14px 18px;
    background: #eaf4fb;
    border: 1px solid #c5dff0;
    border-radius: 12px;
}

.fm-note strong {
    color: var(--tn-navy);
}

.fm-toc {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 2.75rem;
}

.fm-toc a {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tn-navy);
    background: #fff;
    border: 1px solid #e4e8ee;
    text-decoration: none;
}

.fm-toc a:hover {
    border-color: var(--tn-green);
    color: var(--tn-navy);
}

.fm-scope {
    margin-bottom: 2.75rem;
    scroll-margin-top: calc(var(--tn-header-h) + var(--tn-toc-h) + 8px);
}

.fm-scope > h2 {
    font-size: 1.35rem;
    color: var(--tn-navy);
    font-weight: 700;
    margin-bottom: 8px;
}

.fm-scope > p {
    color: var(--tn-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 760px;
}

.fm-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.fm-groups.is-2 {
    grid-template-columns: repeat(2, 1fr);
}

.fm-groups > div {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    padding: 20px 18px;
    box-shadow: 0 8px 24px rgba(12, 60, 96, 0.04);
}

.fm-groups h3 {
    font-size: 0.95rem;
    color: var(--tn-navy);
    font-weight: 700;
    margin-bottom: 10px;
}

.fm-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fm-checklist li {
    position: relative;
    padding: 7px 0 7px 18px;
    font-size: 0.9rem;
    color: var(--tn-muted);
    line-height: 1.45;
    border-bottom: 1px solid #f0f2f5;
}

.fm-checklist li:last-child {
    border-bottom: none;
}

.fm-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tn-green);
}

.fm-crosslink {
    display: block;
    text-decoration: none;
    background: var(--tn-navy);
    color: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    margin: 0 0 2.5rem;
    transition: filter 0.2s ease;
}

.fm-crosslink:hover {
    color: #fff;
    filter: brightness(1.08);
}

.fm-crosslink span {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tn-green);
    margin-bottom: 4px;
}

.fm-crosslink strong {
    font-size: 1.05rem;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .fm-groups,
    .fm-groups.is-2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575.98px) {
    .fm-groups,
    .fm-groups.is-2 {
        grid-template-columns: 1fr;
    }
}

/* ---- Trust / about ---- */

.trust-section {
    background: #fff;
    padding-top: 72px;
    padding-bottom: 72px;
}

.trust-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 28px;
    align-items: stretch;
}

.trust-person {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
    background: #f6f7f9;
    border-radius: 16px;
    padding: 28px;
}

.trust-photo {
    border-radius: 16px;
    overflow: hidden;
    background: #e8ecf0;
    aspect-ratio: 3 / 4;
}

.trust-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
    display: block;
}

.trust-copy h2 {
    color: var(--tn-navy);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 4px 0 6px;
}

.trust-role {
    color: var(--tn-green);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.trust-copy p {
    color: var(--tn-muted);
    line-height: 1.7;
    margin-bottom: 0.85rem;
}

.trust-creds {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trust-creds li {
    background: #fff;
    border: 1px solid #e4e8ee;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tn-navy);
}

.google-review-card {
    height: 100%;
    background: var(--tn-navy);
    color: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.google-review-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.google-review-brand strong {
    display: block;
    font-size: 1.15rem;
}

.google-stars {
    color: #fbbc05;
    letter-spacing: 2px;
    font-size: 1.05rem;
    line-height: 1.2;
}

.google-review-card p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    margin-bottom: 22px;
}

.google-review-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.google-review-card .btn {
    background: #fff !important;
    border-color: #fff !important;
    color: var(--tn-navy) !important;
    font-weight: 700;
}

.trust-review-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.92rem;
}

.trust-review-link:hover {
    color: #fff;
}

@media (max-width: 991.98px) {
    .trust-layout,
    .trust-person {
        grid-template-columns: 1fr;
    }

    .trust-photo {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* ---- Árak: gépház + gépek ---- */

.price-include {
    max-width: 820px;
    margin: 0 auto 2.75rem;
    padding: 18px 22px;
    background: #eaf4fb;
    border: 1px solid #c5dff0;
    border-radius: 12px;
    color: var(--tn-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.price-include strong {
    color: var(--tn-navy);
}

.price-guide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 2.75rem;
}

.price-guide-item {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    padding: 20px 18px;
}

.price-guide-item span {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tn-green);
    margin-bottom: 8px;
}

.price-guide-item h3 {
    font-size: 1.02rem;
    color: var(--tn-navy);
    font-weight: 700;
    margin-bottom: 8px;
}

.price-guide-item p {
    margin: 0;
    color: var(--tn-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.price-group {
    margin-bottom: 2.75rem;
}

.price-group-title {
    font-size: 1.2rem;
    color: var(--tn-navy);
    font-weight: 700;
    margin: 0 0 6px;
}

.price-group-lead {
    color: var(--tn-muted);
    font-size: 0.95rem;
    margin: 0 0 1.15rem;
}

.price-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.price-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    padding: 22px 20px 18px;
    box-shadow: 0 8px 24px rgba(12, 60, 96, 0.04);
    display: flex;
    flex-direction: column;
}

.price-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.price-letter {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tn-navy);
}

.price-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2f6;
    color: var(--tn-navy);
}

.price-badge.is-hmv {
    background: #fff6e4;
    color: #7a5608;
}

.price-card h3 {
    font-size: 1.12rem;
    color: var(--tn-navy);
    font-weight: 700;
    margin-bottom: 10px;
}

.price-card > p {
    color: var(--tn-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.price-card ul {
    margin: 0 0 18px;
    padding: 0 0 0 1.1rem;
    color: var(--tn-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.price-card ul li + li {
    margin-top: 4px;
}

.price-cols {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #e8ecf0;
}

.price-col {
    text-align: left;
}

.price-col .kw {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--tn-navy);
    margin-bottom: 2px;
}

.price-col .hint {
    display: block;
    font-size: 0.68rem;
    color: var(--tn-muted);
    line-height: 1.35;
    margin-bottom: 6px;
    min-height: 2.6em;
}

.price-col .sum {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--tn-navy);
    letter-spacing: -0.02em;
}

.price-col .sum small {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--tn-muted);
    letter-spacing: 0;
    margin-top: 2px;
}

.price-vat {
    text-align: center;
    color: var(--tn-muted);
    font-size: 0.88rem;
    margin: -0.5rem 0 2.5rem;
}

.extra-list {
    display: grid;
    gap: 12px;
    margin-bottom: 3.25rem;
}

.extra-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    padding: 16px 20px;
}

.extra-row h3 {
    font-size: 1rem;
    color: var(--tn-navy);
    font-weight: 700;
    margin: 0 0 4px;
}

.extra-row p {
    margin: 0;
    color: var(--tn-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.extra-sum {
    text-align: right;
    white-space: nowrap;
}

.extra-sum strong {
    display: block;
    font-size: 1.05rem;
    color: var(--tn-navy);
}

.extra-sum span {
    font-size: 0.75rem;
    color: var(--tn-muted);
}

.extra-row--tiers {
    grid-template-columns: 1fr;
}

.extra-row--tiers .price-cols {
    margin-top: 14px;
    padding-top: 14px;
}

.extra-row--tiers .price-col .hint {
    min-height: 0;
}

.gepek-soon {
    max-width: 640px;
    margin: 0 auto 3rem;
    text-align: center;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 16px;
    padding: 40px 28px;
}

.gepek-soon img {
    height: 48px;
    width: auto;
    margin: 0 auto 18px;
    display: block;
}

.gepek-soon h2 {
    font-size: 1.35rem;
    color: var(--tn-navy);
    font-weight: 700;
    margin-bottom: 10px;
}

.gepek-soon p {
    color: var(--tn-muted);
    margin-bottom: 0.85rem;
}

.gepek-soon p:last-of-type {
    margin-bottom: 18px;
}

.overflow-hidden-x:has(.catalog-toc),
.overflow-hidden-x:has(.specialty-switch.is-sticky),
.overflow-hidden-x:has(.fm-toc.is-sticky) {
    overflow-x: clip;
}

html:has(.catalog-toc),
html:has(.specialty-switch.is-sticky),
html:has(.fm-toc.is-sticky) {
    scroll-padding-top: calc(var(--tn-header-h) + var(--tn-toc-h) + 8px);
}

html:has(.specialty-switch.is-sticky):has(.catalog-toc) {
    scroll-padding-top: calc(var(--tn-header-h) + var(--tn-toc-h) * 2 + 8px);
}

.catalog-toc,
.specialty-switch.is-sticky,
.fm-toc.is-sticky {
    position: sticky;
    top: var(--tn-header-h);
    z-index: 1020;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 2.25rem;
    padding: 10px 4px 12px;
    background: rgba(246, 247, 249, 0.94);
    backdrop-filter: saturate(1.1) blur(12px);
    -webkit-backdrop-filter: saturate(1.1) blur(12px);
    border-bottom: 1px solid #e4e8ee;
    box-shadow: 0 10px 18px -14px rgba(12, 60, 96, 0.35);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.page-hero:has(.specialty-switch.is-sticky) .catalog-toc {
    top: calc(var(--tn-header-h) + var(--tn-toc-h));
    z-index: 1019;
}

.catalog-toc::-webkit-scrollbar,
.specialty-switch.is-sticky::-webkit-scrollbar,
.fm-toc.is-sticky::-webkit-scrollbar {
    display: none;
}

.catalog-toc a,
.specialty-switch.is-sticky a,
.fm-toc.is-sticky a {
    display: inline-block;
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tn-navy);
    background: #fff;
    border: 1px solid #e4e8ee;
    text-decoration: none;
}

.catalog-toc a:hover,
.specialty-switch.is-sticky a:hover,
.fm-toc.is-sticky a:hover {
    border-color: var(--tn-green);
}

.catalog-toc a.is-active,
.specialty-switch.is-sticky a.is-active,
.fm-toc.is-sticky a.is-active {
    background: var(--tn-blue);
    border-color: var(--tn-blue);
    color: #fff;
}

.fm-toc.is-sticky {
    flex-wrap: wrap;
    overflow-x: visible;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

.catalog-note {
    max-width: 820px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--tn-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.catalog-block {
    margin-bottom: 3rem;
    scroll-margin-top: calc(var(--tn-header-h) + var(--tn-toc-h) + 8px);
}

.catalog-block h2 {
    font-size: 1.45rem;
    color: var(--tn-navy);
    font-weight: 700;
    text-align: center;
    margin: 0 0 8px;
}

.catalog-block > .lead {
    text-align: center;
    color: var(--tn-muted);
    font-size: 0.98rem;
    max-width: 720px;
    margin: 0 auto 1.35rem;
}

.catalog-block h3 {
    font-size: 1.12rem;
    color: var(--tn-navy);
    font-weight: 700;
    margin: 1.5rem 0 8px;
}

.catalog-block h3 + p,
.catalog-legend {
    color: var(--tn-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 0 12px;
}

.catalog-wrap {
    overflow-x: auto;
    margin-bottom: 8px;
    border: 1px solid #e8ecf0;
    border-radius: 14px;
    background: #fff;
}

.catalog-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    margin: 0;
}

.catalog-table th,
.catalog-table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid #eef1f4;
    vertical-align: top;
}

.catalog-table th small {
    display: block;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--tn-muted);
    font-size: 0.72rem;
    margin-top: 2px;
}

.catalog-table.is-wide {
    min-width: 980px;
}

.catalog-table.is-wide th {
    font-size: 0.78rem;
    line-height: 1.3;
    white-space: nowrap;
}

.catalog-table td.num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--tn-navy);
    font-size: 0.88rem;
}

.catalog-table td.num b {
    font-weight: 700;
}

.catalog-fiche {
    margin: 0 0 12px;
    font-size: 0.86rem;
}

.catalog-fiche a {
    color: var(--tn-navy);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.catalog-specnote {
    max-width: 820px;
    margin: 0 0 14px;
    color: var(--tn-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.catalog-table tr:last-child td {
    border-bottom: 0;
}

.catalog-table td.name {
    font-weight: 700;
    color: var(--tn-navy);
    min-width: 180px;
}

.catalog-table td.meta {
    color: var(--tn-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.catalog-table td.price {
    font-weight: 700;
    color: var(--tn-navy);
    white-space: nowrap;
    text-align: right;
}

.catalog-table td.price small {
    display: block;
    font-weight: 600;
    color: var(--tn-muted);
    font-size: 0.75rem;
    margin-top: 2px;
}

.catalog-table .badge-out {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 999px;
    background: #fdecec;
    color: #8a2a2a;
}

.catalog-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 1.5rem;
}

.catalog-split img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
}

.catalog-split.is-product img {
    object-fit: contain;
    background: #fff;
    height: 260px;
    border: 1px solid #e6eaee;
}

@media (max-width: 991.98px) {
    .price-guide,
    .price-pair,
    .catalog-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .price-cols {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .price-col .hint {
        min-height: 0;
    }

    .extra-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .extra-sum {
        text-align: left;
    }
}
