/*
Theme Name: Naprawa-SRS
Theme URI: https://naprawa-srs.pl
Author: Naprawa-SRS.pl
Author URI: https://naprawa-srs.pl
Description: Nowoczesny motyw landing page dla firmy zajmujacej sie naprawa sterownikow AIRBAG. Ciemny motyw czern/czerwien, integracja WhatsApp, formularz wyceny, FAQ, opinie, mapa Google. Wszystkie teksty kontaktowe edytowalne z poziomu Customizera WordPress.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: naprawa-srs
Tags: landing-page, one-page, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-black: #0a0a0b;
    --bg-dark: #111113;
    --bg-card: #17171a;
    --bg-card-hover: #1f1f23;
    --border: #2a2a30;
    --border-light: #3a3a42;
    --red: #e11d2a;
    --red-light: #ff2d3f;
    --red-dark: #b8161f;
    --red-glow: rgba(225, 29, 42, 0.5);
    --white: #ffffff;
    --text: #e8e8ea;
    --text-muted: #9a9aa3;
    --text-dim: #6a6a73;
    --success: #10b981;
    --warning: #f59e0b;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-red: 0 10px 40px -10px rgba(225, 29, 42, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-black);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* WP body classes reset */
body.admin-bar .header { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .header { top: 46px; }
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
    position: relative;
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header.scrolled {
    border-bottom-color: var(--border);
    background: rgba(10, 10, 11, 0.95);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.logo:hover { transform: translateY(-1px); }

.logo-mark {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

/* Obsługa wgranego logo PNG/JPG/SVG (Wygląd → Dostosuj → Tożsamość witryny → Logo) */
.logo.has-custom-logo {
    line-height: 0;
}
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}
.custom-logo-link:hover { transform: translateY(-1px); }
.custom-logo {
    display: block;
    width: auto;
    height: 52px;
    max-height: 52px;
    max-width: 260px;
    object-fit: contain;
}
.site-footer .custom-logo {
    height: 48px;
    max-height: 48px;
    max-width: 220px;
}
@media (max-width: 768px) {
    .custom-logo { height: 44px; max-height: 44px; max-width: 180px; }
}

.logo-text {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: var(--white);
}

.logo-text .dot { color: var(--red); }

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav a:hover { color: var(--white); }

.nav-cta {
    background: var(--red);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: var(--transition);
    box-shadow: 0 0 0 0 var(--red-glow);
}

.nav-cta:hover {
    background: var(--red-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -6px var(--red-glow);
}

@media (max-width: 900px) {
    .nav a:not(.nav-cta) { display: none; }
}

@media (max-width: 600px) {
    .nav { gap: 12px; }
    .nav-cta { padding: 8px 14px; font-size: 14px; }
    .logo-text { font-size: 17px; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at top left, rgba(225, 29, 42, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(225, 29, 42, 0.08) 0%, transparent 50%),
        var(--bg-black);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(225, 29, 42, 0.1);
    border: 1px solid rgba(225, 29, 42, 0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--red-light);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    animation: fadeInUp 0.6s ease-out;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--red-light);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(225, 29, 42, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(225, 29, 42, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(225, 29, 42, 0); }
    100% { box-shadow: 0 0 0 0 rgba(225, 29, 42, 0); }
}

.hero h1 {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--white);
    max-width: 900px;
    margin-bottom: 24px;
    animation: fadeInUp 0.7s ease-out 0.1s backwards;
}

.hero h1 .gradient {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 50%, #ff6b7a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.hero p.lead {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeInUp 0.7s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Search form */
.search-wrapper {
    animation: fadeInUp 0.7s ease-out 0.3s backwards;
}

.search-card {
    background: linear-gradient(135deg, rgba(23, 23, 26, 0.95) 0%, rgba(17, 17, 19, 0.95) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--red) 50%, transparent 100%);
}

.search-card h3 {
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.search-card .subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
    .search-card { padding: 24px 20px; }
}

.form-field { position: relative; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-field label .required { color: var(--red); }

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    background: var(--bg-black);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--white);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--red);
    background: #0c0c0e;
    box-shadow: 0 0 0 4px rgba(225, 29, 42, 0.12);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-dim);
}

.form-field.monospace input { font-family: 'JetBrains Mono', monospace; font-weight: 600; letter-spacing: 0.05em; }

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px -8px var(--red-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--red-light) 0%, var(--red) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px var(--red-glow);
}

.btn-primary:active { transform: translateY(0); }

.search-note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Hero stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 60px;
    animation: fadeInUp 0.7s ease-out 0.5s backwards;
}

@media (max-width: 768px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.stat {
    text-align: center;
    padding: 20px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.stat:hover {
    border-color: var(--red);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--red-light);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.eyebrow {
    display: inline-block;
    color: var(--red-light);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 17px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.service-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.service-card:hover::after { transform: translateX(0); }

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(225, 29, 42, 0.15) 0%, rgba(225, 29, 42, 0.05) 100%);
    border: 1px solid rgba(225, 29, 42, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-light);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(225, 29, 42, 0.08);
    color: var(--red-light);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(225, 29, 42, 0.2);
}

/* ============================================
   PROCESS
   ============================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

@media (max-width: 900px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .process-grid { grid-template-columns: 1fr; }
}

.process-step {
    position: relative;
    text-align: center;
    padding: 32px 20px;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    color: var(--white);
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px -10px var(--red-glow);
    position: relative;
    z-index: 2;
}

.step-number::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px dashed rgba(225, 29, 42, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.process-step h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

/* ============================================
   EXPRESS BANNER
   ============================================ */
.express-banner {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.express-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.express-banner > * { position: relative; z-index: 1; }

.express-content h3 {
    color: var(--white);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.express-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.express-banner .btn-express {
    background: var(--white);
    color: var(--red);
    padding: 16px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.express-banner .btn-express:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

@media (max-width: 720px) {
    .express-banner { flex-direction: column; text-align: center; padding: 32px 24px; }
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.faq-grid {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover { border-color: var(--border-light); }
.faq-item.open { border-color: var(--red); }

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover { color: var(--red-light); }

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--red-light);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 500px; }

/* ============================================
   REVIEWS
   ============================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    position: relative;
}

.review-card:hover {
    border-color: var(--border-light);
    transform: translateY(-3px);
}

.stars {
    display: flex;
    gap: 4px;
    color: #fbbf24;
    margin-bottom: 16px;
}

.review-text {
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
}

.review-name {
    font-weight: 600;
    color: var(--white);
    font-size: 15px;
}

.review-location {
    color: var(--text-dim);
    font-size: 13px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

.contact-info h2 {
    color: var(--white);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.15;
}

.contact-info h2 .gradient {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info p.lead {
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 32px;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--red);
    transform: translateX(4px);
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(225, 29, 42, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-light);
}

.contact-item-label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.contact-item-value {
    color: var(--white);
    font-weight: 600;
    font-size: 15.5px;
}

.contact-item-value a:hover { color: var(--red-light); }

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 500px;
    background: var(--bg-card);
}

.map-wrapper iframe {
    border: 0;
    width: 100%;
    height: 500px;
    filter: invert(90%) hue-rotate(180deg) saturate(1.2);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #25d366;
    color: white;
    padding: 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    margin-top: 24px;
    box-shadow: 0 8px 24px -8px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
}

/* ============================================
   RESULT BOX
   ============================================ */
.result-box {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: var(--text);
    font-size: 15px;
    animation: fadeInUp 0.4s ease-out;
}

.result-box.show { display: block; }

.result-box strong { color: var(--success); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-black);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-desc {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-col h4 {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 14.5px;
    transition: var(--transition);
}

.footer-col a:hover { color: var(--red-light); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-dim);
    font-size: 13.5px;
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.float-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: bounceIn 0.6s ease-out 1s backwards;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.float-whatsapp::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: pulseRing 2.5s infinite;
    z-index: -1;
}

@keyframes pulseRing {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0); }
    60% { opacity: 1; transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ============================================
   UTILITIES
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* WP accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================
   NOWE STYLE: SHIPPING, OTHER CONTROLLERS, MESSENGERS, FORM
   ============================ */

/* Select i hint w formularzu */
.form-field select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(15, 15, 17, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    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='%23999' stroke-width='2.5' 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 14px center;
    padding-right: 42px;
}
.form-field select:focus {
    outline: none;
    border-color: #e11d2a;
    background-color: rgba(225, 29, 42, 0.05);
}
.form-field select option {
    background: #0f0f11;
    color: #fff;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.paczkomat-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.paczkomat-row input {
    flex: 1;
}
.btn-paczkomat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    background: rgba(225, 29, 42, 0.12);
    border: 1.5px solid rgba(225, 29, 42, 0.4);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}
.btn-paczkomat:hover {
    background: rgba(225, 29, 42, 0.22);
    border-color: #e11d2a;
    transform: translateY(-1px);
}
@media (max-width: 480px) {
    .paczkomat-row { flex-direction: column; }
    .btn-paczkomat { padding: 12px 18px; justify-content: center; }
}

/* Sekcja: Inne sterowniki */
.other-controllers {
    padding: 80px 0;
}
.other-banner {
    background: linear-gradient(135deg, rgba(225, 29, 42, 0.12), rgba(225, 29, 42, 0.03));
    border: 1.5px solid rgba(225, 29, 42, 0.25);
    border-radius: 28px;
    padding: clamp(36px, 6vw, 64px);
    position: relative;
    overflow: hidden;
}
.other-banner::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(ellipse at top right, rgba(225, 29, 42, 0.18), transparent 60%);
    pointer-events: none;
}
.other-content {
    position: relative;
    max-width: 820px;
}
.other-content .eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(225, 29, 42, 0.2);
    color: #ff4d5c;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.other-content h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 18px;
    color: #fff;
}
.other-content > p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 26px;
}
.other-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px 24px;
}
.other-list li {
    position: relative;
    padding-left: 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.5;
}
.other-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 2px;
    background: #e11d2a;
    border-radius: 2px;
}
.other-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
}
.btn-primary.btn-inline {
    background: linear-gradient(135deg, #e11d2a, #b8161f);
    color: #fff;
    box-shadow: 0 8px 20px rgba(225, 29, 42, 0.35);
}
.btn-primary.btn-inline:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(225, 29, 42, 0.5); }
.btn-secondary.btn-inline {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}
.btn-secondary.btn-inline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Sekcja: Shipping / Paczkomat */
.shipping {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.015);
}
.shipping-grid {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    margin-bottom: 48px;
    padding: 10px 0;
    overflow: hidden;
    isolation: isolate;
}

/* Animowany pasek (promień) przesuwający się od lewej do prawej pod/za kartami */
.shipping-grid::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -20%;
    transform: translateY(-50%);
    width: 20%;
    height: 80%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(225, 29, 42, 0.0) 10%,
        rgba(225, 29, 42, 0.45) 50%,
        rgba(225, 29, 42, 0.0) 90%,
        transparent 100%
    );
    filter: blur(28px);
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    animation: srs-shipping-beam 5.5s cubic-bezier(.45,.05,.55,.95) infinite;
}

/* Cienka świetlna linia przy dolnej krawędzi rzędu */
.shipping-grid::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(225, 29, 42, 0.15) 40%,
        #ff2d3f 50%,
        rgba(225, 29, 42, 0.15) 60%,
        transparent 100%
    );
    background-size: 30% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    animation: srs-shipping-line 5.5s linear infinite;
}

@keyframes srs-shipping-beam {
    0%   { left: -25%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: 105%; opacity: 0; }
}
@keyframes srs-shipping-line {
    0%   { background-position: -30% 0; }
    100% { background-position: 130% 0; }
}

.shipping-card {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px 22px;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    z-index: 1;
    overflow: hidden;
}

/* Pulsujący sweep w środku każdej karty, odpalany sekwencyjnie */
.shipping-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(225, 29, 42, 0.12) 50%,
        transparent 100%
    );
    pointer-events: none;
    animation: srs-card-sweep 5.5s ease-in-out infinite;
}
.shipping-card:nth-child(1)::before { animation-delay: 0s; }
.shipping-card:nth-child(2)::before { animation-delay: 0.35s; }
.shipping-card:nth-child(3)::before { animation-delay: 0.7s; }
.shipping-card:nth-child(4)::before { animation-delay: 1.05s; }

@keyframes srs-card-sweep {
    0%   { left: -100%; }
    20%  { left: 100%; }
    100% { left: 100%; }
}

.shipping-card:hover {
    transform: translateY(-4px);
    border-color: rgba(225, 29, 42, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

/* Responsywność - na wąskich ekranach zwijamy do przewijania poziomego lub 2x2 */
@media (max-width: 980px) {
    .shipping-grid {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 14px;
    }
    .shipping-card {
        flex: 0 0 220px;
        scroll-snap-align: start;
    }
}
@media (max-width: 480px) {
    .shipping-card { flex: 0 0 200px; padding: 22px 18px; }
    .shipping-card h3 { font-size: 16px; }
}

/* Mniejsze ikonki i tekst w kartach, żeby wszystkie zmieściły się w rzędzie */
.shipping-card .shipping-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
}
.shipping-card h3 { font-size: 16px; line-height: 1.25; }
.shipping-card p  { font-size: 13.5px; }

/* Respect user preference: wyłącz animację jeśli użytkownik ograniczył ruch */
@media (prefers-reduced-motion: reduce) {
    .shipping-grid::before,
    .shipping-grid::after,
    .shipping-card::before {
        animation: none;
    }
}

/* ============================
   COOKIE BANNER
   ============================ */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(11, 11, 13, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid rgba(225, 29, 42, 0.35);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(.2,.9,.2,1), opacity 0.35s ease;
    pointer-events: none;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cookie-banner.closing {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}
.cookie-banner-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 20px 52px 20px 22px;
    position: relative;
}
.cookie-banner-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(225, 29, 42, 0.25), rgba(225, 29, 42, 0.08));
    color: #ff4d5c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cookie-banner-text strong {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}
.cookie-banner-text p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
}
.cookie-banner-link {
    color: #ff4d5c;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    margin-left: 4px;
}
.cookie-banner-link:hover { color: #ff6b7a; }
.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}
.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}
.cookie-btn-accept {
    background: linear-gradient(135deg, #e11d2a, #b8161f);
    color: #fff;
    box-shadow: 0 8px 20px rgba(225, 29, 42, 0.35);
}
.cookie-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(225, 29, 42, 0.5);
}
.cookie-banner-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.cookie-banner-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

@media (max-width: 720px) {
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; border-radius: 16px; }
    .cookie-banner-inner {
        grid-template-columns: auto 1fr;
        padding: 18px 44px 18px 18px;
        gap: 14px;
    }
    .cookie-banner-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }
    .cookie-btn { flex: 1; }
    .cookie-banner-icon { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner { transition: opacity 0.2s ease; transform: translateY(0); }
}
.shipping-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(225, 29, 42, 0.2), rgba(225, 29, 42, 0.08));
    color: #ff4d5c;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.shipping-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}
.shipping-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.55;
    margin: 0;
}

.shipping-panel {
    background: rgba(15, 15, 17, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: clamp(28px, 4vw, 48px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 880px) {
    .shipping-panel { grid-template-columns: 1fr; gap: 28px; }
}
.shipping-panel h3 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}
.shipping-address-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(225, 29, 42, 0.08);
    border: 1.5px solid rgba(225, 29, 42, 0.3);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
}
.shipping-address-box strong {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}
.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}
.btn-copy:hover { background: rgba(255, 255, 255, 0.18); }
.btn-copy.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    color: #4ade80;
}
.shipping-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 0;
}
.shipping-note-small { margin-top: 14px; }
.inpost-widget-wrapper {
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
}
.inpost-widget-wrapper inpost-geowidget {
    width: 100%;
    height: 100%;
    display: block;
}

/* Messengery w sekcji kontakt */
.contact-messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}
.messenger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}
.messenger-btn:hover { transform: translateY(-2px); }
.messenger-btn.whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.messenger-btn.whatsapp:hover { background: #1fb155; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3); }
.messenger-btn.messenger { background: #0084ff; border-color: #0084ff; color: #fff; }
.messenger-btn.messenger:hover { background: #006fd6; box-shadow: 0 10px 24px rgba(0, 132, 255, 0.3); }
.messenger-btn.telegram { background: #229ed9; border-color: #229ed9; color: #fff; }
.messenger-btn.telegram:hover { background: #1b85b5; box-shadow: 0 10px 24px rgba(34, 158, 217, 0.3); }
.messenger-btn.phone { background: rgba(255, 255, 255, 0.06); color: #fff; }
.messenger-btn.phone:hover {
    background: rgba(225, 29, 42, 0.15);
    border-color: #e11d2a;
    box-shadow: 0 10px 24px rgba(225, 29, 42, 0.2);
}
