:root {
    --dw-navy: #0c192c;
    --dw-orange: #f47c20;
    --dw-paper: #f7f7f5;
    --dw-line: #dce0e4;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-underline-offset: 4px;
}

:focus-visible {
    outline: 3px solid #a34a00;
    outline-offset: 5px;
}

.dw-shell {
    padding-inline: clamp(20px, 5vw, 80px);
}

.dw-header {
    border-bottom: 1px solid var(--dw-line);
    background: #fff;
}

.dw-footer {
    background: var(--dw-navy);
    color: #fff;
}

.dw-footer a {
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* DWLink Premium – D02.2 */

.wp-site-blocks {
    padding: 0;
}

.wp-site-blocks > * {
    margin-block-start: 0;
}

.dw-header {
    padding-block: 22px;
}

.dw-header .wp-block-site-title {
    margin: 0;
    line-height: 1;
    letter-spacing: -0.06em;
}

.dw-header .wp-block-site-title a {
    text-decoration: none;
}

.dw-header .wp-block-navigation {
    font-size: 15px;
    font-weight: 550;
}

.dw-header .wp-block-navigation a:hover {
    color: #a34a00;
}

.dw-hero {
    padding: clamp(42px, 6vw, 90px) clamp(20px, 5vw, 80px);
    background: #f7f7f5;
}

.dw-hero .wp-block-columns {
    align-items: center;
    gap: clamp(30px, 5vw, 80px);
    max-width: 1320px;
    margin-inline: auto;
}

.dw-eyebrow {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.dw-eyebrow::before {
    content: "";
    display: inline-block;
    width: 25px;
    height: 3px;
    margin-right: 12px;
    vertical-align: middle;
    background: var(--dw-orange);
}

.dw-hero h1 {
    font-size: clamp(42px, 5vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.055em;
    margin-block: 24px;
}

.dw-lead {
    max-width: 560px;
    font-size: clamp(17px, 1.5vw, 20px);
    color: #505963;
    line-height: 1.65;
}

.dw-hero-visual {
    min-height: 390px;
    background: #e7e9e9;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    border-bottom: 4px solid var(--dw-orange);
}

.dw-hero-visual p {
    margin: 0;
}

.dw-section {
    padding: clamp(48px, 6vw, 88px) clamp(20px, 5vw, 80px);
}

.dw-section h2 {
    font-size: clamp(32px, 3.5vw, 50px);
    letter-spacing: -0.045em;
}

.dw-services {
    background: #fff;
}

.dw-service-row {
    border-top: 1px solid #dce0e4;
    padding-block: 25px;
    margin-block-start: 0 !important;
}

.dw-service-row h3 {
    font-size: clamp(21px, 2.2vw, 30px);
    margin: 0;
}

.dw-service-row h3 a {
    text-decoration: none;
}

.dw-service-row h3 a:hover {
    text-decoration: underline;
}

.dw-service-row p {
    color: #626a73;
    font-size: 15px;
    margin-block: 8px 0;
}

.dw-service-number {
    font-size: 13px;
    font-weight: 700;
    color: #a34a00;
    letter-spacing: 0.08em;
}

.dw-experience {
    background: #0c192c;
    color: white;
}

.dw-experience h2,
.dw-experience a {
    color: white;
}

.dw-experience-year {
    font-size: clamp(72px, 11vw, 150px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.07em;
    color: #f47c20;
    margin: 0;
}

.dw-contact-band {
    background: #eaece9;
}

.wp-block-button__link {
    transition: background-color .18s ease;
}

.wp-block-button__link:hover {
    background: #dc6914;
}

@media (max-width: 781px) {
    .dw-header {
        padding-block: 16px;
    }

    .dw-hero {
        padding-top: 38px;
    }

    .dw-hero-visual {
        min-height: 250px;
    }

    .dw-service-row .wp-block-columns {
        gap: 12px;
    }

    .dw-service-row .wp-block-column {
        flex-basis: auto !important;
    }
}

/* DWLink D02.4 – identyfikacja */

.dw-header {
    padding-block: 12px;
}

.dw-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    flex-shrink: 0;
}

.dw-brand img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    display: block;
}

.dw-brand-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dw-brand-text strong {
    font-size: 30px;
    font-weight: 750;
    letter-spacing: -0.055em;
    line-height: 1;
}

.dw-brand-text strong span {
    color: #b95300;
}

.dw-brand-text small {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    line-height: 1.2;
}

.dw-header-phone {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.dw-header-phone a {
    display: inline-block;
    padding: 11px 16px;
    border: 1px solid #dce0e4;
    text-decoration: none;
}

.dw-header-phone a:hover {
    border-color: #f47c20;
}

.dw-footer .dw-brand-text strong span {
    color: #ff8000;
}

.dw-footer .dw-brand img {
    width: 92px;
    height: 92px;
}

@media (max-width: 1050px) {
    .dw-header-phone {
        display: none;
    }
}

@media (max-width: 781px) {
    .dw-brand img {
        width: 54px;
        height: 54px;
    }

    .dw-brand-text strong {
        font-size: 25px;
    }

    .dw-brand-text small {
        font-size: 9px;
    }

    .dw-header .wp-block-group.alignwide {
        flex-wrap: nowrap !important;
    }
}

/* D02.5.1 Cinematic Hero */

.dw-cinema {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: none !important;
    min-height: clamp(480px, 38vw, 650px);
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #18232c;
    color: #fff;
    margin: 0 !important;
}

.dw-cinema-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    z-index: -3;
}

.dw-cinema-video {
    z-index: -2;
}

.dw-cinema-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(5,15,25,.87) 0%,
        rgba(5,15,25,.62) 30%,
        rgba(5,15,25,.15) 57%,
        transparent 80%
    );
}

.dw-cinema-inner {
    width: min(1320px, 90%);
    margin: 0 auto;
    padding-block: 50px;
}

.dw-cinema-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .17em;
    color: #ff9a42;
}

.dw-cinema h1 {
    font-size: clamp(42px, 5vw, 76px);
    line-height: 1.05;
    letter-spacing: -.045em;
    color: #fff;
    margin-block: 20px;
}

.dw-cinema-lead {
    font-size: clamp(16px, 1.4vw, 20px);
    color: #eef0f2;
    line-height: 1.6;
}

.dw-cinema-cta {
    display: inline-block;
    margin-top: 15px;
    padding: 16px 25px;
    background: #f47c20;
    color: #0c192c !important;
    font-weight: 700;
    text-decoration: none;
}

.dw-cinema-cta:hover {
    background: #ff9a42;
}

.dw-cinema-toggle {
    position: absolute;
    right: 20px;
    bottom: 20px;
    padding: 10px 15px;
    background: #0c192c;
    color: white;
    border: 1px solid white;
    cursor: pointer;
}

@media (max-width: 781px) {
    .dw-cinema {
        min-height: 570px;
        align-items: flex-end;
    }

    .dw-cinema-media {
        object-position: 76% center;
    }

    .dw-cinema-shade {
        background: linear-gradient(
            0deg,
            rgba(5,15,25,.95),
            rgba(5,15,25,.5) 48%,
            transparent 85%
        );
    }

    .dw-cinema-inner {
        padding-block: 35px 75px;
    }

    .dw-cinema h1 {
        font-size: clamp(36px, 9vw, 50px);
    }
}


/* D03.2 HEADER PHONE */

header a[href^="tel:"] {
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: -0.8px;
    color: #0C192C !important;
    border: 0 !important;
    background: transparent !important;
    padding: 8px 0 !important;
    box-shadow: none !important;
    white-space: nowrap;
    text-decoration: none !important;
    transition: color .2s ease;
}

header a[href^="tel:"]:hover {
    color: #F47C20 !important;
}

@media (max-width: 1200px) {
    header a[href^="tel:"] {
        font-size: 23px !important;
    }
}



/* D05.2 OVERLAPPING BRAND */

header {
    position: relative;
    z-index: 100;
    overflow: visible !important;
}

header .dw-brand {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 68px;
    padding-left: 160px;
    overflow: visible !important;
    background: transparent !important;
}

header .dw-brand img {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px !important;
    height: 150px !important;
    max-width: none !important;
    object-fit: contain;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    filter:
        drop-shadow(2px 0 0 white)
        drop-shadow(-2px 0 0 white)
        drop-shadow(0 2px 0 white)
        drop-shadow(0 -2px 0 white);
    z-index: 101;
}

header .dw-brand-text strong {
    font-size: 40px !important;
    line-height: 1;
    letter-spacing: -1.5px;
}

header .dw-brand-text small {
    font-size: 12px !important;
}

@media (max-width: 1200px) {
    header .dw-brand {
        padding-left: 110px;
    }

    header .dw-brand img {
        width: 100px !important;
        height: 100px !important;
    }

    header .dw-brand-text strong {
        font-size: 32px !important;
    }
}

@media (max-width: 900px) {
    header .dw-brand {
        padding-left: 0;
        min-height: 54px;
    }

    header .dw-brand img {
        position: static;
        width: 54px !important;
        height: 54px !important;
        filter: none;
    }

    header .dw-brand-text strong {
        font-size: 25px !important;
    }
}



/* D05.3 BRAND REFINEMENT */

header .dw-brand img {
    filter: none !important;
}

@media (min-width: 1201px) {
    header .dw-brand {
        padding-left: 168px;
    }

    header .dw-brand img {
        width: 157.5px !important;
        height: 157.5px !important;
    }

    header .dw-brand-text strong {
        font-size: 42px !important;
    }
}

@media (min-width: 901px) {
    header .dw-brand::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 157.5px;
        height: 157.5px;
        background: url("../images/branding/logo-light.svg")
                    center / contain no-repeat;
        filter:
            drop-shadow(2px 0 0 white)
            drop-shadow(-2px 0 0 white)
            drop-shadow(0 2px 0 white)
            drop-shadow(0 -2px 0 white);
        clip-path: inset(var(--dw-logo-cut, 100%) -8px -8px -8px);
        pointer-events: none;
        z-index: 102;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    header .dw-brand {
        padding-left: 116px;
    }

    header .dw-brand img,
    header .dw-brand::after {
        width: 105px !important;
        height: 105px !important;
    }

    header .dw-brand-text strong {
        font-size: 33.6px !important;
    }
}

