/* ==========================================================================
   agneshanczakowska.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;

    --amber:        #b0751c;
    --amber-tint:   #faefd7;

    --blue:         #2d6898;
    --blue-tint:    #dce9f7;

    /* 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;
}

/* Odstęp między nagłówkiem sekcji a wprowadzającym akapitem (lead) */
h2 + .lead { margin-top: 1.1rem; }

.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);
    background-image: url('/images/letter-pattern.svg');
    background-repeat: repeat;
    background-size: 540px 390px;
}
.section--tint { background-color: var(--cream-deep); background-image: none; }
.section--paper { background-color: var(--paper); }

.section-head { max-width: var(--container-narrow); margin-bottom: clamp(3rem, 6vw, 4.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.09;
    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; justify-content: center; gap: 0.9rem; margin-bottom: 1.75rem; }

.trust-row {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.4rem;
    padding: 0; list-style: none;
    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--green  { background: var(--green-tint);  color: var(--green);  }
.block-icon--amber  { background: var(--amber-tint);  color: var(--amber);  }
.block-icon--blue   { background: var(--blue-tint);   color: var(--blue);   }
.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.25rem; }
@media (min-width: 720px) { .offer-meta { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .offer-meta { grid-template-columns: repeat(4, 1fr); } }

/* Karty zamiast surowej „listy z bulletami" — każdy blok to lekka karta z ikoną-odznaką
   i listą zalet z zielonymi „ptaszkami" zamiast kropek. */
.meta-block {
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.meta-block h4 {
    display: flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink);
    margin-bottom: 1.1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line);
}
.meta-ic {
    display: inline-flex; flex: none; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--green-tint); color: var(--green);
}
.meta-ic--bordo { background: var(--bordo-tint); color: var(--bordo); }
.meta-ic--amber { background: var(--amber-tint); color: var(--amber); }
.meta-ic--blue  { background: var(--blue-tint);  color: var(--blue);  }
.meta-ic svg { width: 18px; height: 18px; stroke-width: 2.5; }
.meta-block ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.meta-block li {
    display: flex; gap: 0.6rem; align-items: flex-start;
    color: var(--ink-soft); font-size: 0.97rem; line-height: 1.4;
}
.meta-block li::before {
    content: ""; flex: none; width: 1.3rem; height: 1.3rem; margin-top: 0.05rem;
    border-radius: 50%; background-color: var(--green-tint);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e6b4f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 0.78rem;
}
.meta-block:has(.meta-ic--bordo) li::before {
    background-color: var(--bordo-tint);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b2d3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.meta-block:has(.meta-ic--amber) li::before {
    background-color: var(--amber-tint);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0751c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.meta-block:has(.meta-ic--blue) li::before {
    background-color: var(--blue-tint);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d6898' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
@media (hover: hover) and (pointer: fine) {
    .meta-block:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}

/* Kafelki kierunków są teraz klikalne (→ formularz z wybranym językiem) */
.direction-card { cursor: pointer; }
.card-cta {
    display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.15rem;
    font-size: 0.92rem; font-weight: 600; color: var(--bordo);
}
.direction-card--pl .card-cta { color: var(--green); }
.card-cta svg { width: 1.05em; height: 1.05em; transition: transform 0.3s var(--ease); }
.direction-card:hover .card-cta svg { transform: translateX(4px); }

/* Krótkie podświetlenie pola wyboru języka po kliknięciu kafelka oferty */
#lang.just-set { border-color: var(--bordo); animation: langPulse 1.5s var(--ease); }
@keyframes langPulse {
    0%   { box-shadow: 0 0 0 0 rgba(123, 45, 58, 0); }
    25%  { box-shadow: 0 0 0 4px rgba(123, 45, 58, 0.18); }
    100% { box-shadow: 0 0 0 0 rgba(123, 45, 58, 0); }
}

/* --------------------------------------------------------------------------
   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: center;
    max-width: 100%;
    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; }
}

/* --------------------------------------------------------------------------
   18. Warstwa mikrointerakcji (dodane 2026-06-16)
       Żyje w style.css + js/main.js — bez zmian w markupie (jak na yonatan.pl).
       Tylko transform/opacity (GPU). Efekty kursorowe wyłącznie na desktopie
       z myszą (@media hover+fine). Pełne poszanowanie prefers-reduced-motion.
   -------------------------------------------------------------------------- */

/* Zoom zdjęcia / tła w ramce — tylko desktop z myszą.
   .hero-media i .direction-card mają już overflow:hidden, więc skala jest przycięta. */
@media (hover: hover) and (pointer: fine) {
    .hero-media img { transition: transform 0.7s var(--ease); will-change: transform; }
    .hero-media:hover img { transform: scale(1.05); }

    .direction-card::before { transition: transform 0.6s var(--ease), opacity 0.35s var(--ease); }
    .direction-card:hover::before { transform: scale(1.06); }

    /* Magnetyczne CTA — bardzo subtelny cień; minimalny unos/przyciąganie do
       kursora dokłada JS. Primary zachowuje swój shadow-lg, ghost lekki cień. */
    .btn--ghost:hover { box-shadow: var(--shadow-sm); }
}

/* Scroll cue — wskaźnik „przewiń niżej", wstrzykiwany do hero przez JS,
   gdy sekcja jest wyższa niż ekran. Kolor dopasowany do jasnego tła hero. */
.scroll-cue {
    position: absolute; left: 50%; bottom: clamp(1rem, 3vw, 1.75rem);
    transform: translateX(-50%); z-index: 5;
    display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
    padding: 0.4rem 0.9rem; min-height: 44px; min-width: 44px;
    background: transparent; border: 0; color: var(--ink-soft);
    cursor: pointer; transition: opacity 0.3s var(--ease), color 0.2s var(--ease);
}
.scroll-cue:hover { color: var(--bordo); }
.scroll-cue__label {
    font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
    font-weight: 600; opacity: 0.75;
}
.scroll-cue__chevron {
    width: 22px; height: 22px;
    animation: scrollCueBounce 1.8s var(--ease) infinite;
}
@keyframes scrollCueBounce {
    0%, 100% { transform: translateY(0);   opacity: 0.8; }
    50%      { transform: translateY(6px); opacity: 1;   }
}

/* Mobile (dotyk): tap feedback — krótkie wciśnięcie kart, kanałów kontaktu i CTA. */
@media (hover: none) {
    .btn:active { transform: scale(0.97); transition: transform 0.15s var(--ease); }
    .channel:active { transform: scale(0.98); transition: transform 0.15s var(--ease); }
    .direction-card:active,
    .price-card:active { transform: scale(0.98); transition: transform 0.18s var(--ease); }
}

/* Wyróżniony kafelek cennika (80 zł) — lekko powiększony, by mocniej przyciągał wzrok */
@media (min-width: 720px) {
    .pricing-grid .price-card.is-featured { transform: scale(1.07); z-index: 1; box-shadow: var(--shadow-md); }
    .pricing-grid .price-card.is-featured:not(.is-in) { transform: translateY(22px) scale(1.07); }
    .pricing-grid .price-card.is-featured:hover { transform: translateY(-5px) scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-media img { transition: none !important; transform: none !important; }
    .direction-card::before { transition: none !important; transform: none !important; }
    .scroll-cue { transition: none !important; }
    .scroll-cue__chevron { animation: none !important; }
    .btn:active, .channel:active,
    .direction-card:active, .price-card:active { transform: none !important; }
}


/* --------------------------------------------------------------------------
   19. Kwalifikacje — karty z pieczęcią-medalionem w lewym górnym rogu
   -------------------------------------------------------------------------- */
.creds-grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .creds-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
    .creds-grid { grid-template-columns: repeat(6, 1fr); }
    .creds-grid .cred-card:nth-child(1) { grid-column: 1 / 3; }
    .creds-grid .cred-card:nth-child(2) { grid-column: 3 / 5; }
    .creds-grid .cred-card:nth-child(3) { grid-column: 5 / 7; }
    .creds-grid .cred-card:nth-child(4) { grid-column: 2 / 4; }
    .creds-grid .cred-card:nth-child(5) { grid-column: 4 / 6; }
}

.cred-card {
    position: relative; text-align: left;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 4.6rem 1.6rem 1.9rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
    .cred-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
    .cred-card:hover .cred-seal { transform: scale(1.05) rotate(-3deg); }
}

/* Pieczęć-medalion wystająca poza lewy górny róg karty */
.cred-seal {
    position: absolute; top: -20px; left: -16px;
    display: inline-grid; place-items: center; color: #fff;
    width: 80px; height: 80px; border-radius: 50%;
    transition: transform 0.4s var(--ease);
}
.cred-seal svg { width: 36px; height: 36px; stroke-width: 2.1; }
.cred-seal--bordo { background: var(--bordo); box-shadow: 0 0 0 6px var(--paper), 0 10px 22px -10px rgba(123, 45, 58, 0.55); }
.cred-seal--green { background: var(--green); box-shadow: 0 0 0 6px var(--paper), 0 10px 22px -10px rgba(62, 107, 79, 0.55); }
.cred-seal--amber { background: var(--amber); box-shadow: 0 0 0 6px var(--paper), 0 10px 22px -10px rgba(176, 117, 28, 0.55); }
.cred-seal--blue  { background: var(--blue);  box-shadow: 0 0 0 6px var(--paper), 0 10px 22px -10px rgba(45, 104, 152, 0.55); }

.cred-tag {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--bordo); margin-bottom: 0.5rem;
}
.cred-card--green .cred-tag { color: var(--green); }
.cred-card--amber .cred-tag { color: var(--amber); }
.cred-card--blue  .cred-tag { color: var(--blue);  }
.cred-card h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.cred-org { font-family: var(--font-serif); font-style: italic; font-size: 1.02rem; color: var(--ink); margin-bottom: 0.8rem; }
.cred-card > p:not(.cred-org) { color: var(--ink-soft); font-size: 0.96rem; }


/* ============================ STRONA 404 ============================ */
/* Używana przez /404.html i /hu/404.html. Obie są samodzielne — bez
   nagłówka i stopki, bo tamte partiale linkują wyłącznie kotwicami,
   które poza stroną główną prowadzą donikąd. */

.err {
    min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    background: var(--cream);
}
.err-box { max-width: 34rem; }

.err-brand {
    display: inline-block; margin-bottom: 2.5rem;
    font-family: var(--font-serif); color: var(--ink); text-decoration: none;
}

.err-code {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 14vw, 7rem); line-height: 1;
    color: var(--bordo); margin: 0;
}

.err-title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--ink); margin: 0.75rem 0 1rem;
}

.err-text { color: var(--ink-soft); margin: 0 auto 2rem; max-width: 30rem; }

.err-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.err-lang { margin-top: 2.5rem; }
.err-lang a { color: var(--ink-faint); }
.err-lang a:hover { color: var(--bordo); }
