/*
Theme Name: RAPWAY
Theme URI: https://rapway.ovh/
Author: RAPWAY
Description: Statyczna strona główna RAPWAY jako lekki motyw WordPress.
Version: 1.3.1
Update URI: false
Text Domain: rapway
*/

:root {
  color-scheme: dark;
  --bg: #071116;
  --bg-soft: #0d1b21;
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f3f7f6;
  --muted: #a9b8b5;
  --line: rgba(255, 255, 255, 0.16);
  --green: #5dffb1;
  --cyan: #55d9ff;
  --gold: #ffd166;
  --coral: #ff7c73;
  --ink: #071116;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(93, 255, 177, 0.12), transparent 28rem),
    radial-gradient(circle at 80% 8%, rgba(85, 217, 255, 0.11), transparent 30rem),
    linear-gradient(145deg, #071116 0%, #0a1519 46%, #11150f 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

#network-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  opacity: 0.62;
}

.section-shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(1160px, calc(100% - 40px));
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 17, 22, 0.74);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
  backdrop-filter: blur(22px);
}

.site-header[data-reveal] {
  transform: translate(-50%, 22px);
}

.site-header[data-reveal].is-visible {
  transform: translate(-50%, 0);
}

.brand {
  position: relative;
  display: inline-flex;
  min-width: clamp(158px, 17vw, 218px);
  min-height: 44px;
  align-items: center;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0;
  transition: none;
}

.brand-initial {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px) scale(0.9);
  transition: opacity 220ms ease, transform 220ms ease;
}

.brand-initial-mark {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-logo {
  position: absolute;
  left: 0;
  display: block;
  width: clamp(158px, 17vw, 218px);
  height: 44px;
  object-fit: contain;
  object-position: left center;
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: left center;
  transition: opacity 220ms ease, transform 220ms ease;
}

.site-header.brand-compact .brand-initial {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-header.brand-compact .brand-logo {
  opacity: 0;
  transform: translateY(-4px) scale(0.94);
  pointer-events: none;
}

.site-header.brand-compact .brand {
  min-width: 44px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.language-switcher {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.language-switcher a {
  padding: 6px 2px;
  border-radius: 4px;
}

.language-switcher a[aria-current="page"],
.language-switcher a:hover,
.language-switcher a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: currentColor;
  transition: opacity 180ms ease, transform 180ms ease;
}

.hero {
  display: grid;
  min-height: 96vh;
  align-items: center;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.82fr);
  gap: clamp(32px, 6vw, 86px);
  padding: 136px 0 74px;
}

.hero > * {
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.52);
}

.hero-copy[data-reveal] {
  opacity: 1;
  transform: none;
}

.hero-copy h1 {
  color: #ffffff;
}

.hero-copy .eyebrow,
.hero-copy .hero-lead {
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.58);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(3.7rem, 8.4vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-logo-title {
  display: block;
  max-width: min(100%, 780px);
  margin-bottom: 24px;
  font-size: 0;
  line-height: 1;
}

.hero-logo {
  display: block;
  width: min(100%, 680px);
  height: auto;
  filter: drop-shadow(0 22px 54px rgba(93, 255, 177, 0.14));
}

.hero-logo-mark {
  width: min(72%, 460px);
  margin-bottom: 28px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4.6vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.16rem, 2vw, 1.55rem);
  line-height: 1.08;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 34px;
  color: #d2ddda;
  font-size: clamp(1.05rem, 1.6vw, 1.34rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: var(--ink);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.hero-panel {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 22% 18%, rgba(255, 209, 102, 0.18), transparent 12rem),
    radial-gradient(circle at 80% 44%, rgba(85, 217, 255, 0.17), transparent 14rem),
    radial-gradient(circle at 42% 78%, rgba(93, 255, 177, 0.18), transparent 14rem);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-panel::before,
.hero-panel::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero-panel::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  opacity: 0.34;
}

.hero-panel::after {
  width: 260px;
  height: 260px;
  right: -72px;
  bottom: -76px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(93, 255, 177, 0.05);
}

.panel-status {
  position: absolute;
  top: 22px;
  right: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.panel-status span {
  color: #d8e3e0;
}

.panel-status strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}

.panel-status strong::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
  content: "";
}

.smart-home-visual {
  position: absolute;
  inset: 82px 28px 176px;
}

.sun-disc {
  position: absolute;
  top: 4%;
  left: 6%;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: radial-gradient(circle, #fff3b0 0 20%, var(--gold) 21% 58%, rgba(255, 209, 102, 0.1) 59%);
  box-shadow: 0 0 64px rgba(255, 209, 102, 0.35);
  animation: float-soft 5.8s ease-in-out infinite;
}

.home-shape {
  position: absolute;
  right: 15%;
  bottom: 2%;
  left: 12%;
  min-height: 230px;
}

.roof {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(88%, 320px);
  height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(135deg, rgba(85, 217, 255, 0.24), rgba(10, 21, 25, 0.8));
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%) skewX(-18deg) rotate(-6deg);
}

.roof span {
  position: absolute;
  top: 20px;
  bottom: 18px;
  width: 24%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(85, 217, 255, 0.28), rgba(255, 255, 255, 0.04));
}

.roof span:nth-child(1) {
  left: 11%;
}

.roof span:nth-child(2) {
  left: 38%;
}

.roof span:nth-child(3) {
  right: 11%;
}

.home-body {
  position: absolute;
  right: 9%;
  bottom: 0;
  left: 9%;
  height: 142px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(7, 17, 22, 0.72));
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.window,
.door {
  position: absolute;
  bottom: 56px;
  width: 48px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(85, 217, 255, 0.14);
}

.window.light {
  left: 18%;
  background: rgba(255, 209, 102, 0.32);
  box-shadow: 0 0 34px rgba(255, 209, 102, 0.18);
}

.window:not(.light) {
  right: 18%;
}

.door {
  left: 50%;
  bottom: 0;
  width: 54px;
  height: 82px;
  background: rgba(93, 255, 177, 0.14);
  transform: translateX(-50%);
}

.car-shape {
  position: absolute;
  right: 4%;
  bottom: 8px;
  width: 124px;
  height: 48px;
  border-radius: 26px 34px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 124, 115, 0.78), rgba(255, 124, 115, 0.22));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
}

.car-shape::before {
  position: absolute;
  top: -22px;
  left: 28px;
  width: 56px;
  height: 28px;
  border-radius: 22px 22px 4px 4px;
  background: rgba(255, 255, 255, 0.18);
  content: "";
}

.car-shape::after {
  position: absolute;
  right: 20px;
  bottom: 10px;
  left: 20px;
  height: 8px;
  border-radius: 99px;
  background: rgba(7, 17, 22, 0.46);
  content: "";
}

.automation-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.automation-orbit span {
  position: absolute;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 17, 22, 0.68);
  color: #e8f6f2;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  animation: float-soft 6s ease-in-out infinite;
}

.automation-orbit span:nth-child(1) {
  top: 18%;
  left: 2%;
  color: var(--green);
}

.automation-orbit span:nth-child(2) {
  top: 2%;
  right: 2%;
  animation-delay: -1.5s;
}

.automation-orbit span:nth-child(3) {
  right: 8%;
  bottom: 28%;
  color: var(--cyan);
  animation-delay: -3s;
}

.automation-orbit span:nth-child(4) {
  bottom: 18%;
  left: 0;
  color: var(--gold);
  animation-delay: -4.5s;
}

.benefit-stack {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.benefit-card {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 17, 22, 0.63);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.benefit-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.benefit-card strong {
  color: #f5faf8;
  font-size: 0.98rem;
  line-height: 1.14;
}

.benefit-card.energy {
  border-color: rgba(93, 255, 177, 0.28);
}

.benefit-card.comfort {
  border-color: rgba(85, 217, 255, 0.28);
}

.benefit-card.view {
  border-color: rgba(255, 209, 102, 0.28);
}

.benefit-card.cover {
  border-color: rgba(255, 124, 115, 0.28);
}

.intro-strip {
  display: grid;
  width: min(1160px, calc(100% - 40px));
  margin: -34px auto 98px;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-strip span {
  min-height: 76px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: #dbe5e2;
  font-weight: 800;
  text-transform: uppercase;
}

.intro-strip span:last-child {
  border-right: 0;
}

.services,
.brand-section {
  padding: 26px 0 110px;
}

.section-heading {
  display: grid;
  margin-bottom: 34px;
  gap: 14px;
}

.section-heading.compact {
  align-content: start;
  margin-bottom: 0;
}

.section-heading p:not(.eyebrow),
.section-heading.compact p:not(.eyebrow),
.brand-story p,
.contact-copy p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.smart-service-grid {
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(240px, 0.72fr));
  align-items: stretch;
}

.service-card {
  min-height: 485px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.19);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.service-card-feature {
  min-height: 560px;
  padding: clamp(26px, 4vw, 38px);
  background:
    radial-gradient(circle at 80% 0%, rgba(85, 217, 255, 0.16), transparent 16rem),
    rgba(255, 255, 255, 0.095);
}

.service-card-feature h3 {
  max-width: 560px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.105);
  border-color: rgba(255, 255, 255, 0.28);
}

.service-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 32px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.accent-energy .service-icon,
.accent-energy .service-kicker {
  color: var(--green);
}

.accent-home .service-icon,
.accent-home .service-kicker {
  color: var(--cyan);
}

.accent-drone .service-icon,
.accent-drone .service-kicker {
  color: var(--gold);
}

.accent-security .service-icon,
.accent-security .service-kicker {
  color: var(--coral);
}

.service-kicker {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-card p:not(.service-kicker) {
  color: var(--muted);
}

.service-card ul {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.service-card li {
  display: flex;
  gap: 9px;
  color: #d7e1de;
  font-size: 0.94rem;
}

.service-card li::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 8px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.capability-grid {
  display: grid;
  margin-top: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.capability-grid article,
.retrofit-panel,
.drone-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.16);
}

.capability-grid article {
  min-height: 176px;
  padding: 22px;
}

.capability-grid h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.capability-grid p,
.retrofit-panel p,
.retrofit-panel li,
.drone-section p {
  color: var(--muted);
}

.retrofit-section {
  padding: 0 0 110px;
}

.retrofit-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(26px, 5vw, 48px);
  background:
    radial-gradient(circle at 8% 0%, rgba(93, 255, 177, 0.12), transparent 18rem),
    rgba(255, 255, 255, 0.07);
}

.retrofit-panel ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.retrofit-panel li {
  display: flex;
  gap: 10px;
}

.retrofit-panel li::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(93, 255, 177, 0.38);
  content: "";
}

.process-section {
  padding: 106px 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(93, 255, 177, 0.06)),
    rgba(255, 255, 255, 0.035);
  border-block: 1px solid var(--line);
}

.process-layout {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: clamp(34px, 7vw, 88px);
}

.process-list {
  display: grid;
  gap: 12px;
}

.process-step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 17, 22, 0.44);
}

.process-step span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: rgba(93, 255, 177, 0.12);
  color: var(--green);
  font-weight: 900;
}

.process-step h3 {
  margin-bottom: 6px;
}

.process-step p {
  grid-column: 2;
  margin-bottom: 0;
  color: var(--muted);
}

.brand-section {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.65fr);
  gap: clamp(28px, 6vw, 78px);
}

.metric-band {
  display: grid;
  gap: 12px;
}

.metric-band div {
  display: flex;
  min-height: 116px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
}

.metric-band strong {
  color: var(--green);
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  line-height: 0.9;
}

.metric-band span {
  color: var(--muted);
  font-weight: 700;
}

.drone-section {
  margin-bottom: 110px;
  padding: clamp(26px, 5vw, 44px);
  background:
    radial-gradient(circle at 94% 20%, rgba(255, 209, 102, 0.14), transparent 16rem),
    rgba(255, 255, 255, 0.055);
}

.guide-teaser {
  padding: 0 0 110px;
}

.guide-mini-grid {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-mini-grid a,
.article-card a,
.quick-summary,
.automation-box,
.info-box,
.faq-section details,
.article-cta,
.guide-final-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.18);
}

.guide-mini-grid a {
  display: grid;
  min-height: 148px;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.guide-mini-grid a:hover,
.guide-mini-grid a:focus-visible,
.article-card a:hover,
.article-card a:focus-visible {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.105);
  border-color: rgba(255, 255, 255, 0.28);
}

.guide-mini-grid span,
.article-card-category,
.article-meta,
.breadcrumbs {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-mini-grid strong {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.18;
}

.guide-teaser-button {
  margin-top: 18px;
}

.guide-hero {
  display: grid;
  min-height: 72vh;
  align-content: center;
  padding: 140px 0 72px;
}

.guide-hero h1,
.article-header h1 {
  max-width: 940px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.94;
}

.article-header h1 {
  overflow-wrap: anywhere;
}

.guide-hero p:not(.eyebrow),
.article-header > p {
  max-width: 760px;
  color: #d7e3df;
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
}

.guide-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.guide-promises span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #dce7e3;
  font-weight: 800;
}

.article-grid-section {
  padding-bottom: 110px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.article-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-card a {
  display: grid;
  min-height: 100%;
  padding: 18px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.guide-visual {
  width: 100%;
  height: auto;
  margin-bottom: 18px;
  border-radius: 8px;
}

.article-card h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.08;
}

.article-card p {
  color: var(--muted);
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: var(--muted);
  font-weight: 800;
}

.article-card-footer strong {
  color: var(--green);
}

.guide-final-cta {
  display: grid;
  gap: 18px;
  margin-bottom: 110px;
  padding: clamp(26px, 5vw, 48px);
  background:
    radial-gradient(circle at 84% 12%, rgba(85, 217, 255, 0.16), transparent 18rem),
    rgba(255, 255, 255, 0.075);
}

.guide-final-cta p {
  max-width: 720px;
  color: var(--muted);
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 20px rgba(93, 255, 177, 0.4);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.article-layout {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 132px 0 90px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.breadcrumbs a {
  color: #dce7e3;
}

.article-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 46px;
}

.article-header .guide-visual {
  max-width: 860px;
  margin: 12px 0 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.article-body-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: clamp(26px, 5vw, 62px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 17, 22, 0.72);
  backdrop-filter: blur(16px);
}

.toc strong {
  margin-bottom: 4px;
}

.toc a {
  color: var(--muted);
  font-size: 0.92rem;
}

.toc a:hover,
.toc a:focus-visible,
.article-content a {
  color: var(--green);
}

.article-content {
  min-width: 0;
}

.article-content section {
  scroll-margin-top: 112px;
  margin-bottom: 42px;
}

.article-content h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1.02;
}

.article-content p,
.article-content li,
.faq-section p {
  color: #cddad6;
  font-size: 1.05rem;
}

.quick-summary,
.automation-box,
.article-cta {
  padding: clamp(22px, 4vw, 34px);
}

.quick-summary {
  background:
    radial-gradient(circle at 92% 10%, rgba(93, 255, 177, 0.16), transparent 12rem),
    rgba(255, 255, 255, 0.08);
}

.quick-summary ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.automation-box {
  background:
    radial-gradient(circle at 8% 20%, rgba(85, 217, 255, 0.14), transparent 14rem),
    rgba(255, 255, 255, 0.06);
}

.automation-box p,
.info-box {
  margin: 12px 0 0;
}

.info-box {
  padding: 18px;
  border-color: rgba(93, 255, 177, 0.34);
  color: #e4f4ef;
  font-weight: 800;
}

.faq-section details {
  margin-bottom: 10px;
  padding: 18px 20px;
}

.faq-section summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.faq-section p {
  margin: 12px 0 0;
}

.article-cta {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 209, 102, 0.15), transparent 16rem),
    rgba(255, 255, 255, 0.08);
}

.article-cta small {
  color: var(--muted);
}

.read-next {
  padding-top: 16px;
}

.contact-section {
  padding: 104px 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(255, 209, 102, 0.16), transparent 22rem),
    #0a1519;
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.62fr);
  gap: clamp(28px, 6vw, 84px);
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: grid;
  min-height: 112px;
  align-content: center;
  gap: 7px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.28);
}

.contact-link span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-link strong {
  font-size: clamp(1.12rem, 2.5vw, 1.55rem);
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  width: min(1160px, calc(100% - 40px));
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-inline: auto;
  color: var(--muted);
  font-weight: 700;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float-soft {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(8px, -10px, 0);
  }
}

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

@media (max-width: 1040px) {
  .hero,
  .process-layout,
  .retrofit-panel,
  .brand-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    min-height: 470px;
  }

  .smart-home-visual {
    inset: 82px 24px 164px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smart-service-grid,
  .capability-grid,
  .guide-mini-grid,
  .article-grid,
  .article-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card-feature {
    grid-column: 1 / -1;
  }

  .service-card {
    min-height: 390px;
  }

  .article-body-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .section-shell,
  .site-header,
  .intro-strip,
  .site-footer {
    width: calc(100% - 28px);
    max-width: 1160px;
  }

  .site-header {
    top: 10px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7, 17, 22, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
  }

  .nav-open .site-nav {
    display: grid;
  }

  .language-switcher {
    margin-left: auto;
    margin-right: 8px;
  }

  .nav-open .nav-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    gap: 30px;
    padding-top: 118px;
    padding-bottom: 50px;
  }

  .brand-logo {
    width: clamp(138px, 44vw, 172px);
    height: 42px;
  }

  .brand {
    min-width: clamp(138px, 44vw, 172px);
    min-height: 42px;
  }

  .brand-initial {
    width: 42px;
    height: 42px;
  }

  .site-header.brand-compact .brand {
    min-width: 42px;
  }

  .hero-logo-title {
    margin-bottom: 22px;
  }

  .hero-logo {
    width: min(100%, 470px);
  }

  .hero-logo-mark {
    width: min(84%, 360px);
    margin-bottom: 22px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-panel {
    min-height: 460px;
  }

  .panel-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .smart-home-visual {
    inset: 94px 14px 170px;
  }

  .sun-disc {
    width: 60px;
    height: 60px;
  }

  .home-shape {
    right: 6%;
    left: 5%;
    min-height: 212px;
  }

  .roof {
    height: 114px;
  }

  .home-body {
    height: 128px;
  }

  .car-shape {
    right: 0;
    width: 96px;
    height: 40px;
  }

  .automation-orbit span {
    min-height: 32px;
    padding: 7px 9px;
    font-size: 0.68rem;
  }

  .benefit-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-card {
    min-height: 66px;
    padding: 12px;
  }

  .benefit-card strong {
    font-size: 0.86rem;
  }

  .intro-strip {
    margin-bottom: 70px;
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-strip span {
    min-height: 58px;
    border-bottom: 1px solid var(--line);
    font-size: 0.8rem;
  }

  .intro-strip span:nth-child(2n) {
    border-right: 0;
  }

  .intro-strip span:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .service-grid,
  .smart-service-grid,
  .capability-grid,
  .guide-mini-grid,
  .article-grid,
  .article-grid.compact {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-card-feature {
    min-height: auto;
  }

  .guide-hero {
    min-height: auto;
    padding-top: 116px;
  }

  .guide-hero h1,
  .article-header h1 {
    font-size: clamp(2.5rem, 13vw, 4.6rem);
  }

  .article-layout {
    width: calc(100% - 28px);
    padding-top: 116px;
  }

  .guide-promises {
    display: grid;
  }

  .article-meta {
    display: grid;
  }

  .toc {
    max-height: 280px;
    overflow: auto;
  }

  .process-section,
  .contact-section {
    padding: 72px 0;
  }

  .services,
  .brand-section,
  .retrofit-section,
  .guide-teaser,
  .article-grid-section {
    padding-bottom: 76px;
  }

  .drone-section,
  .guide-final-cta {
    margin-bottom: 76px;
  }

  .process-step {
    grid-template-columns: 1fr;
  }

  .process-step p {
    grid-column: 1;
  }

  .metric-band div,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
