* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #8B2F35;
    --primary-red-light: #A53842;
    --primary-red-dark: #6B1F25;
    --dark-bg: #1A1A1A;
    --darker-bg: #1A1B1E;
    --light-gray: #F8F8F8;
    --text-dark: #2B2B2B;
    --text-light: #FFFFFF;
    --accent-gold: #D6B15A;
    --border-light: #E5E5E5;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.9rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.7rem 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-red);
}

.nav-cta {
    display: flex;
    gap: 0.8rem;
}

.btn-portal {
    padding: 0.7rem 1.4rem;
    border: 1.5px solid var(--text-dark);
    background: transparent;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 2px;
}

.btn-portal:hover {
    background: var(--text-dark);
    color: white;
}

.btn-contact {
    padding: 0.7rem 1.6rem;
    background: var(--primary-red);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 2px;
}

.btn-contact:hover {
    background: var(--primary-red-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 47, 53, 0.3);
}

/* Hero Section */
.hero {
    margin-top: 70px;
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    background: var(--darker-bg);
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video-bg video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: brightness(1.5) contrast(1.1);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15,15,15,0.95) 0%,
        rgba(15,15,15,0.7) 50%,
        rgba(15,15,15,0.9) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-label {
    display: inline-block;
    color: var(--accent-gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 1.3rem;
    max-width: 900px;
}

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

.hero-badges {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255,255,255,0.05);
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent-gold);
}

.badge img {
    width: 38px;
    height: 38px;
    border-radius: 4px;
}

.badge span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    line-height: 1.3;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    padding: 0.9rem 2rem;
    background: var(--primary-red);
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

.btn-primary:hover {
    background: var(--primary-red-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 47, 53, 0.3);
}

.btn-secondary {
    padding: 0.9rem 2rem;
    background: transparent;
    color: white;
    border: 1.5px solid white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

.btn-secondary:hover {
    background: white;
    color: var(--dark-bg);
}

/* Trust Bar */
.trust-bar {
    background: white;
    padding: 2rem 5%;
    border-bottom: 1px solid var(--border-light);
}

.trust-content {
    max-width: 1400px;
    margin: 0 auto;
}

.trust-content h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 1.3rem;
    font-weight: 600;
}

.client-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.client-logos img {
    height: 45px;
    opacity: 0.5;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.client-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* About Section */
.about-section {
    padding: 5rem 5%;
    background: white;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: stretch;
}

.about-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark-bg);
    line-height: 1.2;
}

.about-content h2 .highlight {
    color: var(--primary-red);
}

.about-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.3rem;
    font-size: 0.95rem;
}

.about-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-top: 2rem;
}

.timeline-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.timeline-year {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-red);
    min-width: 75px;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--dark-bg);
}

.timeline-content p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    position: relative;
    height: 100%;
    min-height: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--primary-red);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(
        to top,
        rgba(15, 15, 15, 0.95) 0%,
        rgba(15, 15, 15, 0.7) 40%,
        transparent 100%
    );
    pointer-events: none;
}

.about-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 3rem 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    z-index: 2;
}

.stat-box-about {
    text-align: center;
}

.stat-box-about .number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    display: inline-block;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-box-about .plus,
.stat-box-about .years {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-gold);
    display: inline-block;
}

.stat-box-about .label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
}

/* Section Headers - Left Aligned */
.section-header-left {
    max-width: 1400px;
    margin: 0 auto 4rem;
    text-align: left;
}

.header-top {
    margin-bottom: 2.5rem;
}

.header-text .section-label {
    color: var(--primary-red);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-block;
}

.header-text .section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark-bg);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    max-width: 800px;
}

.section-description-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
}

.section-description-columns .column p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.section-description-columns .column p:last-child {
    margin-bottom: 0;
}

/* Section Headers - Centered (dla innych sekcji) */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    padding: 0 5%;
}

.section-label {
    color: var(--primary-red);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--dark-bg);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    font-size: 0.95rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Services Section */
.services {
    padding: 4rem 5%;
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    border-radius: 6px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-red);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-red-dark);
    transform: scale(1.05);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-bg);
    line-height: 1.3;
}

.service-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.service-tech-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    background: rgba(139, 47, 53, 0.08);
    color: var(--primary-red);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.service-link {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--primary-red-light);
}

/* References Section */
.references {
    padding: 4rem 5%;
    background: white;
}

.references-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    gap: 2.5rem;
}

.reference-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--light-gray);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.reference-card:nth-child(even) {
    grid-template-columns: 1fr 1.2fr;
}

.reference-card:nth-child(even) .reference-image {
    order: 2;
}

.reference-card:nth-child(even) .reference-info {
    order: 1;
}

.reference-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.reference-image {
    position: relative;
    
     aspect-ratio: 16 / 10;   /* możesz zmienić np. 4/3 albo 16/9 */
  min-height: unset;       /* masz min-height: 350px — to potrafi robić rozjazdy */
  height: auto;
    overflow: hidden;
}

.reference-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;width: 100%;
  height: 100%;
 
  object-position: center; /* ważne, żeby kadrowało sensownie */
  display: block;
    transition: transform 0.5s ease;
}

.reference-card:hover .reference-image img {
    transform: scale(1.05);
}

.reference-info {
    padding: 2.5rem;
}

.reference-label {
    display: inline-block;
    color: var(--primary-red);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(139, 47, 53, 0.1);
    border-radius: 3px;
}

.reference-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--dark-bg);
    font-weight: 700;
    line-height: 1.2;
}

.reference-info p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.reference-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    text-align: left;
}

.stat-box .number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: var(--primary-red);
    font-weight: 800;
    display: block;
    margin-bottom: 0.2rem;
}

.stat-box .label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.reference-info a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.reference-info a:hover {
    color: var(--primary-red-light);
}

.references-cta {
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* Expertise Section */
.expertise {
    padding: 4rem 5%;
    background: var(--light-gray);
}

.expertise-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.expertise-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    font-weight: 800;
    line-height: 1.2;
}

.expertise-content h2 .highlight {
    color: var(--primary-red);
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.expertise-item {
    display: flex;
    gap: 1.5rem;
}

.expertise-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.expertise-icon svg {
    width: 24px;
    height: 24px;
}

.expertise-text h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.expertise-text p {
    color: #666;
    line-height: 1.7;
    font-size: 0.9rem;
}

.expertise-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cert-box, .stats-box {
    background: white;
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.cert-box h3, .stats-box h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cert-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cert-item img {
    width: 55px;
    height: 55px;
    border-radius: 4px;
}

.cert-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--dark-bg);
    margin-bottom: 0.2rem;
}

.cert-item p {
    font-size: 0.75rem;
    color: #666;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    background: var(--primary-red);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--primary-red-light);
    transform: translateY(-2px);
}

.btn-download svg {
    width: 16px;
    height: 16px;
}

.company-data {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-light);
}

.data-label {
    font-size: 0.8rem;
    color: #666;
}

.data-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark-bg);
}

/* Why Us Section */
.why-us {
    padding: 4rem 5%;
    background: white;
}

.why-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-card {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary-red);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: white;
}

.why-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-red);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.why-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--dark-bg);
}

.why-card p {
    color: #666;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 4rem 5%;
    background: white;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: var(--border-light);
}

.cta-content {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--light-gray);
    padding: 3rem;
    border-radius: 8px;
    border: 2px solid var(--primary-red);
}

.cta-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-align: center;
    color: var(--dark-bg);
    line-height: 1.2;
}

.cta-section > .cta-content > p {
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
    line-height: 1.7;
}

.cta-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.cta-option {
    background: white;
    padding: 2rem;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.cta-option:hover {
    border-color: var(--primary-red);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.cta-option h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--dark-bg);
}

.cta-option p {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.btn-cta-large {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    background: var(--primary-red);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-cta-large:hover {
    background: var(--primary-red-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 47, 53, 0.3);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    color: white;
    padding: 3.5rem 5% 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.footer-contact-main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact-main p {
    font-size: 0.85rem;
    margin: 0;
}

.footer-section h4 {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}

.footer-section ul li a:hover {
    color: var(--primary-red-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        height: 400px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .expertise-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .reference-card {
        grid-template-columns: 1fr;
    }

    .reference-card:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .reference-card .reference-image,
    .reference-card .reference-info {
        order: initial;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-badges {
        flex-direction: column;
    }

    .services-grid, .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .cta-options {
        grid-template-columns: 1fr;
    }

    .reference-stats {
        grid-template-columns: 1fr;
    }

    .reference-image {
        min-height: 250px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-image {
        height: 350px;
    }


    /* =========================================================
       Mobile polish – Services cards (fix "brzydko" on phone)
       ========================================================= */
    .services {
        padding: 3rem 5%;
    }

    .service-card {
        padding: 1.6rem;
        border-radius: 10px;
    }

    .service-icon {
        width: 52px;
        height: 52px;
        border-radius: 10px;
        margin-bottom: 1.1rem;
    }

    .service-icon svg {
        width: 24px;
        height: 24px;
    }

    .service-title {
        font-size: 1.05rem;
        line-height: 1.25;
        margin-bottom: 0.75rem;
        letter-spacing: -0.2px;
    }

    .service-description {
        font-size: 0.88rem;
        line-height: 1.65;
        margin-bottom: 1rem;
    }

    .service-tech-specs {
        gap: 0.45rem;
        margin-bottom: 0.85rem;
    }

    .tech-tag {
        display: inline-flex;
        align-items: center;
        padding: 0.35rem 0.7rem;
        font-size: 0.68rem;
        border-radius: 999px;
        letter-spacing: 0.4px;
        line-height: 1;
        white-space: normal;
    }

    .service-link {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding-top: 0.35rem;
        font-size: 0.9rem;
    }

    /* Featured card must not span columns on mobile */
    .featured-card {
        grid-column: auto;
        padding: 1.8rem;
    }

    .featured-card .service-title {
        font-size: 1.35rem;
    }


}
/* Featured Service Card */
.featured-card {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    border: 2px solid var(--primary-red);
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 47, 53, 0.15), transparent);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.featured-badge {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.featured-card .service-icon {
    background: var(--accent-gold);
    width: 70px;
    height: 70px;
}

.featured-card .service-icon svg {
    width: 35px;
    height: 35px;
}

.featured-card .service-title {
    color: white;
    font-size: 1.8rem;
}

.featured-card .service-description {
    color: rgba(255, 255, 255, 0.85);
}

.featured-card .tech-tag {
    background: rgba(214, 177, 90, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(214, 177, 90, 0.3);
}

.featured-card .service-link {
    color: var(--accent-gold);
}

.featured-card .service-link:hover {
    color: white;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(139, 47, 53, 0.3);
}


@media (max-width: 420px) {
    .navbar {
        padding: 0.8rem 4%;
    }

    .btn-portal, .btn-contact {
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
    }

    .service-card {
        padding: 1.35rem;
    }

    .service-tech-specs {
        gap: 0.4rem;
    }

    .tech-tag {
        padding: 0.32rem 0.62rem;
        font-size: 0.66rem;
    }
}


/* =========================================================
   FINAL OVERRIDES (must be at end of file)
   Mobile polish – Services cards
   ========================================================= */
@media (max-width: 768px) {
  .services { padding: 3rem 5%; }

  .services-grid { grid-template-columns: 1fr !important; gap: 1.25rem; }

  .service-card { padding: 1.6rem; border-radius: 10px; }

  .service-icon { width: 52px; height: 52px; border-radius: 10px; margin-bottom: 1.1rem; }
  .service-icon svg { width: 24px; height: 24px; }

  .service-title { font-size: 1.05rem; line-height: 1.25; margin-bottom: .75rem; letter-spacing: -0.2px; }

  .service-description { font-size: .88rem; line-height: 1.65; margin-bottom: 1rem; }

  .service-tech-specs { gap: .45rem; margin-bottom: .85rem; }

  .tech-tag {
    display: inline-flex;
    align-items: center;
    padding: .35rem .7rem;
    font-size: .68rem;
    border-radius: 999px;
    letter-spacing: .4px;
    line-height: 1;
    white-space: normal;
  }

  .service-link { display: inline-flex; align-items: center; gap: .35rem; padding-top: .35rem; font-size: .9rem; }

  /* Featured card: never span on mobile */
  .featured-card { grid-column: auto !important; padding: 1.8rem; }
  .featured-card .service-title { font-size: 1.35rem; }
}

@media (max-width: 420px) {
  .navbar { padding: 0.8rem 4%; }
  .btn-portal, .btn-contact { padding: 0.65rem 1rem; font-size: 0.8rem; }
  .service-card { padding: 1.35rem; }
  .service-tech-specs { gap: 0.4rem; }
  .tech-tag { padding: 0.32rem 0.62rem; font-size: 0.66rem; }
}
/* =========================
   HERO OVERLAY (dymione + spotlight) — wklej na sam koniec pliku
   ========================= */

/* Upewnij się, że hero jest pozycjonowane */
.hero {
  position: relative;
  overflow: hidden;
}

/* jeśli masz video/img w tle, to niech będzie pod overlayem */
.hero video,
.hero img,
.hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  /* spotlight za tekstem + ciemniej krawędzie i góra */
  background:
  
    radial-gradient(900px 520px at 28% 52%, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.65) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.30) 45%, rgba(0,0,0,0.18) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.22) 45%, rgba(0,0,0,0.48) 100%);
}

/* treść nad overlayem */
.hero .hero-content,
.hero .container,
.hero .hero-inner {
  position: relative;
  z-index: 2;
}
/* Link e-mail w kolorze tekstu (bez niebieskiego) */
.email-link {
  color: inherit;
  text-decoration: none;
}

.email-link:hover,
.email-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}