/* =====================================================
   Audi Bednarek — Landing Page Styles
   Zgodne z Corporate Identity marki Audi
   ===================================================== */

/* -----------------------------------------------------
   1. Fonty lokalne
   ----------------------------------------------------- */
@font-face {
    font-family: 'Audi Type';
    src: url('../fonts/AudiType-Normal_4.03.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Audi Type';
    src: url('../fonts/AudiType-Bold_4.03.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Audi Type Extended';
    src: url('../fonts/AudiType-ExtendedBold_4.03.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Audi Type Wide';
    src: url('../fonts/AudiType-WideNormal_4.03.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Audi Type Wide';
    src: url('../fonts/AudiType-WideBold_4.03.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* -----------------------------------------------------
   2. Zmienne i reset
   ----------------------------------------------------- */
:root {
    --audi-black: #000000;
    --audi-white: #ffffff;
    --audi-red: #eb0d3f;
    --audi-red-dark: #c20a33;
    --audi-gray-50: #fafafa;
    --audi-gray-100: #f5f5f5;
    --audi-gray-200: #e5e5e5;
    --audi-gray-300: #d4d4d4;
    --audi-gray-400: #b3b3b3;
    --audi-gray-600: #666666;
    --audi-gray-800: #333333;
    
    --font-body: 'Audi Type', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Audi Type Extended', 'Audi Type', sans-serif;
    --font-wide: 'Audi Type Wide', 'Audi Type', sans-serif;
    
    --container: 1280px;
    --radius: 0;
    --transition: 250ms ease-out;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    color: var(--audi-gray-800);
    background-color: var(--audi-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--audi-black);
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2rem; /* fallback dla Safari < 13.1 */
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
    h2 {
        font-size: 1.75rem;
    }
}

.heading-smaller {
    font-size: 2.2rem;
}

@media (max-width: 767px) {
    .heading-smaller {
        font-size: 1.75rem;
    }
}

.heading-compact {
    font-size: 1.75rem;
}

@media (max-width: 767px) {
    .heading-compact {
        font-size: 1.5rem;
    }
}

.text-brand {
    color: var(--audi-red);
    white-space: nowrap;
}

@media (max-width: 767px) {
    .text-brand {
        white-space: normal;
    }
}

h3 {
    font-size: 1.25rem; /* fallback dla Safari < 13.1 */
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* -----------------------------------------------------
   3. Layout
   ----------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

main > section[id] {
    scroll-margin-top: 80px;
}

.section-light {
    background-color: var(--audi-white);
}

.section-dark {
    background-color: var(--audi-black);
    color: var(--audi-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--audi-white);
}

.section-gray {
    background-color: var(--audi-gray-100);
}

.section-parts {
    position: relative;
    overflow: hidden;
}

.section-parts .section-intro {
    position: relative;
    z-index: 2;
}

.section-parts .btn-hero {
    margin-top: 2rem;
}

.section-content .btn-hero {
    margin-top: 2rem;
}

.parts-bg-icons {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.parts-bg-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.12);
}

.parts-bg-icon--gear {
    top: 10%;
    left: 5%;
    width: 9rem;
    height: 9rem;
}

.parts-bg-icon--wrench {
    top: 20%;
    right: 8%;
    width: 7rem;
    height: 7rem;
}

.parts-bg-icon--disc {
    bottom: 15%;
    left: 10%;
    width: 8rem;
    height: 8rem;
}

.parts-bg-icon--battery {
    bottom: 20%;
    right: 5%;
    width: 6.5rem;
    height: 6.5rem;
}

@media (min-width: 768px) {
    .parts-bg-icon--gear {
        width: 14rem;
        height: 14rem;
    }

    .parts-bg-icon--wrench {
        width: 11rem;
        height: 11rem;
    }

    .parts-bg-icon--disc {
        width: 12rem;
        height: 12rem;
    }

    .parts-bg-icon--battery {
        width: 8.5rem;
        height: 8.5rem;
    }
}

.section-intro {
    max-width: 800px;
    margin-bottom: 3rem;
}

.section-intro.narrow {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading-full {
    max-width: 100%;
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--audi-gray-200);
}

.grid-two {
    display: grid;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 992px) {
    .grid-two {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }

    .grid-two.grid-stretch {
        align-items: stretch;
    }

    .grid-stretch .section-media {
        height: 100%;
    }

    .grid-stretch .image-placeholder,
    .grid-stretch .section-media img {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
    }
}

@media (min-width: 992px) {
    .grid-reversed .section-content {
        order: 2;
    }
    
    .grid-reversed .section-media {
        order: 1;
    }
}

/* -----------------------------------------------------
   4. Header
   ----------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--audi-gray-200);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo-link img {
    width: auto;
    height: 40px;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-phone {
    display: none;
    font-family: var(--font-wide);
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    transition: color var(--transition);
}

@media (hover: hover) {
    .header-phone:hover {
        color: var(--audi-red);
    }
}

@media (min-width: 768px) {
    .header-phone {
        display: inline-block;
    }
}

/* -----------------------------------------------------
   5. Przyciski
   ----------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-wide);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background-color: var(--audi-black);
    color: var(--audi-white);
    border-color: var(--audi-black);
}

@media (hover: hover) {
    .btn-primary:hover {
        background-color: transparent;
        color: var(--audi-black);
    }
}

.btn-submit {
    width: 100%;
    background-color: var(--audi-red);
    color: var(--audi-white);
    border-color: var(--audi-red);
    padding: 1rem 2rem;
    font-size: 0.875rem;
}

@media (hover: hover) {
    .btn-submit:hover {
        background-color: var(--audi-red-dark);
        border-color: var(--audi-red-dark);
    }
}

.btn-card {
    width: 100%;
    margin-top: 1.5rem;
    background-color: var(--audi-black);
    color: var(--audi-white);
    border-color: var(--audi-black);
}

@media (hover: hover) {
    .btn-card:hover {
        background-color: transparent;
        color: var(--audi-black);
    }
}

/* -----------------------------------------------------
   6. Hero
   ----------------------------------------------------- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: var(--audi-white);
    overflow: hidden;
    background-color: var(--audi-black);
}

/* Laptopy: hero na 78vh, align-items flex-start dla precyzyjnego wyrównania menu */
@media (min-width: 992px) and (max-height: 1000px) {
    .hero {
        min-height: 78vh;
        align-items: flex-start;
    }
}

@media (min-width: 992px) and (max-height: 850px) {
    .hero {
        min-height: 75vh;
        align-items: flex-start;
    }
}

@media (min-width: 992px) and (max-height: 750px) {
    .hero {
        min-height: 72vh;
        align-items: flex-start;
    }
}

.hero-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    background-image: url('../image/audi-serwis-bednarek.jpg');
    background-size: cover;
    background-position: center;
}

/* Laptopy: przesunięcie punktu focuse zdjęcia ku górze, aby nie ucinało głowy */
@media (min-width: 992px) and (max-height: 1000px) {
    .hero-media {
        background-position: center 15%;
    }
}

@media (min-width: 992px) and (max-height: 850px) {
    .hero-media {
        background-position: center 10%;
    }
}

@media (min-width: 992px) and (max-height: 750px) {
    .hero-media {
        background-position: center 5%;
    }
}

.hero-media span {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.65) 50%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

@media (max-width: 767px) {
    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.75) 50%,
            rgba(0, 0, 0, 0.55) 100%
        );
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .hero-inner {
        padding-bottom: 6rem;
    }
}

@media (min-width: 992px) {
    .hero-inner {
        padding-bottom: 14rem;
    }
}

@media (min-width: 992px) and (max-height: 1000px) {
    .hero-inner {
        padding-top: 3.5rem;
        padding-bottom: 2rem;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 4vw, 2.75rem);
    }
    
    .hero-lead {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 1rem;
    }
}

@media (min-width: 992px) and (max-height: 850px) {
    .hero-inner {
        padding-top: 3rem;
        padding-bottom: 1.5rem;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    
    .hero-lead {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 992px) and (max-height: 750px) {
    .hero-inner {
        padding-top: 2.5rem;
        padding-bottom: 1rem;
    }
    
    .hero-label {
        margin-bottom: 0.75rem;
    }
    
    .hero h1 {
        font-size: clamp(1.75rem, 3.5vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .hero-lead {
        font-size: 0.9375rem;
        line-height: 1.6;
        margin-bottom: 0.75rem;
    }
}

.hero-content {
    max-width: 720px;
}

.hero-label {
    font-family: var(--font-wide);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--audi-red);
    margin-bottom: 1rem;
}

.hero h1 {
    color: var(--audi-white);
    margin-bottom: 1.5rem;
}

.hero-lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin-bottom: 2rem;
}

.btn-hero {
    background-color: var(--audi-red);
    color: var(--audi-white);
    border-color: var(--audi-red);
}

@media (hover: hover) {
    .btn-hero:hover {
        background-color: transparent;
        color: var(--audi-white);
        border-color: var(--audi-white);
    }
}

/* -----------------------------------------------------
   6c. Nawigacja w hero
   ----------------------------------------------------- */
.hero-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 90px;
    display: flex;
    justify-content: center;
    z-index: 4;
}

.hero-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: border-color var(--transition), background-color var(--transition);
}

.hero-nav-toggle:focus-visible {
    border-color: var(--audi-white);
    background-color: rgba(255, 255, 255, 0.1);
}

@media (hover: hover) {
    .hero-nav-toggle:hover {
        border-color: var(--audi-white);
        background-color: rgba(255, 255, 255, 0.1);
    }
}

.hero-nav-burger,
.hero-nav-burger::before,
.hero-nav-burger::after {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--audi-white);
    transition: transform var(--transition), opacity var(--transition);
}

.hero-nav-burger {
    position: relative;
}

.hero-nav-burger::before,
.hero-nav-burger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hero-nav-burger::before {
    top: -7px;
}

.hero-nav-burger::after {
    top: 7px;
}

.hero-nav-panel {
    display: contents;
}

.hero-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-wide);
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    overflow-wrap: break-word;
    transition: color var(--transition);
}

.hero-nav-link:focus-visible {
    outline: none;
}

.hero-nav-dot {
    width: 6px;
    height: 6px;
    background-color: var(--audi-red);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-nav-close {
    display: none;
}

/* Mobile: wysuwany biały panel */
@media (max-width: 991px) {
    .hero-inner {
        padding-top: 9rem;
    }

    .hero-nav {
        z-index: 102;
    }

    .hero-nav-toggle {
        z-index: 99;
    }

    .hero-nav-panel {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        background-color: var(--audi-white);
        z-index: 101;
        padding: 7rem 1.5rem 2rem;
        transform: translateX(110%);
        transition: transform 300ms ease-out;
    }

    .hero-nav-panel.is-open {
        transform: translateX(0);
    }

    .hero-nav-close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
        background-color: transparent;
        border: none;
        font-family: var(--font-body);
        font-size: 2rem;
        line-height: 1;
        color: var(--audi-gray-800);
        cursor: pointer;
        transition: color var(--transition);
    }

    .hero-nav-close:focus-visible {
        color: var(--audi-black);
    }

    @media (hover: hover) {
        .hero-nav-close:hover {
            color: var(--audi-black);
        }
    }

    .hero-nav-list {
        gap: 1.25rem;
    }

    .hero-nav-link {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        width: 100%;
        font-size: 0.8125rem;
        color: var(--audi-gray-800);
    }

    .hero-nav-link:focus-visible {
        color: var(--audi-black);
    }

    @media (hover: hover) {
        .hero-nav-link:hover {
            color: var(--audi-black);
        }
    }

    .hero-nav-dot {
        margin-top: 0.35rem;
        margin-left: 0.5rem;
    }
}

/* Desktop: pionowa lista po lewej, wycentrowana w pionie, wyrównana do containera */
@media (min-width: 992px) {
    .hero-nav {
        left: max(1.5rem, calc((100% - var(--container)) / 2 + 1.5rem));
        right: auto;
        top: 50%;
        bottom: auto;
        display: block;
        transform: translateY(-50%);
        max-width: 280px;
    }

    .hero-nav-toggle {
        display: none;
    }

    .hero-nav-panel {
        display: block;
        position: static;
        inset: auto;
        width: auto;
        background-color: transparent;
        box-shadow: none;
        z-index: auto;
        padding: 0;
        transform: none;
        transition: none;
    }

    .hero-nav-list {
        position: static;
        inset: auto;
        justify-content: flex-start;
        align-items: flex-start;
        background-color: transparent;
        z-index: auto;
        padding: 0;
        transform: none;
        transition: none;
        box-shadow: none;
    }

    .hero-nav-link {
        display: inline-flex;
        justify-content: flex-start;
        font-size: 0.75rem;
        line-height: 1.35;
        gap: 0.625rem;
        align-items: center;
        color: rgba(255, 255, 255, 0.9);
        transition: color var(--transition), transform var(--transition);
    }

    .hero-nav-link:focus-visible {
        color: var(--audi-white);
        transform: translateX(8px);
        outline: none;
    }

    .hero-nav-link:focus-visible .hero-nav-dot {
        transform: scale(1.5);
    }

    @media (hover: hover) {
        .hero-nav-link:hover {
            color: var(--audi-white);
            transform: translateX(8px);
        }

        .hero-nav-link:hover .hero-nav-dot {
            transform: scale(1.5);
        }
    }

    .hero-nav-dot {
        width: 5px;
        height: 5px;
        margin-top: 0;
        transition: transform var(--transition);
    }

    .hero-content {
        margin-left: 320px;
    }
}

/* Laptopy: wyrównaj pionowe menu z górną krawędzią nagłówka H1 */
@media (min-width: 992px) and (max-height: 1000px) {
    .hero-nav {
        top: 5.75rem;
        transform: none;
    }
}

@media (min-width: 992px) and (max-height: 850px) {
    .hero-nav {
        top: 5.25rem;
        transform: none;
    }
}

@media (min-width: 992px) and (max-height: 750px) {
    .hero-nav {
        top: 4.5rem;
        transform: none;
    }
}

/* -----------------------------------------------------
   6b. Baner wyboru intencji
   ----------------------------------------------------- */
.intent-section {
    position: relative;
    z-index: 3;
    margin-top: -2rem;
    padding: 0 0 3rem 0;
    background-color: transparent;
}

@media (min-width: 768px) {
    .intent-section {
        margin-top: -8rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 992px) {
    .intent-section {
        margin-top: -11rem;
    }
}

/* Laptopy: lekkie nachodzenie banera intencji na hero bez wpływu na przepływ dokumentu */
@media (min-width: 992px) and (max-height: 1000px) {
    .intent-section {
        margin-top: 0;
        transform: translateY(-2rem);
    }
}

@media (min-width: 992px) and (max-height: 850px) {
    .intent-section {
        transform: translateY(-2rem);
    }
}

@media (min-width: 992px) and (max-height: 750px) {
    .intent-section {
        transform: translateY(-1rem);
    }
}

/* Kafelki intencji */
.intent-box {
    background-color: var(--audi-white);
    border: 1px solid var(--audi-gray-200);
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .intent-box {
        padding: 2.5rem;
    }
}

.intent-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.intent-subtitle {
    color: var(--audi-gray-600);
    margin-bottom: 1rem;
}

.intent-promo {
    display: inline-block;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: var(--audi-gray-800);
    background-color: var(--audi-gray-50);
    border-left: 3px solid var(--audi-red);
}

.intent-promo strong {
    color: var(--audi-red);
    font-weight: 700;
}

.intent-grid {
    display: grid;
    gap: 0.75rem;
}

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

.intent-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background-color: var(--audi-white);
    border: 1px solid var(--audi-gray-200);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition);
}

.intent-card:focus-visible {
    border-color: var(--audi-red);
    background-color: var(--audi-gray-50);
    outline: none;
}

@media (hover: hover) {
    .intent-card:hover {
        border-color: var(--audi-red);
        background-color: var(--audi-gray-50);
    }
}

.intent-card:focus-visible {
    box-shadow: 0 0 0 2px var(--audi-red);
}

.intent-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    color: var(--audi-red);
}

.intent-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

.intent-text {
    font-family: var(--font-wide);
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--audi-gray-800);
}

/* -----------------------------------------------------
   7. Sekcje treści
   ----------------------------------------------------- */
.section-media {
    position: relative;
}

.image-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 fallback dla Safari < 15 */
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--audi-gray-100) 0%, var(--audi-gray-200) 100%);
    border: 1px solid var(--audi-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 2rem;
    padding-right: 2rem;
    padding-left: 2rem;
}

.image-placeholder span {
    font-family: var(--font-wide);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--audi-gray-400);
}

.sub-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--audi-gray-200);
}

.sub-section:first-of-type {
    margin-top: 2rem;
}

.section-dark .sub-section {
    border-top-color: var(--audi-gray-800);
}

.sub-section.sub-section-no-border {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.sub-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    color: var(--audi-gray-600);
    background-color: var(--audi-gray-100);
    border: 1px solid var(--audi-gray-200);
}

.sub-section-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

/* Promo box */
.promo-card {
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(255, 10, 50, 0.08) 0%, rgba(255, 10, 50, 0.03) 100%);
    border: 1px solid rgba(255, 10, 50, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.promo-card__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background-color: var(--audi-red);
    color: var(--audi-white);
}

.promo-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
}

.promo-card__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.promo-card__label {
    font-family: var(--font-wide);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.promo-card__body {
    padding: 1.25rem;
}

.promo-card__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--audi-gray-900);
}

.promo-card__text strong {
    color: var(--audi-red);
    font-weight: 700;
}

/* Karty programów */
.cards-grid {
    display: grid;
    gap: 1.5rem;
}

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

.info-card {
    background-color: var(--audi-white);
    color: var(--audi-gray-800);
    padding: 2rem;
    border-top: 3px solid var(--audi-red);
}

.info-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    color: var(--audi-gray-600);
    background-color: var(--audi-gray-100);
    border: 1px solid var(--audi-gray-200);
}

.info-card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.info-card h3 {
    color: var(--audi-black);
    font-size: 1.0625rem;
    margin-bottom: 0.875rem;
}

/* -----------------------------------------------------
   7b. Sekcja zespołu
   ----------------------------------------------------- */
.team-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--audi-white);
    overflow: hidden;
    padding: 0;
}

.team-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 1;
    background-image: url('../image/zespol-serwis-audi.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.team-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        rgba(0, 0, 0, 0.72),
        rgba(0, 0, 0, 0.62)
    );
}

.team-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .team-content {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

.team-content .section-intro {
    max-width: 900px;
    margin: 0 auto;
}

.team-content h2,
.team-content p {
    color: var(--audi-white);
}

.team-content p {
    color: rgba(255, 255, 255, 0.88);
}

/* Parallax wyłączony na mobile ze względu na iOS */
/* Wyłączenie parallax na urządzeniach dotykowych (iPad landscape, iOS) */
@media (hover: none) and (pointer: coarse) {
    .team-bg {
        background-attachment: scroll;
    }
}

/* -----------------------------------------------------
   8. Formularz kontaktowy
   ----------------------------------------------------- */
.section-contact {
    background-color: var(--audi-gray-100);
    scroll-margin-top: 72px;
}

.contact-intro {
    max-width: 800px;
    margin-bottom: 3rem;
}

.contact-intro h2 {
    margin-bottom: 1.5rem;
}

.contact-intro p {
    color: var(--audi-gray-600);
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* Karty działów */
.contact-departments {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .contact-departments {
        grid-template-columns: repeat(3, 1fr);
    }
}

.department-card {
    background-color: var(--audi-white);
    border-top: 3px solid var(--audi-red);
    padding: 2rem;
}

.department-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--audi-black);
}

.department-card address {
    font-style: normal;
    line-height: 1.8;
    color: var(--audi-gray-600);
}

.department-card p {
    margin-bottom: 0.5rem;
}

.department-card p:last-child {
    margin-bottom: 0;
}

.department-card a {
    color: var(--audi-gray-800);
    text-decoration: none;
    transition: color var(--transition);
}

@media (hover: hover) {
    .department-card a:hover {
        color: var(--audi-red);
    }
}

/* Formularz na ciemnym tle */
.contact-form-wrapper {
    background-color: var(--audi-black);
    padding: 3rem 1.5rem;
    scroll-margin-top: 72px;
}

@media (min-width: 768px) {
    .contact-form-wrapper {
        padding: 4rem 3rem;
    }
}

.contact-form {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.form-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem; /* fallback dla Safari < 13.1 */
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--audi-white);
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group-hidden {
    display: none;
}

.form-group-visible {
    display: block;
    animation: fadeIn 250ms ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-row {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form--dark label {
    display: block;
    font-family: var(--font-wide);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--audi-gray-300);
}

.contact-form--dark .label-hint {
    display: inline;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--audi-gray-500);
}

.contact-form--dark input,
.contact-form--dark select,
.contact-form--dark textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--audi-white);
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.contact-form--dark select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 3rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b3b3b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.contact-form--dark option,
.contact-form--dark optgroup {
    background-color: var(--audi-black);
    color: var(--audi-white);
}

.contact-form--dark input:focus,
.contact-form--dark select:focus,
.contact-form--dark textarea:focus {
    outline: none;
    border-color: var(--audi-red);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(235, 13, 63, 0.2);
}

.contact-form--dark input::placeholder,
.contact-form--dark textarea::placeholder {
    color: var(--audi-gray-300);
}

.contact-form--dark select:invalid {
    color: var(--audi-gray-300);
}

.contact-form--dark .form-privacy {
    margin: 2rem 0;
}

.contact-form--dark .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.8125rem;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.5;
    color: var(--audi-gray-300);
    cursor: pointer;
}

.contact-form--dark .checkbox-label input {
    width: auto;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-form--dark .checkbox-label a {
    color: var(--audi-red);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.contact-form--dark .btn-submit {
    width: 100%;
    background-color: var(--audi-red);
    color: var(--audi-white);
    border-color: var(--audi-red);
    padding: 1.125rem 2rem;
    font-size: 0.875rem;
}

@media (hover: hover) {
    .contact-form--dark .btn-submit:hover {
        background-color: var(--audi-red-dark);
        border-color: var(--audi-red-dark);
    }
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9375rem;
    min-height: 1.5em;
    text-align: center;
}

.form-status.success {
    color: #4cd694;
}

.form-status.error {
    color: #ff6b8a;
}

/* -----------------------------------------------------
   9. Footer
   ----------------------------------------------------- */
.site-footer {
    background-color: var(--audi-black);
    color: var(--audi-white);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-brand img {
    height: 32px;
    width: auto;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-family: var(--font-wide);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--audi-gray-400);
    margin: 0;
}

.footer-address {
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--audi-gray-300);
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--audi-gray-600);
    margin: 0;
}

/* -----------------------------------------------------
   10. Dostępność i drobne poprawki
   ----------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Opóźnienia dla kart w siatkach */
.reveal.intent-card:nth-child(2) { transition-delay: 80ms; }
.reveal.intent-card:nth-child(3) { transition-delay: 160ms; }
.reveal.intent-card:nth-child(4) { transition-delay: 240ms; }

.reveal.info-card:nth-child(2) { transition-delay: 120ms; }
.reveal.info-card:nth-child(3) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.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;
}

:focus {
    outline: 2px solid var(--audi-red);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}
