:root {
    --paper: #f7f9fb;
    --paper-alt: #edf2f5;
    --surface: #ffffff;
    --ink: #304861;
    --muted: #66788a;
    --line: #cdd8e1;
    --line-strong: #9fb1c0;
    --accent: #d95f59;
    --accent-strong: #b94743;
    --teal: #2f8f88;
    --teal-soft: #dfeeed;
    --blue-soft: #e7eef5;
    --focus: #2a6f9e;
    --wrap: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

body::before {
    content: "";
    display: block;
    height: 6px;
    background: var(--teal);
    border-right: 24vw solid var(--accent);
}

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

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    margin-bottom: 22px;
    font-size: 40px;
    font-weight: 760;
}

h2 {
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 730;
}

h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 720;
}

p {
    margin-bottom: 18px;
    font-size: 16px;
}

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

a {
    color: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247, 249, 251, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.header-line {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 28px;
}

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

.brand-mark {
    display: grid;
    width: 32px;
    height: 32px;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    align-items: end;
    padding: 5px;
    border: 2px solid var(--ink);
    border-radius: 7px;
    background: var(--surface);
}

.brand-mark span {
    display: block;
    overflow: hidden;
    color: transparent;
    font-size: 0;
    background: var(--teal);
    border-radius: 2px 2px 1px 1px;
}

.brand-mark span:nth-child(1) {
    height: 8px;
}

.brand-mark span:nth-child(2) {
    height: 15px;
    background: var(--accent);
}

.brand-mark span:nth-child(3) {
    height: 11px;
}

.brand-name {
    white-space: nowrap;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: auto;
}

.nav-link {
    position: relative;
    padding: 26px 13px 24px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 650;
    color: var(--muted);
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 13px;
    bottom: 18px;
    left: 13px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--teal);
    transition: transform 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.header-actions,
.opening-actions,
.closing-actions,
.appointment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 720;
    line-height: 1.25;
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.button:hover {
    transform: translateY(-1px);
}

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

.button-phone {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--ink);
}

.button-phone:hover {
    border-color: var(--teal);
    background: var(--teal-soft);
}

.button-alert {
    background: var(--accent);
    color: var(--surface);
}

.button-alert:hover {
    background: var(--accent-strong);
}

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

.eyebrow,
.section-index {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lead {
    max-width: 760px;
    font-size: 16px;
    line-height: 1.7;
}

.opening,
.repair-opening,
.offer-opening {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.opening-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
    gap: 58px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 66px;
}

.opening-main {
    position: relative;
    padding-left: 26px;
}

.opening-main::before,
.repair-intro::before,
.offer-summary::before {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 4px;
    left: 0;
    width: 5px;
    border-radius: 4px;
    background: var(--teal);
}

.opening-actions {
    margin-top: 28px;
}

.service-gauge {
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 8px 8px 0 var(--blue-soft);
    overflow: hidden;
}

.gauge-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
    background: var(--ink);
    color: #f6fbff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.gauge-list {
    margin: 0;
}

.gauge-list div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
}

.gauge-list div:first-child {
    border-top: 0;
}

.gauge-list dt,
.gauge-list dd {
    margin: 0;
    font-size: 14px;
}

.gauge-list dt {
    color: var(--muted);
}

.gauge-list dd {
    font-weight: 760;
}

.section {
    padding: 66px 0;
}

.section-tint {
    background: var(--paper-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.rail-layout {
    display: grid;
    grid-template-columns: 86px minmax(0, 790px);
    gap: 36px;
    justify-content: center;
}

.rail-label {
    position: relative;
    min-height: 100%;
    border-right: 2px solid var(--line-strong);
}

.rail-label::after {
    content: "";
    position: absolute;
    top: 50px;
    right: -7px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--teal);
    border-radius: 50%;
    background: var(--paper);
}

.rail-label span {
    display: inline-block;
    padding-top: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.rail-content p {
    max-width: 790px;
}

.route-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    gap: 58px;
    align-items: start;
}

.route-copy p {
    max-width: 650px;
}

.route-track {
    position: relative;
    padding-left: 34px;
}

.route-track::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 10px;
    width: 2px;
    background: var(--line-strong);
}

.route-track article {
    position: relative;
    padding: 0 0 24px 20px;
}

.route-track article:last-child {
    padding-bottom: 0;
}

.route-track article > span {
    position: absolute;
    top: 2px;
    left: -31px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: var(--teal);
    color: var(--surface);
    font-size: 9px;
    font-weight: 800;
}

.route-track p,
.visit-points p,
.local-note p,
.symptom-note p,
.device-ticket p {
    color: var(--muted);
}

.diagnosis-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 760px);
    gap: 56px;
    justify-content: center;
    align-items: start;
}

.diagnosis-number {
    padding-top: 6px;
    color: var(--accent);
    font-size: 66px;
    font-weight: 820;
    line-height: 1;
    letter-spacing: -0.06em;
}

.diagnosis-number::after {
    content: "zł diagnoza";
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.local-grid,
.symptom-layout,
.devices-layout,
.terms-layout,
.appointment-layout,
.offer-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.38fr);
    gap: 54px;
    align-items: start;
}

.local-note,
.symptom-note,
.device-ticket,
.terms-stamp {
    padding: 22px;
    border-left: 4px solid var(--teal);
    background: var(--surface);
}

.closing-service {
    padding-top: 54px;
    padding-bottom: 54px;
    background: var(--blue-soft);
    border-top: 1px solid var(--line);
}

.closing-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.closing-layout > div:first-child {
    max-width: 720px;
}

.extra-copy {
    padding: 24px 0 28px;
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.extra-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #dfe7ed;
}

.footer-line {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.footer-brand {
    text-decoration: none;
    font-weight: 760;
}

.footer-line nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-line nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
}

.footer-line nav a:hover {
    color: var(--teal);
}

.privacy-link {
    opacity: 0.62;
    font-size: 12px !important;
}

.repair-opening-grid {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 58px;
    align-items: stretch;
    padding-top: 62px;
    padding-bottom: 62px;
}

.fault-strip {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.fault-strip span {
    padding: 13px 10px 13px 0;
    border-bottom: 1px dashed var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 680;
    text-transform: lowercase;
}

.fault-strip span:last-child {
    border-bottom: 0;
}

.fault-strip span::before {
    content: "•";
    display: inline-block;
    width: 18px;
    color: var(--accent);
}

.repair-intro {
    position: relative;
    max-width: 780px;
    padding-left: 28px;
}

.visit-stack {
    max-width: 950px;
}

.visit-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 34px;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.visit-points article {
    padding: 22px 22px 20px;
    border-right: 1px solid var(--line);
}

.visit-points article:first-child {
    padding-left: 0;
}

.visit-points article:last-child {
    padding-right: 0;
    border-right: 0;
}

.visit-points strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.cases-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
    gap: 70px;
}

.cases-head {
    padding-top: 2px;
    border-top: 4px solid var(--accent);
}

.cases-copy {
    max-width: 720px;
}

.appointment-band {
    border-bottom: 0;
}

.appointment-layout {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.repair-close .wrap {
    max-width: 900px;
}

.offer-opening-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1fr);
    gap: 72px;
    padding-top: 64px;
    padding-bottom: 58px;
}

.offer-title {
    padding-top: 8px;
    border-top: 4px solid var(--teal);
}

.offer-summary {
    position: relative;
    padding-left: 28px;
}

.offer-ledger {
    padding: 66px 0;
}

.ledger-wrap {
    display: grid;
    grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
    gap: 64px;
}

.ledger-intro {
    padding-top: 4px;
}

.ledger-rows {
    border-top: 1px solid var(--line-strong);
}

.ledger-rows article {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.ledger-no {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
}

.ticket-label {
    display: block;
    margin-bottom: 18px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.device-ticket strong {
    display: block;
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.15;
}

.terms-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
}

.terms-stamp {
    border-left-color: var(--accent);
}

.terms-stamp span {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 820;
    letter-spacing: 0.1em;
}

.terms-stamp strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
}

.offer-contact-layout {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

@media (max-width: 1024px) {
    .wrap {
        width: min(calc(100% - 40px), var(--wrap));
    }

    .header-line {
        flex-wrap: wrap;
        gap: 8px 18px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .primary-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        border-top: 1px solid var(--line);
    }

    .nav-link {
        padding-top: 13px;
        padding-bottom: 11px;
    }

    .nav-link::after {
        bottom: 5px;
    }

    .header-actions {
        margin-left: auto;
    }

    .opening-grid,
    .route-layout,
    .repair-opening-grid,
    .offer-opening-layout,
    .ledger-wrap,
    .cases-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .opening-grid {
        padding-top: 52px;
        padding-bottom: 54px;
    }

    .service-gauge {
        max-width: 540px;
    }

    .route-track {
        max-width: 650px;
    }

    .diagnosis-layout {
        grid-template-columns: 130px minmax(0, 1fr);
        gap: 34px;
    }

    .local-grid,
    .symptom-layout,
    .devices-layout,
    .terms-layout {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
        gap: 36px;
    }

    .repair-opening-grid {
        padding-top: 48px;
        padding-bottom: 50px;
    }

    .fault-strip {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        border-bottom: 0;
    }

    .fault-strip span {
        border-right: 1px dashed var(--line);
        border-bottom: 1px solid var(--line-strong);
    }

    .fault-strip span:last-child {
        border-right: 0;
        border-bottom: 1px solid var(--line-strong);
    }

    .offer-opening-layout,
    .ledger-wrap {
        gap: 38px;
    }
}

@media (max-width: 768px) {
    .wrap {
        width: min(calc(100% - 32px), var(--wrap));
    }

    .site-header {
        position: static;
    }

    .header-line {
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        margin-left: 0;
    }

    .header-actions .button {
        flex: 1 1 180px;
    }

    .primary-nav {
        order: 2;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .header-actions {
        order: 3;
    }

    .section {
        padding: 50px 0;
    }

    .opening-grid,
    .offer-opening-layout {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .rail-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .rail-label {
        min-height: 0;
        border-right: 0;
        border-bottom: 2px solid var(--line-strong);
    }

    .rail-label::after {
        top: auto;
        right: 18px;
        bottom: -7px;
    }

    .rail-label span {
        padding: 0 0 8px;
    }

    .diagnosis-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .diagnosis-number {
        font-size: 52px;
    }

    .local-grid,
    .symptom-layout,
    .devices-layout,
    .terms-layout,
    .appointment-layout,
    .offer-contact-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .local-note,
    .symptom-note,
    .device-ticket,
    .terms-stamp {
        max-width: 560px;
    }

    .closing-layout {
        align-items: flex-start;
        flex-direction: column;
    }

    .visit-points {
        grid-template-columns: 1fr;
    }

    .visit-points article,
    .visit-points article:first-child,
    .visit-points article:last-child {
        padding: 18px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .visit-points article:last-child {
        border-bottom: 0;
    }

    .fault-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .fault-strip span:nth-child(2) {
        border-right: 0;
    }

    .cases-layout {
        gap: 26px;
    }

    .ledger-rows article {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .wrap {
        width: min(calc(100% - 24px), var(--wrap));
    }

    body::before {
        height: 5px;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 28px;
    }

    p {
        font-size: 16px;
    }

    .brand-name {
        font-size: 15px;
    }

    .primary-nav {
        gap: 0;
    }

    .nav-link {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 14px;
    }

    .nav-link::after {
        right: 10px;
        left: 10px;
    }

    .button {
        width: 100%;
    }

    .opening-grid,
    .repair-opening-grid,
    .offer-opening-layout {
        padding-top: 38px;
        padding-bottom: 40px;
    }

    .opening-main,
    .repair-intro,
    .offer-summary {
        padding-left: 20px;
    }

    .gauge-head {
        flex-direction: column;
        gap: 4px;
    }

    .route-track {
        padding-left: 28px;
    }

    .route-track article {
        padding-left: 14px;
    }

    .diagnosis-number {
        font-size: 46px;
    }

    .closing-actions,
    .appointment-actions {
        width: 100%;
    }

    .footer-line {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 24px;
        padding-bottom: 26px;
    }

    .footer-line nav {
        gap: 16px;
    }

    .fault-strip {
        grid-template-columns: 1fr;
    }

    .fault-strip span,
    .fault-strip span:nth-child(2) {
        border-right: 0;
    }

    .offer-title {
        padding-top: 14px;
    }
}
