/* Typografia i kolorystyka */
:root {
    --accent: #ff5a5f;
    --accent-soft: rgba(255, 90, 95, 0.08);
    --bg: #f7f7fb;
    --bg-alt: #ffffff;
    --text-main: #17171c;
    --text-muted: #73737f;
    --border-subtle: #e0e0ea;
    --shadow-soft: 0 18px 45px rgba(15, 18, 35, 0.08);
    --header-height: 72px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #ffffff 0, #f7f7fb 45%, #f1f1f7 100%);
    color: var(--text-main);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    margin: 0 0 0.6em;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 0.9em;
    line-height: 1.6;
}

/* Layout */
.shell {
    width: min(1120px, 100% - 40px);
    margin-inline: auto;
}

.shell--header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 10px;
}

.section {
    padding: 80px 0;
}

.section--hero {
    padding-top: 120px;
}

.section--narrow .shell {
    width: min(840px, 100% - 40px);
}

.section--wide .shell {
    width: min(1180px, 100% - 40px);
}

.section--stripe {
    background: linear-gradient(120deg, #ffffff 0, #ffffff 52%, #fdf3f4 52%, #fff6f7 100%);
}

.section--kontakt {
    background: #ffffff;
}

.section--policy {
    border-top: 1px solid var(--border-subtle);
    background: #f9f9fd;
}

.section__header {
    margin-bottom: 32px;
}

.section__header--left {
    max-width: 540px;
}

.section__header p {
    color: var(--text-muted);
}

.grid {
    display: grid;
    gap: 24px;
}

.grid--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.grid--asym {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    align-items: stretch;
}

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

.grid--stack {
    align-items: start;
}

.shell--offset {
    padding-left: max(0px, (100vw - 1180px) / 2);
}

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

.shell--kawa {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 32px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247, 247, 251, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(224, 224, 234, 0.7);
    min-height: var(--header-height);
    display: flex;
    align-items: center;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 14px;
}

.logo span {
    margin-left: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
}

.main-nav a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text-muted);
    text-decoration: none;
}

.main-nav a:hover {
    background: rgba(23, 23, 28, 0.04);
    color: var(--text-main);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    padding: 6px;
    border-radius: 999px;
    cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-main);
    position: relative;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__bars::before {
    top: -6px;
}

.nav-toggle__bars::after {
    top: 6px;
}

.nav-toggle--open .nav-toggle__bars {
    background: transparent;
}

.nav-toggle--open .nav-toggle__bars::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle--open .nav-toggle__bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

body.body--nav-open {
    overflow: hidden;
}

/* Hero */
.hero__content h1 {
    font-size: clamp(32px, 4vw, 42px);
}

.hero__kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 12px;
}

.hero__lead {
    color: var(--text-muted);
    max-width: 540px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.hero__image-wrapper {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.hero__image-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.24), transparent 55%);
    pointer-events: none;
}

.hero__image {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Karty i listy */
.card {
    padding: 20px 22px;
    border-radius: 20px;
    background: var(--bg-alt);
    border: 1px solid rgba(224, 224, 234, 0.8);
    box-shadow: 0 10px 30px rgba(15, 18, 35, 0.03);
}

.card--wide {
    padding: 24px 26px;
}

.card--accent-left {
    border-left: 4px solid var(--accent);
}

.card--accent-top {
    border-top: 4px solid var(--accent);
}

.card--contact {
    border-left: 4px solid var(--accent);
}

.card--contact-detail {
    background: linear-gradient(135deg, #ffffff 0, #fff7f8 100%);
}

.image-card {
    margin: 0;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(224, 224, 234, 0.8);
}

.image-card img {
    border-radius: 18px;
}

.image-card figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.list {
    padding-left: 20px;
}

.list li {
    margin-bottom: 10px;
    color: var(--text-main);
}

.list--kawa {
    padding-left: 0;
    list-style: none;
}

.list--kawa li + li {
    margin-top: 12px;
}

.list--kawa strong {
    display: block;
}

/* Kawa */
.kawa__text {
    max-width: 520px;
}

.kawa__image img {
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

/* FAQ */
.faq {
    max-width: 640px;
}

.faq__item {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    text-align: left;
}

.faq__item + .faq__panel {
    margin-top: 4px;
}

.faq__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
    background: #fcfcff;
    border-radius: 0 0 16px 16px;
    border: 1px solid var(--border-subtle);
    border-top: 0;
    padding: 0 16px;
}

.faq__panel p {
    margin: 10px 0 14px;
    color: var(--text-muted);
}

.faq__item.is-open + .faq__panel {
    max-height: 240px;
}

.faq__item.is-open .faq__icon {
    transform: rotate(45deg);
}

.faq__icon {
    font-weight: 600;
    transition: transform 0.18s ease;
}

/* Formularz */
.form {
    margin-top: 8px;
}

.form__field {
    margin-bottom: 14px;
}

.form__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.form__field input,
.form__field textarea {
    width: 100%;
    padding: 10px 11px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    font: inherit;
}

.form__field input:focus,
.form__field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(255, 90, 95, 0.35);
    background: #ffffff;
}

.form__field--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.form__field--checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.form__hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* Policy */
.policy-text {
    font-size: 14px;
    color: var(--text-main);
}

.policy-text h3 {
    margin-top: 8px;
    font-size: 16px;
}

.policy-form-wrapper {
    padding: 22px 22px 20px;
    border-radius: 22px;
    background: radial-gradient(circle at top left, #ffffff 0, #fff7f8 45%, #fff2f4 100%);
    border: 1px solid rgba(224, 224, 234, 0.9);
    box-shadow: 0 18px 42px rgba(15, 18, 35, 0.06);
}

.policy-form-wrapper .form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 12px;
}

.policy-form-wrapper .form__field:nth-child(1),
.policy-form-wrapper .form__field:nth-child(2) {
    grid-column: span 1;
}

.policy-form-wrapper .form__field:nth-child(n + 3),
.policy-form-wrapper .btn,
.policy-form-wrapper .form__hint {
    grid-column: 1 / -1;
}

/* Przycisk */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    background: #ffffff;
    color: var(--text-main);
}

.btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(255, 90, 95, 0.35);
}

.btn--primary:hover {
    box-shadow: 0 14px 32px rgba(255, 90, 95, 0.45);
}

.btn--ghost {
    background: transparent;
    border-color: rgba(23, 23, 28, 0.12);
}

.btn--ghost:hover {
    background: rgba(23, 23, 28, 0.04);
}

.btn--link {
    background: transparent;
    border-color: transparent;
    padding-inline: 6px;
    color: var(--text-muted);
}

.btn--small {
    padding: 6px 12px;
    font-size: 13px;
}

/* Toast */
.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    min-width: 240px;
    max-width: 320px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #111119;
    color: #ffffff;
    font-size: 13px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(140%);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 40;
}

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

.toast--error {
    background: #b00020;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 30;
    padding: 14px 0 18px;
    background: radial-gradient(circle at top left, #ffffff 0, #f8f5ff 45%, #f6f6fb 100%);
    border-top: 1px solid rgba(224, 224, 234, 0.9);
    box-shadow: 0 -8px 30px rgba(15, 18, 35, 0.05);
    transform: translateY(100%);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner--visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner__inner {
    width: min(960px, 100% - 40px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr);
    gap: 18px;
    align-items: center;
}

.cookie-banner__text {
    font-size: 13px;
    color: var(--text-main);
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.cookie-banner__settings {
    grid-column: 1 / -1;
    padding-top: 10px;
    border-top: 1px dashed rgba(224, 224, 234, 0.9);
}

.cookie-banner__subtitle {
    font-size: 13px;
    margin-bottom: 4px;
}

.cookie-banner__options {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
}

.cookie-banner__options label {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Stopka */
.site-footer {
    padding: 32px 0 40px;
    font-size: 13px;
    color: var(--text-muted);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
}

.site-footer__links a {
    margin-left: 12px;
    color: var(--text-muted);
    text-decoration: none;
}

.site-footer__links a:hover {
    color: var(--text-main);
}

/* Responsywność */
@media (max-width: 960px) {
    :root {
        --header-height: 64px;
    }

    .shell--hero,
    .shell--kawa,
    .cookie-banner__inner,
    .grid--split,
    .grid--asym,
    .grid--thirds {
        grid-template-columns: minmax(0, 1fr);
    }

    .shell--offset {
        padding-left: 0;
    }

    .section--hero {
        padding-top: 96px;
    }

    .hero__image-wrapper {
        order: -1;
    }

    .cookie-banner__actions {
        justify-content: flex-start;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .shell--header {
        justify-content: space-between;
        align-items: center;
    }

    .main-nav {
        position: fixed;
        inset-inline: 0;
        top: var(--header-height);
        padding: 12px 20px 24px;
        background: rgba(247, 247, 251, 0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(224, 224, 234, 0.8);
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease;
        z-index: 25;
    }

    .main-nav--open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav a {
        padding: 8px 12px;
        font-size: 15px;
    }
}

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

    .cookie-banner__inner {
        gap: 12px;
    }

    .toast {
        left: 12px;
        right: 12px;
        max-width: none;
    }

    .form__field--checkbox {
        padding: 8px 10px;
        border-radius: 12px;
        background: #ffffff;
        border: 1px solid rgba(224, 224, 234, 0.8);
    }

    .form__field--checkbox label {
        font-size: 14px;
        line-height: 1.5;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
