/* ==========================================================================
   polski-wegierski.pl — Agnes Hanczakowska
   Strona-wizytówka: lekcje węgierskiego i polskiego online.
   Czysty HTML5 + CSS (bez frameworków). Mobile-first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Zmienne / design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Baza */
    --cream:        #fbf8f3;   /* tło główne */
    --cream-deep:   #f4eee4;   /* sekcje przełamane */
    --paper:        #ffffff;   /* karty */
    --ink:          #2a2622;   /* tekst główny (grafit) */
    --ink-soft:     #5f574e;   /* tekst drugorzędny */
    --ink-faint:    #9a8f82;   /* podpisy, etykiety */
    --line:         #e7ddcf;   /* delikatne linie / obramowania */

    /* Akcenty — barwy węgierskie */
    --bordo:        #7b2d3a;
    --bordo-light:  #8e3b4a;
    --bordo-tint:   #f3e6e8;   /* bardzo jasne tło bordo */
    --green:        #3e6b4f;
    --green-light:  #4f7a5e;
    --green-tint:   #e7efe9;

    /* Mikro-akcent czerwieni (inspiracja polską flagą) — oszczędnie */
    --red:          #c8102e;

    /* Typografia */
    --font-serif: "New York", "Iowan Old Style", "Palatino Linotype", Palatino,
                  "Book Antiqua", Georgia, "Times New Roman", serif;
    --font-sans:  -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
                  Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;

    /* Układ */
    --container: 1120px;
    --container-narrow: 760px;
    --radius:    20px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --header-h:  68px;

    /* Cienie — miękkie, ciepłe */
    --shadow-sm: 0 1px 3px rgba(74, 58, 42, 0.06), 0 1px 2px rgba(74, 58, 42, 0.04);
    --shadow-md: 0 10px 30px -12px rgba(74, 58, 42, 0.18);
    --shadow-lg: 0 24px 60px -20px rgba(74, 58, 42, 0.25);

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / podstawy
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

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

/* Offset pod sticky header przy kotwicach */
:target,
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    font-size: 1.0625rem;          /* 17px */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { border-style: none; }

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

button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--bordo); color: #fff; }

/* Focus widoczny i spójny */
:focus-visible {
    outline: 2px solid var(--bordo);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Typografia
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }

p { text-wrap: pretty; }

.lead {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    color: var(--ink-soft);
    line-height: 1.55;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bordo);
    margin-bottom: 1rem;
}

.serif-accent { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* --------------------------------------------------------------------------
   4. Układ / pomocnicze
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--tint { background: var(--cream-deep); }
.section--paper { background: var(--paper); }

.section-head { max-width: var(--container-narrow); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 1rem; top: -100px;
    background: var(--ink); color: #fff; padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm); z-index: 200; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   5. Przyciski
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    min-height: 48px; padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-weight: 600; font-size: 1rem;
    transition: transform 0.3s var(--ease), background-color 0.3s var(--ease),
                box-shadow 0.3s var(--ease), color 0.3s var(--ease);
    transform: translateZ(0);
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--bordo); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--bordo-light); box-shadow: var(--shadow-lg); }

.btn--ghost {
    background: transparent; color: var(--ink);
    border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--bordo); color: var(--bordo); }

/* --------------------------------------------------------------------------
   6. Header / nawigacja
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--header-h);
    display: flex; align-items: center;
    background: rgba(251, 248, 243, 0.72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
    padding-top: env(safe-area-inset-top);
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(251, 248, 243, 0.9);
}

.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem;
    letter-spacing: -0.01em; color: var(--ink); white-space: nowrap;
}
.brand .brand-mark {
    width: 34px; height: 34px; flex: none;
    display: grid; place-items: center;
    border-radius: 10px; background: var(--bordo); color: #fff;
    font-size: 1rem; font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav-link {
    position: relative; padding: 0.5rem 0.85rem; border-radius: 999px;
    font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-link:hover { color: var(--ink); background: rgba(123, 45, 58, 0.07); }
.nav-link.is-active { color: var(--bordo); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Przełącznik języka — flagi */
.lang-switch { display: inline-flex; align-items: center; gap: 0.1rem; }
.lang-switch a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px;
    transition: background-color 0.2s var(--ease);
}
.lang-switch .flag {
    width: 26px; height: auto; border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(42, 38, 34, 0.14);
    opacity: 0.5; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.lang-switch a:hover .flag { opacity: 1; transform: scale(1.07); }
.lang-switch a[aria-current="true"] { background: var(--bordo-tint); }
.lang-switch a[aria-current="true"] .flag {
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(42, 38, 34, 0.14), 0 0 0 3px rgba(123, 45, 58, 0.28);
}

.nav-cta { display: inline-flex; }

/* Hamburger */
.nav-toggle {
    display: none; width: 44px; height: 44px; border-radius: 12px;
    align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; stroke-width: 2.5; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem));
    padding-bottom: clamp(3rem, 8vw, 6rem);
    overflow: hidden;
}
/* Ciepłe, subtelne tło — delikatne plamy bordo i zieleni */
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 55% at 88% 8%, rgba(123, 45, 58, 0.07), transparent 70%),
        radial-gradient(55% 50% at 5% 100%, rgba(62, 107, 79, 0.08), transparent 70%);
}
/* Subtelna panorama w tle: Wawel (Kraków) + Parlament (Budapeszt) */
.hero-skyline {
    position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: min(1600px, 132%); z-index: -1;
    color: var(--ink); opacity: 0.06;
    pointer-events: none; line-height: 0;
}
.hero-skyline svg { width: 100%; height: auto; display: block; }

.hero .container {
    display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center;
    position: relative; z-index: 1;
}
@media (min-width: 900px) {
    .hero .container { grid-template-columns: 1.05fr 0.95fr; }
}

.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--bordo); }
.hero .lead { max-width: 34ch; margin-bottom: 2rem; }

/* Blok akcji: kurczy się do szerokości przycisków, by wyśrodkować pod nimi punkty */
.hero-actions { width: fit-content; max-width: 100%; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.75rem; }

.trust-row {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.4rem;
    font-size: 0.92rem; color: var(--ink-soft);
}
.trust-row li { display: inline-flex; align-items: center; gap: 0.5rem; list-style: none; }
.trust-row svg { width: 18px; height: 18px; color: var(--green); stroke-width: 2.5; flex: none; }
.trust-row ul { display: contents; }

/* Zdjęcie / placeholder w hero */
.hero-media {
    position: relative; border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5; background: var(--cream-deep);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .badge {
    position: absolute; left: 1rem; bottom: 1rem;
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
    border-radius: 999px; padding: 0.5rem 0.9rem;
    font-size: 0.85rem; font-weight: 600; color: var(--bordo);
    box-shadow: var(--shadow-sm);
}
.hero-media .badge svg { width: 16px; height: 16px; stroke-width: 2.5; }

/* Placeholder zdjęcia (do podmiany na zdjęcie klientki) */
.photo-placeholder {
    position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
    color: var(--ink-faint); gap: 0.5rem;
    background: linear-gradient(155deg, var(--cream-deep), var(--bordo-tint));
}
.photo-placeholder svg { width: 56px; height: 56px; stroke-width: 1.5; opacity: 0.5; }
.photo-placeholder span { font-size: 0.85rem; padding-inline: 1.5rem; }

/* --------------------------------------------------------------------------
   8. O mnie
   -------------------------------------------------------------------------- */
.about .container { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) {
    /* Dwie kolumny tylko gdy jest zdjęcie dodatkowe */
    .about .container:has(.about-media) { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
}
/* Bez zdjęcia: treść wyśrodkowana, czytelna szerokość */
.about .container:not(:has(.about-media)) .about-body { max-width: 840px; margin-inline: auto; }

.about-media {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 3 / 4; background: var(--cream-deep); box-shadow: var(--shadow-md);
    position: sticky; top: calc(var(--header-h) + 1.5rem);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }

.about-body > * + * { margin-top: 1.5rem; }
.block-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--bordo-tint); color: var(--bordo); margin-bottom: 0.85rem;
}
.block-icon svg { width: 22px; height: 22px; stroke-width: 2.5; }
.about-block h3 { color: var(--bordo); margin-bottom: 0.4rem; font-size: 1.15rem; }
.about-block p { color: var(--ink-soft); }
.about-grid { display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 560px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.quote-card {
    margin-top: 2.5rem; padding: clamp(1.5rem, 4vw, 2.25rem);
    background: var(--green-tint); border-radius: var(--radius);
    border-left: 4px solid var(--green);
}
.quote-card p { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--ink); line-height: 1.5; }
.quote-card .word { color: var(--green); font-style: normal; font-weight: 600; }

/* --------------------------------------------------------------------------
   9. Oferta
   -------------------------------------------------------------------------- */
.offer-directions { display: grid; gap: 1.25rem; margin-bottom: 3rem; }
@media (min-width: 720px) { .offer-directions { grid-template-columns: 1fr 1fr; } }

.direction-card {
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: var(--radius);
    background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
/* Zdjęcie w tle (ustawiane przez --card-bg) + jasna warstwa dla czytelności tekstu.
   Bez --card-bg widać tylko zwykłe białe tło karty. */
.direction-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(155deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.74)),
        var(--card-bg, none);
    background-size: cover; background-position: center;
    transition: opacity 0.35s var(--ease);
}
.direction-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.direction-card .flagmark {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--bordo); margin-bottom: 0.75rem;
}
.direction-card .flagdot { width: 10px; height: 10px; border-radius: 50%; }
.direction-card h3 { margin-bottom: 0.5rem; }
.direction-card p { color: var(--ink-soft); }
.direction-card--hu .flagmark { color: var(--bordo); }
.direction-card--pl .flagmark { color: var(--green); }

.offer-meta { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .offer-meta { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .offer-meta { grid-template-columns: repeat(4, 1fr); } }

.meta-block h4 {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint);
    margin-bottom: 0.6rem;
}
.meta-ic { display: inline-flex; flex: none; color: var(--green); }
.meta-ic svg { width: 18px; height: 18px; stroke-width: 2.5; }
.meta-block ul { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.meta-block li { display: flex; gap: 0.55rem; align-items: flex-start; color: var(--ink-soft); }
.meta-block li::before {
    content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.65em;
    border-radius: 50%; background: var(--green);
}

/* --------------------------------------------------------------------------
   10. Cennik
   -------------------------------------------------------------------------- */
.pricing-grid { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
@media (min-width: 720px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.price-card {
    position: relative; text-align: center;
    padding: clamp(1.75rem, 4vw, 2.5rem) 1.5rem; border-radius: var(--radius);
    background: var(--paper); border: 1px solid var(--line);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--bordo); }
.price-card .duration { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.price-card .amount { font-family: var(--font-serif); font-size: clamp(2.4rem, 6vw, 3rem); font-weight: 600; color: var(--bordo); margin-top: 0.5rem; line-height: 1; }
.price-card .amount .cur { font-size: 0.45em; vertical-align: super; margin-left: 0.15em; color: var(--ink-soft); }
.price-card.is-featured { border-color: var(--green); background: var(--green-tint); }
.price-card.is-featured .amount { color: var(--green); }
.price-card .tag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--green); color: #fff; font-size: 0.72rem; font-weight: 600;
    padding: 0.25rem 0.8rem; border-radius: 999px; letter-spacing: 0.04em; white-space: nowrap;
}

.pricing-note {
    display: flex; gap: 0.75rem; align-items: flex-start;
    max-width: var(--container-narrow);
    padding: 1.1rem 1.4rem; border-radius: var(--radius-sm);
    background: var(--cream-deep); color: var(--ink-soft); font-size: 0.95rem;
}
.pricing-note svg { width: 20px; height: 20px; color: var(--bordo); stroke-width: 2.5; flex: none; margin-top: 0.1rem; }
.pricing-seo { margin-top: 1rem; font-size: 0.95rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   11. Opinie (na start ukryte — łatwe do włączenia)
       Aby włączyć: usuń atrybut hidden z <section id="opinie">.
   -------------------------------------------------------------------------- */
.reviews-grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
    padding: clamp(1.5rem, 4vw, 2rem); border-radius: var(--radius);
    background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.review-card .stars { color: var(--bordo); letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.review-card blockquote { color: var(--ink-soft); font-style: italic; }
.review-card .author { margin-top: 1rem; font-weight: 600; font-size: 0.92rem; color: var(--ink); }

/* --------------------------------------------------------------------------
   12. FAQ — natywny <details> (działa bez JS)
   -------------------------------------------------------------------------- */
.faq-list { max-width: var(--container-narrow); margin-inline: auto; display: grid; gap: 0.75rem; }
.faq-item {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius-sm); overflow: hidden;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq-item[open] { border-color: var(--bordo); box-shadow: var(--shadow-sm); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.1rem 1.35rem; min-height: 56px;
    font-weight: 600; font-size: 1.05rem; color: var(--ink);
    cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
    flex: none; width: 24px; height: 24px; color: var(--bordo);
    transition: transform 0.3s var(--ease);
}
.faq-item summary .icon svg { width: 100%; height: 100%; stroke-width: 2.5; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 1.35rem 1.25rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   13. Kontakt + formularz
   -------------------------------------------------------------------------- */
.contact .container { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .contact .container { grid-template-columns: 1fr 1.1fr; } }

.contact-info .lead { margin-bottom: 2rem; }
.contact-channels { display: grid; gap: 0.85rem; }
.channel {
    display: flex; align-items: center; gap: 0.9rem;
    padding: 0.85rem 1rem; border-radius: var(--radius-sm);
    min-height: 56px; transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.channel:hover { background: var(--paper); transform: translateX(3px); }
.channel .ch-icon {
    flex: none; width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center; background: var(--bordo-tint); color: var(--bordo);
}
.channel .ch-icon svg { width: 20px; height: 20px; stroke-width: 2.5; }
.channel .ch-label { font-size: 0.78rem; color: var(--ink-faint); }
.channel .ch-value { font-weight: 600; color: var(--ink); }
.contact-note { margin-top: 1.75rem; font-size: 0.92rem; color: var(--ink-faint); }

/* Formularz */
.form-card {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.form-grid { display: grid; gap: 1.1rem; }
.field { position: relative; }
.field label {
    display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
    margin-bottom: 0.4rem;
}
.field input, .field textarea, .field select {
    width: 100%; font: inherit; color: var(--ink);
    background: var(--cream); border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); padding: 0.8rem 1rem;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--bordo); background: var(--paper);
    box-shadow: 0 0 0 3px rgba(123, 45, 58, 0.12);
}
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-card button[type="submit"] { width: 100%; margin-top: 0.4rem; }
.btn .btn-loader { display: none; }
.is-sending .btn-text { display: none; }
.is-sending .btn-loader { display: inline-flex; }
.is-sending .btn-icon { display: none; }
.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-consent { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.25rem; }
.form-consent a { color: var(--bordo); text-decoration: underline; }

/* Stany po wysłaniu */
.form-feedback {
    position: absolute; inset: 0; display: none;
    flex-direction: column; align-items: center; justify-content: center; text-align: center;
    background: var(--paper); padding: 2rem; gap: 0.75rem;
}
.form-feedback.is-visible { display: flex; }
.form-feedback .fb-icon { width: 64px; height: 64px; }
.form-feedback h3 { font-size: 1.6rem; }
.form-feedback p { color: var(--ink-soft); max-width: 32ch; }
.form-feedback--success .fb-icon { color: var(--green); }
.form-feedback--error .fb-icon { color: var(--red); }
.form-feedback button { margin-top: 0.5rem; color: var(--bordo); text-decoration: underline; min-height: 44px; }

/* --------------------------------------------------------------------------
   14. Stopka
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--ink); color: #e8e1d8;
    padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.site-footer a { color: #e8e1d8; }
.footer-top {
    display: grid; gap: 2rem; padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 720px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: 0.75rem; }
.footer-brand p { color: #b8aea2; max-width: 34ch; font-size: 0.95rem; }
.footer-col h4 { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #b8aea2; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: #d8cfc4; font-size: 0.95rem; transition: color 0.2s; min-height: 28px; display: inline-flex; align-items: center; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
    padding-top: 2rem; font-size: 0.85rem; color: #9d9388;
}

/* --------------------------------------------------------------------------
   15. Animacje wejścia (reveal) — wyłączane przy reduced-motion
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }

/* --------------------------------------------------------------------------
   16. Mobile menu + responsywność
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
    .nav, .nav-cta { display: none; }
    .nav-toggle { display: inline-flex; }

    .mobile-menu {
        position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
        background: var(--cream);
        padding: 2rem clamp(1.25rem, 5vw, 2.5rem) calc(2rem + env(safe-area-inset-bottom));
        display: flex; flex-direction: column; gap: 0.25rem;
        transform: translateX(100%); transition: transform 0.4s var(--ease);
        overflow-y: auto;
    }
    body.menu-open { overflow: hidden; }
    body.menu-open .mobile-menu { transform: translateX(0); }
    .mobile-menu a.m-link {
        padding: 1rem 0.5rem; font-family: var(--font-serif); font-size: 1.5rem;
        color: var(--ink); border-bottom: 1px solid var(--line);
    }
    .mobile-menu .btn { margin-top: 1.5rem; }
}
@media (min-width: 861px) { .mobile-menu { display: none; } }

@media (max-width: 560px) {
    .hero-actions { width: 100%; }
    .hero-cta .btn { width: 100%; }
    /* Punkty zaufania jeden pod drugim, wyśrodkowane */
    .trust-row { flex-direction: column; align-items: center; gap: 0.7rem; }
}

/* --------------------------------------------------------------------------
   17. Preferencje dostępności
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important; scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}
