/*
Theme Name: ITMATRIX
Description: Motyw firmy informatycznej ITMATRIX – Informatyka dla każdego. Strona główna z animowaną grafiką wektorową, usługi, opinie klientów, blog, formularz kontaktowy i znaczniki SEO. Treści i ustawienia edytujesz w kokpicie WordPressa.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Author: ITMATRIX
Text Domain: itmatrix
*/

/* Strona firmowa — arkusz stylów (wersja 2) */
:root {
  --night: #0B1026;
  --night-2: #141B3D;
  --c1: #8F6BFF;
  --c2: #3B82F6;
  --violet: var(--c1);
  --blue: var(--c2);
  --link: color-mix(in srgb, var(--c1) 72%, #000);
  --mint: #2EE6A6;
  --green: #12A877;
  --bg: #F5F6FB;
  --card: #FFFFFF;
  --tint: color-mix(in srgb, var(--c1) 13%, #fff);
  --line: #E1E4F0;
  --text: #1B2340;
  --muted: #5A6482;
  --on-dark: #B9C2E8;
  --error: #C2261E;
  --grad: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
  --radius: 22px;
  --shadow: 0 1px 2px rgba(27, 35, 64, .05), 0 18px 40px -18px rgba(60, 50, 140, .28);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: color-mix(in srgb, var(--c1) 50%, #000); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--text); line-height: 1.12; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 750; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 720; letter-spacing: -.028em; }
h3 { font-size: 1.3rem; font-weight: 680; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; }

.wrap { width: min(100% - 2.5rem, 1160px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--night); padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 0; }
.lead { font-size: 1.2rem; max-width: 58ch; }

/* --- Przyciski --- */
.btn { display: inline-block; background: var(--grad); color: #fff; font: inherit; font-weight: 650; padding: .9rem 1.6rem; border: 0; border-radius: 999px; text-decoration: none; cursor: pointer; box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--c1) 80%, transparent); transition: transform .2s, box-shadow .2s; }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px -10px color-mix(in srgb, var(--c1) 90%, transparent); }
.btn-ghost { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn-light { background: #fff; color: var(--night); box-shadow: 0 10px 26px -12px rgba(11, 16, 38, .6); }
.btn-light:hover { color: var(--night); box-shadow: 0 16px 32px -12px rgba(11, 16, 38, .7); }
.btn-small { padding: .55rem 1.1rem; font-size: .98rem; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1rem; margin-top: 2rem; }

/* --- Nagłówek --- */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--night) 84%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.header-row { display: flex; align-items: center; gap: 1rem 2rem; padding-block: .8rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 720; font-size: 1.15rem; color: #fff; text-decoration: none; letter-spacing: -.015em; }
.brand:hover { color: #fff; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.main-nav ul { display: flex; gap: .3rem; list-style: none; }
.main-nav li a { display: block; padding: .45rem .85rem; color: var(--on-dark); text-decoration: none; font-weight: 550; border-radius: 999px; transition: color .15s, background .15s; }
.main-nav li a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.main-nav li a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .12); }
.nav-toggle { display: none; margin-left: auto; font: inherit; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: .45rem 1.1rem; cursor: pointer; }

/* --- Hero --- */
.hero, .page-head { position: relative; overflow: hidden; background: var(--night); color: var(--on-dark); }
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero::before, .page-head::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .11) 1px, transparent 1.5px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
.hero-bg { position: absolute; inset: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.blob-1 { width: 520px; height: 520px; background: var(--c1); top: -180px; right: -80px; }
.blob-2 { width: 420px; height: 420px; background: var(--c2); bottom: -220px; left: -120px; opacity: .4; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1, .page-head h1 { color: #fff; }
.hero h1 { max-width: 13ch; }
.hero-art { display: block; width: 100%; height: auto; font-family: var(--font); }

/* Animacja grafiki głównej */
.ha-hub, .ha-node, .ha-ring, .ha-orbit { transform-box: fill-box; transform-origin: center; }
.ha-packet { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .blob-1 { animation: drift 16s ease-in-out infinite alternate; }
  .blob-2 { animation: drift 20s ease-in-out infinite alternate-reverse; }
  .ha-orbit { animation: spin 60s linear infinite; }
  .ha-orbit-2 { animation-duration: 40s; animation-direction: reverse; }
  .ha-link { animation: dash 1.6s linear infinite; }
  .ha-ring { animation: ring 3.2s ease-out infinite; }
  .ha-ring-2 { animation-delay: 1.6s; }
  .ha-hub { animation: breathe 3.2s ease-in-out infinite; }
  .ha-node { animation: float 6s ease-in-out infinite; }
  .ha-node-1 { animation-duration: 7s; animation-delay: -2s; }
  .ha-node-2 { animation-duration: 5.5s; animation-delay: -1s; }
  .ha-node-3 { animation-duration: 6.5s; animation-delay: -3s; }
  .ha-node-4 { animation-duration: 7.5s; animation-delay: -4s; }
  .ha-led { animation: blink 2.4s ease-in-out infinite; }
  .ha-packet { animation: travel 3.2s cubic-bezier(.5, 0, .5, 1) infinite; }
  .ha-packet-back { animation-direction: reverse; animation-delay: 1.6s; }
  .ha-packet-1 { animation-duration: 3.8s; }
  .ha-packet-2 { animation-duration: 2.9s; }
  .ha-packet-3 { animation-duration: 3.5s; }
  .ha-packet-4 { animation-duration: 4.1s; }
  .hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .12s; }
  .hero-copy > :nth-child(3) { animation-delay: .24s; }
  .hero-visual { animation: appear 1.2s .2s ease-out both; }
  .il-led { animation: blink 2.4s ease-in-out infinite; }
  .il-led-2 { animation-delay: .8s; }
  .il-led-3 { animation-delay: 1.6s; }
  .il-flow { animation: dash 1.4s linear infinite; }
}
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.15); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -28; } }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(2); opacity: 0; } }
@keyframes breathe { 50% { transform: scale(1.045); } }
@keyframes float { 50% { transform: translateY(-9px); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 12%, 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes appear { from { opacity: 0; transform: scale(.94); } }

/* Pojawianie się sekcji przy przewijaniu (klasy dodaje site.js) */
[data-reveal] { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].is-waiting { opacity: 0; transform: translateY(30px); }
[data-reveal].is-in { opacity: 1; transform: none; }
.cards > :nth-child(3n+2), .facts > :nth-child(3n+2), .steps > :nth-child(4n+2) { transition-delay: .1s; }
.cards > :nth-child(3n), .facts > :nth-child(3n), .steps > :nth-child(4n+3) { transition-delay: .2s; }
.steps > :nth-child(4n) { transition-delay: .3s; }

/* --- Sekcje --- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section > .wrap > h2 { margin-bottom: 1.2em; }
.page-head { padding-block: clamp(3rem, 7vw, 5rem); }
.page-head::after { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: var(--c1); filter: blur(110px); opacity: .45; top: -260px; right: -60px; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { max-width: 20ch; font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.page-head .lead { margin-bottom: 0; }
.crumbs { font-size: .95rem; margin-bottom: .9rem; }
.crumbs a { color: #fff; }

/* Karty usług */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(18.5rem, 1fr)); gap: 1.5rem; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s, box-shadow .25s, opacity .7s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(27, 35, 64, .05), 0 28px 50px -20px rgba(60, 50, 140, .42); }
.card-art { background: linear-gradient(140deg, color-mix(in srgb, var(--c1) 12%, #fff), color-mix(in srgb, var(--c2) 12%, #fff)); padding: 1.5rem 1.5rem 1rem; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.6rem 1.6rem; }
.card h3 { font-size: 1.4rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--muted); }
.card-more { margin-top: auto; padding-top: .6rem; font-weight: 650; color: var(--link); }
.card-more::after { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-left: .5rem; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); transition: margin .2s; }
.card:hover .card-more::after { margin-left: .9rem; }
.illu { display: block; width: 100%; height: auto; }
.illu-icon { aspect-ratio: 400 / 260; display: grid; place-items: center; color: var(--violet); }
.illu-icon .icon { width: 34%; height: auto; }

.checks { list-style: none; margin: .4rem 0 1.2rem; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: .45rem; }
.checks li::before { content: ""; position: absolute; left: .15rem; top: .42em; width: .95rem; height: .5rem; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.checks-cols { columns: 2 16rem; column-gap: 2.5rem; }
.checks-cols li { break-inside: avoid; }

/* Wyróżniki */
.band { position: relative; background: var(--night); color: var(--on-dark); padding-block: clamp(3rem, 7vw, 5rem); overflow: hidden; }
.band::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--c2); filter: blur(120px); opacity: .35; left: 50%; top: 40%; transform: translate(-50%, -50%); }
.facts { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.fact { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 1.6rem; }
.fact p { margin: 0; }
.fact-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--grad); color: #fff; margin-bottom: 1.1rem; }
.fact-icon .icon { width: 1.4rem; height: 1.4rem; stroke-width: 2.4; }
.fact .fact-value { font-family: var(--font-display); font-size: 1.45rem; font-weight: 720; color: #fff; letter-spacing: -.02em; margin-bottom: .35rem; }

/* Kroki */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 2rem 1.5rem; }
.steps li { counter-increment: step; position: relative; padding-top: 4.2rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--font-display); font-weight: 720; font-size: 1.2rem; box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--c1) 90%, transparent); }
.steps li::after { content: ""; position: absolute; top: 1.5rem; left: 3.6rem; right: -.9rem; border-top: 2px dashed color-mix(in srgb, var(--c1) 35%, #fff); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--muted); }

/* Zachęta do kontaktu */
.cta { padding-block: 0 clamp(3.5rem, 8vw, 6.5rem); }
.band + .cta, .section + .cta { margin-top: 0; }
.cta-panel { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; background: var(--grad); color: #E9E6FF; border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); box-shadow: 0 30px 60px -30px rgba(92, 70, 220, .8); }
.cta-panel::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .09); right: -110px; top: -150px; }
.cta-panel > * { position: relative; }
.cta-panel h2 { color: #fff; margin-bottom: .3em; max-width: 20ch; }
.cta-panel p { margin: 0; }
.cta-panel .actions { margin-top: 0; }
.cta-phone { font-family: var(--font-display); font-weight: 720; font-size: 1.3rem; color: #fff; text-decoration: none; white-space: nowrap; }
.cta-phone:hover { color: #fff; text-decoration: underline; }

/* --- Podstrony --- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.values { background: var(--card); border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow); }
.values h2, .aside-title { font-size: 1.3rem; }
.values dt { font-weight: 680; color: var(--text); margin-top: 1.1rem; padding-left: 1rem; border-left: 3px solid var(--violet); }
.values dd { color: var(--muted); padding-left: 1rem; border-left: 3px solid var(--tint); }
.about-grid aside .illu { background: linear-gradient(140deg, color-mix(in srgb, var(--c1) 12%, #fff), color-mix(in srgb, var(--c2) 12%, #fff)); border-radius: var(--radius); padding: 1.5rem; }
.aside-title { margin-top: 2rem; }
.plain-list { list-style: none; }
.plain-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); }

.service-row { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem 1.8rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 3.5vw, 2.4rem); margin-bottom: 1.5rem; }
.service-row h2 { font-size: 1.6rem; margin-bottom: .4em; }
.service-row h2 a { color: inherit; text-decoration: none; }
.service-row h2 a:hover { color: var(--link); }
.service-row p { max-width: 65ch; color: var(--muted); }
.service-row .link { font-weight: 650; }
.service-icon { width: 4rem; height: 4rem; border-radius: 18px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--c1) 90%, transparent); }
.service-icon .icon { width: 2rem; height: 2rem; }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.5rem; }
.quote { margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.quote-mark { width: 2.6rem; fill: var(--violet); opacity: .85; margin-bottom: 1rem; }
.quote blockquote { margin: 0; font-size: 1.15rem; line-height: 1.55; color: var(--text); }
.quote figcaption { margin-top: .8rem; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--text); }

/* --- Kontakt --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 1.3rem; margin-top: 1.5rem; }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; font-size: 1.1rem; color: var(--text); }
.contact-list div > span { display: block; font-size: .92rem; color: var(--muted); }
.contact-list a { color: var(--text); font-weight: 650; }
.contact-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--tint); color: var(--link); }
.contact-icon .icon { width: 1.45rem; height: 1.45rem; }
.form-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--text); margin-bottom: .3rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; color: var(--text); padding: .75rem .9rem; border: 1.5px solid #B4BAD0; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c1) 20%, transparent); }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field-error { color: var(--error); font-size: .95rem; margin: .3rem 0 0; }
.field label.check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; font-weight: 400; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: var(--violet); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.notice { padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1.2rem; }
.notice-ok { background: #E2F8EE; color: #0B5C3F; border: 1px solid #A5E0C6; }
.notice-error { background: #FDECEB; color: #8F1D17; border: 1px solid #F3BDB9; }

/* --- Stopka --- */
.site-footer { background: var(--night); color: var(--on-dark); padding-top: 3.5rem; font-size: .98rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem 3rem; }
.footer-name { font-family: var(--font-display); font-weight: 720; font-size: 1.15rem; color: #fff; margin-bottom: .4rem; }
.site-footer address { font-style: normal; }
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: .3rem; }
.footer-copy { margin-top: 2.5rem; padding-block: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .1); color: #8089B5; }

/* --- Mniejsze ekrany --- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .hero-visual { max-width: 30rem; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-row { flex-wrap: wrap; }
  .main-nav { width: 100%; margin-left: 0; flex-direction: column; align-items: stretch; gap: .8rem; padding-bottom: .5rem; }
  .main-nav ul { flex-direction: column; }
  .main-nav .btn { text-align: center; }
  .has-js .nav-toggle { display: block; }
  .has-js .main-nav { display: none; }
  .has-js .main-nav.is-open { display: flex; }
  .steps li::after { display: none; }
}
@media (max-width: 520px) {
  .field-pair, .footer-grid, .service-row { grid-template-columns: 1fr; }
}

/* --- Wersja 3: treści --- */
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-family: var(--font); font-size: .78rem; font-weight: 500; color: var(--on-dark); letter-spacing: 0; }
.hero-slogan { display: inline-block; font-weight: 650; color: #fff; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: .35rem 1rem; margin-bottom: 1.3rem; }
.hero h1 { max-width: 15ch; font-size: clamp(2.2rem, 5vw, 3.7rem); }

.section-flush { padding-top: 0; }
.intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.intro-grid h2 { margin: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2:first-child { margin-top: 0; }
.prose-cta { margin-top: 2rem; }

.audience { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 1.5rem; }
.audience li { position: relative; overflow: hidden; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.9rem 1.6rem 1.6rem; }
.audience li::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad); }
.audience h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.audience p { margin: 0; color: var(--muted); }

.faq-wrap { max-width: 860px; }
.faq details { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: .8rem; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; cursor: pointer; list-style: none; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.12rem; }
.faq summary::after { content: ""; flex: none; width: .6rem; height: .6rem; border-right: 2.5px solid var(--violet); border-bottom: 2.5px solid var(--violet); transform: rotate(45deg); transition: transform .2s; margin-top: -.3rem; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: .3rem; }
.faq-answer { padding: 0 1.4rem 1.2rem; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

.empty-note { grid-column: 1 / -1; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem 2rem; max-width: 70ch; margin: 0; }
.contact-sub { font-size: 1.3rem; margin-top: 2.5rem; }
.crumbs a { text-decoration-color: rgba(255, 255, 255, .4); }

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
}

/* --- Wersja 4: logo, zdjęcia, blog, własne podstrony --- */
.brand-logo { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.card-photo { aspect-ratio: 400 / 260; overflow: hidden; background: var(--tint); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card:hover .card-photo img { transform: scale(1.04); }
.post-card time { font-size: .92rem; color: var(--muted); margin-bottom: .4rem; }
.post-card h3 { font-size: 1.25rem; }
.more-row { margin: 2rem 0 0; }
.link-more { font-weight: 650; }
.link-more::after { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-left: .5rem; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); }
.link-back::after { display: none; }
.link-back::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .6rem; border-bottom: 2px solid; border-left: 2px solid; transform: rotate(45deg); }
.pager { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2.5rem; color: var(--muted); }
.pager a { font-weight: 650; }
.article { max-width: 780px; }
.article-cover { display: block; width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 2rem; box-shadow: var(--shadow); }
.article-lead { font-size: 1.25rem; color: var(--text); font-weight: 550; }
.aside-photo { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.quote figcaption { display: flex; align-items: center; gap: .9rem; }
.quote-photo { width: 3.2rem; height: 3.2rem; border-radius: 50%; object-fit: cover; flex: none; }

/* Treść z edytora wizualnego */
.prose img { display: block; max-width: 100%; height: auto; border-radius: 16px; margin: 1.5rem 0; }
.prose h3 { margin-top: 1.4em; font-size: 1.25rem; }
.prose h4 { margin: 1.3em 0 .5em; font-size: 1.1rem; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1em 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote { margin: 1.5rem 0; padding: .3rem 0 .3rem 1.3rem; border-left: 4px solid var(--c1); font-size: 1.12rem; color: var(--text); }
.prose blockquote p:last-child { margin-bottom: 0; }

/* Wyłączone animacje (ustawienie w panelu) */
.no-motion *, .no-motion *::before, .no-motion *::after { animation: none !important; transition: none !important; }
.no-motion [data-reveal].is-waiting { opacity: 1; transform: none; }

/* Menu z wieloma pozycjami: napisy nie łamią się w środku, a pozycje przechodzą do drugiego rzędu */
.main-nav ul { flex-wrap: wrap; justify-content: flex-end; }
.main-nav li a, .brand-text small { white-space: nowrap; }
.brand { flex: none; }
.brand-logo { max-width: 180px; height: 36px; width: auto; object-fit: contain; }
@media (max-width: 1100px) and (min-width: 901px) {
  .main-nav { gap: 1rem; }
  .main-nav li a { padding: .4rem .6rem; font-size: .98rem; }
}
.main-nav { gap: 1rem; }
.main-nav ul { gap: .1rem; }
.main-nav li a { padding: .45rem .7rem; }


/* ---------- WordPress ---------- */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 900px) { body.admin-bar .site-header { top: 0; } }
.main-nav li.current-menu-item > a, .main-nav li.current_page_parent > a, .main-nav li.current-menu-ancestor > a, .main-nav li.current_page_item > a { color: #fff; background: rgba(255, 255, 255, .12); }
.brand .custom-logo, .brand-logo { max-width: 180px; max-height: 40px; width: auto; height: auto; display: block; }
.prose img, .prose figure { max-width: 100%; height: auto; border-radius: 16px; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-size: .92rem; color: var(--muted); margin-top: .4rem; }
.prose ul, .prose ol { margin: 0 0 1em 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 4px solid var(--c1); color: var(--text); font-size: 1.1rem; }
.prose h3 { margin-top: 1.4em; }
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pager .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; margin-top: 2.5rem; }
.pager .page-numbers { display: inline-block; padding: .5rem .95rem; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; font-weight: 600; }
.pager .page-numbers.current { background: var(--grad); color: #fff; }
.card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.article-cover { display: block; width: 100%; height: auto; }
.quote-photo { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; margin-bottom: 1rem; }
.aside-photo { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.post-meta { color: var(--muted); font-size: .95rem; }
.contact-text { margin-top: 2.5rem; } .contact-text h2 { font-size: 1.3rem; } .footer-nav ul, ul.footer-nav { list-style: none; } .site-footer p { margin-top: .6rem; }
