
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');


:root {
    --blue: #003569;
    --blue-dark: rgb(0, 38, 79);
    --navy: #071b33;
    --white: #ffffff;
    --text: #26384b;
    --muted: #718096;
    --background: #f5f8fc;
    --border: #e1e9f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--text);
}

.container {
    width: min(1180px, 90%);
    margin: auto;
}

/* HEADER */

.header {
    height: 82px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Manrope', sans-serif;
    font-size: 23px;
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    display: block;
    font-size: 9px;
    letter-spacing: 5px;
    color: var(--blue);
}

.navigation {
    display: flex;
    align-items: center;
    gap: 38px;
}

.navigation a {
    text-decoration: none;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    transition: color .2s;
}

.navigation a:hover {
    color: var(--blue);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* WSPÓLNE MODUŁY */

.module {
    padding: 110px 0;
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 22px;
}

/* MODUŁ 1 - AUTOMATYKA - BLUE */

.automation {
    color: white;
    background:
        radial-gradient(circle at 85% 40%, rgba(255,255,255,.13), transparent 30%),
        linear-gradient(135deg, #00365f, #0566b2);
    overflow: hidden;
}

.automation .eyebrow {
    color: #bde3ff;
}

.automation h1 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(38px, 5vw, 61px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -2px;
    max-width: 650px;
    color: white;
}

.automation h1 span {
    display: block;
    color: #bde3ff;
}

.automation-layout {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 70px;
}

.lead {
    max-width: 540px;
    color: #e0f1ff;
    line-height: 1.9;
    margin-top: 25px;
    font-size: 16px;
}

.automation-features {
    display: grid;
    gap: 25px;
    margin-top: 42px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.feature-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.16);
    color: white;
    font-size: 12px;
    font-weight: 800;
    border-radius: 12px;
}

.feature h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 5px;
}

.feature p {
    color: #d3eaff;
    font-size: 13px;
    line-height: 1.7;
}

/* KARTA AUTOMATYKI */

.automation-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 430px;
}

.visual-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    padding: 32px;
    background: white;
    color: var(--navy);
    border-radius: 22px;
    box-shadow: 0 25px 80px rgba(0,0,0,.2);
}

.visual-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #27c982;
}

.temperature {
    padding: 50px 0;
    text-align: center;
}

.temperature-label {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.temperature strong {
    display: block;
    color: var(--navy);
    font-size: 76px;
    font-family: 'Manrope', sans-serif;
    letter-spacing: -5px;
}

.temperature strong span {
    color: var(--blue);
    font-size: 36px;
}

.temperature-status {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.visual-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.visual-bottom div span,
.visual-bottom div strong {
    display: block;
}

.visual-bottom div span {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 5px;
}

.visual-bottom div strong {
    color: var(--navy);
    font-size: 13px;
}

.visual-decoration {
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background: rgba(255,255,255,.13);
    right: 0;
    bottom: 0;
}

/* MODUŁ 2 - SERWIS - WHITE */

.service {
    background: white;
    color: var(--text);
}

.service .eyebrow {
    color: var(--blue);
}

.section-heading {
    max-width: 650px;
    margin-bottom: 55px;
}

.section-heading h2 {
    font-family: 'Manrope', sans-serif;
    color: var(--navy);
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.2;
    letter-spacing: -2px;
}

.section-heading h2 span {
    color: var(--blue);
}

.section-heading p {
    color: var(--muted);
    line-height: 1.9;
    margin-top: 18px;
    font-size: 15px;
}

/* KARTY PRODUCENTÓW */

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card {
    position: relative;
    min-height: 270px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    background: #f7faff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
}

.service-card:hover,
.service-card:focus-visible,
.service-card.active {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(7, 27, 51, .12);
    outline: none;
}

.brand-logo {
    position: relative;
    z-index: 1;
    text-align: center;
    transition: opacity .3s, transform .3s;
}

/* TYPOGRAFICZNE LOGOTYPY */

.tech-logo {
    color: #075da7;
    font-family: Arial, sans-serif;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -4px;
}

.tech-logo small {
    display: block;
    font-size: 12px;
    letter-spacing: 5px;
}

.viessmann-logo {
    color: #1682c5;
    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -1px;
}

.saunier-logo {
    color: #075da7;
    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 1px;
}

.saunier-logo small {
    display: block;
    font-size: 17px;
    letter-spacing: 7px;
}

.vaillant-logo {
    color: #1682c5;
    font-family: Arial, sans-serif;
    font-size: 29px;
    font-weight: 900;
    letter-spacing: 1px;
}

/* OPIS PO NAJECHANIU */

.brand-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    background: linear-gradient(145deg, #087bd1, #075da7);
    color: white;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity .3s, transform .3s;
}

.service-card:hover .brand-overlay,
.service-card:focus-visible .brand-overlay,
.service-card.active .brand-overlay {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover .brand-logo,
.service-card:focus-visible .brand-logo,
.service-card.active .brand-logo {
    opacity: 0;
    transform: scale(.85);
}

.brand-category {
    color: #bde3ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 13px;
}

.brand-overlay h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    margin-bottom: 12px;
}

.brand-overlay p {
    color: #e0f1ff;
    font-size: 13px;
    line-height: 1.7;
}

.service-note {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    background: #edf6ff;
    border-radius: 12px;
}

.note-icon {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    min-width: 25px;
    border-radius: 50%;
    background: var(--blue);
    color: white;
    font-weight: 800;
    font-size: 13px;
}

.service-note p {
    color: var(--navy);
    font-size: 13px;
    line-height: 1.6;
}

/* MODUŁ 3 - KONTAKT - BLUE */

.contact {
    background: linear-gradient(135deg, #0566b2, #00365f );
    color: white;
    overflow: hidden;
}

.contact .eyebrow {
    color: #bde3ff;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr .8fr;
    align-items: center;
    gap: 80px;
}

.contact h2 {
    color: white;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(34px, 4vw, 48px);
    letter-spacing: -2px;
}

.contact-content > p {
    max-width: 500px;
    margin-top: 22px;
    color: #e0f1ff;
    line-height: 1.9;
    font-size: 15px;
}

.contact-details {
    display: grid;
    gap: 25px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 17px;
}

.contact-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.16);
    color: white;
    border-radius: 12px;
    font-size: 21px;
}

.contact-item div span,
.contact-item div strong {
    display: block;
}

.contact-item div span {
    color: #c4e5ff;
    font-size: 12px;
    margin-bottom: 5px;
}

.contact-item div strong {
    color: white;
    font-size: 15px;
}

.contact-panel {
    position: relative;
    min-height: 360px;
    padding: 45px;
    background: rgba(0, 46, 94, .3);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    overflow: hidden;
}

.panel-decoration {
    position: absolute;
    width: 250px;
    height: 250px;
    right: -80px;
    top: -80px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    box-shadow:
        0 0 0 30px rgba(255,255,255,.04),
        0 0 0 60px rgba(255,255,255,.03);
}

.panel-label {
    position: relative;
    color: #bde3ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
}

.contact-panel h3 {
    position: relative;
    margin-top: 55px;
    color: white;
    font-family: 'Manrope', sans-serif;
    font-size: 37px;
    line-height: 1.35;
}

.contact-panel p {
    position: relative;
    margin-top: 25px;
    color: #d3eaff;
    font-size: 13px;
}

/* STOPKA */

.footer {
    padding: 25px 0;
    background: #041326;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #8fa4ba;
    font-size: 11px;
}

.footer-content span:first-child {
    color: white;
    font-weight: 800;
    letter-spacing: 1px;
}

/* RESPONSYWNOŚĆ */

@media (max-width: 1000px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 850px) {
    .automation-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .automation-visual {
        min-height: 350px;
    }

    .contact-panel {
        min-height: 300px;
    }

    .module {
        padding: 80px 0;
    }
}

@media (max-width: 600px) {
    .header {
        height: 70px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .menu-toggle span {
        width: 25px;
        height: 2px;
        background: var(--navy);
    }

    .navigation {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 25px 5%;
        background: white;
        border-top: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .navigation.active {
        display: flex;
    }

    .automation h1 {
        font-size: 39px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 240px;
    }

    .visual-card {
        padding: 24px;
    }

    .temperature strong {
        font-size: 65px;
    }

    .contact-panel {
        padding: 30px;
    }

    .contact-panel h3 {
        font-size: 31px;
    }

    .footer-content {
        flex-direction: column;
    }
}
