/* KOWMET custom theme - shared CSS dla wszystkich podstron */
:root {
    --red: #E30613;
    --red-dark: #B00000;
    --red-bg: #FDEFEF;
    --black: #0f0f0f;
    --dark: #1a1a1a;
    --gray-900: #333;
    --gray-700: #555;
    --gray-500: #888;
    --gray-300: #d5d5d5;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --gray-50: #fafafa;
    --white: #ffffff;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--black); background: var(--white);
    font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* min-width: 0 na grid children - bez tego długie stringi rozrywają layout */
.container > *, .about-grid > *, .prod-grid > *, .why-grid > *,
.real-grid > *, .blog-grid > *, .footer-grid > *, .cnt-grid > *,
.woj-grid > *, .form-row > * { min-width: 0; }

/* ============ TOP BAR ============ */
.topbar { background: var(--black); color: #ccc; font-size: 0.85rem; padding: 10px 0; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.topbar a { color: #fff; transition: color .15s; }
.topbar a:hover { color: var(--red); }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 14px; height: 14px; color: var(--red); flex-shrink: 0; }
.topbar-hours { margin-left: auto; color: #888; }
.topbar-hours svg { color: var(--red); }

/* ============ HEADER ============ */
.header {
    background: rgba(255,255,255,0.98); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    padding: 18px 0; position: sticky; top: 0; z-index: 100;
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo { flex-shrink: 0; }
.logo img { height: 50px; width: auto; max-width: 100%; display: block; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
    font-size: 0.95rem; font-weight: 600; color: var(--gray-900);
    padding: 8px 0; position: relative; transition: color .15s;
}
.nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0; height: 2px;
    background: var(--red); width: 0; transition: width .2s;
}
.nav a:hover { color: var(--red); }
.nav a:hover::after { width: 100%; }
.nav a.active { color: var(--red); }
.nav a.active::after { width: 100%; }
.header-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--red); color: #fff; padding: 12px 22px; border-radius: 6px;
    font-weight: 700; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.5px;
    transition: background .15s, transform .12s; white-space: nowrap;
}
.header-cta:hover { background: var(--red-dark); transform: translateY(-1px); color: #fff; }
.header-cta svg { width: 16px; height: 16px; }
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 32px; height: 32px; padding: 6px; flex-direction: column; gap: 5px;
}
.nav-toggle span {
    display: block; width: 20px; height: 2px; background: var(--black);
}

/* ============ HERO ============ */
.hero {
    position: relative; color: #fff; overflow: hidden; min-height: 640px;
    display: flex; align-items: center; padding: 80px 0;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.55)), url('/panelowead/img/hero.jpg') center/cover no-repeat;
}
.hero-content { max-width: 780px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--red); color: #fff; padding: 8px 16px; border-radius: 30px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    margin-bottom: 22px;
}
.hero h1 {
    font-size: 3.4rem; font-weight: 900; line-height: 1.05; margin-bottom: 24px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.4); letter-spacing: -0.5px;
}
.hero h1 .red { color: #ff5a3c; }
.hero .lead { font-size: 1.2rem; color: #e8e8e8; margin-bottom: 34px; max-width: 620px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.2); }
.hero-stat strong {
    display: block; color: #ff5a3c; font-size: 1.9rem; font-weight: 800; line-height: 1;
    margin-bottom: 6px;
}
.hero-stat span { color: #d0d0d0; font-size: 0.88rem; }

/* Kompaktowy hero dla podstron (bez tła) */
.page-hero {
    padding: 80px 0 60px; background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}
.page-hero .breadcrumbs { color: var(--gray-500); font-size: 0.88rem; margin-bottom: 14px; }
.page-hero .breadcrumbs a { color: var(--gray-700); }
.page-hero .breadcrumbs a:hover { color: var(--red); }
.page-hero h1 {
    font-size: 2.8rem; font-weight: 800; line-height: 1.15;
    margin-bottom: 14px; letter-spacing: -0.5px;
}
.page-hero h1 .red { color: var(--red); }
.page-hero p.lead { font-size: 1.15rem; color: var(--gray-700); max-width: 720px; }

/* ============ PRZYCISKI ============ */
.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px;
    border-radius: 6px; font-weight: 700; font-size: 0.98rem; text-transform: uppercase;
    letter-spacing: 0.5px; border: none; cursor: pointer;
    transition: transform .12s, background .15s, box-shadow .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(227,6,19,0.35); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(227,6,19,0.5); color: #fff; }
.btn-outline { background: rgba(255,255,255,0.12); color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: #fff; color: var(--black); border-color: #fff; }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #2a2a2a; color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }
.btn-white { background: #fff; color: var(--red); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.btn-white:hover { background: var(--black); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn-ghost:hover { background: #fff; color: var(--red); border-color: #fff; }

/* ============ SEKCJE ============ */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-eyebrow {
    display: block; color: var(--red); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; text-align: center;
}
.section-title {
    font-size: 2.6rem; font-weight: 800; text-align: center; margin-bottom: 16px;
    line-height: 1.15; letter-spacing: -0.5px;
}
.section-title .red { color: var(--red); }
.section-sub {
    text-align: center; color: var(--gray-700); font-size: 1.1rem;
    max-width: 760px; margin: 0 auto 60px;
}
.section-alt { background: var(--gray-50); }

/* ============ O FIRMIE / TREŚĆ 2 KOLUMNY ============ */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.about h2 { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.5px; }
.about h2 .red { color: var(--red); }
.about p { color: var(--gray-700); font-size: 1.05rem; margin-bottom: 18px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 30px; }
.about-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--red-bg); color: var(--red); padding: 8px 14px;
    border-radius: 20px; font-size: 0.85rem; font-weight: 700;
}
.about-tag svg { width: 14px; height: 14px; }
.about-visual {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 4/5; box-shadow: var(--shadow-xl);
}
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
    position: absolute; top: 20px; right: 20px; z-index: 2;
    background: rgba(255,255,255,0.95); padding: 14px 20px; border-radius: 8px;
    text-align: center; box-shadow: var(--shadow);
}
.about-badge strong { display: block; color: var(--red); font-size: 2rem; font-weight: 900; line-height: 1; }
.about-badge span { font-size: 0.78rem; color: var(--gray-700); }

/* Treść tekstowa dla artykułów */
.article {
    max-width: 820px; margin: 0 auto;
}
.article h2 { font-size: 1.8rem; font-weight: 800; margin: 40px 0 16px; letter-spacing: -0.3px; }
.article h3 { font-size: 1.3rem; font-weight: 700; margin: 30px 0 12px; }
.article p { color: var(--gray-900); font-size: 1.05rem; margin-bottom: 18px; }
.article ul, .article ol { margin: 0 0 20px 24px; color: var(--gray-900); }
.article li { margin-bottom: 8px; font-size: 1.05rem; }
.article img { border-radius: var(--radius-lg); margin: 20px 0; box-shadow: var(--shadow); }

/* ============ OFERTA - karty ============ */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.prod-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
    display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prod-card-img { aspect-ratio: 4/3; position: relative; overflow: hidden; background: #111; }
.prod-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.prod-card:hover .prod-card-img img { transform: scale(1.08); }
.prod-card-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7));
}
.prod-card-badge {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    background: var(--red); color: #fff; padding: 6px 14px; border-radius: 4px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 1px;
}
.prod-card-body { padding: 26px 24px; flex: 1; display: flex; flex-direction: column; }
.prod-card h3 { font-size: 1.25rem; margin-bottom: 8px; font-weight: 800; }
.prod-card p { color: var(--gray-700); font-size: 0.95rem; margin-bottom: 18px; flex: 1; }
.prod-card-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--red); font-weight: 700; font-size: 0.92rem; text-transform: uppercase;
    letter-spacing: 0.5px; transition: gap .15s;
}
.prod-card-link:hover { gap: 14px; color: var(--red-dark); }
.prod-card-link svg { width: 14px; height: 14px; }

/* ============ DLACZEGO KOWMET ============ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why-item { text-align: center; padding: 28px 20px; }
.why-icon {
    width: 68px; height: 68px; border-radius: 50%; background: var(--red-bg);
    color: var(--red); display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.why-icon svg { width: 32px; height: 32px; }
.why-item h3 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 700; }
.why-item p { color: var(--gray-700); font-size: 0.92rem; }

/* ============ REALIZACJE ============ */
.real-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.real {
    aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
    position: relative; cursor: zoom-in; background: #111;
}
.real img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.real:hover img { transform: scale(1.06); }
.real::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5));
    opacity: 0; transition: opacity .2s;
}
.real:hover::after { opacity: 1; }
.real-more { text-align: center; margin-top: 44px; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 2000; display: none;
    align-items: center; justify-content: center;
    background: rgba(0,0,0,0.92); padding: 32px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 6px; }
.lightbox-close {
    position: absolute; top: 18px; right: 28px; color: #fff;
    font-size: 2.6rem; line-height: 1; cursor: pointer; font-weight: 300;
}

/* ============ BLOG ============ */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.blog-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); display: flex; flex-direction: column;
    transition: transform .18s, box-shadow .18s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img { aspect-ratio: 16/9; background: #111; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 28px 26px; flex: 1; }
.blog-card h3 { font-size: 1.3rem; margin-bottom: 10px; font-weight: 800; line-height: 1.3; }
.blog-card h3 a { color: var(--black); transition: color .15s; }
.blog-card h3 a:hover { color: var(--red); }
.blog-card p { color: var(--gray-700); font-size: 0.95rem; margin-bottom: 18px; }
.blog-card-link {
    color: var(--red); font-weight: 700; font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 6px; transition: gap .15s;
}
.blog-card-link:hover { gap: 12px; }
.blog-card-link svg { width: 14px; height: 14px; }

/* ============ KONTAKT ============ */
.cnt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cnt-info { padding: 30px 32px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.cnt-info h3 { font-size: 1.4rem; margin-bottom: 20px; font-weight: 800; }
.cnt-list { list-style: none; }
.cnt-list li {
    display: flex; align-items: flex-start; gap: 14px; padding: 14px 0;
    border-bottom: 1px solid var(--gray-200); font-size: 1rem;
}
.cnt-list li:last-child { border-bottom: none; }
.cnt-list li svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; margin-top: 3px; }
.cnt-list li strong { display: block; color: var(--black); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500); margin-bottom: 3px; font-weight: 700; }
.cnt-list li a { color: var(--black); font-weight: 600; word-break: break-word; }
.cnt-list li a:hover { color: var(--red); }

.cnt-form { background: var(--white); padding: 30px 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.cnt-form h3 { font-size: 1.4rem; margin-bottom: 8px; font-weight: 800; }
.cnt-form .sub { color: var(--gray-700); font-size: 0.95rem; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-900); margin-bottom: 6px; }
.form-field label .req { color: var(--red); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: 6px;
    font-family: inherit; font-size: 0.95rem; background: #fff; transition: border-color .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--red); }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: var(--gray-700); margin: 12px 0 18px; }
.form-consent input { margin-top: 3px; }
.form-alert { padding: 14px 18px; border-radius: 6px; font-size: 0.9rem; margin-bottom: 18px; }
.form-alert.ok { background: #e8f5e9; color: #2b8a3e; border: 1px solid #a5d6a7; }
.form-alert.err { background: #ffebee; color: #b71c1c; border: 1px solid #ef9a9a; }

/* ============ GDZIE DZIAŁAMY ============ */
.woj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.woj-item {
    background: #fff; border: 2px solid transparent; border-radius: 8px; padding: 18px 20px;
    display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
    transition: border-color .15s, transform .12s;
}
.woj-item:hover { border-color: var(--red); transform: translateY(-2px); }
.woj-item .dot { width: 10px; height: 10px; background: var(--red); border-radius: 50%; flex-shrink: 0; }
.woj-item span { font-weight: 600; }

/* ============ CTA BIG ============ */
.cta-big {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: #fff; text-align: center; padding: 80px 0; position: relative; overflow: hidden;
}
.cta-big::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}
.cta-big > .container { position: relative; }
.cta-big h2 { font-size: 2.6rem; font-weight: 900; margin-bottom: 16px; letter-spacing: -0.5px; }
.cta-big p { font-size: 1.15rem; opacity: 0.95; max-width: 640px; margin: 0 auto 32px; }
.cta-big-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ============ FOOTER ============ */
.footer { background: var(--black); color: #ccc; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; margin-bottom: 18px; font-size: 1.05rem; font-weight: 700; }
.footer a { color: #ccc; display: block; padding: 5px 0; font-size: 0.92rem; word-break: break-word; }
.footer a:hover { color: var(--red); }
.footer .footer-logo {
    background: #fff; padding: 14px 18px; border-radius: 8px; display: inline-block;
    margin-bottom: 20px;
}
.footer .footer-logo img { height: 44px; }
.footer p { font-size: 0.92rem; line-height: 1.7; color: #aaa; }
.footer-contact { list-style: none; }
.footer-contact li {
    display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 0.92rem;
}
.footer-contact svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; margin-top: 3px; }
.footer-contact strong { color: #fff; }
.footer-bottom {
    border-top: 1px solid #333; padding-top: 22px; text-align: center;
    font-size: 0.85rem; color: #888; word-break: break-word;
}
.footer-bottom .company { color: #ccc; margin-bottom: 4px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .prod-grid, .why-grid, .woj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .topbar { display: none; }
    .nav { display: none; }
    .nav-toggle { display: flex; }
    .nav.mobile-open {
        display: flex; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-top: 1px solid var(--gray-200);
        flex-direction: column; padding: 20px 24px; gap: 6px; box-shadow: var(--shadow-lg);
    }
    .nav.mobile-open a { padding: 10px 0; }
    .hero { min-height: 560px; padding: 60px 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero .lead { font-size: 1.05rem; }
    .hero-stat strong { font-size: 1.5rem; }
    .about-grid, .blog-grid, .cnt-grid { grid-template-columns: 1fr; gap: 40px; }
    .real-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 70px 0; }
    .section-title { font-size: 1.9rem; }
    .page-hero { padding: 60px 0 40px; }
    .page-hero h1 { font-size: 2rem; }
    .cta-big h2 { font-size: 1.9rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
    .container { padding: 0 16px; }
    .hero { min-height: 520px; padding: 50px 0; }
    .hero h1 { font-size: 1.75rem; }
    .hero .lead { font-size: 0.98rem; }
    .hero-stats { gap: 20px; }
    .hero-stat strong { font-size: 1.3rem; }
    .page-hero h1 { font-size: 1.55rem; }
    .prod-grid, .why-grid { grid-template-columns: 1fr; }
    .real-grid, .woj-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .section-title { font-size: 1.6rem; }
    .cta-big { padding: 60px 0; }
    .cta-big h2 { font-size: 1.55rem; }
    .btn-lg { padding: 14px 22px; font-size: 0.92rem; }
    .header .container { gap: 12px; }
    .logo img { height: 40px; }
    .header-cta { padding: 10px 14px; font-size: 0.78rem; }
    .form-row { grid-template-columns: 1fr; }
    .cnt-info, .cnt-form { padding: 24px 22px; }
}
