/* =========================================================
   polecam.net – wspólny arkusz stylów
   ========================================================= */
:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFD93D;
    --dark: #2F2FA2;
    --light: #F7FFF7;
    --error: #ff4d4d;
    --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--light);
    color: #333;
    background-image:
        radial-gradient(circle at 10% 15%, rgba(255,107,107,0.10) 0, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(78,205,196,0.15) 0, transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(255,217,61,0.15) 0, transparent 40%);
    background-attachment: fixed;
}

a { color: inherit; }

/* ---------- HEADER ---------- */
header.site-header {
    background: white;
    padding: 16px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo-site {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    white-space: nowrap;
}
.logo-site span { color: var(--primary); }

nav.main-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
nav.main-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    color: var(--dark);
    padding: 8px 14px;
    border-radius: 30px;
    background: #f2f2fb;
    transition: 0.25s;
    white-space: nowrap;
}
nav.main-nav a:hover,
nav.main-nav a.active {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

/* ---------- HERO (strona główna) ---------- */
.hero {
    padding: 70px 5% 100px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.hero::before { width: 300px; height: 300px; top: -100px; left: -80px; }
.hero::after { width: 220px; height: 220px; bottom: -80px; right: -60px; background: rgba(255,217,61,0.15); }

.hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 16px; position: relative; z-index: 2; }
.hero p.lead {
    max-width: 720px;
    margin: 0 auto 10px;
    font-size: 17px;
    line-height: 1.6;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}
.hero .badge-row {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.hero .badge {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

/* ---------- HERO (podstrony) ---------- */
.page-hero {
    padding: 55px 5% 70px;
    text-align: center;
    color: white;
}
.page-hero p.sub {
    max-width: 650px;
    margin: 12px auto 0;
    opacity: 0.95;
    line-height: 1.6;
    font-size: 15px;
}
.page-hero h1 { font-size: 34px; font-weight: 800; }
.page-hero .icon-big { font-size: 54px; display: block; margin-bottom: 8px; }

.back-link {
    display: inline-block;
    margin-top: 24px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
}
.back-link:hover { background: rgba(255,255,255,0.35); }

/* Gradients per kategoria */
.grad-realestate { background: linear-gradient(135deg, #FF9A3E 0%, var(--primary) 100%); }
.grad-auto       { background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%); }
.grad-electronics{ background: linear-gradient(135deg, #7F5AF0 0%, var(--dark) 100%); }
.grad-solar      { background: linear-gradient(135deg, var(--accent) 0%, #FF9A3E 100%); color:#3a2b00; }
.grad-spirit     { background: linear-gradient(135deg, #B18CFF 0%, #4ECDC4 100%); }
.grad-help       { background: linear-gradient(135deg, var(--primary) 0%, #FF3CAC 100%); }

/* ---------- TILES / KAFELKI ---------- */
.tiles-section { padding: 0 5% 80px; max-width: 1200px; margin: -55px auto 0; position: relative; z-index: 5; }
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.tile {
    background: white;
    border-radius: var(--radius);
    padding: 34px 26px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}
.tile:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: rgba(0,0,0,0.05);
}
.tile-icon {
    width: 62px; height: 62px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    color: white;
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}
.tile h3 { font-size: 19px; font-weight: 800; }
.tile p { font-size: 13.5px; line-height: 1.5; color: #666; }
.tile .tile-cta {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
}
.tile .tile-status {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 30px;
    background: #fff3cd;
    color: #8a6d00;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* ---------- CONTENT SECTIONS (podstrony) ---------- */
.content-wrap { max-width: 900px; margin: -45px auto 60px; padding: 0 5%; position: relative; z-index: 5; }

.info-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 22px;
}
.info-card .emoji { font-size: 46px; margin-bottom: 10px; display: block; }
.info-card h2 { font-size: 22px; margin-bottom: 12px; color: var(--dark); }
.info-card p { color: #666; line-height: 1.6; font-size: 15px; }

.soon-tag {
    display: inline-block;
    margin-top: 16px;
    background: #fff3cd;
    color: #8a6d00;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 30px;
}

/* Link cards – recommended external websites */
.link-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.link-cards.single { grid-template-columns: 1fr; }
.link-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 2px solid transparent;
}
.link-card:hover { transform: translateY(-6px); box-shadow: 0 18px 35px rgba(0,0,0,0.13); border-color: var(--secondary); }
.link-card .lc-top { display: flex; align-items: center; gap: 12px; }
.link-card .lc-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: white; flex-shrink: 0;
}
.link-card h3 { font-size: 17px; font-weight: 800; }
.link-card p { font-size: 13.5px; color: #666; line-height: 1.5; }
.link-card .lc-url { font-size: 12.5px; font-weight: 700; color: var(--dark); margin-top: auto; }

/* ---------- AD BANNERS (motoryzacja) ---------- */
.ad-banner {
    max-width: 950px;
    margin: 40px auto;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.1);
}
.ad-video-part { flex: 1.2; background: #000; line-height: 0; }
.ad-video-part video { width: 100%; height: 100%; object-fit: cover; }
.ad-logo-part {
    flex: 1; background: #1a1a1a; display: flex; flex-direction: column;
    justify-content: center; align-items: center; padding: 30px;
    border-left: 1px solid rgba(255,255,255,0.1);
}
.ad-logo-link { display: block; width: 100%; text-align: center; transition: transform 0.3s ease; cursor: pointer; }
.ad-logo-link:hover { transform: scale(1.05); }
.ad-logo-part img { max-width: 90%; height: auto; object-fit: contain; filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); }
.ad-logo-part p { margin-top: 15px; font-size: 13px; color: var(--secondary); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- FORM ---------- */
.form-container {
    max-width: 850px; margin: -40px auto 50px; background: white;
    padding: 40px; border-radius: 25px; box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    position: relative; z-index: 10;
}
.form-info { text-align: center; max-width: 600px; margin: 0 auto 25px; font-size: 13px; line-height: 1.5; color: #777; }
.form-toggle { display: flex; gap: 10px; margin-bottom: 30px; background: #f0f0f0; padding: 5px; border-radius: 12px; }
.toggle-btn { flex: 1; padding: 12px; border: none; background: transparent; border-radius: 10px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.toggle-btn.active { background: white; color: var(--dark); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

.form-group { margin-bottom: 18px; position: relative; text-align: left; }
label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: #444; }

.phone-container { display: flex; gap: 8px; }
.prefix-select { width: 100px !important; background-color: #f0f0f0; cursor: pointer; }

input, select, textarea {
    width: 100%; padding: 13px; border: 1px solid #ddd; border-radius: 10px;
    transition: border-color 0.3s; font-size: 15px;
}
input.invalid, select.invalid { border-color: var(--error); background-color: #fff8f8; }
.error-msg { color: var(--error); font-size: 11px; margin-top: 4px; display: none; font-weight: 500; }

.referrer-section { margin-top: 30px; padding: 25px; background: #f9f9f9; border: 2px dashed var(--secondary); border-radius: 15px; }
.grid-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.verification-box { margin-top: 25px; padding: 15px; border-top: 1px solid #eee; text-align: center; }
.captcha-wrapper { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 10px; }
.captcha-wrapper input { width: 70px; text-align: center; }
.hp-field { display: none !important; }

.btn-cta {
    background: var(--accent); color: #000; padding: 18px; border-radius: 50px;
    text-decoration: none; font-weight: 800; transition: 0.3s;
    display: block; width: 100%; border: none; text-transform: uppercase; cursor: pointer;
    font-size: 15px; margin-top: 10px; text-align: center;
}
.btn-cta:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn-inline { display: inline-block; width: auto; padding: 16px 45px; }

/* ---------- FOOTER ---------- */
footer.site-footer {
    text-align: center; padding: 40px 5%; background: #2b2b3d; color: #ccc; font-size: 13px;
}
footer.site-footer a { color: var(--secondary); text-decoration: none; font-weight: 600; }
footer.site-footer .foot-links { margin-bottom: 12px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- RESPONSYWNOŚĆ ---------- */
@media (max-width: 900px) {
    .tiles-grid { grid-template-columns: repeat(2, 1fr); }
    .link-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .ad-banner { flex-direction: column; }
    .grid-row { grid-template-columns: 1fr; gap: 0; }
    .form-container { padding: 25px; }
    .hero h1 { font-size: 30px; }
    nav.main-nav { justify-content: center; }
}
@media (max-width: 560px) {
    .tiles-grid { grid-template-columns: 1fr; }
}
