/* Thermo rarytasy – style strony */
:root {
  --green: #17773f;
  --green-hi: #1f9150;
  --green-dark: #0f3d24;
  --lime: #8cc63f;
  --mint: #eaf4ec;
  --cream: #fbfaf6;
  --paper: #fffdf6;
  --white: #fff;
  --text: #1d2a22;
  --muted: #56645b;
  --line: #dfe7e0;
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(15, 61, 36, .35);
  --serif: 'Fraunces', Georgia, serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--text); font: 400 17px/1.6 'Jost', system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--green-hi); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; color: var(--green-dark); font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible, .nav__cta:focus-visible { outline-color: var(--green-dark); }
.foot :focus-visible { outline-color: var(--lime); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--muted); }
.accent { color: var(--green); }
.hand { font-family: var(--hand); font-weight: 600; color: var(--green); letter-spacing: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

h1 .eyebrow { display: block; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-family: 'Jost', system-ui, sans-serif; font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 60ch; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px; border: 2px solid var(--green); border-radius: 999px;
  background: var(--green); color: #fff; font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--green-hi); border-color: var(--green-hi); color: #fff; }
.btn--line { background: rgba(255, 255, 255, .6); color: var(--green); }
.btn--line:hover { background: var(--mint); color: var(--green-dark); border-color: var(--green); }
.btn:disabled { opacity: .6; cursor: wait; }

/* Logo (listek + napis) */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__leaf { width: 34px; height: 34px; flex: none; }
.brand__leaf .leaf { fill: var(--green); stroke: none; }
.brand__leaf .vein { stroke: var(--cream); stroke-width: 2.6; }
.brand__name { font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--green); white-space: nowrap; }
.brand__name b { font-weight: 600; color: var(--green-dark); }

/* Górny pasek */
.top { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 246, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--green); }
.nav .nav__cta { padding: 8px 18px; border-radius: 999px; background: var(--green); color: #fff; }
.nav .nav__cta:hover { background: var(--green-hi); color: #fff; }
.top__tel { display: inline-flex; align-items: center; gap: 8px; color: var(--green-dark); font-weight: 600; text-decoration: none; white-space: nowrap; }
.top__tel svg { width: 20px; height: 20px; color: var(--green); }
.brand + .top__tel { margin-left: auto; }
.burger { display: none; }

@media (max-width: 900px) {
  .top__tel { margin-left: auto; }
  .burger {
    display: grid; place-items: center; width: 46px; height: 46px; margin-right: -8px;
    border: 0; background: none; cursor: pointer; color: var(--green-dark);
  }
  .burger span, .burger span::before, .burger span::after { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, background .2s; }
  .burger span { position: relative; }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -7px; }
  .burger span::after { top: 7px; }
  .burger[aria-expanded="true"] span { background: transparent; }
  .burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav .nav__cta { margin-top: 14px; padding: 14px; text-align: center; border: 0; }
}
@media (max-width: 420px) {
  .top__in { gap: 10px; }
  .top__tel span { display: none; }
  .top__tel { width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: var(--mint); }
  .brand__name { font-size: 21px; }
  .brand__leaf { width: 30px; height: 30px; }
}

/* Start – zdjęcie na całą szerokość, tekst na jasnej części kuchni */
.hero { position: relative; display: grid; align-items: center; min-height: clamp(560px, 80vh, 780px); padding: 64px 0; overflow: hidden; }
/* zdjęcie zajmuje prawą część, żeby na szerokich ekranach nie powiększało się do samej twarzy */
.hero__bg img { position: absolute; top: 0; right: 0; width: 62%; height: 100%; object-fit: cover; object-position: 70% 0; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--cream) 38%, rgba(251, 250, 246, .85) 44%, rgba(251, 250, 246, 0) 60%);
}
.hero__in { position: relative; z-index: 1; }
.hero__text { max-width: 500px; }
.hero h1 .hand { display: block; font-size: 1.3em; line-height: .9; margin-top: .05em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.note { margin: 0; font-family: var(--hand); font-size: 28px; font-weight: 600; color: var(--green); transform: rotate(-2deg); transform-origin: left; }

@media (max-width: 760px) {
  .hero { display: block; min-height: 0; padding: 0 0 48px; }
  .hero::after { display: none; }
  .hero__bg img { position: static; width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 72vh; object-position: 50% 20%; border-radius: 0 0 28px 28px; }
  .hero__in { margin-top: -56px; }
  .hero__text { padding: 24px 20px 4px; border-radius: 22px; background: var(--cream); box-shadow: var(--shadow); }
}
@media (max-width: 480px) {
  .hero__cta .btn { width: 100%; }
}

/* Promocja (ustawiana w panelu) */
.promo { padding: 28px 0 0; }
.promo__card {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: center;
  padding: 18px 24px 18px 18px; border-radius: 20px; background: var(--green-dark); color: #d6e4da; box-shadow: var(--shadow);
}
.promo__card--text { grid-template-columns: 1fr auto; padding-left: 28px; }
.promo__img { width: 200px; height: 150px; object-fit: cover; border-radius: 14px; }
.promo__tag { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--lime); color: var(--green-dark); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.promo__title { margin: 0 0 6px; color: #fff; font-size: clamp(22px, 3vw, 28px); }
.promo__desc { margin: 0; white-space: pre-line; }
.promo__desc:empty { display: none; }
.promo__until { margin: 6px 0 0; font-family: var(--hand); font-size: 26px; line-height: 1.1; color: var(--lime); }
.promo .btn { background: #fff; border-color: #fff; color: var(--green-dark); white-space: nowrap; }
.promo .btn:hover { background: var(--lime); border-color: var(--lime); color: var(--green-dark); }
.promo .btn:focus-visible { outline-color: var(--lime); }
@media (max-width: 760px) {
  .promo { padding-top: 0; }
  .promo__card, .promo__card--text { grid-template-columns: 1fr; padding: 18px; }
  .promo__img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .promo .btn { width: 100%; }
}

/* Sekcje */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--alt { background: var(--mint); }
.head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.head--center { margin-inline: auto; text-align: center; }
.head--center .lead { margin-inline: auto; }

.ico { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; background: var(--white); color: var(--green); box-shadow: 0 0 0 1px var(--line); }
.ico svg { width: 26px; height: 26px; }
.ico--sm { width: 42px; height: 42px; margin: 0; flex: none; background: var(--mint); box-shadow: none; }
.ico--sm svg { width: 21px; height: 21px; }

/* O mnie */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 7vw, 88px); align-items: center; }
.polaroid { justify-self: center; width: min(380px, 100%); margin: 0; padding: 14px 14px 58px; background: var(--white); box-shadow: 0 24px 50px -24px rgba(15, 61, 36, .45); transform: rotate(-2.5deg); position: relative; }
.polaroid::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; translate: -50% 0; rotate: 3deg; background: rgba(140, 198, 63, .45); }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-family: var(--hand); font-size: 28px; font-weight: 600; color: var(--green-dark); }
.ticks { margin: 0 0 18px; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 6px 0 6px 34px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.signature { margin: 0 0 16px; font-family: var(--hand); font-size: 56px; line-height: 1; color: var(--green); transform: rotate(-4deg); transform-origin: left; }
.social-line { color: var(--muted); }
.social-line a { font-weight: 600; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .polaroid { width: min(320px, 78%); }
}

/* Co oferuję */
.offer { display: grid; grid-template-columns: repeat(4, 1fr); }
.offer__item { padding: 8px 28px; text-align: center; }
.offer__item + .offer__item { border-left: 2px dashed rgba(23, 119, 63, .22); }
.offer__item p { margin: 0; color: var(--muted); }
@media (max-width: 980px) {
  .offer { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .offer__item:nth-child(3) { border-left: 0; }
}
@media (max-width: 560px) {
  .offer { grid-template-columns: 1fr; row-gap: 0; }
  .offer__item { padding: 24px 8px; }
  .offer__item + .offer__item { border-left: 0; border-top: 2px dashed rgba(23, 119, 63, .22); }
}

/* Karta z przepisem */
.recipe {
  position: relative; max-width: 940px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) clamp(22px, 5vw, 60px);
  background: linear-gradient(transparent 0 calc(100% - 1px), #e4ece1 0) 0 0 / 100% 34px, var(--paper);
  border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(15, 61, 36, .4), 0 0 0 1px var(--line);
}
.recipe::before, .recipe::after { content: ""; position: absolute; top: -14px; width: 120px; height: 30px; background: rgba(140, 198, 63, .45); }
.recipe::before { left: 40px; rotate: -4deg; }
.recipe::after { right: 40px; rotate: 3deg; }
.recipe__head { padding-bottom: 22px; margin-bottom: 28px; border-bottom: 2px dashed rgba(23, 119, 63, .3); text-align: center; }
.recipe__head h2 { margin-bottom: 18px; }
.recipe__head h2 .hand { font-size: 1.25em; }
.recipe__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; margin: 0; padding: 0; list-style: none; font-weight: 600; color: var(--green-dark); }
.recipe__meta small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.recipe__body { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(28px, 5vw, 56px); }
.recipe h3 { font-family: var(--hand); font-size: 34px; font-weight: 700; color: var(--green); margin-bottom: 10px; }
.recipe__list { margin: 0; padding: 0; list-style: none; font-family: var(--hand); font-size: 27px; line-height: 34px; color: var(--green-dark); }
.recipe__list li::before { content: "– "; color: var(--green); }
.recipe__steps { margin: 0; padding: 0; list-style: none; counter-reset: krok; }
.recipe__steps li { position: relative; padding: 0 0 16px 46px; counter-increment: krok; }
.recipe__steps li::before {
  content: counter(krok); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--green); color: #fff; font-weight: 600; font-size: 16px;
}
.recipe__steps strong { color: var(--green-dark); }
.recipe__cta { margin: 20px 0 0; text-align: center; }
@media (max-width: 700px) {
  .recipe__body { grid-template-columns: 1fr; }
}

/* Pytania */
.faq details { margin-bottom: 12px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 56px 18px 22px; font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--green-dark); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; font-size: 26px; font-weight: 400; color: var(--green); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Kontakt */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 64px); align-items: start; }
.person { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.person img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--green); object-fit: cover; }
.person p { margin: 0; line-height: 1.3; }
.person strong { display: block; font-family: var(--hand); font-size: 30px; line-height: 1; color: var(--green-dark); }
.person span { color: var(--muted); font-size: 15px; }
.contact__list { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__list small { display: block; color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.contact__list a { font-weight: 600; font-size: 19px; color: var(--green-dark); text-decoration: none; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--green); }
.socials { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.socials a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mint); color: var(--green-dark); transition: background .2s, color .2s; }
.socials a:hover { background: var(--green); color: #fff; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.form { display: grid; gap: 16px; padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form h3 { margin: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--cream); color: var(--text); font-family: inherit; font-size: 16px; line-height: 1.4;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 3px rgba(23, 119, 63, .15); }
.form .is-invalid { border-color: #c0392b; }
.opt { color: var(--muted); font-weight: 400; }
.form__legal { margin: 0; font-size: 14px; color: var(--muted); }
.form__note { margin: 0; font-size: 15px; }
.form__note:empty { display: none; }
.form__note.is-error { color: #b03024; }
.form__done { padding: 18px 20px; border-radius: 12px; background: var(--mint); border: 1px solid var(--line); }
.form__done p { margin: 4px 0 0; }
.form.is-sent > :not(.form__done):not(h3):not(.author__close) { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Stopka */
.foot { padding: 48px 0 24px; background: var(--green-dark); color: #d6e4da; font-size: 15px; }
.foot a { color: #fff; }
.foot a:hover { color: var(--lime); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot__brand { display: inline-flex; align-items: center; gap: 10px; }
.foot .brand__leaf .leaf { fill: var(--lime); }
.foot .brand__leaf .vein { stroke: var(--green-dark); }
.foot .brand__name, .foot .brand__name b { color: #fff; }
.foot__col p { margin: 0 0 6px; }
.foot__col { max-width: 560px; }
.foot .muted { color: #a9bfb0; font-size: 13px; margin-top: 12px; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; }
.foot__bottom p { margin: 0; }
.author-link { padding: 0; border: 0; background: none; color: #fff; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.author-link:hover { color: var(--lime); }

/* Okienko „Napisz do autora strony” */
.author { width: min(460px, calc(100% - 32px)); padding: 0; border: 0; background: none; color: var(--text); }
.author::backdrop { background: rgba(15, 61, 36, .6); backdrop-filter: blur(4px); }
.author .form { position: relative; }
.author .muted { margin: -6px 0 0; font-size: 15px; }
.author__close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; }

/* Przycisk „zadzwoń” na telefonie */
.fab { display: none; }
@media (max-width: 700px) {
  .fab {
    position: fixed; right: 16px; bottom: 16px; z-index: 40; display: grid; place-items: center;
    width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 10px 24px -8px rgba(15, 61, 36, .6);
  }
  .fab svg { width: 26px; height: 26px; }
  .foot { padding-bottom: 90px; }
}

/* Podstrony: polityka, regulamin, 404 */
.page { padding: clamp(48px, 8vw, 96px) 0; min-height: 60vh; }
.legal h2 { margin-top: 1.6em; font-size: 26px; }
.legal ul { padding-left: 22px; margin-bottom: 1em; }
.notfound { text-align: center; }
.notfound .brand { margin-bottom: 28px; }

/* Strona w budowie */
.soon-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.soon { flex: 1; display: grid; place-items: center; padding: 48px 0; text-align: center; background: radial-gradient(ellipse at 50% 30%, var(--mint), transparent 65%); }
.soon .brand { margin-bottom: 28px; }
.soon .brand__leaf { width: clamp(48px, 10vw, 72px); height: clamp(48px, 10vw, 72px); }
.soon .brand__name { font-size: clamp(34px, 8vw, 58px); }
.soon h1 { font-size: clamp(30px, 6vw, 46px); }
.soon h1 .hand { font-size: 1.3em; }
.foot--soon { padding-top: 0; }

/* Łagodne pojawianie się przy przewijaniu (tylko gdy działa skrypt) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.polaroid { transform: translateY(18px) rotate(-2.5deg); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.polaroid.is-in { transform: rotate(-2.5deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal.polaroid { transform: rotate(-2.5deg); }
}
