/* Joga nidra by Justyna Czempik – arkusz główny.
   Kolory wg starej strony: złoto #be9829 (akcent), granat #0c2230. Tekst złoty przyciemniony do #7d6210 (kontrast WCAG AA). */

:root {
  --gold: #be9829;
  --gold-text: #7d6210;
  --gold-soft: #f3ecd9;
  --navy: #0c2230;
  --ink: #2a2a2a;
  --text: #4f4f4f;
  --muted: #6b6b6b;
  --bg: #f7f7f7;
  --white: #fff;
  --line: #e4e0d6;
  --focus: #0c2230;
  --radius: 6px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.7 var(--sans); color: var(--text); background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.25; margin: 0 0 .75em; }
p, ul, ol, figure, blockquote, address { margin: 0 0 1.1em; }
a { color: var(--gold-text); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
strong { color: var(--ink); font-weight: 700; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.hero :focus-visible, .section-photo :focus-visible, .cta :focus-visible, .topbar :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { 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: -9999px; top: 0; z-index: 100; padding: .75rem 1rem; background: #fff; color: var(--navy); font-weight: 700; }
.skip-link:focus { left: 1rem; top: 1rem; }
main:focus { outline: none; }

/* --- Pasek górny --- */
.topbar { background: #111; color: #c4c4c4; font-size: .875rem; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding: .4rem 0; }
.topbar p, .topbar ul { margin: 0; }
.topbar-contact { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; padding: 0; }
.topbar a { color: #e8e8e8; text-decoration: none; display: inline-block; padding: .2rem 0; }
.topbar a:hover { color: var(--gold); text-decoration: underline; }
@media (max-width: 560px) { .topbar-text { display: none; } }

/* --- Nagłówek i menu --- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; padding: .5rem 0; }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; }
.brand-by { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: .7rem .85rem; color: #414141; text-decoration: none; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-text); border-bottom-color: var(--gold); }
.nav-toggle { display: none; align-items: center; gap: .6rem; min-height: 44px; min-width: 44px; padding: .5rem .9rem; font: inherit; font-size: .95rem; color: var(--ink); background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after { position: absolute; top: 6px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; padding-bottom: .75rem; }
  .site-header.is-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); }
}

/* --- Przyciski --- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.6rem; border-radius: 3px; font: 700 .95rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.btn-gold { background: var(--gold); color: #111; border-color: var(--gold); }
.btn-gold:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* --- Hero --- */
.hero { position: relative; color: #fff; background: #3b3324; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,34,48,.82), rgba(12,34,48,.45)); }
.hero-inner { position: relative; z-index: 1; padding: 5rem 0; max-width: 720px; margin-left: max(1.25rem, (100% - 1140px) / 2); }
.hero-title { color: #fff; font-size: clamp(2.6rem, 6vw, 4.2rem); margin-bottom: .35em; }
.hero-title::after { content: ""; display: block; width: 72px; height: 3px; background: var(--gold); margin-top: .35em; }
.hero-lead { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.45; }
.hero-text { font-size: 1.1rem; margin-bottom: .6em; }
.hero-strong { font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero a:not(.btn) { color: #fff; }
@media (max-width: 600px) { .hero-inner { padding: 3.5rem 0; } }

/* --- Sekcje --- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.25rem); }
.section-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin-top: .45em; }
.section-title-center { text-align: center; }
.section-title-center::after { margin-inline: auto; }
.section-title-small { font-size: 1.35rem; margin-top: 2rem; }

.section-photo { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.section-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.section-photo::after { content: ""; position: absolute; inset: 0; background: rgba(12,34,48,.78); }
.section-photo-inner { position: relative; z-index: 1; }
.section-photo .section-title, .section-photo strong { color: #fff; }
.section-photo a { color: #fff; }

.checklist { list-style: none; padding: 0; display: grid; gap: .8rem; max-width: 760px; font-size: 1.15rem; }
.checklist li { position: relative; padding-left: 2.1rem; font-weight: 700; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border: 2px solid var(--gold); border-radius: 50%; background: radial-gradient(circle, var(--gold) 0 35%, transparent 40%); }
.section-conclusion { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); color: #fff; margin: 2rem 0 0; }

.tiles-section { padding: 0; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 2.5rem 1rem; text-align: center; }
.tile-a { background: linear-gradient(135deg, #f3ecd9, #e7d9b4); }
.tile-b { background: linear-gradient(135deg, #e6e9ec, #d3dade); }
.tile-icon { width: 76px; height: 76px; }
.tile-title { margin: 0; font-size: 1.5rem; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

.benefits-section { background: #fff; }
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.benefits-photo img { border-radius: var(--radius); width: 100%; }
.benefits { list-style: none; padding: 0; columns: 2; column-gap: 2rem; }
.benefits li { break-inside: avoid; position: relative; padding: .35rem 0 .35rem 1.6rem; font-size: 1.1rem; color: var(--ink); }
.benefits li::before { content: ""; position: absolute; left: 0; top: .95em; width: .7rem; height: 2px; background: var(--gold); }
@media (max-width: 860px) { .benefits-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .benefits { columns: 1; } }

.testimonials-section { background: var(--gold-soft); }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.testimonial { margin: 0; background: #fff; border-radius: var(--radius); padding: 1.75rem; border-top: 3px solid var(--gold); }
.testimonial blockquote { margin: 0 0 1rem; font-size: .98rem; }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
@media (max-width: 960px) { .testimonials { grid-template-columns: 1fr; } }

/* --- Karty artykułów --- */
.cards { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card article { height: 100%; }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); }
.card-body { display: flex; flex-direction: column; gap: .45rem; padding: 1.25rem 1.4rem 1.5rem; }
.card-date { font-size: .85rem; color: var(--muted); }
.card-title { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; color: var(--ink); margin: 0; }
.card-excerpt { font-size: .97rem; margin: 0; }
.card-more { margin-top: auto; padding-top: .5rem; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text); }
.card-link:hover .card-title { color: var(--gold-text); text-decoration: underline; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.gallery { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.gallery-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; background: var(--line); }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.section-quote .quote-lead { font-family: var(--serif); font-size: 1.35rem; }
.link-light { font-weight: 700; }

/* --- CTA --- */
.cta { background: var(--navy); color: #fff; padding: 2.75rem 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-kicker { margin: 0 0 .25rem; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; }
.cta-title { color: #fff; margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta .btn-gold:hover { background: #fff; border-color: #fff; color: var(--navy); }

/* --- Podstrony --- */
.page-header { background: #fff; border-bottom: 1px solid var(--line); padding: 2.25rem 0 2rem; }
.page-title { font-size: clamp(2rem, 4.5vw, 2.9rem); margin: 0; }
.page-title::after { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); margin-top: .4em; }
.page-subtitle { margin: 1rem 0 0; color: var(--muted); max-width: 760px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .875rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 .5rem; color: #999; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink); }

.article-figure { margin: 0 0 2.25rem; }
.article-figure img { width: 100%; border-radius: var(--radius); }
.article-back { margin-top: 2.5rem; font-weight: 700; }
.related { background: #fff; }

/* --- Treść (artykuły, dokumenty) --- */
.prose { font-size: 1.09rem; color: #3f3f3f; }
.prose h2 { font-size: 1.75rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h4 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .45em; }
.prose li > ul, .prose li > ol { margin-top: .45em; }
.prose blockquote { margin: 1.75em 0; padding: .25em 0 .25em 1.25em; border-left: 3px solid var(--gold); font-style: italic; color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: .5em; font-style: italic; }
.prose .lead { font-size: 1.2rem; color: var(--ink); }
.prose .mantra { font-style: italic; text-align: center; font-family: var(--serif); font-size: 1.25rem; }
.prose .signature { text-align: right; font-style: italic; }
.prose-legal { font-size: 1rem; }
.prose-legal h2 { font-size: 1.4rem; }
.prose-legal ol[type="a"] { list-style-type: lower-alpha; }
.prose-legal .doc-date { color: var(--muted); }
.link-list { padding-left: 1.2rem; }
.link-list li { margin-bottom: .5rem; }

/* --- Wideo --- */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video-link, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { display: block; color: #fff; }
.video-link img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%); background: #c4302b; border-radius: 14px; }
.video-play::after { content: ""; position: absolute; left: 31px; top: 15px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.video-label { position: absolute; left: 0; right: 0; bottom: 0; padding: .75rem 1rem; background: rgba(0,0,0,.65); font-weight: 700; }
.video-link:hover .video-play { background: #e62117; }
.video-note { font-size: .9rem; color: var(--muted); margin-top: 1rem; }

/* --- Kontakt i formularz --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4.5rem); }
.contact-boxes { list-style: none; padding: 0; display: grid; gap: 1rem; }
.contact-box { display: flex; align-items: center; gap: 1rem; background: #fff; padding: 1.1rem 1.25rem; border-radius: var(--radius); border-left: 3px solid var(--gold); }
.contact-label { display: block; font-size: .85rem; color: var(--muted); }
.contact-box a { font-size: 1.1rem; font-weight: 700; word-break: break-word; }
.contact-icon { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--gold-soft) center / 22px no-repeat; }
.contact-icon-mail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d6210' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.contact-icon-phone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d6210' stroke-width='2'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.company { font-style: normal; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { background: #fff; padding: clamp(1.25rem, 4vw, 2rem); border-radius: var(--radius); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
.field input[type="text"], .field input[type="email"], .field textarea { display: block; width: 100%; min-height: 48px; padding: .7rem .85rem; font: inherit; color: var(--ink); background: #fff; border: 1px solid #8a8a8a; border-radius: 4px; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: #b3261e; border-width: 2px; }
.field-hint { font-size: .9rem; color: var(--muted); margin: .35rem 0 0; }
.field-error { font-size: .92rem; color: #b3261e; font-weight: 700; margin: .35rem 0 0; }
.field-error::before { content: "! "; }
.field-consent { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: start; }
.field-consent input { width: 24px; height: 24px; margin: .2rem 0 0; accent-color: var(--navy); }
.field-consent label { font-weight: 400; font-size: .95rem; margin: 0; }
.field-consent .field-error { grid-column: 1 / -1; }
.req { color: #b3261e; }
.form-info, .form-legend { font-size: .88rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; }
.form-status p:last-child { margin-bottom: 0; }
.form-status-error { background: #fdecea; border-left: 4px solid #b3261e; color: #5c1410; }
.form-status-ok { background: #e8f3ea; border-left: 4px solid #2e7d32; color: #173d19; }

/* --- Stopka --- */
.site-footer { background: #151515; color: #c9c9c9; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 2rem; padding: 3.5rem 0 2.5rem; }
.footer-brand img { width: 56px; margin-bottom: 1rem; }
.footer-name { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin-bottom: .5rem; }
.footer-title { font-family: var(--sans); font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .2rem; }
.footer-list a { display: inline-block; padding: .3rem 0; color: #e6e6e6; text-decoration: none; }
.footer-list a:hover { color: var(--gold); text-decoration: underline; }
.footer-bottom { border-top: 1px solid #2c2c2c; background: var(--navy); color: #c3cbd1; font-size: .85rem; padding: 1rem 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
