/* Services content and gallery; shared navigation lives in site.css. */
.services-page .services-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 64px;
    width: calc(100% - 80px);
    max-width: 1240px;
    min-height: calc(100svh - 93px);
    margin: 0 auto;
    padding: 56px 0 80px;
}

.services-page .services-sidebar { position: sticky; top: 133px; }
.services-page .service-eyebrow {
    margin: 0 0 16px;
    color: var(--site-wine);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.services-page .services-sidebar .service-eyebrow { margin: 2px 16px 20px; color: #5e5755; }
.services-page .services-sidebar a {
    display: block;
    padding: 15px 16px;
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.55;
    border-left: 2px solid transparent;
    transition: background-color .28s, color .28s;
}
.services-page .services-sidebar a:hover { color: var(--site-wine); background: var(--site-tint); }
.services-page .services-sidebar a[aria-current] { color: var(--site-wine); background: #eee9e5; border-left-color: var(--site-wine); font-weight: 600; }
.services-page .services-main { min-width: 0; scroll-margin-top: 120px; }
.services-page .services-mobile-picker { display: none; }
.services-page .service-panel { position: relative; isolation: isolate; scroll-margin-top: 125px; }
.services-page .service-decoration { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.services-page .service-outline { position: absolute; top: 120px; right: -100px; width: 580px; max-width: 110%; height: auto; color: var(--site-wine); opacity: .045; }
.services-page:not(.services-enhanced) .service-panel + .service-panel { margin-top: 64px; }
.services-page .service-heading { margin-bottom: 40px; }
.services-page .service-heading .service-eyebrow { margin-bottom: 30px; letter-spacing: .06em; }
.services-page .service-heading .service-eyebrow span { padding: 0 6px; }
.services-page .service-heading::after { content: ''; display: block; width: 60px; height: 2px; margin-top: 22px; background: var(--site-wine); }
.services-page .service-heading h1 {
    margin: 0;
    color: var(--site-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -.025em;
    overflow-wrap: break-word;
}

.services-page .service-copy { font-size: clamp(16px, 1.25vw, 18px); }
.services-page .service-copy > p,
.services-page .service-copy > ul { max-width: 72ch; margin: 0 0 24px; }
.services-page .service-copy .service-lead { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(23px, 2.1vw, 28px); line-height: 1.45; }
.services-page .service-copy h2 {
    margin: 36px 0 20px;
    padding-top: 28px;
    border-top: 1px solid var(--site-line);
    color: var(--site-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 400;
    line-height: 1.3;
}
.services-page .service-copy ul { display: block; padding-left: 24px; color: inherit; }
.services-page .service-copy li { padding-left: 8px; margin-bottom: 14px; }
.services-page .service-copy li::marker { color: var(--site-wine); }

.services-page .project-heading { margin-top: 48px; }
.services-page .project-heading .service-eyebrow { margin-bottom: 16px; color: #706662; font-size: 10px; letter-spacing: .06em; }
.services-page .service-copy .project-heading h2 { border: 0; padding: 0; margin: 0; font-size: clamp(26px, 2.3vw, 32px); }
.services-page .project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 24px; margin-top: 24px; }
.services-page .project-card { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.services-page .project-image { aspect-ratio: 16 / 10; overflow: hidden; background: #e8e3dd; }
.services-page .project-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.services-page .project-zim img { object-position: 50% 50%; }
.services-page .project-tkalnia img { object-position: 50% 54%; }
.services-page .project-magazyn img { object-position: 75% 50%; }
.services-page .project-tum img { object-position: 50% 56%; }
.services-page .project-olsztyn img { object-position: 58% 52%; }
.services-page .project-lodz img { object-position: 53% 50%; }
.services-page .project-zjazdowa img { object-position: 100% 50%; }
.services-page .project-browar img { object-position: 50% 50%; }
.services-page .project-card figcaption { display: flex; align-items: baseline; gap: 18px; flex: 1; padding: 14px 2px 0; border-top: 1px solid var(--site-wine); color: var(--site-ink); }
.services-page .project-number { flex-shrink: 0; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--site-wine); }
.services-page .project-card figcaption p { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 18px; line-height: 1.5; }
.services-page .project-detail { display: block; margin-top: 10px; font-family: 'Montserrat', sans-serif; font-size: 13px; line-height: 1.7; color: #625957; }
.services-page .service-copy .service-note { margin: 64px 0 0; padding: 28px; border-left: 3px solid var(--site-wine); background: #eee9e3; font-size: 16px; }
.services-page .service-note p { max-width: 72ch; margin: 0; }
.services-page .service-note .service-eyebrow { margin-bottom: 14px; }

.services-page .partner-contact { margin-top: 40px; padding: 28px; background: var(--site-tint); border-left: 3px solid var(--site-wine); }
.services-page .partner-contact h2 { margin: 0 0 18px; padding: 0; border: 0; font-family: 'Montserrat', sans-serif; font-size: 16px; line-height: 1.6; font-weight: 500; }
.services-page .partner-name { margin-bottom: 12px; font-family: 'Playfair Display', Georgia, serif; font-size: 25px; }
.services-page .partner-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.services-page .partner-links a { color: var(--site-wine); overflow-wrap: anywhere; padding: 6px 0; text-decoration: underline !important; text-underline-offset: 4px; }

@media (max-width: 991.98px) {
    .services-page .services-layout { display: block; width: calc(100% - 64px); padding: 36px 0 56px; }
    .services-page .services-sidebar { position: static; margin-bottom: 32px; }
    .services-page.services-enhanced .services-sidebar { display: none; }
    .services-page.services-enhanced .services-mobile-picker { display: block; margin-bottom: 32px; }
    .services-page .services-select-wrap { position: relative; }
    .services-page .services-select-wrap::after { content: ''; position: absolute; top: 21px; right: 20px; width: 8px; height: 8px; border-right: 2px solid var(--site-wine); border-bottom: 2px solid var(--site-wine); transform: rotate(45deg); pointer-events: none; }
    .services-page #service-select { appearance: none; width: 100%; min-height: 52px; padding: 12px 44px 12px 16px; border: 1px solid var(--site-wine); border-radius: 0; background: transparent; color: var(--site-ink); font: inherit; font-size: 16px; cursor: pointer; }
}

@media (max-width: 767.98px) {
    .services-page .services-layout { width: calc(100% - 40px); min-height: calc(100svh - 79px); padding-top: 24px; }
    .services-page .service-heading h1 { font-size: clamp(36px, 6vw, 42px); }
    .services-page .service-heading { margin-bottom: 24px; }
    .services-page .service-outline { top: 170px; right: -70px; width: 400px; opacity: .035; }
    .services-page .service-heading::after { margin-top: 20px; }
    .services-page .service-copy { line-height: 1.75; }
    .services-page .service-copy li { padding-left: 4px; }
    .services-page .partner-contact { padding: 22px 18px; }
    .services-page .partner-name { font-size: 23px; }
    .services-page .project-card figcaption { padding: 14px 2px 0; }
    .services-page .service-copy .service-note { padding: 24px 20px; margin-top: 44px; }
}

@media (max-width: 639.98px) {
    .services-page .project-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .services-page .project-card figcaption p { font-size: 19px; }
}

/* Progressive motion: content stays visible without JavaScript. */
.services-page .project-reveal-ready { transition: opacity 700ms cubic-bezier(.22, 1, .36, 1), transform 700ms cubic-bezier(.22, 1, .36, 1); }
.services-page .project-reveal-pending { opacity: 0; transform: translateY(18px); }
.services-page .project-tkalnia,
.services-page .project-tum,
.services-page .project-lodz,
.services-page .project-browar { transition-delay: 80ms; }
.services-page .service-panel-enter { animation: service-panel-enter 350ms cubic-bezier(.22, 1, .36, 1); }
@keyframes service-panel-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .services-page *, .services-page *::before, .services-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .services-page .project-reveal-pending { opacity: 1; transform: none; }
}
@media print { .services-page .project-reveal-pending { opacity: 1; transform: none; } }
