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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8fafc linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
    background-attachment: fixed;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #071424 0%, #0f2b48 100%);
    color: #fff;
    padding: 60px 0 45px 0;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(7, 20, 36, 0.15);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent 10%, #f5ebd6 50%, transparent 90%);
}

.logo-img {
    max-width: 100%;
    height: auto;
    max-height: 160px;
    margin-bottom: 35px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

nav a {
    color: #e2d7c1;
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background-color: rgba(245, 235, 214, 0.03);
    border: 1px solid rgba(245, 235, 214, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover, nav a.active {
    background: #f5ebd6;
    color: #071424;
    border-color: #f5ebd6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 235, 214, 0.2);
}

section {
    background: #ffffff;
    padding: 45px;
    margin: 35px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 43, 72, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(15, 43, 72, 0.03);
}

h2 {
    color: #071424;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #f5ebd6;
    border-radius: 2px;
}

.brands-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    align-items: center;
}

.brand-logo-card {
    background: #ffffff;
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 170px;
    height: 85px;
    transition: all 0.3s ease;
}

.brand-logo-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 20px rgba(7, 20, 36, 0.08);
    border-color: #f5ebd6;
}

.brand-logo-card img {
    max-width: 130px;
    max-height: 55px;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.brand-logo-card:hover img {
    opacity: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
    padding: 35px;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #071424;
    transition: background-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(7, 20, 36, 0.08);
    border-color: #f5ebd6;
}

.service-card:hover::before {
    background-color: #f5ebd6;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #071424;
    font-size: 1.35rem;
    font-weight: 600;
}

/* Wymuszenie szerokich i stabilnych spacji w sekcji kontaktowej */
.contact-details p {
    margin: 20px 0;
    font-size: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.contact-details strong {
    color: #071424;
    width: 160px; /* Stała szerokość nagłówka wymusza przerwę */
    display: inline-block;
    flex-shrink: 0;
}

.contact-details a, .contact-details span {
    margin-left: 10px; /* Dodatkowy margines bezpieczeństwa w CSS */
}

.contact-details a {
    color: #071424;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid #f5ebd6;
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.contact-details a:hover {
    color: #071424;
    border-bottom-color: #071424;
    padding-left: 5px;
}

.service-call-btn {
    color: #f5ebd6 !important;
    background: #071424;
    padding: 15px 40px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 15px;
    border: 1px solid #f5ebd6 !important;
    box-shadow: 0 4px 15px rgba(7, 20, 36, 0.2);
    transition: all 0.3s ease !important;
}

.service-call-btn:hover {
    background: #f5ebd6 !important;
    color: #071424 !important;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(7, 20, 36, 0.3);
}

footer {
    text-align: center;
    padding: 40px;
    margin-top: 80px;
    background: #071424;
    color: #8a9ba8;
    font-size: 0.9rem;
    border-top: 1px solid rgba(245, 235, 214, 0.1);
}
