/*
Theme Name: Komputery Tychy — Serwis (nowy)
Description: Nowa wersja motywu wizytówki komputery.tychy.pl. Zdjęcia wygenerowane w Higgsfield (SOUL V2).
Version: 2.1
Requires at least: 6.3
Text Domain: tychy-serwis
*/
/* Fonts hosted locally (SIL Open Font License) – no requests to Google. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(assets/fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(assets/fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(assets/fonts/space-grotesk-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(assets/fonts/space-grotesk-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #0b0f17;
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --ink: #0b1220;
  --ink-2: #4b5567;
  --line: #e3e7ef;
  --accent: #2f7cf6;
  --accent-2: #12c2e9;
  --warm: #ffb547;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(11, 18, 32, .25);
  --max: 1200px;
  --head-h: 76px;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font: "Inter", system-ui, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: var(--head-h); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--surface); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.clean { list-style: none; margin: 0; padding: 0; }
.muted { color: var(--ink-2); }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.flush-top { padding-top: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 12px; max-width: 20ch; }
.section-head p { color: var(--ink-2); max-width: 42ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; line-height: 1.2; transition: transform .2s, background .2s, box-shadow .2s; border: 1px solid transparent; cursor: pointer; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(47, 124, 246, .7); }
.btn-primary:hover { transform: translateY(-2px); background: #1f6ae6; }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; backdrop-filter: blur(6px); background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.header.scrolled { background: rgba(11, 15, 23, .85); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-size: 1.15rem; }
.logo b { font-weight: 700; }
.logo b span { opacity: .6; font-weight: 500; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.logo-mark .icon { width: 20px; height: 20px; }
.nav { display: flex; gap: 32px; color: rgba(255, 255, 255, .78); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: #fff; }
.header .btn { padding: 10px 18px; font-size: .92rem; }

/* Hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; color: #fff; background: var(--bg); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 15, 23, .96) 0%, rgba(11, 15, 23, .82) 38%, rgba(11, 15, 23, .2) 75%), linear-gradient(0deg, rgba(11, 15, 23, .9) 0%, transparent 35%); }
.hero-content { padding: 140px 0 96px; max-width: 660px; }
.hero .eyebrow { color: var(--accent-2); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 18px 0 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .78); max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-facts { display: flex; gap: 12px 28px; flex-wrap: wrap; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-facts li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.hero-facts .icon { width: 20px; height: 20px; color: var(--accent-2); }
.hero-sub { min-height: min(72vh, 640px); }
.hero-sub h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .7); }
.crumb:hover { color: #fff; }
.crumb .icon { width: 16px; height: 16px; }

/* Page head (guides, pages, 404) */
.page-head { background: radial-gradient(1200px 400px at 80% 0%, rgba(47, 124, 246, .25), transparent 60%), var(--bg); color: #fff; padding: calc(var(--head-h) + 64px) 0 64px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 18px; max-width: 22ch; }
.page-head .eyebrow { color: var(--accent-2); }

/* Home services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg); color: #fff; min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; box-shadow: var(--shadow); }
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.service::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 12, 20, .95) 10%, rgba(8, 12, 20, .35) 55%, rgba(8, 12, 20, .05)); }
.service:hover img { transform: scale(1.05); }
.service-body { padding: 28px; }
.service-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); margin-bottom: 18px; }
.service-icon .icon { width: 22px; height: 22px; }
.service h3 { font-size: 1.5rem; margin-bottom: 8px; }
.service p { color: rgba(255, 255, 255, .75); }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; }
.service .more { color: var(--accent-2); }
.more .icon { width: 16px; height: 16px; transition: transform .2s; }
a:hover .more .icon { transform: translateX(4px); }

.symptoms { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.symptoms > span { font-weight: 600; color: var(--ink-2); margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 500; font-size: .95rem; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--accent); background: #fff; }
.chip .icon { width: 18px; height: 18px; color: var(--accent); }

/* Service subpage features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 32px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-bottom: 22px; }
.feature-icon .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 1.35rem; margin-bottom: 8px; }
.feature p { color: var(--ink-2); }

/* Process */
.process { background: var(--bg); color: #fff; }
.process .section-head p { color: rgba(255, 255, 255, .65); }
.process .eyebrow { color: var(--accent-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .08); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; background: linear-gradient(180deg, var(--accent-2), rgba(18, 194, 233, .15)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 18px; }
.step h3 { font-size: 1.2rem; }
.step p { color: rgba(255, 255, 255, .65); margin-top: 8px; }

/* Split (custom PC) */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.badge { position: absolute; left: -16px; bottom: 28px; background: #fff; border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; font-weight: 600; }
.badge-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.badge-icon .icon { width: 20px; height: 20px; }
.badge small { display: block; color: var(--ink-2); font-weight: 500; }
.split h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0 16px; }
.split .lead { color: var(--ink-2); font-size: 1.1rem; }
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 32px; }
.use { padding: 18px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.use .icon { width: 22px; height: 22px; color: var(--accent); margin-bottom: 10px; display: block; }
.use strong { display: block; font-family: var(--font-head); }
.use span { font-size: .9rem; color: var(--ink-2); }

/* Workshop banner */
.workshop { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; min-height: 420px; display: flex; align-items: flex-end; isolation: isolate; }
.workshop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.workshop::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 12, 20, .9), rgba(8, 12, 20, .2) 70%); }
.workshop-body { padding: clamp(28px, 5vw, 56px); max-width: 560px; }
.workshop .eyebrow { color: var(--warm); }
.workshop h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 12px 0; }
.workshop p { color: rgba(255, 255, 255, .78); margin-bottom: 24px; }

/* Guides */
.guides-section { background: var(--surface-2); }
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.guide:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.guide img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.guide-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.guide-tag { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.guide h3 { font-size: 1.25rem; }
.guide .more { margin-top: auto; }

.related { padding: 48px 0; }
.related-card { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.related-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.related-card img { height: 100%; min-height: 150px; object-fit: cover; }
.related-card > div { padding: 24px 24px 24px 0; }
.related-card h3 { font-size: 1.35rem; margin-top: 8px; }
.related-card .more { margin-top: 12px; }

/* Guide reading */
.reading-section { padding-top: 56px; }
.reading { max-width: 780px; }
.reading-img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin: 0 0 40px; box-shadow: var(--shadow); }
.reading-step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.reading-num { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--accent); }
.reading-step h2 { font-size: 1.45rem; margin-bottom: 10px; }
.reading-step p { color: var(--ink-2); font-size: 1.05rem; }
.reading-cta { margin-top: 32px; padding: 28px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.reading-cta strong { display: block; font-family: var(--font-head); font-size: 1.2rem; }
.reading-cta span { color: var(--ink-2); }
.entry > * + * { margin-top: 1em; }
.entry a { color: var(--accent); text-decoration: underline; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-grid h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 12px; }
.faq-grid .muted { margin-top: 16px; }
.faq { margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 1.3rem; font-weight: 400; transition: transform .25s, background .25s, color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq details p { color: var(--ink-2); padding: 0 48px 24px 0; }
.faq-home { display: block; }
.faq-home > div { display: grid; grid-template-columns: 1fr 1.4fr; column-gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-home > div > :not(.faq) { grid-column: 1; }
.faq-home .faq { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }

/* Contact */
.contact { background: var(--bg); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.contact-card { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: linear-gradient(160deg, #15203a, #0f1626); border: 1px solid rgba(255, 255, 255, .08); color: #fff; }
.contact-card .eyebrow { color: var(--accent-2); }
.contact-card h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 12px 0 24px; }
.lead-light { color: rgba(255, 255, 255, .7); margin: -8px 0 16px; }
.contact-list li { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.contact-list li:first-child { border-top: 0; }
.contact-list .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; flex: none; }
.contact-list .icon { width: 20px; height: 20px; color: var(--accent-2); }
.contact-list small { display: block; color: rgba(255, 255, 255, .55); font-size: .82rem; }
.contact-list a, .contact-list strong { font-weight: 600; font-size: 1.08rem; word-break: break-word; }
.contact-list a:hover { color: var(--accent-2); }
.contact-card .btn { margin-top: 28px; }
.contact-card .note { margin-top: 18px; font-size: .9rem; color: rgba(255, 255, 255, .55); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 420px; border: 1px solid rgba(255, 255, 255, .08); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.3) contrast(1.05); display: block; }
.map { display: grid; background: radial-gradient(600px 300px at 70% 20%, rgba(47, 124, 246, .18), transparent 70%), #0f1626; }
.map-consent { align-self: center; justify-self: center; text-align: center; max-width: 380px; padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.map-consent > .icon { width: 40px; height: 40px; color: var(--accent-2); }
.map-consent strong { font-family: var(--font-head); font-size: 1.2rem; }
.map-consent p { color: rgba(255, 255, 255, .6); font-size: .9rem; }
.map-consent .btn { margin-top: 8px; font-family: inherit; }
.map-alt { font-size: .9rem; color: rgba(255, 255, 255, .7); text-decoration: underline; }
.map-alt:hover { color: #fff; }

/* Footer */
.footer { background: #070a10; color: rgba(255, 255, 255, .6); padding: 36px 0; font-size: .92rem; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a:hover { color: #fff; }

/* Mobile call bar */
.callbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; gap: 8px; padding: 8px; border-radius: 18px; background: rgba(11, 15, 23, .9); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.callbar .btn { flex: 1; justify-content: center; padding: 13px 10px; }

/* Reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .services, .features { grid-template-columns: 1fr 1fr; }
  .services .service:last-child, .features .feature:last-child { grid-column: span 2; }
  .services .service:last-child { min-height: 360px; }
  .guides { grid-template-columns: 1fr 1fr; }
  .split, .faq-grid, .contact-grid, .faq-home > div { grid-template-columns: 1fr; }
  .faq-home .faq { grid-column: 1; grid-row: auto; margin-top: 24px; }
}
@media (max-width: 720px) {
  .nav, .header .btn { display: none; }
  .callbar { display: flex; }
  .footer { padding-bottom: 100px; }
  .services, .features, .guides, .steps { grid-template-columns: 1fr; }
  .services .service:last-child, .features .feature:last-child { grid-column: auto; }
  .service { min-height: 380px; }
  .uses { grid-template-columns: 1fr; }
  .hero, .hero-sub { min-height: auto; }
  .hero::before { background: linear-gradient(0deg, rgba(11, 15, 23, .98) 25%, rgba(11, 15, 23, .55) 100%); }
  .hero-content { padding: 120px 0 64px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .badge { left: 12px; bottom: 12px; }
  .faq details p { padding-right: 0; }
  .map, .map iframe { min-height: 320px; }
  .related-card { grid-template-columns: 1fr; }
  .related-card img { aspect-ratio: 16 / 9; min-height: 0; }
  .related-card > div { padding: 0 24px 24px; }
  .reading-step { grid-template-columns: 1fr; gap: 6px; }
}
