/*
style.css
/home/tnmpl/public_html/www/wywoz-smieci.pl/style.css
Ostatnia aktualizacja: 2026-06-20 19:24:10 Europe/Warsaw
*/

:root {
    --bg: #f5f7f2;
    --bg-muted: #eaf0e5;
    --text: #182118;
    --text-muted: #5f6c5f;
    --primary: #247a3b;
    --primary-dark: #165526;
    --primary-light: #dff2e4;
    --white: #ffffff;
    --border: #d9e2d5;
    --danger-bg: #fff1f0;
    --danger: #b42318;
    --success-bg: #ecfdf3;
    --success: #027a48;
    --shadow: 0 20px 50px rgba(24, 33, 24, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: inherit;
}

.container {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(245, 247, 242, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 22px;
}

.logo-img {
    display: block;
    width: auto;
    height: clamp(42px, 5vw, 72px);
    max-width: clamp(150px, 22vw, 260px);
    object-fit: contain;
}

.logo-text {
    color: var(--primary-dark);
}

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

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
}

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

.hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 70px;
    background:
        linear-gradient(90deg, rgba(245, 247, 242, 0.94) 0%, rgba(245, 247, 242, 0.84) 48%, rgba(245, 247, 242, 0.64) 100%),
        radial-gradient(circle at top left, rgba(36, 122, 59, 0.18), transparent 36%),
        url("img/bg.jpg") center center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(245, 247, 242, 0.14));
    pointer-events: none;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 40px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.12em;
    font-weight: 800;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

h3 {
    font-size: 21px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-lead,
.section-heading p,
.order-intro {
    color: var(--text-muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 32px 0 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 22px;
    border-radius: 999px;
    border: 0;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-primary {
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 14px 28px rgba(36, 122, 59, 0.24);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    color: var(--primary-dark);
    background: var(--primary-light);
}

.btn-full {
    width: 100%;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badges span {
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 14px;
}

.hero-card,
.form-card,
.contact-box,
.service-card,
.step,
.status-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 32px;
}

.hero-card ul {
    padding-left: 20px;
    margin: 18px 0 0;
}

.hero-card li {
    margin-bottom: 10px;
}

.section {
    padding: 82px 0;
}

.section-muted {
    background: var(--bg-muted);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    padding: 24px;
    box-shadow: none;
}

.service-card p,
.step p,
.contact-box p,
.footer-grid p {
    color: var(--text-muted);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--primary-light);
    margin-bottom: 18px;
    font-size: 24px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.step {
    padding: 28px;
    box-shadow: none;
}

.step span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--white);
    background: var(--primary);
    font-weight: 900;
    margin-bottom: 18px;
}

.order-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 34px;
    align-items: start;
}

.contact-box {
    padding: 24px;
    margin-top: 28px;
    box-shadow: none;
}

.contact-box a,
.site-footer a {
    color: var(--primary-dark);
    font-weight: 800;
}

.form-card {
    padding: 28px;
}

.order-form {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label,
fieldset {
    display: grid;
    gap: 8px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    color: var(--text);
    background: var(--white);
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(36, 122, 59, 0.12);
}

textarea {
    resize: vertical;
}

fieldset {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
}

legend {
    padding: 0 8px;
    font-weight: 900;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.checkbox-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.checkbox-card input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.checkbox-card strong {
    display: block;
    font-weight: 900;
}

.checkbox-card small {
    display: block;
    color: var(--text-muted);
    margin-top: 2px;
}

.consent-box {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: var(--primary-light);
    font-weight: 700;
}

.consent-box input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.form-note {
    color: var(--text-muted);
    font-size: 14px;
    margin: -4px 0 0;
}

.hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    padding: 16px 18px;
    border-radius: 16px;
    margin: 18px 0;
}

.alert p {
    margin: 6px 0 0;
}

.alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid rgba(2, 122, 72, 0.22);
    color: var(--success);
}

.alert-error {
    background: var(--danger-bg);
    border: 1px solid rgba(180, 35, 24, 0.22);
    color: var(--danger);
}

.status-page {
    min-height: calc(100vh - 76px);
}

.status-container {
    max-width: 760px;
}

.status-card {
    padding: 42px;
    text-align: center;
}

.status-card h1 {
    max-width: none;
    font-size: clamp(32px, 5vw, 52px);
}

.status-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    font-size: 38px;
    font-weight: 900;
}

.status-card-success .status-icon {
    background: var(--success-bg);
    color: var(--success);
}

.status-card-error .status-icon {
    background: var(--danger-bg);
    color: var(--danger);
}

.debug-box {
    text-align: left;
    overflow: auto;
    max-height: 260px;
    padding: 14px;
    border-radius: 14px;
    background: #111827;
    color: #e5e7eb;
    font-size: 12px;
}

.site-footer {
    padding: 46px 0 24px;
    background: #122017;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.footer-grid p {
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid a {
    color: var(--white);
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 0;
}

@media (max-width: 980px) {
    .hero-grid,
    .order-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .logo-img {
        height: 48px;
        max-width: 210px;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero {
        padding: 52px 0 48px;
    }

    .section {
        padding: 56px 0;
    }

    .cards-grid,
    .steps-grid,
    .form-row,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .form-card,
    .status-card {
        padding: 20px;
    }

    .logo-text {
        font-size: 18px;
    }
}
