/* ═══════════════════════════════════════════════════════════
   INDEX PAGE STYLES - Style specyficzne dla strony głównej
   Wymaga: css/shared.css (zmienne, nawigacja, footer, dark mode bazowy)
═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────
   Hero B: Typographic Monument (aktywny)
───────────────────────────────────────────────────────── */

/* Szerszy górny pasek nawigacji */
.index-v3 .navbar-top {
    padding: 0.875rem 0;
}

.hero-b {
    min-height: 100svh;
    background: var(--v3-cream);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 190px 0 5rem;
}

/* Wielkie "30" w tle — watermark */
.hero-b__watermark {
    position: absolute;
    right: -2vw;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: clamp(18rem, 35vw, 48rem);
    font-weight: 300;
    color: transparent;
    -webkit-text-stroke: 1px rgba(196, 116, 90, 0.1);
    line-height: 1;
    letter-spacing: -0.05em;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* Terracotta pionowy pasek z lewej */
.hero-b__stripe {
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--v3-terracotta);
}

/* Cienki pasek poziomy pod navbarem */
.hero-b__hline {
    position: absolute;
    top: 140px;
    left: 5px;
    right: 0;
    height: 1px;
    background: var(--v3-sand);
}

/* Grid główny */
.hero-b__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 5rem;
    align-items: start;
}

/* ─ Lewa kolumna — typografia ─ */
.hero-b__text-col {
    display: flex;
    flex-direction: column;
}

/* Pełna nazwa spółdzielni */
.hero-b__brand {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    animation: heroBrandIn 0.7s 0.05s ease both;
}

.hero-b__brand-top {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--v3-terracotta-dark); /* #a85d46 — 4.85:1 na kremowym ✓ WCAG AA */
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-b__brand-top::before {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--v3-terracotta);
    flex-shrink: 0;
}

.hero-b__brand-bottom {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #6b6b6b; /* opacity:0.7 na #4a4a4a dawało ~3.67:1; #6b6b6b = 5.3:1 na kremowym ✓ WCAG AA */
    padding-left: calc(30px + 1rem);
}

/* Główny tytuł marketingowy */
.hero-b__title {
    font-family: var(--font-display);
    font-size: clamp(3.8rem, 7.5vw, 8.5rem) !important;
    font-weight: 300;
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: var(--v3-charcoal);
    margin-bottom: 3rem;
}

.hero-b__title-row {
    display: block;
    overflow: hidden;
}

.hero-b__title-row span {
    display: block;
    animation: heroTitleSlide 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-b__title-row:nth-child(1) span { animation-delay: 0.15s; }
.hero-b__title-row:nth-child(2) span { animation-delay: 0.25s; }
.hero-b__title-row:nth-child(3) span { animation-delay: 0.35s; }

@keyframes heroTitleSlide {
    from { transform: translateY(110%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.hero-b__title em {
    font-style: italic;
    color: var(--v3-terracotta);
}

/* Dolna część: opis + CTA */
.hero-b__meta {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    border-top: 1px solid var(--v3-sand);
    padding-top: 2rem;
    animation: heroBrandIn 0.8s 0.55s ease both;
}

.hero-b__desc {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--v3-warm-gray);
    font-weight: 300;
    max-width: 320px;
}

.hero-b__cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

.hero-b__btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 190px;
}

.hero-b__btn--primary {
    background: var(--v3-terracotta-dark); /* #a85d46 — 4.85:1 biały tekst ✓ WCAG AA */
    color: #fff;
}

.hero-b__btn--primary:hover {
    background: var(--v3-terracotta-dark);
    color: #fff;
}

.hero-b__btn--ghost {
    border: 1px solid rgba(45,45,45,0.25);
    color: var(--v3-charcoal);
    background: transparent;
}

.hero-b__btn--ghost:hover {
    background: var(--v3-charcoal);
    color: #fff;
    border-color: var(--v3-charcoal);
}

.hero-b__btn-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.hero-b__btn:hover .hero-b__btn-arrow {
    transform: translateX(4px);
}

/* ─ Prawa kolumna — zdjęcie z ramką ─ */
.hero-b__photo-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: heroBrandIn 1s 0.4s ease both;
}

/* Wrapper z ramką jak w sekcji "O nas" */
.hero-b__photo-wrapper {
    position: relative;
    width: 100%;
}

.hero-b__photo-wrapper::before {
    content: '';
    position: absolute;
    top: -18px;
    left: -18px;
    right: 36px;
    bottom: 36px;
    border: 1px solid var(--v3-terracotta);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.hero-b__photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
    z-index: 1;
    display: block;
}

.hero-b__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 7s ease;
    transform: scale(1.04);
}

.hero-b__photo-wrapper:hover .hero-b__photo img {
    transform: scale(1);
}


/* ─ Dolny pasek ze statystykami ─ */
.hero-b__stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid var(--v3-sand);
    z-index: 3;
    background: var(--v3-cream);
}

.hero-b__stats-inner {
    display: flex;
    gap: 4rem;
    align-items: center;
    padding: 1.25rem 0;
}

.hero-b__stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hero-b__stat-num {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 300;
    color: var(--v3-charcoal);
    line-height: 1;
}

.hero-b__stat-label {
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--v3-warm-gray);
    opacity: 0.65;
}

.hero-b__stat-sep {
    width: 1px;
    height: 36px;
    background: var(--v3-sand);
}

/* ─ Animacje ─ */
@keyframes heroBrandIn {
    from { transform: translateY(24px); }
    to   { transform: translateY(0); }
}

/* ─ Responsive ─ */
@media (max-width: 1100px) {
    .hero-b__inner {
        grid-template-columns: 1fr 340px;
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    .hero-b__inner {
        grid-template-columns: 1fr;
    }

    .hero-b__photo-col {
        display: none;
    }

    .hero-b__watermark {
        font-size: 55vw;
        right: -8vw;
    }

    .hero-b__title {
        font-size: clamp(3.5rem, 12vw, 6rem);
    }

    .hero-b__meta {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-b__stats-inner {
        gap: 2rem;
        flex-wrap: wrap;
    }

    /* Video/image wrapper — full width on mobile */
    .about-v3__image-wrapper {
        max-width: 100%;
    }

    .about-v3__image-wrapper::before {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Reduce hero top padding to match mobile navbar height (~130px) */
    .hero-b {
        padding-top: 130px;
        padding-bottom: 3rem;
        min-height: auto;
    }

    .hero-b__hline {
        top: 100px;
    }

    /* Buttons full width on small screens */
    .hero-b__cta {
        width: 100%;
    }

    .hero-b__btn {
        min-width: unset;
        width: 100%;
        justify-content: space-between;
    }
}

/* ─────────────────────────────────────────────────────────
   Hero V3: oryginalny (backup — nieaktywny)
───────────────────────────────────────────────────────── */
.hero-v3 {
    min-height: 100dvh;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-v3__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-v3__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.hero-v3__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(45, 45, 45, 0.9) 0%,
        rgba(45, 45, 45, 0.3) 50%,
        rgba(45, 45, 45, 0.1) 100%
    );
}

.hero-v3__content {
    position: relative;
    z-index: 2;
    padding: 0 0 6rem;
    width: 100%;
}

.hero-v3__title {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.hero-v3__title span {
    display: block;
    color: #fffef5;
    text-shadow:
        2px 2px 4px rgba(0,0,0,0.9),
        0 0 40px rgba(0,0,0,0.6),
        0 0 80px rgba(0,0,0,0.4);
}

.hero-v3__title .italic {
    font-style: italic;
    color: #e07a5f;
    text-shadow:
        2px 2px 4px rgba(0,0,0,0.7),
        0 0 30px rgba(0,0,0,0.4);
}

.hero-v3__subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    max-width: 420px;
    line-height: 1.7;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.hero-v3__scroll {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.hero-v3__scroll::after {
    content: '';
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ─────────────────────────────────────────────────────────
   Section Utilities
───────────────────────────────────────────────────────── */
.section-v3 {
    padding: 7rem 0;
}

@media (min-width: 992px) {
    .section-v3 {
        padding: 10rem 0;
    }
}

.section-v3--dark {
    background: var(--v3-charcoal);
    color: #fff;
}

.section-v3--dark h2, .section-v3--dark h3 {
    color: #fff;
}

.section-v3--sand {
    background: var(--v3-sand);
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #8B4432; /* 6.6:1 na kremowym, 5.6:1 na piasku ✓ WCAG AA z marginesem */
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.eyebrow::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--v3-terracotta); /* decorative element — nie wymaga kontrastu tekstu */
}

/* Sand/FAQ — ten sam kolor, zostawiony dla przejrzystości */
.section-v3--sand .eyebrow,
.faq-v3__header .eyebrow {
    color: #8B4432;
}

.heading-xl {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.text-balance {
    text-wrap: balance;
}

/* ─────────────────────────────────────────────────────────
   About Section: Overlapping layout
───────────────────────────────────────────────────────── */
.about-v3 {
    position: relative;
}

.about-v3__image-wrapper {
    position: relative;
    max-width: 82%;
}

.about-v3__image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 40px;
    bottom: 40px;
    border: 1px solid var(--v3-terracotta);
    opacity: 0.4;
    z-index: -1;
}

.about-v3__image {
    width: 100%;
    height: auto;
    display: block;
}

.about-v3__content {
    padding: 3rem 0;
}

@media (min-width: 992px) {
    .about-v3__content {
        padding: 0 0 0 4rem;
    }
}

.about-v3__text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--v3-warm-gray);
}

.about-v3__text p + p {
    margin-top: 1.5rem;
}

/* ─────────────────────────────────────────────────────────
   Stats: Horizontal strip with large numbers
───────────────────────────────────────────────────────── */
.stats-v3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.1);
}

@media (min-width: 992px) {
    .stats-v3 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-v3 {
    background: var(--v3-charcoal);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-v3::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--v3-terracotta);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-v3:hover::before {
    width: 60%;
}

.stat-v3__number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1;
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-v3__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.5);
}

/* ─────────────────────────────────────────────────────────
   Shortcuts: Cards with reveal effect
───────────────────────────────────────────────────────── */
.shortcut-v3 {
    background: #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease;
}

.shortcut-v3:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.shortcut-v3__inner {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.shortcut-v3__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--v3-cream);
    border-radius: 50%;
    margin-bottom: 2rem;
    transition: background 0.3s ease;
}

.shortcut-v3:hover .shortcut-v3__icon {
    background: var(--v3-terracotta);
}

.shortcut-v3:hover .shortcut-v3__icon svg {
    stroke: #fff;
}

.shortcut-v3__icon svg {
    stroke: var(--v3-charcoal);
    transition: stroke 0.3s ease;
}

.shortcut-v3__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.shortcut-v3__desc {
    color: var(--v3-warm-gray);
    line-height: 1.7;
    margin-bottom: auto;
    flex-grow: 1;
}

.shortcut-v3__link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #a85d46; /* #c4745a fails 4.5:1 on #fff; #a85d46 = 4.85:1 ✓ WCAG AA */
    font-weight: 500;
    text-decoration: none;
    margin-top: 2rem;
    transition: gap 0.3s ease;
}

.shortcut-v3__link:hover {
    gap: 1.25rem;
    color: var(--v3-terracotta-dark);
}

.shortcut-v3__link svg {
    transition: transform 0.3s ease;
}

.shortcut-v3:hover .shortcut-v3__link svg {
    transform: translateX(4px);
}

/* ─────────────────────────────────────────────────────────
   News: Magazine-style grid
───────────────────────────────────────────────────────── */
.news-v3-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    background: var(--v3-sand);
}

@media (min-width: 768px) {
    .news-v3-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.news-v3-item {
    background: var(--v3-cream);
    padding: 2.5rem;
    position: relative;
    transition: background 0.3s ease;
}

.news-v3-item:hover {
    background: #fff;
}

.news-v3-item__date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #a85d46; /* #c4745a fails 4.5:1 on cream; #a85d46 = 4.59:1 ✓ WCAG AA */
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.news-v3-item__date::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--v3-terracotta);
}

.news-v3-item__title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.news-v3-item__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-v3-item__title a:hover {
    color: var(--v3-terracotta);
}

.news-v3-item__excerpt {
    color: var(--v3-warm-gray);
    line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────
   Contact: Side-by-side with decorative element
───────────────────────────────────────────────────────── */
.contact-v3 {
    position: relative;
}

.contact-v3__card {
    background: #fff;
    padding: 3rem;
    position: relative;
}

@media (min-width: 992px) {
    .contact-v3__card {
        padding: 4rem;
    }
}

.contact-v3__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--v3-terracotta);
}

.contact-v3__item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--v3-sand);
}

.contact-v3__item:last-child {
    border-bottom: none;
}

.contact-v3__item-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--v3-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-v3__item-icon svg {
    stroke: var(--v3-terracotta);
}

.contact-v3__item-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--v3-warm-gray);
    margin-bottom: 0.25rem;
}

.contact-v3__item-value {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--v3-charcoal);
}

.contact-v3__map {
    height: 100%;
    min-height: 400px;
    display: flex;
}

.contact-v3__map iframe {
    flex: 1;
    border: 0;
    filter: grayscale(30%) contrast(1.1);
}

/* ─────────────────────────────────────────────────────────
   Buttons
───────────────────────────────────────────────────────── */
.btn-v3 {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-v3--primary {
    background: var(--v3-terracotta);
    color: #fff;
}

.btn-v3--primary:hover {
    background: var(--v3-terracotta-dark);
    color: #fff;
}

.btn-v3--outline {
    background: transparent;
    border: 1px solid currentColor;
    color: #fff;
}

.btn-v3--outline:hover {
    background: #fff;
    color: var(--v3-charcoal);
}

.btn-v3--dark {
    background: var(--v3-charcoal);
    color: #fff;
}

.btn-v3--dark:hover {
    background: var(--v3-warm-gray);
    color: #fff;
}

/* ─────────────────────────────────────────────────────────
   Footer — utilities (bazowe reguły footer-v3 są w shared.css)
───────────────────────────────────────────────────────── */
.footer-v3__logo-img {
    width: 50px;
    filter: brightness(0) invert(1);
}

.footer-v3__description {
    max-width: 280px;
}

.footer-v3__legal {
    font-size: 0.85rem;
}

/* ─────────────────────────────────────────────────────────
   Decorative Elements
───────────────────────────────────────────────────────── */
.deco-line {
    width: 60px;
    height: 1px;
    background: var(--v3-terracotta);
}

.deco-line--vertical {
    width: 1px;
    height: 60px;
}

/* Grain texture overlay */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* FAQ Section */
.faq-v3 {
    background: var(--v3-sand);
    padding: 5rem 0;
}

.faq-v3__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.faq-v3__header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

.faq-v3__header p {
    color: var(--v3-warm-gray);
}

.faq-v3__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-v3__item {
    background: #fff;
    margin-bottom: 1rem;
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.faq-v3__item:hover,
.faq-v3__item.active {
    border-left-color: var(--v3-terracotta);
}

.faq-v3__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--v3-charcoal);
    transition: color 0.3s ease;
}

.faq-v3__question:hover {
    color: var(--v3-terracotta);
}

.faq-v3__question .icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-v3__item.active .faq-v3__question .icon {
    transform: rotate(45deg);
}

.faq-v3__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-v3__item.active .faq-v3__answer {
    max-height: 300px;
}

.faq-v3__answer-inner {
    padding: 0 1.5rem 1.5rem;
    color: var(--v3-warm-gray);
    line-height: 1.7;
}

.faq-v3__answer-inner a {
    color: var(--v3-terracotta);
    text-decoration: none;
}

.faq-v3__answer-inner a:hover {
    text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────
   Dark Mode Styles - specyficzne dla strony głównej
   (bazowy dark mode → css/shared.css)
───────────────────────────────────────────────────────── */
body.dark-mode .hero-v3__bg::after {
    background: linear-gradient(
        to top,
        rgba(26, 26, 26, 0.95) 0%,
        rgba(26, 26, 26, 0.4) 50%,
        rgba(26, 26, 26, 0.2) 100%
    );
}

body.dark-mode .section-v3--dark {
    background: #0f0f0f;
}

body.dark-mode .stat-v3 {
    background: #0f0f0f;
}

body.dark-mode .about-v3__image-wrapper::before {
    border-color: var(--v3-terracotta);
    opacity: 0.3;
}

body.dark-mode .shortcut-v3 {
    background: #242424;
}

body.dark-mode .shortcut-v3:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

body.dark-mode .shortcut-v3__icon {
    background: #333;
}

body.dark-mode .shortcut-v3__icon svg {
    stroke: #e8e4df;
}

body.dark-mode .shortcut-v3__title {
    color: #fff;
}

body.dark-mode .shortcut-v3__desc {
    color: #b0b0b0;
}

body.dark-mode .section-v3--sand {
    background: #1f1f1f;
}

body.dark-mode .news-v3-grid {
    background: #333;
}

body.dark-mode .news-v3-item {
    background: #1a1a1a;
}

body.dark-mode .news-v3-item:hover {
    background: #242424;
}

body.dark-mode .news-v3-item__title a {
    color: #fff;
}

body.dark-mode .news-v3-item__excerpt {
    color: #b0b0b0;
}

body.dark-mode .faq-v3 {
    background: #1f1f1f;
}

body.dark-mode .faq-v3__item {
    background: #242424;
}

body.dark-mode .faq-v3__question {
    color: #fff;
}

body.dark-mode .faq-v3__answer-inner {
    color: #b0b0b0;
}

body.dark-mode .contact-v3__card {
    background: #242424;
}

body.dark-mode .contact-v3__item {
    border-bottom-color: #333;
}

body.dark-mode .contact-v3__item-icon {
    background: #333;
}

body.dark-mode .contact-v3__item-value {
    color: #fff;
}

body.dark-mode .contact-v3__map iframe {
    filter: grayscale(50%) contrast(1.1) invert(0.9);
}

body.dark-mode .grain-overlay {
    opacity: 0.02;
}

/* btn-v3--dark używa var(--v3-charcoal) który w dark mode jest jasny */
body.dark-mode .btn-v3--dark {
    background: #444;
    color: #fff;
}

body.dark-mode .btn-v3--dark:hover {
    background: #555;
    color: #fff;
}

/* btn-v3--outline hover: white bg z jasnym charcoal textem = niewidoczny */
body.dark-mode .btn-v3--outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Improved touch targets for mobile (min 44x44px) */
@media (max-width: 991.98px) {
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn-v3 {
        min-height: 44px;
    }

    .faq-v3__question {
        min-height: 48px;
    }

    .shortcut-v3__link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Dark mode eyebrow override */
body.dark-mode .eyebrow {
    color: #e07a5f; /* Lighter in dark mode — passes on dark bg */
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
