:root {
  --bg: #071426;
  --bg-2: #0b1e35;
  --paper: #f4f7fb;
  --white: #ffffff;
  --text: #edf5ff;
  --muted: #b4c7dc;
  --dark: #142133;
  --dark-muted: #5d6d80;
  --blue: #42b8ff;
  --blue-2: #79d1ff;
  --gold: #e8b765;
  --line: rgba(237,245,255,0.16);
  --shadow: 0 24px 70px rgba(0,0,0,0.32);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
[id] { scroll-margin-top: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(121,209,255,0.55); outline-offset: 3px; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--paper); color: var(--dark); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.container { width: min(100% - 40px, 1180px); margin: 0 auto; }
.narrow { width: min(100% - 40px, 860px); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7,20,38,0.95); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.brand-mark { width: 46px; height: 46px; border: 1px solid rgba(121, 209, 255, 0.5); border-radius: 14px; display: grid; place-items: center; color: var(--blue-2); font-weight: 900; letter-spacing: -0.04em; background: linear-gradient(145deg, rgba(66,184,255,0.18), rgba(232,183,101,0.08)); flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 16px; letter-spacing: 0.01em; }
.brand-text small { color: var(--muted); font-size: 12px; }
.main-nav { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 14px; }
.main-nav a:hover { color: var(--white); }
.nav-cta { color: var(--bg) !important; background: var(--blue-2); padding: 10px 16px; border-radius: 999px; font-weight: 800; }
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--text); margin: 6px 0; transition: .2s ease; }

.hero { position: relative; min-height: 720px; overflow: hidden; background: var(--bg); color: var(--text); }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,20,38,0.99) 0%, rgba(7,20,38,0.94) 38%, rgba(7,20,38,0.56) 72%, rgba(7,20,38,0.86) 100%), url('/assets/hero-smart-home.png') center right / cover no-repeat; transform: scale(1.02); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(0deg, var(--paper), rgba(244,247,251,0.82), transparent); }
.hero-grid { position: relative; z-index: 2; min-height: 720px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.54fr); align-items: center; gap: 46px; padding: 62px 0 108px; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-2); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow::before, .section-kicker::before { content: ""; width: 34px; height: 2px; background: var(--blue); }
h1, h2, h3 { line-height: 1.08; margin: 0; }
h1 { margin-top: 18px; font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.055em; max-width: 820px; }
.lead { max-width: 760px; margin: 24px 0 0; font-size: 18.5px; line-height: 1.62; color: #d7e7fa; }
.lead-secondary { margin-top: 10px; color: #c4d7eb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 900; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #06111f; box-shadow: 0 14px 34px rgba(66,184,255,0.26); }
.btn.secondary { border-color: rgba(237,245,255,0.28); color: var(--text); background: rgba(255,255,255,0.06); }
.btn.text-btn { margin-top: 24px; border: 1px solid var(--line); background: rgba(255,255,255,0.06); color: var(--text); }
.btn.full { width: 100%; border: 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; color: var(--muted); }
.trust-row span { border: 1px solid var(--line); background: rgba(255,255,255,0.05); padding: 8px 12px; border-radius: 999px; }
.hero-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(7,20,38,0.82); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.status-pill { display: inline-flex; color: #6dffb1; background: rgba(109,255,177,0.1); border: 1px solid rgba(109,255,177,0.22); padding: 7px 11px; border-radius: 999px; font-size: 13px; margin-bottom: 20px; }
.hero-card h2 { font-size: 28px; }
.hero-card ul { padding: 0; margin: 20px 0 0; list-style: none; }
.hero-card li { padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); position: relative; color: #dcecff; }
.hero-card li::before { content: "✓"; position: absolute; left: 0; color: var(--blue-2); font-weight: 900; }
.hero-card li:last-child { border-bottom: 0; }

.section { padding: 88px 0; }
.intro-section { background: var(--paper); padding-top: 54px; }
.section-head { max-width: 920px; margin-bottom: 38px; }
.section-head.compact { margin-bottom: 26px; }
.section-head h2, .split-grid h2, .image-band h2, .contact-section h2, .side-cta h2 { margin-top: 14px; font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.045em; }
.section-head p, .split-grid p, .image-band p, .contact-section p, .side-cta p { color: var(--dark-muted); font-size: 18px; line-height: 1.65; margin-top: 18px; }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid #e6edf5; box-shadow: 0 20px 60px rgba(18,32,51,0.06); display: flex; flex-direction: column; min-height: 304px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.service-card:hover { transform: translateY(-3px); border-color: rgba(66,184,255,0.36); box-shadow: 0 28px 80px rgba(18,32,51,0.10); }
.icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #07243b; font-weight: 900; font-size: 13px; background: linear-gradient(145deg, rgba(66,184,255,0.24), rgba(232,183,101,0.32)); margin-bottom: 22px; }
.service-card h3 { font-size: 22px; letter-spacing: -0.02em; }
.service-card p { color: var(--dark-muted); margin: 12px 0 0; line-height: 1.58; }
.card-link { margin-top: auto; color: #0e73ad; font-weight: 900; padding-top: 18px; }
.card-link::after { content: " →"; }

.dark { background: var(--bg); color: var(--text); }
.dark p { color: var(--muted); }
.split-grid { display: grid; grid-template-columns: 0.92fr 1fr; gap: 58px; align-items: center; }
.feature-list { display: grid; gap: 16px; }
.feature-list div { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,0.05); }
.feature-list strong { display: block; color: var(--blue-2); margin-bottom: 6px; }
.feature-list span { color: #d2e2f5; line-height: 1.5; }

.audience-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.audience-grid article { padding: 28px; background: #fff; border: 1px solid #e6edf5; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(18,32,51,0.06); }
.audience-grid h3 { font-size: 24px; }
.audience-grid p { color: var(--dark-muted); line-height: 1.55; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 26px; background: #fff; border: 1px solid #e6edf5; border-radius: var(--radius); }
.step span { color: var(--blue); font-weight: 900; font-size: 14px; }
.step h3 { margin-top: 14px; font-size: 22px; }
.step p { color: var(--dark-muted); margin: 12px 0 0; line-height: 1.55; }

.image-band { background: linear-gradient(135deg, #081528, #102a49); color: var(--text); overflow: hidden; }
.image-band-grid { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 48px; align-items: center; }
.image-band p { color: #c7d8ea; }
.image-band img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.area-box { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid #e6edf5; box-shadow: 0 20px 60px rgba(18,32,51,0.06); }
.area-box strong { font-size: 22px; }
.area-box p { margin-bottom: 0; }

.contact-section { padding: 88px 0; background: #fff; }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 54px; align-items: start; }
.contact-details { margin-top: 28px; padding: 22px; background: #f2f6fb; border-radius: 18px; }
.contact-details p { margin: 8px 0; font-size: 16px; }
.contact-details a { color: #0e73ad; font-weight: 800; }
.contact-form { padding: 30px; border-radius: var(--radius); background: var(--bg); color: var(--text); box-shadow: var(--shadow); }
.contact-form label { display: block; font-weight: 700; margin-bottom: 16px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; margin-top: 7px; border: 1px solid rgba(237,245,255,0.16); border-radius: 14px; padding: 13px 14px; background: rgba(255,255,255,0.07); color: var(--text); outline: none; }
.contact-form select option { color: #071426; background: #fff; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(66,184,255,0.12); }
.contact-form .check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-weight: 500; }
.contact-form .check input { width: auto; margin-top: 5px; }
.hidden { display: none; }

.sub-hero { position: relative; color: var(--text); background: var(--bg); overflow: hidden; }
.sub-hero-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,20,38,.98), rgba(7,20,38,.88), rgba(7,20,38,.7)), url('/assets/hero-smart-home.png') center / cover no-repeat; opacity: .95; }
.sub-hero-inner { position: relative; z-index: 2; padding: 104px 0 86px; }
.sub-hero h1 { max-width: 900px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.detail-content { display: grid; gap: 22px; }
.detail-panel { background: #fff; border: 1px solid #e6edf5; border-radius: var(--radius); padding: 32px; box-shadow: 0 20px 60px rgba(18,32,51,.06); }
.detail-panel h2 { font-size: 30px; letter-spacing: -0.03em; }
.detail-panel ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.detail-panel li { position: relative; padding-left: 30px; color: var(--dark-muted); line-height: 1.55; }
.detail-panel li::before { content: "✓"; position: absolute; left: 0; color: #0e73ad; font-weight: 900; }
.side-cta { position: sticky; top: 104px; background: var(--bg); color: var(--text); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.side-cta h2 { font-size: 30px; }
.side-cta p { color: var(--muted); }
.side-contact { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.side-contact a { color: var(--blue-2); font-weight: 800; }
.more-section { padding-top: 20px; }
.mini-links { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.mini-link { padding: 18px; background: #fff; border: 1px solid #e6edf5; border-radius: 18px; font-weight: 800; color: var(--dark); display: flex; gap: 12px; align-items: center; }
.mini-link span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #eaf6ff; color: #0e73ad; font-size: 12px; flex: 0 0 auto; }
.simple-page { padding: 96px 0; }
.simple-page h1 { color: var(--dark); }
.simple-page h2 { margin-top: 36px; font-size: 28px; }
.simple-page p { line-height: 1.7; color: var(--dark-muted); font-size: 18px; }
.simple-page a { color: #0e73ad; font-weight: 800; }

.site-footer { background: #050d18; color: var(--muted); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-inner a { margin-left: 18px; color: #d7e7fa; }
.thank-you { min-height: 100vh; display: grid; place-items: center; background: var(--bg); color: var(--text); padding: 40px; text-align: center; }
.thank-you .box { max-width: 680px; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.05); }
.thank-you h1 { font-size: clamp(36px, 5vw, 58px); }
.thank-you p { color: var(--muted); font-size: 18px; }
.thank-you .brand-mark { margin: 0 auto 20px; }

@media (max-width: 1120px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-links { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 980px) {
  html { scroll-padding-top: 82px; }
  [id] { scroll-margin-top: 0; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 20px; right: 20px; top: 78px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px; border-radius: 18px; background: rgba(7,20,38,0.99); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 10px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; text-align: center; margin-top: 8px; }
  .hero-grid, .split-grid, .image-band-grid, .contact-grid, .detail-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 620px; }
  .hero-grid { align-items: start; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: 1fr; }
  .side-cta { position: static; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  [id] { scroll-margin-top: 0; }
  .container { width: min(100% - 28px, 1180px); }
  .brand-text small { display: none; }
  .hero { min-height: auto; }
  .hero-bg { background-position: center; opacity: 0.95; }
  .hero-grid { min-height: auto; padding: 48px 0 76px; }
  h1 { font-size: clamp(34px, 10.8vw, 44px); letter-spacing: -0.045em; }
  .lead { font-size: 16.5px; line-height: 1.56; }
  .lead-secondary { margin-top: 8px; }
  .eyebrow, .section-kicker { font-size: 11px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .cards-grid, .steps, .mini-links { grid-template-columns: 1fr; }
  .section, .contact-section { padding: 62px 0; }
  .sub-hero-inner { padding: 74px 0 72px; }
  .service-card { min-height: auto; }
  .site-footer .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner a { margin: 0 18px 0 0; }
}

@media (min-width: 1180px) and (max-height: 820px) {
  .hero, .hero-grid { min-height: 680px; }
  .hero-grid { padding-top: 48px; padding-bottom: 94px; }
  h1 { font-size: clamp(40px, 4.7vw, 60px); }
}

/* v4: precyzyjne przewijanie do sekcji obsługuje script.js; CSS nie dodaje podwójnego offsetu. */

/* v5: eleganckie podświetlenie elementów nawigacji zamiast surowej ramki przeglądarki */
.nav-link:focus {
  outline: none;
}

.nav-link:focus-visible {
  outline: none;
  color: #7bd3ff;
  background: rgba(123, 211, 255, 0.10);
  box-shadow: inset 0 -2px 0 rgba(123, 211, 255, 0.75);
}

.btn:focus {
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid rgba(123, 211, 255, 0.85);
  outline-offset: 3px;
}


/* v6: instalacje elektryczne jako osobny obszar oferty, bez przeładowania strony głównej */
.service-card-wide h3 { font-size: 21px; }
.service-note {
  margin-top: 26px;
  padding: 26px;
  background: linear-gradient(135deg, rgba(7,20,38,0.97), rgba(16,42,73,0.96));
  color: var(--text);
  border: 1px solid rgba(237,245,255,0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 28px;
  align-items: center;
}
.service-note h3 { margin-top: 12px; font-size: 28px; letter-spacing: -0.03em; }
.service-note-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.service-note-tags span {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(237,245,255,0.16);
  background: rgba(255,255,255,0.07);
  color: #dcecff;
  font-weight: 700;
  font-size: 14px;
}
.build-foundation { background: #fff; }
.foundation-box {
  padding: 30px;
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.foundation-box strong { font-size: 24px; display: block; margin-bottom: 14px; }
.foundation-box ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.foundation-box li { position: relative; padding-left: 28px; color: #d6e7fa; line-height: 1.55; }
.foundation-box li::before { content: "✓"; position: absolute; left: 0; color: var(--blue-2); font-weight: 900; }
.foundation-box .card-link { color: var(--blue-2); }
.main-nav a:focus { outline: none; }
.main-nav a:focus-visible {
  outline: none;
  color: #7bd3ff;
  background: rgba(123, 211, 255, 0.10);
  box-shadow: inset 0 -2px 0 rgba(123, 211, 255, 0.75);
  border-radius: 8px;
}
@media (max-width: 980px) {
  .service-note { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .service-note { padding: 22px; }
  .service-note h3 { font-size: 24px; }
  .foundation-box { padding: 24px; }
}


/* v7: jedna aplikacja, sterowanie z telefonu/tabletu/komputera oraz zdalny dostęp */
.control-section {
  background: linear-gradient(135deg, #f7fbff 0%, #eef5fb 48%, #ffffff 100%);
  overflow: hidden;
}
.control-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 54px;
  align-items: center;
}
.control-copy p {
  color: var(--dark-muted);
  font-size: 18px;
  line-height: 1.68;
}
.control-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 26px;
}
.control-points span {
  padding: 10px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbe8f4;
  color: #0e4266;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(18,32,51,0.05);
}
.device-stage {
  position: relative;
  min-height: 440px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 28% 20%, rgba(66,184,255,0.23), transparent 28%),
    radial-gradient(circle at 80% 78%, rgba(37,103,162,0.20), transparent 30%),
    linear-gradient(135deg, rgba(7,20,38,0.97), rgba(16,42,73,0.96));
  border: 1px solid rgba(237,245,255,0.16);
  box-shadow: var(--shadow);
  padding: 34px;
  overflow: hidden;
}
.device-stage::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(123,211,255,0.14);
  border-radius: 24px;
  pointer-events: none;
}
.dashboard-device {
  position: absolute;
  background: #071426;
  border: 1px solid rgba(237,245,255,0.18);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.desktop-device {
  left: 34px;
  right: 112px;
  top: 52px;
  height: 260px;
  border-radius: 22px;
  padding: 14px;
}
.device-topbar {
  height: 22px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding-left: 8px;
}
.device-topbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(123,211,255,0.55);
}
.dashboard-screen {
  height: calc(100% - 22px);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(13,34,60,1), rgba(8,20,38,1));
  border: 1px solid rgba(237,245,255,0.12);
  padding: 18px;
  color: #edf5ff;
  overflow: hidden;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 18px;
}
.dash-header strong { font-size: 16px; }
.dash-header small { color: var(--blue-2); font-weight: 800; }
.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.dash-grid div {
  min-height: 76px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(237,245,255,0.09);
}
.dash-grid b { display: block; font-size: 12px; color: #cfe5fb; }
.dash-grid em { display: block; margin-top: 12px; font-style: normal; font-weight: 900; color: #7bd3ff; }
.dash-chart {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  align-items: end;
  height: 44px;
}
.dash-chart span {
  flex: 1;
  border-radius: 9px 9px 0 0;
  background: linear-gradient(180deg, #7bd3ff, #2567a2);
  min-height: 18px;
  opacity: .86;
}
.dash-chart span:nth-child(2) { height: 30px; }
.dash-chart span:nth-child(3) { height: 42px; }
.dash-chart span:nth-child(4) { height: 26px; }
.dash-chart span:nth-child(5) { height: 36px; }
.tablet-device {
  right: 34px;
  bottom: 32px;
  width: 250px;
  height: 170px;
  padding: 10px;
  transform: rotate(2deg);
}
.dashboard-screen.small {
  height: 100%;
  padding: 14px;
}
.dash-list {
  display: grid;
  gap: 8px;
}
.dash-list span {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  color: #dcecff;
  font-size: 12px;
  font-weight: 700;
}
.phone-device {
  left: 72px;
  bottom: 22px;
  width: 124px;
  height: 220px;
  border-radius: 32px;
  padding: 9px;
  transform: rotate(-4deg);
  z-index: 2;
}
.dashboard-screen.phone {
  height: 100%;
  border-radius: 24px;
  padding: 24px 10px 10px;
  text-align: center;
}
.phone-notch {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  width: 42px;
  height: 6px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}
.phone-tile {
  margin-top: 9px;
  padding: 9px 7px;
  border-radius: 12px;
  background: rgba(123,211,255,0.12);
  border: 1px solid rgba(123,211,255,0.14);
  color: #e8f6ff;
  font-size: 11px;
  font-weight: 800;
}
@media (max-width: 980px) {
  .control-grid { grid-template-columns: 1fr; }
  .device-stage { min-height: 420px; }
}
@media (max-width: 640px) {
  .device-stage { min-height: 520px; padding: 20px; }
  .desktop-device { left: 20px; right: 20px; top: 36px; height: 248px; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .tablet-device { right: 20px; bottom: 28px; width: 214px; height: 152px; }
  .phone-device { left: 24px; bottom: 42px; width: 112px; height: 204px; }
  .control-copy p { font-size: 16.5px; }
}

/* v8: rozbudowana wizualizacja sterowania z telefonu, tabletu, komputera i panelu ściennego */
.device-stage-v8 {
  min-height: 460px;
}
.device-stage-v8 .desktop-device {
  left: 34px;
  right: auto;
  top: 58px;
  width: min(430px, 64%);
  height: 250px;
  z-index: 1;
  border-radius: 22px;
}
.device-stage-v8 .desktop-device::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -34px;
  width: 108px;
  height: 34px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(123,211,255,0.22), rgba(123,211,255,0.04));
  border-left: 1px solid rgba(237,245,255,0.16);
  border-right: 1px solid rgba(237,245,255,0.16);
  border-radius: 0 0 18px 18px;
}
.device-stage-v8 .desktop-device::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -45px;
  width: 168px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(123,211,255,0.13);
  border: 1px solid rgba(237,245,255,0.13);
}
.wall-panel-device {
  right: 30px;
  top: 36px;
  width: 224px;
  height: 154px;
  padding: 10px;
  transform: rotate(1.5deg);
  z-index: 4;
}
.dashboard-screen.wall {
  height: 100%;
  padding: 14px;
  border-radius: 18px;
}
.wall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.wall-grid span {
  padding: 9px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.075);
  border: 1px solid rgba(237,245,255,0.08);
  color: #dcecff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.device-stage-v8 .tablet-device {
  right: 46px;
  bottom: 34px;
  z-index: 3;
}
.device-stage-v8 .phone-device {
  left: 78px;
  bottom: 24px;
  z-index: 5;
}
.visual-detail-panel p {
  color: var(--dark-muted);
  line-height: 1.62;
  font-size: 17px;
}
.compact-device-stage {
  margin-top: 24px;
  min-height: 390px;
  box-shadow: 0 22px 60px rgba(18,32,51,0.18);
}
.compact-device-stage.device-stage-v8 .desktop-device {
  left: 24px;
  top: 44px;
  width: min(390px, 60%);
  height: 218px;
}
.compact-device-stage.device-stage-v8 .wall-panel-device {
  right: 22px;
  top: 36px;
  width: 200px;
  height: 138px;
}
.compact-device-stage.device-stage-v8 .tablet-device {
  right: 30px;
  bottom: 28px;
  width: 220px;
  height: 150px;
}
.compact-device-stage.device-stage-v8 .phone-device {
  left: 54px;
  bottom: 22px;
  width: 116px;
  height: 206px;
}
@media (max-width: 980px) {
  .device-stage-v8 { min-height: 500px; }
  .device-stage-v8 .desktop-device { width: min(470px, 68%); }
  .wall-panel-device { width: 210px; }
  .compact-device-stage { min-height: 470px; }
}
@media (max-width: 640px) {
  .device-stage-v8 { min-height: 670px; padding: 20px; }
  .device-stage-v8 .desktop-device { left: 18px; right: 18px; width: auto; top: 30px; height: 222px; }
  .device-stage-v8 .desktop-device::after { bottom: -26px; height: 26px; width: 88px; }
  .device-stage-v8 .desktop-device::before { bottom: -36px; width: 132px; }
  .device-stage-v8 .wall-panel-device { right: 18px; top: 292px; width: 190px; height: 130px; }
  .device-stage-v8 .tablet-device { right: 18px; bottom: 34px; width: 202px; height: 142px; }
  .device-stage-v8 .phone-device { left: 20px; bottom: 42px; width: 106px; height: 194px; }
  .wall-grid span { font-size: 10px; padding: 8px 6px; }
  .compact-device-stage { min-height: 660px; }
}


/* v9 – czytelna grafika urządzeń sterowania */
.device-image-showcase {
  margin: 0;
  position: relative;
  border-radius: 30px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(237, 247, 255, 0.96), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(154, 198, 229, 0.34);
  box-shadow: 0 34px 90px rgba(18, 32, 51, 0.16);
  overflow: hidden;
}
.device-image-showcase::before {
  content: "";
  position: absolute;
  inset: -28%;
  background:
    radial-gradient(circle at 24% 30%, rgba(81, 195, 255, 0.20), transparent 30%),
    radial-gradient(circle at 76% 64%, rgba(7, 20, 38, 0.10), transparent 34%);
  pointer-events: none;
}
.device-image-showcase picture,
.device-image-showcase img {
  position: relative;
  display: block;
  width: 100%;
}
.device-image-showcase img {
  height: auto;
  border-radius: 22px;
  object-fit: contain;
}
.detail-device-image {
  margin-top: 24px;
  padding: 14px;
  border-radius: 24px;
}
.detail-device-image img {
  border-radius: 18px;
}
.contact-details a[href^="tel"],
.side-contact a[href^="tel"] {
  color: #006fae;
  font-weight: 800;
}
@media (max-width: 820px) {
  .device-image-showcase {
    padding: 10px;
    border-radius: 24px;
  }
  .device-image-showcase img {
    border-radius: 18px;
  }
}

/* Polityka prywatności */
.legal-page .lead-text {
  font-size: 20px;
  color: var(--dark-muted);
  margin-bottom: 34px;
}

.legal-page ul,
.legal-page ol {
  margin: 14px 0 22px 22px;
  color: var(--dark-muted);
  line-height: 1.7;
  font-size: 18px;
}

.legal-page li + li {
  margin-top: 8px;
}

.legal-page .policy-date {
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.contact-form .check a {
  color: #8ddcff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
