* {
    box-sizing: border-box;
}

:root {
    --bg: #07545a;
    --bg-deep: #06484f;
    --bg-soft: #0b6268;
    --panel: #0d6d72;
    --line: #6ccfc2;
    --line-soft: rgba(159, 248, 232, 0.26);
    --text: #effffb;
    --muted: #c6efe8;
    --accent: #9ff8e8;
    --signal: #f3df78;
    --lavender: #d8d5ff;
    --focus: #fff2a7;
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    line-height: 1.68;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

.wrap {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg-deep);
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 18px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border: 2px solid var(--accent);
    border-radius: 10px 10px 4px 10px;
    position: relative;
}

.brand-mark::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 3px solid var(--signal);
    border-radius: 50%;
    top: 7px;
    left: 7px;
}

.brand-mark::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 2px;
    background: var(--accent);
    right: 4px;
    bottom: 6px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
    font-size: 15px;
}

.main-nav a:hover,
.main-nav a:active {
    color: var(--signal);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--accent);
    border-radius: 10px 10px 3px 10px;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.2;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
    background: var(--accent);
    color: var(--bg-deep);
}

.button:active {
    transform: translateY(0);
}

.button.signal {
    background: var(--signal);
    border-color: var(--signal);
    color: #31575a;
}

.button.signal:hover {
    background: var(--lavender);
    border-color: var(--lavender);
}

main {
    overflow: hidden;
}

.section {
    padding: 56px 0;
    border-bottom: 1px solid var(--line-soft);
}

.section.soft {
    background: var(--bg-soft);
}

.section.deep {
    background: var(--bg-deep);
}

.section-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--signal);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 20px;
    font-size: 40px;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

h2 {
    margin-bottom: 18px;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h3 {
    margin-bottom: 10px;
    font-size: 19px;
    line-height: 1.3;
}

p {
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--muted);
}

p:last-child {
    margin-bottom: 0;
}

.intro-bay {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 54px;
    align-items: start;
}

.intro-bay::before {
    content: "";
    position: absolute;
    left: -42px;
    top: 4px;
    bottom: 4px;
    width: 5px;
    border-radius: 5px;
    background: repeating-linear-gradient(to bottom, var(--signal) 0 12px, transparent 12px 22px);
}

.lead {
    max-width: 760px;
    color: var(--text);
}

.service-ticket {
    border: 1px solid var(--line);
    border-radius: var(--radius) var(--radius) 5px var(--radius);
    padding: 24px;
    background: rgba(6, 72, 79, 0.7);
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line-soft);
    font-size: 14px;
}

.ticket-row:last-child {
    border-bottom: 0;
}

.ticket-row strong {
    color: var(--text);
}

.ticket-row span {
    color: var(--accent);
    text-align: right;
}

.appliance-run {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.appliance-run span {
    border-bottom: 2px solid var(--line);
    padding: 6px 2px;
    color: var(--text);
    font-weight: 800;
}

.workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 46px;
    align-items: start;
}

.workbench-note {
    padding: 22px 0 22px 24px;
    border-left: 4px solid var(--signal);
}

.workbench-note p {
    color: var(--text);
}

.fault-bands {
    margin: 28px 0 0;
    border-top: 1px solid var(--line-soft);
}

.fault-band {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 28px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line-soft);
}

.fault-band strong {
    color: var(--signal);
}

.fault-band p {
    margin: 0;
}

.route-strip {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.route-code {
    border: 1px solid var(--accent);
    border-radius: 14px 14px 4px 14px;
    padding: 20px;
    color: var(--accent);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
}

.hours-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 20px;
    color: var(--text);
    font-weight: 700;
}

.contact-rail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.contact-rail .copy {
    max-width: 700px;
}

.contact-rail .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* HOME: awaria jako ciąg objawów */
.breakdown-opening {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 48px;
    align-items: end;
}

.symptom-meter {
    border-top: 4px solid var(--signal);
    padding-top: 18px;
}

.symptom-meter span {
    display: block;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-soft);
    color: var(--accent);
    font-weight: 800;
}

.symptom-flow {
    max-width: 900px;
}

.symptom-item {
    position: relative;
    padding: 0 0 28px 54px;
}

.symptom-item::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--signal);
    font-size: 13px;
    font-weight: 900;
}

.symptom-item::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 38px;
    bottom: 4px;
    width: 1px;
    background: var(--line-soft);
}

.symptom-item:last-child::after {
    display: none;
}

.visit-frame {
    border-left: 6px solid var(--accent);
    padding-left: 28px;
    max-width: 880px;
}

.visit-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 22px;
    color: var(--text);
    font-weight: 800;
}

/* OFERTA: warunki jak karta robocza */
.offer-opening {
    max-width: 900px;
    padding-right: 60px;
    position: relative;
}

.offer-opening::after {
    content: "USŁUGA";
    position: absolute;
    right: 0;
    top: 4px;
    writing-mode: vertical-rl;
    letter-spacing: 0.24em;
    color: var(--signal);
    font-size: 12px;
    font-weight: 900;
}

.service-scope {
    border-top: 1px solid var(--line-soft);
}

.scope-row {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 34px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line-soft);
}

.scope-row h3 {
    color: var(--accent);
}

.price-stamp {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    border: 1px solid var(--signal);
    border-radius: 8px 8px 2px 8px;
    color: var(--signal);
    font-weight: 900;
}

.prefooter-note {
    padding: 24px 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line-soft);
}

.prefooter-note p {
    margin: 0;
    font-size: 14px;
    color: #acdcd5;
}

.site-footer {
    background: #085158;
    padding: 28px 0;
}

.footer-shell {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover,
.footer-links a:active {
    color: var(--signal);
}

.footer-copy {
    color: #acdcd5;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .header-shell {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .main-nav {
        order: 3;
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid var(--line-soft);
    }

    .intro-bay,
    .workbench,
    .breakdown-opening {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-ticket,
    .symptom-meter {
        max-width: 680px;
    }

    .intro-bay::before {
        left: -20px;
    }

    .contact-rail {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-rail .actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .wrap {
        width: min(100% - 34px, 1120px);
    }

    .section {
        padding: 42px 0;
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .fault-band,
    .route-strip,
    .scope-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .route-code {
        width: max-content;
        max-width: 100%;
    }

    .offer-opening {
        padding-right: 34px;
    }
}

@media (max-width: 520px) {
    .wrap {
        width: min(100% - 28px, 1120px);
    }

    h1 {
        font-size: 40px;
        overflow-wrap: anywhere;
    }

    h2 {
        font-size: 28px;
        overflow-wrap: anywhere;
    }

    p {
        font-size: 16px;
    }

    .main-nav {
        gap: 12px 16px;
    }

    .header-actions,
    .contact-rail .actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .button {
        width: 100%;
    }

    .intro-bay::before {
        display: none;
    }

    .service-ticket {
        padding: 20px;
    }

    .ticket-row {
        flex-direction: column;
        gap: 3px;
    }

    .ticket-row span {
        text-align: left;
    }

    .symptom-item {
        padding-left: 46px;
    }

    .footer-shell {
        align-items: flex-start;
        flex-direction: column;
    }
}
