.page-web-design {
    --wd-section-y: clamp(5rem, 7vw, 7.5rem);
    background: var(--color-surface);
}

.page-web-design h1,
.page-web-design h2,
.page-web-design h3,
.page-web-design p {
    margin-top: 0;
}

.page-web-design h2 {
    max-width: 48rem;
    margin-bottom: 2rem;
    font-size: clamp(2rem, 3vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.page-web-design h2 span {
    color: var(--color-orange);
}

.wd-hero {
    --wd-hero-svg-extra: 3.75rem;
    --wd-hero-line-tail: 3.375rem;
    position: relative;
    overflow: visible;
    min-height: 38rem;
    background: var(--color-ink);
    color: var(--color-on-dark);
}

.signal-line-wd-showcase {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

/* Stejná kontejnerová kotva jako homepage: 72/1440 = 5 % = header M5. */
.signal-line-wd-hero,
.signal-line-wd-hero-out {
    position: absolute;
    left: 50%;
    z-index: 1;
    width: min(calc(100% - (var(--gutter) * 2)), var(--container));
    transform: translateX(-50%);
    overflow: visible;
}

.signal-line-wd-hero {
    top: 0;
    height: calc(100% + var(--wd-hero-svg-extra));
}

.signal-line-wd-hero-out {
    top: calc((280 / 720) * (100% + var(--wd-hero-svg-extra)));
    height: calc(100% + var(--wd-hero-line-tail) - (280 / 720) * (100% + var(--wd-hero-svg-extra)));
}

.wd-hero-boundary-node,
.wd-hero-end-node {
    display: none;
    left: calc(50% + (min(calc(100% - (var(--gutter) * 2)), var(--container)) * 0.0403));
    width: 0.55rem;
    height: 0.55rem;
    transform: translate(-50%, -50%);
}

.wd-hero-boundary-node {
    top: 100%;
    background: var(--color-ink);
}

.wd-hero-end-node {
    top: calc(100% + var(--wd-hero-line-tail));
    background: var(--color-surface);
}

.wd-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(30rem, 1.08fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 6rem);
    min-height: 38rem;
    padding-block: 4.5rem 4.25rem;
}

.wd-hero-copy {
    position: relative;
    z-index: 3;
    max-width: 43rem;
}

.wd-hero .hero-kicker {
    color: var(--color-on-dark);
}

.wd-hero h1 {
    margin: 0.7rem 0 1.2rem;
    font-size: clamp(1.9rem, 1.1rem + 2vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--color-on-dark);
}

.wd-hero .hero-title-main,
.wd-hero .hero-title-line {
    display: block;
    color: var(--color-on-dark);
}

.wd-hero .hero-title-accent {
    display: block;
    margin-top: 0.12em;
    color: var(--color-orange);
}

.wd-hero-lead {
    max-width: 41rem;
    margin-bottom: 1.75rem;
    color: var(--color-on-dark-muted);
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: 1.65;
}

.wd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.wd-trust-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    list-style: none;
}

.wd-trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    min-width: 0;
}

.wd-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-top: 0.05rem;
}

.wd-trust-list .icon-line {
    width: 2.125rem;
    height: 2.125rem;
}

.wd-trust-copy,
.wd-trust-list strong,
.wd-trust-copy > span {
    display: block;
}

.wd-trust-list strong {
    margin-bottom: 0.25rem;
    font-size: 0.98rem;
}

.wd-trust-copy > span {
    color: var(--color-on-dark-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.wd-hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-self: start;
    margin-top: 0.35rem;
    padding: 2.6rem 0 5.5rem;
}

.wd-hero-visual img {
    position: relative;
    width: min(45.1rem, 92%);
    max-width: 100%;
    filter: drop-shadow(0 2rem 2.7rem rgba(0, 0, 0, 0.38));
}

.wd-hero-labels {
    position: absolute;
    inset: 0;
    z-index: 3;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
}

.wd-hero-label {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-on-dark);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.wd-hero-labels .hero-label-lead {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    z-index: 0;
    width: 0.75rem;
    height: auto;
    flex: 1 1 auto;
    min-height: 2.5rem;
    transform: none;
}

.wd-hero-labels .hero-label-lead .signal-line {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.wd-hero-labels .hero-label-dot,
.wd-hero-labels .hero-label-join {
    display: block;
    position: absolute;
    left: 50%;
    z-index: 2;
    width: 0.5rem;
    height: 0.5rem;
    border: var(--signal-stroke) solid var(--color-orange);
    border-radius: 50%;
    background: var(--color-ink);
    pointer-events: none;
}

.wd-hero-labels .hero-label-text {
    position: relative;
    z-index: 2;
}

.wd-hero-label--custom,
.wd-hero-label--responsive {
    --lead-w: 0.75rem;
}

.wd-hero-label--custom .hero-label-text,
.wd-hero-label--responsive .hero-label-text {
    margin-bottom: 1rem;
}

.wd-hero-label--custom .hero-label-dot,
.wd-hero-label--responsive .hero-label-dot {
    top: calc(1.2em + 1rem);
    transform: translate(-50%, -50%);
}

.wd-hero-label--custom .hero-label-join,
.wd-hero-label--responsive .hero-label-join {
    top: auto;
    bottom: 0;
    transform: translate(-50%, 50%);
}

.wd-hero-label--custom {
    top: calc(1.05rem - 1rem);
    left: 30%;
    width: 7.25rem;
    height: calc(21% + 1rem);
}

.wd-hero-label--responsive {
    top: calc(0.15rem - 1rem);
    left: 72%;
    width: 11rem;
    height: calc(36% + 1rem);
}

.wd-hero-label--admin {
    top: 79%;
    left: 71%;
    right: auto;
    bottom: 1.8rem;
    align-items: center;
    width: 10.75rem;
    height: auto;
}

.wd-hero-label--admin .hero-label-lead {
    position: relative;
    inset: auto;
    width: 0.75rem;
    min-height: 2.75rem;
}

.wd-hero-label--admin .hero-label-join {
    top: 0;
    left: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
}

.wd-hero-label--admin .hero-label-dot {
    top: auto;
    left: 50%;
    right: auto;
    bottom: calc(1.2em + 1rem);
    transform: translate(-50%, 50%);
}

.wd-hero-label--admin .hero-label-text {
    margin-top: 1rem;
    align-self: center;
}

.wd-purpose,
.wd-deliverables,
.wd-gallery,
.wd-nationwide,
.wd-faq {
    position: relative;
    padding-block: var(--wd-section-y);
}

.wd-purpose {
    z-index: 0;
}

.wd-purpose-grid,
.wd-nationwide-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 8rem);
}

.wd-purpose .section-heading {
    margin-bottom: 2rem;
}

.page-web-design .wd-purpose .section-heading > h2 {
    max-width: none;
    margin-bottom: 0;
    font-size: var(--text-section-title);
    font-weight: 700;
    line-height: var(--leading-section-title);
    letter-spacing: var(--tracking-section-title);
}

.wd-editorial > p,
.wd-nationwide-copy > p {
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.wd-benefit-grid,
.wd-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.wd-benefit-grid article,
.wd-card-grid article {
    padding: 1.65rem;
    border: 1px solid var(--color-line);
    background: var(--color-surface);
    box-shadow: 0 1rem 2.5rem rgba(8, 24, 32, 0.05);
}

.wd-benefit-grid article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 0.85rem;
}

.wd-benefit-icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: start;
    color: var(--color-orange);
}

.wd-benefit-icon .icon-line {
    width: 2.5rem;
    height: 2.5rem;
}

.wd-card-icon {
    display: block;
    margin-bottom: 1rem;
    color: var(--color-orange);
    font-size: 1.35rem;
    font-weight: 700;
}

.wd-benefit-grid h3,
.wd-card-grid h3 {
    margin-bottom: 0.55rem;
    font-size: 1.1rem;
}

.wd-benefit-grid p,
.wd-card-grid p {
    margin-bottom: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.wd-process {
    --wd-process-node: 2.25rem;
    --wd-process-gap: 1.25rem;
    overflow-x: clip;
    padding-block: clamp(4.5rem, 6vw, 6rem);
    background: var(--color-ink);
    color: var(--color-on-dark);
}

.wd-process-inner {
    width: 100%;
}

.wd-process .section-kicker {
    color: #91a3ae;
}

.wd-process h2 {
    max-width: none;
    color: var(--color-on-dark);
}

.wd-process-track {
    position: relative;
    margin-top: 3.2rem;
}

.signal-line-wd-process {
    position: absolute;
    top: 0;
    left: calc(var(--wd-process-node) / 2);
    z-index: 1;
    width: calc((5 / 6) * (100% + var(--wd-process-gap)));
    height: var(--wd-process-node);
}

.wd-process ol {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--wd-process-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.wd-process li > span {
    display: grid;
    width: var(--wd-process-node);
    height: var(--wd-process-node);
    margin-bottom: 1.3rem;
    place-items: center;
    border: var(--signal-stroke) solid var(--color-orange);
    border-radius: 50%;
    background: var(--color-ink);
    color: var(--color-on-dark);
    font-size: 0.76rem;
    font-weight: 700;
}

.wd-process h3 {
    min-height: 2.8rem;
    margin-bottom: 0.55rem;
    color: var(--color-on-dark);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.12;
}

.wd-process li p {
    margin: 0;
    color: var(--color-on-dark-muted);
    font-size: 0.87rem;
    line-height: 1.55;
}

.wd-deliverables {
    background: var(--color-surface-soft);
}

.wd-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.wd-card-grid article {
    min-height: 13rem;
}

.wd-card-icon {
    font-size: 1.8rem;
}

.wd-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.25rem;
}

.wd-section-head h2 {
    margin-bottom: 0;
}

.wd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.wd-gallery-grid a {
    position: relative;
    overflow: hidden;
    min-height: 13.5rem;
}

.wd-gallery-grid a::after {
    content: "→";
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-orange);
    transition: transform var(--transition-fast);
}

.wd-gallery-grid a:hover::after {
    transform: translateX(0.25rem);
}

.wd-gallery-web {
    background: #aeb4bb;
}

.wd-gallery-web img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.wd-gallery-web:hover img {
    transform: scale(1.025);
}

.wd-gallery-logo {
    display: grid;
    place-items: center;
    background: linear-gradient(125deg, #f25f28, #9b346f);
    color: #fff;
}

.wd-gallery-logo strong {
    font-size: clamp(1.8rem, 2.8vw, 3.2rem);
    letter-spacing: 0.04em;
}

.wd-gallery-logo strong span {
    display: block;
    font-size: 0.45em;
    font-weight: 400;
    text-align: center;
}

.wd-nationwide {
    overflow: hidden;
    padding-block: clamp(6rem, 9vw, 9rem);
    background: var(--color-surface-soft);
}

.wd-nationwide-grid {
    position: relative;
    z-index: 2;
}

.wd-nationwide-visual img {
    width: 100%;
    box-shadow: 0 2rem 4rem rgba(8, 24, 32, 0.16);
}

.wd-related {
    margin: 2rem 0;
    padding: 1.35rem 0 1.35rem 1.35rem;
    border-left: 2px solid var(--color-orange);
    font-size: 0.96rem !important;
}

.wd-related a {
    color: var(--color-orange);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.wd-proof {
    padding-block: 2rem;
    background: var(--color-ink);
    color: var(--color-on-dark);
}

.wd-proof ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wd-proof li {
    position: relative;
    padding-left: 2.6rem;
}

.wd-proof li::before {
    content: "";
    position: absolute;
    top: 0.4rem;
    left: 0;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--color-orange);
    border-radius: 50%;
}

.wd-proof strong,
.wd-proof span {
    display: block;
}

.wd-proof strong {
    font-size: 1.65rem;
}

.wd-proof span {
    color: var(--color-on-dark-muted);
    font-size: 0.85rem;
}

.wd-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0.8rem 1.25rem;
}

.wd-faq details {
    border: 1px solid var(--color-line);
    background: var(--color-surface);
}

.wd-faq summary {
    position: relative;
    padding: 1.15rem 3.2rem 1.15rem 1.25rem;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.wd-faq summary::-webkit-details-marker {
    display: none;
}

.wd-faq summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 1.25rem;
    color: var(--color-orange);
    font-size: 1.35rem;
    transform: translateY(-50%);
}

.wd-faq details[open] summary::after {
    content: "−";
}

.wd-faq details p {
    margin: 0;
    padding: 0 1.25rem 1.3rem;
    color: var(--color-muted);
    line-height: 1.65;
}

.page-web-design .references-slider {
    padding-block: clamp(6rem, 8vw, 8rem);
}

.page-web-design .contact-cta {
    margin-top: 0;
}

@media (min-width: 64rem) {
    .wd-hero-boundary-node,
    .wd-hero-end-node {
        display: block;
    }
}

@media (min-width: 80rem) {
    .wd-process-inner {
        width: 91%;
        max-width: 81rem;
        margin-inline: auto;
    }

    .wd-hero {
        --wd-hero-svg-extra: 7.5rem;
    }

    .wd-hero-grid {
        padding-bottom: 0.5rem;
        translate: 0 -1.875rem;
    }

    .wd-hero-copy {
        translate: 0 1.875rem;
    }
}

@media (max-width: 89.99rem) {
    .wd-hero-labels {
        display: none;
    }
}

@media (max-width: 79.99rem) {
    .wd-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(25rem, 0.82fr);
    }

    .wd-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wd-process ol {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem 1.5rem;
    }

    .signal-line-wd-process {
        display: none;
    }
}

@media (max-width: 63.99rem) {
    .signal-line-wd-hero,
    .signal-line-wd-hero-out,
    .signal-line-wd-showcase,
    .signal-line-wd-process,
    .wd-hero-boundary-node,
    .wd-hero-end-node {
        display: none;
    }

    .wd-hero-grid,
    .wd-purpose-grid,
    .wd-nationwide-grid {
        grid-template-columns: 1fr;
    }

    .wd-hero-grid {
        gap: 1rem;
        padding-top: 3.5rem;
    }

    .wd-hero-visual {
        margin-top: 0;
        padding: 0.5rem 0 0;
    }

    .wd-hero-visual img {
        width: min(40.5rem, 92%);
    }

    .wd-purpose-grid,
    .wd-nationwide-grid {
        gap: 3.5rem;
    }

    .wd-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wd-nationwide-visual {
        max-width: 44rem;
    }
}

@media (max-width: 47.99rem) {
    .page-web-design {
        --wd-section-y: 4rem;
    }

    .wd-hero {
        min-height: 0;
    }

    .wd-hero-grid {
        min-height: 0;
        padding-block: 3rem 3.5rem;
    }

    .wd-hero h1 {
        font-size: clamp(1.85rem, 7.5vw, 2.45rem);
    }

    .wd-actions {
        display: grid;
    }

    .wd-actions .button {
        width: 100%;
    }

    .wd-trust-list {
        grid-template-columns: 1fr;
    }

    .wd-hero-visual {
        padding: 0.25rem 0 0;
    }

    .wd-hero-visual img {
        width: min(35rem, 100%);
    }

    .wd-benefit-grid,
    .wd-card-grid,
    .wd-process ol,
    .wd-faq-grid {
        grid-template-columns: 1fr;
    }

    .wd-process li {
        display: grid;
        grid-template-columns: 2.5rem 1fr;
        column-gap: 1rem;
    }

    .wd-process li > span {
        grid-row: 1 / span 2;
    }

    .wd-process h3 {
        min-height: 0;
        margin-bottom: 0.4rem;
    }

    .wd-process li p {
        grid-column: 2;
    }

    .wd-card-grid article {
        min-height: 0;
    }

    .wd-section-head {
        display: block;
    }

    .wd-section-head .references-all {
        display: inline-flex;
        margin-top: 1.25rem;
    }

    .wd-gallery-grid {
        display: flex;
        gap: 0.85rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .wd-gallery-grid::-webkit-scrollbar {
        display: none;
    }

    .wd-gallery-grid a {
        flex: 0 0 82%;
        min-height: 13rem;
        scroll-snap-align: start;
    }

    .wd-proof ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .wd-gallery-web img,
    .wd-gallery-grid a::after {
        transition: none;
    }
}
