/* ════════════════════════════════════════════════════════════
   Smartyka – arkusz stylów
   Kolory i typografia: patrz zmienne w :root
   ════════════════════════════════════════════════════════════ */

/* ── Czcionki (lokalnie, bez Google Fonts – zgodnie z RODO) ── */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/manrope-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/manrope-latin-wght-normal.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: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/instrument-serif-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/instrument-serif-latin-400-normal.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: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/instrument-serif-latin-ext-400-italic.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/instrument-serif-latin-400-italic.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; }

/* ── Zmienne ── */
:root {
  --ink: #0b0d10;
  --ink-2: #12151a;
  --ink-3: #1a1e25;
  --line: rgb(255 255 255 / .08);
  --amber: #f5a524;
  --amber-soft: #ffd38a;
  --paper: #f6f3ee;
  --white-70: rgb(255 255 255 / .7);
  --white-60: rgb(255 255 255 / .6);
  --white-45: rgb(255 255 255 / .45);
  --red: #fca5a5;
  --sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --radius: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 72px;
}

/* ── Reset / podstawy ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: #fff; font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.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: 16px; top: -100px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-xl { width: 56px; height: 56px; stroke-width: 1.6; color: var(--amber); }
.accent { color: var(--amber); }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; }

/* ── Przyciski ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-size: 14px; font-weight: 700; border: 1px solid transparent; cursor: pointer; transition: background .3s, border-color .3s, transform .3s var(--ease), color .3s; white-space: nowrap; }
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 8px 30px -8px rgb(245 165 36 / .6); }
.btn-primary:hover { background: var(--amber-soft); transform: translateY(-2px); }
.btn-ghost { border-color: rgb(255 255 255 / .15); color: #fff; }
.btn-ghost:hover { border-color: rgb(255 255 255 / .4); background: rgb(255 255 255 / .05); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; }
.btn-lg { padding: 17px 24px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ── Nagłówek ── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .5s, border-color .5s, backdrop-filter .5s; border-bottom: 1px solid transparent; }
.site-header.scrolled, body.menu-open .site-header { background: rgb(11 13 16 / .85); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.logo-mark { width: 32px; height: 32px; color: #fff; }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 32px; font-size: 14px; color: var(--white-70); }
.main-nav a { transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.header-cta { display: none; align-items: center; gap: 20px; }
.header-mail { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--white-70); }
.header-mail:hover { color: #fff; }
.menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; z-index: 49; inset: var(--header-h) 0 auto; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: var(--ink); padding: 24px; overflow-y: auto; animation: menuIn .25s var(--ease); }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { margin-bottom: 32px; }
.mobile-menu li a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 24px; font-weight: 700; }
.mobile-menu .btn { margin-top: 12px; padding: 16px; font-size: 16px; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } }
@media (min-width: 1024px) {
  .main-nav, .header-cta { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ── Wspólne elementy sekcji ── */
.section { position: relative; padding: 96px 0; overflow: hidden; }
@media (min-width: 768px) { .section { padding: 128px 0; } }
.section-border { border-top: 1px solid var(--line); }
.section-light { background: var(--paper); color: var(--ink); }
.section-head { max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: rgb(255 255 255 / .55); }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--amber); }
.section-light .eyebrow { color: rgb(11 13 16 / .6); }
h2 { font-size: clamp(36px, 5vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
.lead { margin-top: 20px; font-size: 18px; color: var(--white-60); }
.section-light .lead { color: rgb(11 13 16 / .6); }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(to right, rgb(255 255 255 / .045) 1px, transparent 1px), linear-gradient(to bottom, rgb(255 255 255 / .045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); pointer-events: none; }
.glow { position: absolute; border-radius: 50%; background: rgb(245 165 36 / .1); filter: blur(120px); pointer-events: none; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding: 128px 0 80px; }
@media (min-width: 768px) { .hero { padding: 160px 0 112px; } }
.glow-hero { top: -160px; right: 0; width: 520px; height: 520px; }
.hero-grid { position: relative; display: grid; gap: 64px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } }
.hero h1 { font-size: clamp(44px, 7vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; }
.pill { display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 24px; padding: 6px 16px; border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .03); border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0; color: var(--white-70); }
.dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--amber); }
.hero-line { display: block; }
.hero-lead { margin-top: 24px; max-width: 576px; font-size: 18px; line-height: 1.7; color: rgb(255 255 255 / .65); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--white-45); }
.hero-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 512px; margin: 56px 0 0; padding-top: 32px; border-top: 1px solid var(--line); }
.hero-highlights dt { font-size: 20px; font-weight: 700; }
.hero-highlights dd { margin: 4px 0 0; font-size: 13px; line-height: 1.35; color: rgb(255 255 255 / .5); }

/* panel demonstracyjny */
.dashboard-wrap { position: relative; width: 100%; max-width: 448px; margin: 0 auto; }
.dashboard-wrap::before { content: ''; position: absolute; inset: -40px; border-radius: 50%; background: rgb(245 165 36 / .2); filter: blur(60px); }
.dashboard { position: relative; padding: 20px; border: 1px solid rgb(255 255 255 / .1); border-radius: 28px; background: rgb(18 21 26 / .8); backdrop-filter: blur(24px); box-shadow: 0 25px 50px -12px rgb(0 0 0 / .5); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.dash-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--white-60); }
.dash-home { display: inline-flex; align-items: center; gap: 8px; }
.dash-online { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgb(52 211 153 / .1); color: #6ee7b7; font-size: 12px; }
.dash-online i { width: 6px; height: 6px; border-radius: 50%; background: #6ee7b7; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.dash-rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.dash-tile, .dash-energy, .dash-scene { border: 1px solid rgb(255 255 255 / .05); background: rgb(255 255 255 / .03); border-radius: 16px; }
.dash-tile { padding: 12px; }
.t-ico { display: block; width: 16px; height: 16px; color: rgb(255 255 255 / .3); }
.t-ico.on { color: var(--amber); }
.dash-tile b { display: block; margin-top: 12px; font-size: 20px; }
.dash-tile small { font-size: 12px; color: rgb(255 255 255 / .5); }
.dash-energy { margin-top: 10px; padding: 16px; }
.dash-energy-head { display: flex; justify-content: space-between; font-size: 12px; color: rgb(255 255 255 / .5); }
.dash-energy-head .ok { color: #6ee7b7; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; margin-top: 16px; }
.bars i { flex: 1; height: var(--h); border-radius: 3px; background: linear-gradient(to top, rgb(245 165 36 / .3), var(--amber)); transform-origin: bottom; animation: grow .9s var(--ease) both; }
.bars i:nth-child(n) { animation-delay: calc(.6s + var(--i, 0) * 50ms); }
@keyframes grow { from { transform: scaleY(0); } }
.dash-scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.dash-scene { display: flex; justify-content: space-between; align-items: center; padding: 12px; font-size: 12px; color: var(--white-70); }
.switch { position: relative; width: 36px; height: 20px; border-radius: 999px; background: rgb(255 255 255 / .15); }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.switch.on { background: var(--amber); }
.switch.on::after { left: 18px; }

/* ── Karty ── */
.card { position: relative; border-radius: var(--radius); background: #fff; border: 1px solid rgb(11 13 16 / .07); }
.offer-grid { display: grid; gap: 20px; margin-top: 56px; }
@media (min-width: 768px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .offer-grid { grid-template-columns: repeat(3, 1fr); } }
.offer-card { display: flex; flex-direction: column; padding: 20px 20px 28px; transition: transform .4s var(--ease), box-shadow .4s; }
.offer-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .25); }
.card-media { overflow: hidden; border-radius: 16px; background: var(--ink); }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s var(--ease); }
.offer-card:hover .card-media img { transform: scale(1.04); }
.offer-card h3 { margin: 24px 8px 0; font-size: 20px; font-weight: 700; }
.offer-card > p { margin: 12px 8px 0; font-size: 15px; line-height: 1.65; color: rgb(11 13 16 / .6); }
.checklist { margin: 20px 8px 0; padding-top: 20px; border-top: 1px solid rgb(11 13 16 / .07); display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 26px; font-size: 14px; color: rgb(11 13 16 / .75); }
.checklist li::before { content: ''; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; background: var(--amber); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.card-link { align-self: flex-start; margin: auto 8px 0; padding-top: 24px; font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.card-link:hover { text-decoration-color: var(--ink); }

.install-bar { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; padding: 28px; border-radius: var(--radius); background: var(--ink); color: #fff; }
@media (min-width: 768px) { .install-bar { flex-direction: row; align-items: center; padding: 36px; } }
.install-ico, .commit-ico, .ci-ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 16px; }
.install-ico { background: var(--amber); color: var(--ink); }
.install-title { font-size: 18px; font-weight: 700; }
.install-bar p + p { margin-top: 4px; color: var(--white-60); }

.cta-band { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 24px; margin-top: 64px; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); }
@media (min-width: 768px) { .cta-band { flex-direction: row; align-items: center; padding: 40px; } }
.cta-band .btn { flex-shrink: 0; }
.cta-title { font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; }
.cta-band p + p { margin-top: 8px; color: rgb(255 255 255 / .55); }
.cta-band-light { background: #fff; border-color: rgb(11 13 16 / .1); }
.cta-band-light p + p { color: rgb(11 13 16 / .6); }

/* ── O nas ── */
.two-col { display: grid; gap: 64px; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; } }
#o-nas::before { content: ''; position: absolute; top: 0; left: 50%; width: 66%; height: 1px; transform: translateX(-50%); background: linear-gradient(to right, transparent, rgb(245 165 36 / .4), transparent); }
#o-nas .lead { line-height: 1.7; color: rgb(255 255 255 / .65); }
.values { display: grid; gap: 12px; margin-top: 32px; }
.values li { display: flex; gap: 12px; color: rgb(255 255 255 / .8); }
.values .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--amber); }
.steps-wrap { position: relative; }
.steps-line { position: absolute; top: 24px; bottom: 24px; left: 19px; width: 1px; background: rgb(255 255 255 / .1); }
.steps-line i { display: block; width: 1px; height: 0; background: var(--amber); }
.steps { display: grid; gap: 24px; }
.steps li { position: relative; display: flex; gap: 24px; }
.step-no { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid rgb(245 165 36 / .4); border-radius: 50%; background: var(--ink); color: var(--amber); font-size: 14px; font-weight: 700; }
.step-card { flex: 1; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); }
.step-title { font-size: 18px; font-weight: 700; }
.step-card p + p { margin-top: 6px; color: var(--white-60); }

/* ── Realizacje ── */
.projects-grid { display: grid; gap: 20px; margin-top: 56px; }
@media (min-width: 768px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.project-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.04); }
.badge { position: absolute; top: 16px; left: 16px; padding: 4px 12px; border-radius: 999px; background: rgb(11 13 16 / .7); backdrop-filter: blur(8px); font-size: 12px; color: var(--white-70); }
.project-body { padding: 24px; }
.project-tag { display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--white-45); }
.project-tag .ic { width: 14px; height: 14px; }
.project-body h3 { margin-top: 8px; font-size: 18px; font-weight: 700; line-height: 1.4; }

/* ── Dlaczego my ── */
.commit-grid { display: grid; gap: 20px; margin-top: 56px; }
@media (min-width: 640px) { .commit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .commit-grid { grid-template-columns: repeat(4, 1fr); } }
.commit-card { padding: 28px; }
.commit-ico { width: 44px; height: 44px; border-radius: 12px; background: rgb(245 165 36 / .15); }
.commit-card h3 { margin-top: 20px; font-size: 18px; font-weight: 700; }
.commit-card p { margin-top: 8px; font-size: 15px; color: rgb(11 13 16 / .6); }

/* ── FAQ ── */
.faq-grid { display: grid; gap: 56px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: .8fr 1.2fr; } }
.faq-grid .btn { margin-top: 32px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: 18px; font-weight: 700; cursor: pointer; list-style: none; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--amber); }
.faq-ico { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid rgb(255 255 255 / .15); border-radius: 50%; transition: transform .3s var(--ease), background .3s, border-color .3s, color .3s; }
.faq-list details[open] .faq-ico { transform: rotate(45deg); background: var(--amber); border-color: var(--amber); color: var(--ink); }
.faq-list details p { padding: 0 56px 24px 0; line-height: 1.7; color: var(--white-60); }
.faq-list details[open] p { animation: faqIn .35s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ── Kontakt ── */
.glow-contact { bottom: -160px; left: -160px; width: 500px; height: 500px; }
.contact-grid { position: relative; display: grid; gap: 56px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-info { display: grid; gap: 16px; margin-top: 40px; }
.contact-info li > a, .contact-info li > span:first-child:not(.ci-ico) { display: flex; }
.contact-info li { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); transition: border-color .3s; }
.contact-info li:has(a) { padding: 0; }
.contact-info li > a { flex: 1; align-items: center; gap: 16px; padding: 20px; }
.contact-info li:has(a):hover { border-color: rgb(245 165 36 / .4); }
.ci-ico { width: 44px; height: 44px; border-radius: 12px; background: rgb(255 255 255 / .05); color: var(--white-70); }
.ci-ico-accent { background: rgb(245 165 36 / .15); color: var(--amber); }
.contact-info small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--white-45); }
.contact-info b { font-weight: 700; }

.form-card { padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: rgb(18 21 26 / .8); backdrop-filter: blur(8px); }
@media (min-width: 768px) { .form-card { padding: 36px; } }
#contact-form { display: grid; gap: 20px; }
#contact-form[hidden] { display: none; }
.topics { margin: 0; padding: 0; border: 0; }
.topics legend, .field > label:not(.consent) { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: rgb(255 255 255 / .8); }
.topics legend { margin-bottom: 12px; }
.opt { font-weight: 400; color: rgb(255 255 255 / .4); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 16px; border: 1px solid rgb(255 255 255 / .1); border-radius: 999px; font-size: 14px; color: var(--white-70); transition: all .2s; }
.chip:hover span { border-color: rgb(255 255 255 / .3); }
.chip input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid rgb(255 255 255 / .1); border-radius: 16px; background: rgb(255 255 255 / .03); color: #fff; transition: border-color .2s, background .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: rgb(255 255 255 / .3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: rgb(255 255 255 / .05); }
.field [aria-invalid="true"] { border-color: rgb(252 165 165 / .6) !important; }
.field-error { margin-top: 6px; font-size: 14px; color: var(--red); }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--white-60); cursor: pointer; }
.consent input { width: 16px; height: 16px; margin-top: 4px; flex-shrink: 0; accent-color: var(--amber); }
.consent a { text-decoration: underline; }
.consent a:hover { color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 12px; border-radius: 12px; background: rgb(239 68 68 / .1); color: #fecaca; font-size: 14px; }
.form-alert a { text-decoration: underline; }
.form-note { text-align: center; font-size: 12px; color: rgb(255 255 255 / .4); }
.form-note a { text-decoration: underline; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid rgb(11 13 16 / .3); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 420px; text-align: center; animation: faqIn .4s var(--ease); }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.success-title { margin-top: 20px; font-size: 24px; font-weight: 700; }
.form-success p + p { margin-top: 8px; color: var(--white-60); }
.link-btn { margin-top: 32px; background: none; border: 0; font-size: 14px; color: var(--white-60); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link-btn:hover { color: #fff; }

/* ── Stopka ── */
.site-footer { padding: 56px 0 112px; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .site-footer { padding-bottom: 56px; } }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-tagline { max-width: 320px; margin-top: 16px; font-size: 14px; color: rgb(255 255 255 / .5); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 14px; color: var(--white-60); }
.footer-nav a:hover, .footer-contact a:hover, .footer-bottom a:hover { color: #fff; }
.footer-contact { font-size: 14px; color: var(--white-60); }
.footer-contact p + p { margin-top: 4px; }
.footer-head { margin-bottom: 8px; font-weight: 700; color: #fff; }
.footer-bottom { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: rgb(255 255 255 / .4); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }

/* ── Pasek akcji na telefonie ── */
.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: rgb(11 13 16 / .9); backdrop-filter: blur(18px); transform: translateY(120%); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .5s; }
.mobile-cta.show { transform: none; opacity: 1; pointer-events: auto; }
.mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1px solid rgb(255 255 255 / .1); border-radius: 12px; font-size: 14px; font-weight: 700; }
.mobile-cta a.primary { background: var(--amber); border-color: var(--amber); color: var(--ink); }
@media (min-width: 1024px) { .mobile-cta { display: none; } }

/* ── Animacje wejścia (włączane przez script.js) ── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

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