/* =============================================================
   CutCut — Service Page Styles (portfolio CPT, Warsaw)
   Prefix: cc-svc-

   Exact Astra global colors (z source Warsaw page):
   --dark:  #0e0f11   (ast-global-color-0,1,2 — header, dark bg)
   --text:  #3c404b   (ast-global-color-3 — body text)
   --gold:  #C8A97E   (Elementor accent, CTA)
   --gray:  #838d95   (ast-global-color-6)
   --lgray: #cbd5e1   (ast-global-color-7)
   --light: #f9fafb   (ast-global-color-4 — alternate bg)
   --white: #ffffff
   Font:    Lexend Deca, 300/600
   Container max-width: 1240px
   ============================================================= */

/* ── Reset Astra layout — tylko content, NIE header/footer ── */
.single-portfolio .site-content,
.single-portfolio #primary,
.single-portfolio #main,
.single-portfolio #content .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Prevent horizontal scrollbar from full-bleed sections */
body.single-portfolio { overflow-x: hidden; }

.single-portfolio #secondary,
.single-portfolio .ast-right-sidebar,
.single-portfolio .ast-left-sidebar,
.single-portfolio .entry-header,
.single-portfolio .entry-title,
.single-portfolio .ast-post-format-wrapper,
.single-portfolio .post-navigation,
.single-portfolio .ast-author-box {
    display: none !important;
}

/* ── Base wrapper ── */
.cc-svc-wrap {
    --dark:  #0e0f11;
    --text:  #3c404b;
    --gold:  #C8A97E;
    --gray:  #838d95;
    --lgray: #cbd5e1;
    --light: #f9fafb;
    --white: #ffffff;
    --radius: 3px;
    --max-w: 1240px;
    --pad-x: clamp(24px, 4vw, 80px);

    width: 100%;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 300;
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    background: var(--white);
}

/* ── Technika full-bleed: sekcje ciemne wychodzą poza ast-container ── */
.cc-svc-hero,
.cc-svc-location {
    width: 100vw !important;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* ── Inner container dla treści ── */
.cc-svc-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

/* ── Breadcrumb ── */
.cc-svc-breadcrumb {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 14px var(--pad-x);
    font-size: 13px;
    color: var(--gray);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.cc-svc-breadcrumb a { color: var(--gray); text-decoration: none; }
.cc-svc-breadcrumb a:hover { color: var(--text); }
.cc-svc-breadcrumb__sep { color: var(--lgray); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.cc-svc-hero {
    background: var(--dark);
    color: var(--white);
    padding: 80px var(--pad-x) 72px;
    text-align: center;
}

.cc-svc-hero__inner {
    max-width: 680px;
    margin: 0 auto;
}

.cc-svc-hero__tag {
    display: inline-block;
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cc-svc-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--white);
    margin: 0 0 18px;
}

.cc-svc-hero__subtitle {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    margin: 0 auto 36px;
    line-height: 1.6;
    max-width: 520px;
}

.cc-svc-hero__ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Przyciski ── */
.cc-svc-btn-primary {
    background: var(--gold);
    color: var(--dark);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.03em;
    text-decoration: none;
    display: inline-block;
    transition: opacity .2s;
    white-space: nowrap;
}
.cc-svc-btn-primary:hover { opacity: .85; color: var(--dark); text-decoration: none; }

.cc-svc-btn-secondary {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    font-weight: 300;
    text-decoration: none;
    display: inline-block;
    transition: border-color .2s, color .2s;
    white-space: nowrap;
}
.cc-svc-btn-secondary:hover { border-color: rgba(255,255,255,.6); color: #fff; text-decoration: none; }

.cc-svc-btn-outline {
    display: inline-block;
    border: 1px solid var(--lgray);
    color: var(--text);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    text-decoration: none;
    transition: border-color .2s, background .2s;
}
.cc-svc-btn-outline:hover { border-color: var(--text); color: var(--text); text-decoration: none; }

.cc-svc-btn-gold {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: opacity .2s;
}
.cc-svc-btn-gold:hover { opacity: .85; color: var(--dark); text-decoration: none; }

/* ═══════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════ */
.cc-svc-stats {
    border-bottom: 1px solid var(--lgray);
    background: var(--white);
}

.cc-svc-stats__grid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.cc-svc-stats__item {
    padding: 28px 0;
    text-align: center;
    border-right: 1px solid var(--lgray);
}
.cc-svc-stats__item:last-child { border-right: none; }

.cc-svc-stats__val {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 4px;
}

.cc-svc-stats__label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
}

/* ═══════════════════════════════════════════
   INTRO
═══════════════════════════════════════════ */
.cc-svc-intro {
    padding: 72px var(--pad-x);
    max-width: var(--max-w);
    margin: 0 auto;
}

.cc-svc-section-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.cc-svc-intro p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
    max-width: 720px;
    margin: 0 0 28px;
}

.cc-svc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.cc-svc-tag {
    display: inline-block;
    border: 1px solid var(--lgray);
    color: var(--gray);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
}

/* ═══════════════════════════════════════════
   STEPS
═══════════════════════════════════════════ */
.cc-svc-steps {
    background: var(--light);
    padding: 72px var(--pad-x);
}

.cc-svc-steps__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.cc-svc-section-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 48px;
    line-height: 1.2;
}

.cc-svc-steps__list {
    display: grid;
    gap: 0;
    counter-reset: step;
}

.cc-svc-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--lgray);
    align-items: start;
}
.cc-svc-step:last-child { border-bottom: none; }

.cc-svc-step__num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.cc-svc-step__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 4px;
}

.cc-svc-step__time {
    font-size: 12px;
    color: var(--gray);
    font-weight: 400;
    margin-left: 8px;
}

.cc-svc-step__desc {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    margin: 4px 0 0;
}

/* ═══════════════════════════════════════════
   BENEFITS
═══════════════════════════════════════════ */
.cc-svc-benefits {
    padding: 72px var(--pad-x);
    max-width: var(--max-w);
    margin: 0 auto;
}

.cc-svc-benefits__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-top: 32px;
    border-top: 1px solid var(--lgray);
    border-left: 1px solid var(--lgray);
}

.cc-svc-benefit {
    padding: 20px 24px;
    border-right: 1px solid var(--lgray);
    border-bottom: 1px solid var(--lgray);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.cc-svc-benefit__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--gold);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cc-svc-benefit__text {
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════
   PRICING
═══════════════════════════════════════════ */
.cc-svc-pricing {
    background: var(--light);
    padding: 72px var(--pad-x);
}

.cc-svc-pricing__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.cc-svc-pricing__intro {
    font-size: 16px;
    color: var(--gray);
    margin: 12px 0 32px;
}

.cc-svc-pricing__table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cc-svc-pricing__table td {
    padding: 16px 20px;
    border: none;
    font-size: 15px;
}

.cc-svc-pricing__table tr {
    border-bottom: 1px solid var(--lgray);
}
.cc-svc-pricing__table tr:first-child {
    border-top: 1px solid var(--lgray);
}

.cc-svc-pricing__table td:first-child {
    color: var(--text);
}
.cc-svc-pricing__table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
}

.cc-svc-pricing__note {
    font-size: 13px;
    color: var(--gray);
    margin-top: 12px;
    font-style: italic;
}

/* ═══════════════════════════════════════════
   USP
═══════════════════════════════════════════ */
.cc-svc-usp {
    padding: 72px var(--pad-x);
    max-width: var(--max-w);
    margin: 0 auto;
}

.cc-svc-usp__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.cc-svc-usp-item {
    padding: 28px;
    border: 1px solid var(--lgray);
    border-radius: var(--radius);
}

.cc-svc-usp-item__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 10px;
}

.cc-svc-usp-item__text {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════ */
.cc-svc-gallery {
    background: var(--light);
    padding: 72px var(--pad-x);
}

.cc-svc-gallery__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.cc-svc-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 32px;
}

.cc-svc-gallery__grid img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
}

/* ═══════════════════════════════════════════
   FAQ — identyczna struktura jak Elementor
═══════════════════════════════════════════ */
.cc-svc-faq {
    background: var(--light);
    padding: 72px var(--pad-x);
}

.cc-svc-faq__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.cc-svc-faq .cc-svc-section-title {
    text-align: center;
}

.cc-svc-faq__subtitle {
    font-size: 15px;
    color: var(--gray);
    margin: 8px 0 0;
    line-height: 1.5;
    text-align: center;
}

.cc-svc-faq__divider {
    height: 1px;
    background: var(--lgray);
    margin: 32px 0 20px;
}

/* ── Accordion — własne klasy, bez konfliktu z Elementorem ── */
.cc-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.cc-faq-item {
    width: 100%;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.cc-faq-item summary { list-style: none; }
.cc-faq-item summary::-webkit-details-marker { display: none; }

.cc-faq-item__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    width: 100%;
}

.cc-faq-item__question {
    font-size: 16px;
    font-weight: 400;
    color: #0e0f11;
    font-family: 'Lexend Deca', sans-serif;
    line-height: 1.4;
}

.cc-faq-item__icons {
    flex-shrink: 0;
    color: #838d95;
    font-size: 13px;
}

.cc-faq-icon-open  { display: none; }
.cc-faq-icon-closed { display: inline; }

.cc-faq-item[open] .cc-faq-icon-open  { display: inline; }
.cc-faq-item[open] .cc-faq-icon-closed { display: none; }

.cc-faq-item__answer {
    padding: 0 24px 20px;
}

.cc-faq-item__answer p {
    font-size: 15px;
    color: #3c404b;
    line-height: 1.7;
    margin: 0;
}

/* ═══════════════════════════════════════════
   LOCATION — full bleed dark (jak footer)
═══════════════════════════════════════════ */
.cc-svc-location {
    background: var(--dark);
    color: var(--white);
    padding: 72px var(--pad-x);
}

.cc-svc-location__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.cc-svc-location__title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 600;
    color: var(--white);
    margin: 0 0 32px;
    line-height: 1.2;
    grid-column: 1 / -1;
}

.cc-svc-location__info { display: grid; gap: 28px; }

.cc-svc-location__block h3 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 8px;
}

.cc-svc-location__block p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.65;
    margin: 0;
}

.cc-svc-location__map {
    aspect-ratio: 16/10;
    background: rgba(255,255,255,0.07);
    border-radius: var(--radius);
    overflow: hidden;
}

.cc-svc-location__map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.cc-svc-location__ctas {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   RELATED SERVICES
═══════════════════════════════════════════ */
.cc-svc-related {
    padding: 72px var(--pad-x);
    max-width: var(--max-w);
    margin: 0 auto;
}

.cc-svc-related__grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.cc-svc-related__link {
    border: 1px solid var(--lgray);
    color: var(--text);
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.cc-svc-related__link:hover { border-color: var(--dark); color: var(--dark); text-decoration: none; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .cc-svc-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .cc-svc-stats__item:nth-child(2) { border-right: none; }
    .cc-svc-stats__item:nth-child(3) { border-right: 1px solid var(--lgray); }

    .cc-svc-benefits__grid { grid-template-columns: 1fr; }
    .cc-svc-usp__grid { grid-template-columns: 1fr; }
    .cc-svc-gallery__grid { grid-template-columns: repeat(2, 1fr); }

    .cc-svc-location__inner { grid-template-columns: 1fr; gap: 40px; }
    .cc-svc-location__title { grid-column: 1; }
    .cc-svc-location__ctas { grid-column: 1; }
}

@media (max-width: 600px) {
    .cc-svc-hero { padding: 56px 24px 52px; }
    .cc-svc-intro,
    .cc-svc-steps,
    .cc-svc-benefits,
    .cc-svc-pricing,
    .cc-svc-usp,
    .cc-svc-gallery,
    .cc-svc-faq,
    .cc-svc-location,
    .cc-svc-related { padding: 48px 24px; }

    .cc-svc-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .cc-svc-stats__item { border-right: none !important; border-bottom: 1px solid var(--lgray); }
    .cc-svc-stats__item:nth-child(odd) { border-right: 1px solid var(--lgray) !important; }
    .cc-svc-stats__item:last-child { border-bottom: none; }

    .cc-svc-gallery__grid { grid-template-columns: 1fr; }
}
