:root {
  --bg: #090909;
  --bg-soft: #101010;
  --panel: #121212;
  --panel-2: #171717;
  --line: rgba(127, 223, 255, 0.30);
  --line-soft: rgba(255,255,255,0.08);
  --accent: #7FDFFF;
  --accent-2: #A7F3FF;
  --text: #f8f6f1;
  --muted: #b8b2a6;
  --shadow: rgba(0,0,0,0.35);
  --radius: 26px;
  --container: 1180px;
}

/* === Moscow date and time positioned relative to the header === */
.header-stage {
  position: relative;
  z-index: 50;
  width: min(1180px, calc(100% - 44px));
  margin: 28px auto 0;
}

body.header-normal .header-stage > .header,
body.layout-safe .header-stage > .header {
  width: 100% !important;
  margin: 0 !important;
}

.site-datetime {
  position: absolute;
  right: calc(100% + 4px);
  top: 50%;
  z-index: 55;
  width: 112px;
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(127, 223, 255, 0.28);
  border-radius: 17px;
  background: rgba(8, 12, 14, 0.88);
  box-shadow: inset 0 0 18px rgba(127, 223, 255, 0.045), 0 0 18px rgba(127, 223, 255, 0.10);
  transform: translateY(-50%);
  pointer-events: none;
}

.site-datetime__date {
  color: rgba(238, 239, 239, 0.76);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.site-datetime__clock {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 6px;
}

.site-datetime__label {
  color: rgba(210, 214, 216, 0.62);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.1em;
}

.site-datetime time {
  font-family: "Segoe UI", Inter, Roboto, Arial, Helvetica, sans-serif;
  font-variant-numeric: tabular-nums;
}

.site-datetime__clock time {
  color: #A7F3FF;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(127, 223, 255, 0.34);
  white-space: nowrap;
}

.site-datetime__compact {
  display: none;
  align-items: baseline;
  gap: 5px;
  color: rgba(238, 239, 239, 0.76);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-datetime__compact time:last-child {
  color: #A7F3FF;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 1439px) {
  body.header-normal .header-stage > .header,
  body.layout-safe .header-stage > .header {
    padding-left: 154px !important;
  }

  .site-datetime {
    right: auto;
    left: 16px;
  }
}

@media (max-width: 1040px) {
  .site-datetime {
    width: auto;
    min-width: 126px;
    min-height: 40px;
    padding: 8px 9px;
    border-radius: 14px;
  }

  .site-datetime__date,
  .site-datetime__clock {
    display: none;
  }

  .site-datetime__compact {
    display: flex;
  }

  body.header-normal .header-stage > .header,
  body.layout-safe .header-stage > .header {
    padding-left: 154px !important;
  }
}

@media (max-width: 720px) {
  .header-stage {
    width: calc(100% - 18px);
    margin-top: 12px;
  }

  .site-datetime {
    display: none;
  }

  body.header-normal .header-stage > .header,
  body.layout-safe .header-stage > .header {
    padding: 8px 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-datetime {
    animation: none;
    transition: none;
    scroll-behavior: auto;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, Inter, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(127,223,255,0.08), transparent 26%),
    radial-gradient(circle at right 20%, rgba(127,223,255,0.05), transparent 20%),
    linear-gradient(180deg, #080808 0%, #0b0b0b 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.page-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(circle at 50% 0%, rgba(127,223,255,0.09), transparent 38%);
}
.header,
.section,
.about,
.cta,
.footer,
.strip { padding-left: max(22px, calc((100vw - var(--container)) / 2)); padding-right: max(22px, calc((100vw - var(--container)) / 2)); }
.header {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%); width: min(var(--container), calc(100% - 32px));
  z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(10,10,10,0.78); backdrop-filter: blur(16px); box-shadow: 0 18px 50px var(--shadow);
}
.logo { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.logo-badge { width: 48px; height: 48px; flex: 0 0 auto; }
.logo-badge svg { width: 100%; height: 100%; }
.logo-text { display: grid; line-height: 1; }
.logo-text strong { font-size: 17px; letter-spacing: 0.08em; }
.logo-text small { font-size: 11px; color: var(--muted); margin-top: 6px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; font-weight: 700; }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--accent-2); }
.header-phone { font-weight: 800; white-space: nowrap; }
.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,0.04); color: var(--text); font-size: 20px; cursor: pointer;
}
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1.2fr 380px; gap: 34px; align-items: center;
  padding: 162px max(22px, calc((100vw - var(--container)) / 2)) 72px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  color: var(--accent-2); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em;
}
.eyebrow span { width: 34px; height: 2px; background: linear-gradient(90deg, var(--accent-2), transparent); }
.hero h1 { margin: 0; font-size: clamp(40px, 6vw, 78px); line-height: 0.98; letter-spacing: -0.06em; max-width: 840px; }
.hero-text { margin: 24px 0 0; max-width: 720px; color: #d0cac0; font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; padding: 16px 24px;
  border-radius: 999px; font-weight: 800; transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #061014; box-shadow: 0 16px 36px rgba(127,223,255,.18); }
.btn-secondary { border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--text); }
.hero-facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 48px; max-width: 860px; }
.hero-facts div,
.hero-card,
.service-card,
.about-panel,
.project-card,
.steps-grid > div,
.contact-form {
  background: linear-gradient(180deg, rgba(20,20,20,0.92), rgba(14,14,14,0.96));
  border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: 0 20px 50px var(--shadow);
}
.hero-facts div { padding: 20px; }
.hero-facts strong { display: block; font-size: 18px; color: var(--accent-2); }
.hero-facts span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.hero-card { padding: 28px; border-color: var(--line); }
.hero-card-top span { display:block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; }
.hero-card-top strong { display:block; margin-top: 12px; font-size: 28px; line-height: 1.08; letter-spacing: -0.04em; }
.hero-card p { color: #d0cac0; line-height: 1.75; }
.hero-card ul { display:flex; flex-wrap: wrap; gap:8px; list-style:none; padding:0; margin:20px 0; }
.hero-card li { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--accent-2); background: rgba(127,223,255,0.06); font-size: 13px; font-weight: 700; }
.hero-card a { color: var(--accent-2); font-weight: 800; }
.strip {
  display:grid; grid-template-columns: repeat(5, 1fr); gap:1px; margin-top: 8px; margin-bottom: 16px;
  border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); background: rgba(255,255,255,0.04);
}
.strip div { text-align:center; padding: 18px 12px; background:#0f0f0f; color:#d0cac0; font-weight:700; }
.section { padding-top: 100px; padding-bottom: 24px; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.narrow { max-width: 680px; }
.section-head h2,.about-content h2,.cta-content h2 { margin:0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.05em; }
.section-head p:last-child,.about-content p,.cta-content p { color: var(--muted); font-size: 17px; line-height: 1.8; }
.services-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:18px; }
.service-card { min-height: 340px; padding: 24px; position:relative; }
.service-card.feature { border-color: var(--line); }
.service-top { display:flex; justify-content: space-between; align-items:flex-start; gap: 10px; }
.service-num { color: var(--accent); font-weight: 800; font-size: 14px; }
.service-icon { width: 56px; height: 56px; }
.service-card h3 { margin: 28px 0 12px; font-size: 25px; letter-spacing: -0.04em; }
.service-card p { margin:0; color:#d0cac0; line-height: 1.74; }
.service-card ul { margin:20px 0 0; padding-left: 18px; color: var(--muted); display:grid; gap:10px; }
.service-card li::marker { color: var(--accent); }
.about { display:grid; grid-template-columns: minmax(300px,.85fr) minmax(0,1fr); gap: 48px; align-items: center; padding-top: 100px; padding-bottom: 30px; }
.about-panel {
  min-height: 520px; position: relative; overflow:hidden; border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 30%, rgba(127,223,255,0.16), transparent 22%),
    linear-gradient(145deg, #171717, #0d0d0d);
}
.about-panel::before,
.about-panel::after {
  content:""; position:absolute; left: 10%; right:10%; height:1px; background: linear-gradient(90deg, transparent, rgba(127,223,255,.55), transparent);
}
.about-panel::before { top: 34%; }
.about-panel::after { top: 58%; }
.about-outline { position:absolute; inset: 18% 16%; border: 1px solid rgba(127,223,255,0.20); border-radius: 34px; }
.about-outline::before,
.about-outline::after {
  content:""; position:absolute; border: 1px solid rgba(127,223,255,0.12); border-radius: 26px;
}
.about-outline::before { inset: 18% 12%; }
.about-outline::after { inset: 34% 20%; }
.about-stat {
  position:absolute; left: 28px; right: 28px; bottom: 28px; padding: 22px;
  border-radius: 22px; border: 1px solid var(--line); background: rgba(17,17,17,0.84);
}
.about-stat span { color: var(--accent-2); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.about-stat strong { display:block; margin-top: 10px; font-size: 26px; line-height: 1.22; letter-spacing: -0.04em; }
.about-list { display:grid; gap:12px; margin-top: 28px; }
.about-list div { padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line-soft); background: rgba(255,255,255,0.03); color: #e4ddd1; font-weight: 700; }
.project-grid { display:grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.project-card { overflow:hidden; }
.project-card.large { grid-row: span 2; }
.project-photo { position:relative; min-height: 280px; }
.project-card.large .project-photo { min-height: 560px; }
.project-photo img { width: 100%; height: 100%; object-fit: cover; }
.project-info { padding: 24px; }
.project-info h3 { margin:0 0 10px; font-size: 24px; letter-spacing: -0.04em; }
.project-info p { margin:0; color: var(--muted); line-height: 1.7; }
.steps-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.steps-grid > div { padding: 24px; }
.steps-grid span {
  width: 46px; height: 46px; display:grid; place-items:center; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color:#061014; font-weight: 800;
}
.steps-grid h3 { margin: 22px 0 10px; font-size: 23px; letter-spacing: -0.04em; }
.steps-grid p { margin: 0; color: var(--muted); line-height: 1.72; }
.steps-grid--detailed { grid-template-columns: repeat(3, minmax(0,1fr)); }
.steps-grid--detailed > div { min-height: 260px; }
.cta { display:grid; grid-template-columns: minmax(0,.95fr) minmax(320px,.78fr); gap: 34px; align-items: start; padding-top: 100px; padding-bottom: 86px; }
.contact-links { display:flex; flex-wrap:wrap; gap:12px; margin-top: 28px; }
.contact-links a { padding: 13px 16px; border-radius:999px; border:1px solid var(--line); background: rgba(127,223,255,0.05); color: var(--accent-2); font-weight: 700; }
.contact-form { display:grid; gap: 14px; padding: 24px; border-color: var(--line); }
body,button,input,select,textarea { font: inherit; }
input,select,textarea {
  width:100%; padding: 16px 17px; border-radius: 18px; border: 1px solid var(--line-soft); outline: none;
  background: rgba(255,255,255,0.035); color: var(--text);
}
select option { color:#061014; }
textarea { min-height: 130px; resize: vertical; }
input:focus,select:focus,textarea:focus { border-color: rgba(127,223,255,0.6); box-shadow: 0 0 0 4px rgba(127,223,255,0.10); }
.contact-form p { margin:0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.footer {
  display:flex; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 34px;
  border-top: 1px solid var(--line-soft); color: var(--muted);
}
.footer p { margin: 12px 0 0; max-width: 540px; }
.footer > div:last-child { display:grid; gap:8px; text-align:right; font-weight:700; }
.footer-logo .logo-badge { width: 44px; height: 44px; }
@media (max-width: 1040px) {
  .nav,.header-phone { display:none; }
  .menu-btn { display:block; }
  .nav.open {
    position:absolute; left:0; right:0; top: calc(100% + 10px); display:grid; gap:0; padding: 10px;
    border:1px solid var(--line); border-radius: 24px; background: rgba(10,10,10,0.95); box-shadow:0 16px 40px var(--shadow);
  }
  .nav.open a { padding: 14px; border-radius: 16px; }
  .nav.open a:hover { background: rgba(255,255,255,0.05); }
  .hero,.about,.cta { grid-template-columns: 1fr; }
  .services-grid,.steps-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .strip { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 720px) {
  .header { top:12px; width: calc(100% - 20px); padding: 10px 11px; }
  .hero { padding-top: 132px; padding-bottom: 54px; }
  .hero-facts,.services-grid,.project-grid,.steps-grid,.strip { grid-template-columns: 1fr; }
  .project-card.large { grid-row: auto; }
  .project-card.large .project-photo,.project-photo,.about-panel { min-height: 320px; }
  .section,.about,.cta { padding-top: 72px; }
  .footer { flex-direction: column; }
  .footer > div:last-child { text-align:left; }
  .logo-text strong { font-size: 15px; }
  .logo-text small { font-size: 10px; }
}

/* === Team presentation === */
.team-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.team-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 8%;
  right: -14%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 223, 255, 0.09), transparent 68%);
  pointer-events: none;
}

.team-section-head {
  max-width: 820px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
  align-items: stretch;
}

.team-card {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(127, 223, 255, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.94), rgba(13, 13, 13, 0.98));
  box-shadow: 0 20px 50px var(--shadow), inset 0 0 28px rgba(127, 223, 255, 0.025);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(127, 223, 255, 0.58);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42), 0 0 30px rgba(127, 223, 255, 0.10), inset 0 0 34px rgba(127, 223, 255, 0.04);
}

.team-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 10px 10px 0;
  overflow: hidden;
  border: 1px solid rgba(127, 223, 255, 0.28);
  border-radius: 20px;
  background: #101416;
  box-shadow: inset 0 0 24px rgba(127, 223, 255, 0.08);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo--cover {
  background: radial-gradient(circle at 50% 24%, rgba(127, 227, 255, 0.16), rgba(5, 10, 12, 0.98) 68%);
}

.team-photo--cover img {
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
}

.team-card-content {
  padding: 22px 22px 26px;
}

.team-card h3 {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.05;
  letter-spacing: 0;
}

.team-role {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.team-card-content > .team-role:first-child {
  margin-top: 0;
}

.team-role + h3 {
  margin-top: 8px;
}

.team-description {
  margin: 16px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

body.header-normal #team,
body.layout-safe #team {
  scroll-margin-top: 40px;
}

@media (max-width: 1040px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .team-card-content {
    padding: 20px 20px 24px;
  }

  body.header-normal #team,
  body.layout-safe #team {
    scroll-margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card {
    transition: none;
  }

  .team-card:hover {
    transform: none;
  }
}


/* === Electric interaction effects === */
.spark-canvas {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.72;
}

.scroll-charge {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 0%;
  z-index: 80;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  box-shadow: 0 0 18px rgba(167, 243, 255, 0.72);
  transition: width 0.08s linear;
}

.electric-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.58;
}

.electric-layer span {
  position: absolute;
  height: 1px;
  width: 28vw;
  background: linear-gradient(90deg, transparent, rgba(167,243,255,0.72), transparent);
  box-shadow: 0 0 18px rgba(167,243,255,0.5);
  transform: rotate(-18deg);
  animation: electricDrift 9s linear infinite;
}

.electric-layer span:nth-child(1) {
  top: 22%;
  left: -30vw;
  animation-delay: 0s;
}

.electric-layer span:nth-child(2) {
  top: 48%;
  left: -34vw;
  animation-delay: 3s;
  width: 18vw;
  opacity: 0.75;
}

.electric-layer span:nth-child(3) {
  top: 74%;
  left: -42vw;
  animation-delay: 6s;
  width: 34vw;
  opacity: 0.45;
}

@keyframes electricDrift {
  0% {
    transform: translateX(0) rotate(-18deg) scaleX(0.6);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  45% {
    opacity: 0.32;
  }
  100% {
    transform: translateX(150vw) rotate(-18deg) scaleX(1.18);
    opacity: 0;
  }
}

.energy-divider {
  padding: 34px max(22px, calc((100vw - var(--container)) / 2)) 0;
}

.energy-divider span {
  display: block;
  height: 1px;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(127,223,255,0.12);
}

.energy-divider.small {
  padding-top: 54px;
}

.energy-divider span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -30%;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(167,243,255,0.88), transparent);
  box-shadow: 0 0 20px rgba(167,243,255,0.6);
  animation: chargeLine 4.8s ease-in-out infinite;
}

@keyframes chargeLine {
  0%, 20% {
    transform: translateX(0);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateX(430%);
    opacity: 0;
  }
}

.reveal-item {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.electric-hover {
  position: relative;
  isolation: isolate;
}

.electric-hover::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  background:
    linear-gradient(120deg, transparent 15%, rgba(167,243,255,0.62), transparent 45%),
    linear-gradient(300deg, transparent 35%, rgba(127,223,255,0.35), transparent 60%);
  transition: opacity 0.24s ease;
}

.electric-hover::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(167,243,255,0.92), transparent);
  box-shadow: 0 0 16px rgba(167,243,255,0.55);
  transition: opacity 0.24s ease, transform 0.24s ease;
  transform: translateX(-12px);
}

.electric-hover:hover::before,
.electric-hover:hover::after {
  opacity: 1;
}

.electric-hover:hover::after {
  transform: translateX(12px);
}

.electric-hover:hover {
  border-color: rgba(127,223,255,0.42);
}

.logo-badge svg {
  filter: drop-shadow(0 0 10px rgba(167,243,255,0.18));
}

.logo:hover .logo-badge svg {
  animation: logoPulse 1.7s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(167,243,255,0.18));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(167,243,255,0.48));
  }
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42px;
  left: -65px;
  transform: skewX(-22deg);
  background: rgba(255,255,255,0.35);
  animation: buttonFlash 4.5s ease-in-out infinite;
}

@keyframes buttonFlash {
  0%, 42% {
    left: -65px;
    opacity: 0;
  }
  52% {
    opacity: 1;
  }
  74%, 100% {
    left: calc(100% + 70px);
    opacity: 0;
  }
}

.hero-card,
.contact-form,
.about-panel {
  position: relative;
  overflow: hidden;
}

.hero-card::after,
.contact-form::after,
.about-panel::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,243,255,0.6), transparent);
  box-shadow: 0 0 18px rgba(167,243,255,0.48);
  animation: panelSpark 5.6s ease-in-out infinite;
}

@keyframes panelSpark {
  0%, 35% {
    transform: translateX(-40%);
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
  100% {
    transform: translateX(40%);
    opacity: 0;
  }
}

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

  .spark-canvas,
  .electric-layer {
    display: none;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}


/* === Extra enhanced electric effects === */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -120px;
  top: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127,223,255,0.14) 0%, rgba(127,223,255,0.06) 38%, transparent 70%);
  filter: blur(4px);
  animation: heroPulse 7.5s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 12%;
  bottom: 10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,243,255,0.08) 0%, transparent 68%);
  animation: heroPulseSecondary 8.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroPulse {
  0%,100% { transform: scale(0.92); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 0.95; }
}

@keyframes heroPulseSecondary {
  0%,100% { transform: translateY(0) scale(1); opacity: 0.35; }
  50% { transform: translateY(-16px) scale(1.12); opacity: 0.7; }
}

.hero-charge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-charge span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(167,243,255,0.78) 45%, transparent 70%);
  box-shadow: 0 0 18px rgba(167,243,255,0.55);
  opacity: 0;
  animation: chargeFloat 8s linear infinite;
}

.hero-charge span:nth-child(1) { left: 8%; top: 70%; animation-delay: 0s; }
.hero-charge span:nth-child(2) { left: 18%; top: 32%; animation-delay: 1.4s; }
.hero-charge span:nth-child(3) { left: 42%; top: 62%; animation-delay: 2.8s; }
.hero-charge span:nth-child(4) { left: 76%; top: 24%; animation-delay: 4.2s; }
.hero-charge span:nth-child(5) { left: 86%; top: 72%; animation-delay: 5.4s; }

@keyframes chargeFloat {
  0% { transform: translate3d(0, 18px, 0) scale(0.4); opacity: 0; }
  12% { opacity: 1; }
  50% { opacity: 0.65; }
  100% { transform: translate3d(30px, -70px, 0) scale(1.1); opacity: 0; }
}

.strip-charged div {
  position: relative;
  overflow: hidden;
}

.strip-charged div::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 14px rgba(167,243,255,0.6);
  transform: translateY(-50%);
  animation: stripBlink 2.8s ease-in-out infinite;
}

.strip-charged div:nth-child(2)::after { animation-delay: .25s; }
.strip-charged div:nth-child(3)::after { animation-delay: .5s; }
.strip-charged div:nth-child(4)::after { animation-delay: .75s; }
.strip-charged div:nth-child(5)::after { animation-delay: 1s; }

@keyframes stripBlink {
  0%,100% { opacity: .25; transform: translateY(-50%) scale(.85); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

.service-icon {
  filter: drop-shadow(0 0 6px rgba(167,243,255,0.16));
  transition: transform .28s ease, filter .28s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 0 14px rgba(167,243,255,0.34));
}

.service-card::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  border: 1px solid rgba(127,223,255,0.08);
  transform: rotate(12deg);
  opacity: 0.6;
  pointer-events: none;
}

.scan-photo {
  overflow: hidden;
}

.scan-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -40%;
  height: 36%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.06), rgba(167,243,255,0.12), transparent);
  transform: skewY(-8deg);
  animation: photoScan 8.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes photoScan {
  0%, 18% { top: -40%; opacity: 0; }
  26% { opacity: 1; }
  48% { opacity: 0.55; }
  100% { top: 130%; opacity: 0; }
}

.scan-photo img {
  transition: transform .55s ease;
}

.project-card:hover .scan-photo img {
  transform: scale(1.03);
}

.hero-card,
.project-card,
.about-panel,
.contact-form,
.service-card,
.steps-grid > div {
  transform-style: preserve-3d;
  will-change: transform;
}

.card-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.12), transparent 26%);
  opacity: 0;
  transition: opacity .25s ease;
  mix-blend-mode: screen;
}

.is-tilting .card-sheen {
  opacity: 1;
}

.header {
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.header.is-scrolled {
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  border-color: rgba(127,223,255,0.38);
  background: rgba(8,8,8,0.88);
}

.logo-text strong {
  background: linear-gradient(180deg, #E8FCFF 0%, #A7F3FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-content h2,
.section-head h2,
.about-content h2,
.hero h1 {
  text-wrap: balance;
}

.hero h1 {
  position: relative;
}

.hero h1 .bolt-accent {
  display: inline-block;
  width: 42px;
  height: 14px;
  vertical-align: middle;
  margin-left: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(167,243,255,.2), rgba(167,243,255,.95), rgba(167,243,255,.2));
  box-shadow: 0 0 14px rgba(167,243,255,.55);
  animation: miniArc 2.6s ease-in-out infinite;
}

@keyframes miniArc {
  0%,100% { transform: scaleX(.85); opacity: .45; }
  50% { transform: scaleX(1.1); opacity: 1; }
}

.about-outline::before, .about-outline::after {
  animation: outlinePulse 6.5s ease-in-out infinite;
}

.about-outline::after { animation-delay: 1.2s; }

@keyframes outlinePulse {
  0%,100% { opacity: .35; transform: scale(1); }
  50% { opacity: .75; transform: scale(1.015); }
}

@media (max-width: 720px) {
  .strip-charged div::after {
    right: 14px;
  }
  .hero::before {
    right: -140px;
    width: 300px;
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-charge,
  .scan-photo::after,
  .strip-charged div::after,
  .hero::before,
  .hero::after {
    animation: none !important;
    display: none !important;
  }
  .card-sheen {
    display: none !important;
  }
}


/* === Real cable background: dark wires + soft light-blue pulse orb === */
.cable-current-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.98;
  background:
    radial-gradient(circle at 50% 8%, rgba(77, 166, 255, 0.075), transparent 38%),
    radial-gradient(circle at 86% 42%, rgba(61, 139, 255, 0.035), transparent 34%),
    #080808;
}

.cable-current-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cable-shadow path,
.cable-body path,
.cable-rim path,
.running-current path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cable-shadow path {
  stroke: rgba(0, 0, 0, 0.68);
  stroke-width: 26;
  filter: blur(8px);
}

.cable-body path {
  stroke: rgba(14, 18, 28, 0.98);
  stroke-width: 15;
}

.cable-rim path {
  stroke: rgba(91, 184, 255, 0.34);
  stroke-width: 2.8;
  filter:
    drop-shadow(0 0 4px rgba(77, 166, 255, 0.18))
    drop-shadow(0 0 10px rgba(61, 139, 255, 0.08));
}

/* The original SVG paths remain only as invisible routes for JS getPointAtLength(). */
.running-current .flow {
  stroke: rgba(77, 166, 255, 0.10);
  stroke-width: 1.8;
  opacity: 0.24;
  animation: none !important;
}

/* Continuous visible current stream: a lit wire plus dense moving blue flow. */
.current-stream-aura,
.current-stream-ribbon,
.current-stream-wave,
.current-stream-core,
.current-stream-spark {
  fill: none;
  pointer-events: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  will-change: stroke-dashoffset;
  mix-blend-mode: screen;
}

.current-stream-aura {
  stroke: rgba(38, 124, 255, 0.30);
  stroke-width: 13;
  opacity: 0.72;
  filter:
    blur(2.6px)
    drop-shadow(0 0 18px rgba(38, 124, 255, 0.42))
    drop-shadow(0 0 30px rgba(77, 166, 255, 0.18));
  animation: currentBreath 2.8s ease-in-out infinite;
}

.current-stream-ribbon {
  stroke: rgba(87, 187, 255, 0.58);
  stroke-width: 6.6;
  opacity: 0.88;
  filter:
    drop-shadow(0 0 9px rgba(77, 166, 255, 0.72))
    drop-shadow(0 0 22px rgba(61, 139, 255, 0.28));
  animation: currentBreath 2.8s ease-in-out infinite reverse;
}

.current-stream-wave {
  stroke: rgba(40, 142, 255, 0.76);
  stroke-width: 7.2;
  opacity: 0.92;
  filter:
    blur(0.45px)
    drop-shadow(0 0 10px rgba(38, 124, 255, 0.74))
    drop-shadow(0 0 20px rgba(61, 139, 255, 0.28));
}

.current-stream-core {
  stroke: rgba(114, 215, 255, 0.98);
  stroke-width: 3.2;
  opacity: 1;
  filter:
    drop-shadow(0 0 8px rgba(167, 243, 255, 0.95))
    drop-shadow(0 0 16px rgba(77, 166, 255, 0.68));
}

.current-stream-spark {
  stroke: rgba(225, 251, 255, 1);
  stroke-width: 1.45;
  opacity: 0.95;
  filter:
    drop-shadow(0 0 8px rgba(167, 243, 255, 1))
    drop-shadow(0 0 18px rgba(77, 166, 255, 0.62));
}

@keyframes currentBreath {
  0%, 100% {
    opacity: 0.58;
  }
  50% {
    opacity: 0.96;
  }
}

.current-orb-glow,
.current-orb,
.current-trail {
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
}

.current-orb-glow {
  fill: rgba(91, 184, 255, 0.38);
  opacity: 1;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 11px rgba(91, 184, 255, 0.92))
    drop-shadow(0 0 24px rgba(61, 139, 255, 0.58))
    drop-shadow(0 0 42px rgba(77, 166, 255, 0.32));
}

.current-orb {
  fill: #6FE8FF;
  opacity: 1;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 7px rgba(124, 199, 255, 1))
    drop-shadow(0 0 16px rgba(77, 166, 255, 0.70));
}

.current-trail {
  fill: #4DA6FF;
  opacity: 0;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 8px rgba(91, 184, 255, 0.52))
    drop-shadow(0 0 15px rgba(61, 139, 255, 0.22));
}

.cable-nodes circle {
  fill: rgba(14, 18, 26, 0.96);
  stroke: rgba(91, 184, 255, 0.28);
  stroke-width: 2.2;
  filter: drop-shadow(0 0 10px rgba(77, 166, 255, 0.12));
}

.cable-nodes circle:nth-child(3n + 1) {
  animation: cableNodePulse 3.2s ease-in-out infinite;
}

.cable-nodes circle:nth-child(3n + 2) {
  animation: cableNodePulse 3.2s ease-in-out infinite;
  animation-delay: 1.1s;
}

.cable-nodes circle:nth-child(3n) {
  animation: cableNodePulse 3.2s ease-in-out infinite;
  animation-delay: 2.1s;
}

@keyframes cableNodePulse {
  0%, 100% {
    stroke: rgba(127, 223, 255, 0.16);
    filter: drop-shadow(0 0 6px rgba(127, 223, 255, 0.08));
  }
  50% {
    stroke: rgba(167, 243, 255, 0.54);
    filter: drop-shadow(0 0 13px rgba(127, 223, 255, 0.28));
  }
}

/* Make the old abstract electric lines secondary and soft-blue. */
.electric-layer {
  opacity: 0.10;
}

.electric-layer span {
  background: linear-gradient(90deg, transparent, rgba(167, 243, 255, 0.28), transparent);
  box-shadow: 0 0 14px rgba(127, 223, 255, 0.18);
}

/* Content stays above the cable background */
main,
.footer,
.header,
.scroll-charge,
.spark-canvas {
  position: relative;
  z-index: 2;
}

.header,
.scroll-charge,
.spark-canvas {
  position: fixed;
}

.hero,
.section,
.about,
.cta,
.footer {
  position: relative;
}

.hero::before,
.hero::after {
  z-index: 0;
}

.hero-copy,
.hero-card,
.section-head,
.services-grid,
.about-panel,
.about-content,
.project-grid,
.steps-grid,
.cta-content,
.contact-form,
.footer > div {
  position: relative;
  z-index: 2;
}

/* More transparent panels: wires remain visible around content, but text is still readable */
.hero-facts div,
.hero-card,
.service-card,
.about-panel,
.project-card,
.steps-grid > div,
.contact-form {
  background:
    linear-gradient(180deg, rgba(17,17,17,0.89), rgba(10,10,10,0.94));
  border-color: rgba(127, 223, 255, 0.18);
  backdrop-filter: blur(10px);
}

/* Anchor jump should not hide titles under the fixed header */
#services,
#why,
#examples,
#steps,
#contacts {
  scroll-margin-top: 120px;
}

@media (max-width: 900px) {
  .cable-current-bg {
    opacity: 0.74;
  }

  .cable-body path {
    stroke-width: 10;
  }

  .current-orb-glow {
    opacity: 0.72;
  }
}

@media (max-width: 720px) {
  .cable-current-bg {
    opacity: 0.58;
  }

  .cable-rim path {
    stroke-width: 1.2;
  }

  .cable-body path {
    stroke-width: 8;
  }

  .current-orb {
    opacity: 0.74;
  }

  .current-orb-glow {
    opacity: 0.46;
  }

  .current-trail {
    filter: drop-shadow(0 0 5px rgba(77, 166, 255, 0.26));
  }

  .current-stream-aura {
    opacity: 0.48;
    stroke-width: 9.5;
  }

  .current-stream-ribbon {
    opacity: 0.64;
    stroke-width: 4.8;
  }

  .current-stream-wave {
    opacity: 0.70;
    stroke-width: 4.9;
  }

  .current-stream-core {
    opacity: 0.88;
    stroke-width: 2.4;
  }

  .current-stream-spark {
    opacity: 0.86;
    stroke-width: 1.05;
  }
}

@media (prefers-reduced-motion: reduce) {
  .running-current,
  .cable-nodes circle {
    animation: none !important;
  }

  .current-stream-aura,
  .current-stream-ribbon {
    animation: none !important;
  }

  .current-stream-aura {
    opacity: 0.42;
  }

  .current-stream-ribbon {
    opacity: 0.58;
  }

  .current-stream-wave,
  .current-stream-core,
  .current-stream-spark {
    opacity: 0.62;
  }

  .current-orb,
  .current-orb-glow,
  .current-trail {
    opacity: 0.46;
  }

  .cable-current-bg {
    opacity: 0.48;
  }
}

h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea {
  font-family: inherit;
}


/* === FINAL OVERLAP FIX: compact sticky header, safe section spacing, modern font === */
:root {
  --safe-header-height: 94px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-padding-top: 130px;
}

body.layout-safe {
  font-family: "Segoe UI", Inter, Roboto, Arial, Helvetica, sans-serif !important;
  font-weight: 500;
  line-height: 1.5;
}

body.layout-safe *,
body.layout-safe *::before,
body.layout-safe *::after {
  font-family: inherit !important;
}

body.layout-safe h1,
body.layout-safe h2,
body.layout-safe h3,
body.layout-safe h4,
body.layout-safe h5,
body.layout-safe h6 {
  font-family: inherit !important;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--text);
}

/* Шапка стала ниже и компактнее, чтобы не перекрывать контент */
body.layout-safe .header {
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 44px));
  min-height: 68px;
  padding: 10px 18px;
  border-radius: 999px;
  align-items: center;
}

body.layout-safe .logo-badge {
  width: 44px;
  height: 44px;
}

body.layout-safe .logo-text strong {
  display: block;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.08em;
}

body.layout-safe .logo-text small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

body.layout-safe .nav {
  gap: 18px;
  font-size: 13px;
}

body.layout-safe .header-phone {
  font-size: 14px;
}

/* Первый экран начинается гарантированно ниже шапки */
body.layout-safe .hero {
  min-height: auto;
  padding-top: 150px;
  padding-bottom: 78px;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
}

/* Главный заголовок больше не огромный и не залезает под меню */
body.layout-safe .hero h1 {
  max-width: 760px;
  font-size: clamp(40px, 4.15vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  margin: 0;
}

body.layout-safe .hero-text {
  max-width: 780px;
  font-size: 17px;
  line-height: 1.72;
  margin-top: 22px;
}

body.layout-safe .hero-card {
  margin-top: 10px;
  padding: 26px;
}

body.layout-safe .hero-card-top strong {
  font-size: 24px;
  line-height: 1.15;
}

body.layout-safe .hero-facts {
  margin-top: 36px;
}

/* Все секции получают нормальный верхний отступ, чтобы фиксированная шапка не закрывала заголовки */
body.layout-safe .section,
body.layout-safe .about,
body.layout-safe .cta {
  scroll-margin-top: 135px;
}

body.layout-safe #services,
body.layout-safe #why,
body.layout-safe #examples,
body.layout-safe #steps,
body.layout-safe #contacts {
  scroll-margin-top: 135px;
}

body.layout-safe .section {
  padding-top: 118px;
}

body.layout-safe .about {
  padding-top: 118px;
}

body.layout-safe .cta {
  padding-top: 118px;
}

/* Заголовки секций тоже уменьшаем, чтобы не выглядели сломанными */
body.layout-safe .section-head h2,
body.layout-safe .about-content h2,
body.layout-safe .cta-content h2 {
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.048em;
  margin: 0;
}

body.layout-safe .section-head {
  margin-bottom: 36px;
}

body.layout-safe .service-card h3,
body.layout-safe .project-info h3,
body.layout-safe .steps-grid h3 {
  font-weight: 800;
  letter-spacing: -0.035em;
}

/* Полоса направлений не должна сразу прилипать к первому экрану */
body.layout-safe .strip {
  margin-top: 0;
}

/* Десктоп средних размеров */
@media (max-width: 1280px) {
  body.layout-safe .hero {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
  }

  body.layout-safe .hero h1 {
    max-width: 720px;
    font-size: clamp(38px, 4vw, 56px);
  }
}

/* Планшет: карточка уходит вниз, ничего не накладывается */
@media (max-width: 1040px) {
  body.layout-safe .header {
    width: calc(100% - 28px);
  }

  body.layout-safe .hero {
    grid-template-columns: 1fr;
    padding-top: 132px;
  }

  body.layout-safe .hero h1 {
    max-width: 880px;
    font-size: clamp(38px, 6vw, 58px);
  }

  body.layout-safe .hero-card {
    max-width: 620px;
  }
}

/* Телефон */
@media (max-width: 720px) {
  html {
    scroll-padding-top: 100px;
  }

  body.layout-safe .header {
    top: 10px;
    width: calc(100% - 18px);
    min-height: 58px;
    padding: 8px 10px;
  }

  body.layout-safe .logo-badge {
    width: 38px;
    height: 38px;
  }

  body.layout-safe .logo-text strong {
    font-size: 13px;
  }

  body.layout-safe .logo-text small {
    font-size: 8px;
    max-width: 155px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.layout-safe .hero {
    padding-top: 108px;
    padding-bottom: 50px;
  }

  body.layout-safe .hero h1 {
    font-size: clamp(31px, 9vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  body.layout-safe .hero-text {
    font-size: 16px;
  }

  body.layout-safe .section,
  body.layout-safe .about,
  body.layout-safe .cta {
    padding-top: 86px;
    scroll-margin-top: 105px;
  }

  body.layout-safe #services,
  body.layout-safe #why,
  body.layout-safe #examples,
  body.layout-safe #steps,
  body.layout-safe #contacts {
    scroll-margin-top: 105px;
  }

  body.layout-safe .section-head h2,
  body.layout-safe .about-content h2,
  body.layout-safe .cta-content h2 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.1;
  }
}


/* === FINAL FIX: header is no longer fixed, menu is clickable, no overlap === */

/* Background effects must never cover or block content */
.spark-canvas,
.electric-layer,
.cable-current-bg,
.page-glow {
  pointer-events: none !important;
}

.spark-canvas {
  z-index: 5 !important;
}

.cable-current-bg,
.electric-layer,
.page-glow {
  z-index: 0 !important;
}

/* Put page content above background */
main,
.footer {
  position: relative !important;
  z-index: 2 !important;
}

/* Header is now a normal top block, not fixed. It scrolls away and never covers sections. */
body.header-normal .header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  z-index: 50 !important;
  width: min(1180px, calc(100% - 44px)) !important;
  min-height: 70px !important;
  margin: 28px auto 0 !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
}

/* Header links must be above all decorative effects */
body.header-normal .header *,
body.header-normal .nav,
body.header-normal .nav a,
body.header-normal .header-phone,
body.header-normal .menu-btn {
  position: relative;
  z-index: 60;
  pointer-events: auto !important;
}

/* Since header is not fixed anymore, first screen needs normal spacing, not giant compensation. */
body.header-normal .hero {
  min-height: auto !important;
  padding-top: 52px !important;
  padding-bottom: 78px !important;
  grid-template-columns: minmax(0, 1fr) 360px !important;
  align-items: center !important;
}

/* More stable clean typography */
body.header-normal,
body.header-normal * {
  font-family: "Segoe UI", Inter, Roboto, Arial, Helvetica, sans-serif !important;
}

body.header-normal .hero h1 {
  max-width: 820px !important;
  font-size: clamp(44px, 4.4vw, 68px) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.055em !important;
  margin: 0 !important;
  font-weight: 800 !important;
}

body.header-normal .hero-text {
  max-width: 820px !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
}

body.header-normal .section,
body.header-normal .about,
body.header-normal .cta {
  padding-top: 108px !important;
  scroll-margin-top: 40px !important;
}

body.header-normal #services,
body.header-normal #why,
body.header-normal #examples,
body.header-normal #steps,
body.header-normal #contacts {
  scroll-margin-top: 40px !important;
}

body.header-normal .section-head h2,
body.header-normal .about-content h2,
body.header-normal .cta-content h2 {
  font-size: clamp(34px, 3.8vw, 52px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.045em !important;
}

/* Top progress line can stay fixed, but it is thin and does not block clicks */
.scroll-charge {
  position: fixed !important;
  z-index: 100 !important;
  pointer-events: none !important;
}

/* Header scroll class should not change layout now */
body.header-normal .header.is-scrolled {
  background: rgba(10,10,10,0.78) !important;
  box-shadow: 0 18px 50px var(--shadow) !important;
}

/* Avoid decorative spark canvas becoming a full overlay for the user */
body.header-normal .spark-canvas {
  opacity: 0.45 !important;
}

/* Mobile menu still opens under the now-normal header */
@media (max-width: 1040px) {
  body.header-normal .nav.open {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: calc(100% + 10px) !important;
    z-index: 80 !important;
  }

  body.header-normal .hero {
    grid-template-columns: 1fr !important;
    padding-top: 44px !important;
  }

  body.header-normal .hero-card {
    max-width: 640px !important;
  }
}

@media (max-width: 720px) {
  body.header-normal .header {
    width: calc(100% - 18px) !important;
    min-height: 60px !important;
    margin-top: 12px !important;
    padding: 8px 10px !important;
  }

  body.header-normal .hero {
    padding-top: 34px !important;
    padding-bottom: 52px !important;
  }

  body.header-normal .hero h1 {
    font-size: clamp(32px, 9vw, 44px) !important;
    line-height: 1.08 !important;
  }

  body.header-normal .hero-text {
    font-size: 16px !important;
  }

  body.header-normal .section,
  body.header-normal .about,
  body.header-normal .cta {
    padding-top: 82px !important;
    scroll-margin-top: 28px !important;
  }

  body.header-normal #services,
  body.header-normal #why,
  body.header-normal #examples,
  body.header-normal #steps,
  body.header-normal #contacts {
    scroll-margin-top: 28px !important;
  }
}


/* === SEO text block and capital FAQ === */
.seo-section,
.faq-section {
  position: relative;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.seo-grid article {
  min-height: 260px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(127, 223, 255, 0.18);
  background: linear-gradient(180deg, rgba(17,17,17,0.90), rgba(10,10,10,0.95));
  box-shadow: 0 20px 50px var(--shadow);
  backdrop-filter: blur(10px);
}

.seo-grid h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.16;
}

.seo-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.seo-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.seo-keywords span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(127, 223, 255, 0.22);
  background: rgba(127, 223, 255, 0.055);
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.faq-item {
  border: 1px solid rgba(127, 223, 255, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17,17,17,0.92), rgba(10,10,10,0.96));
  box-shadow: 0 16px 44px rgba(0,0,0,0.28);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 22px 64px 22px 24px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(127, 223, 255, 0.28);
  color: var(--accent-2);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 0 18px rgba(167, 243, 255, 0.08);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 860px;
}

.faq-item:hover {
  border-color: rgba(127, 223, 255, 0.36);
}

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

  .seo-grid article {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .faq-item summary {
    padding: 18px 58px 18px 18px;
  }

  .faq-item p {
    padding: 0 18px 20px;
  }

  .seo-grid article {
    padding: 20px;
  }
}


body.header-normal #seo,
body.header-normal #faq,
body.layout-safe #seo,
body.layout-safe #faq {
  scroll-margin-top: 40px !important;
}


/* === Form improvements: "Другое" option and Telegram status === */
.custom-service-field {
  display: none;
}

.custom-service-field.is-visible {
  display: block;
}

.contact-form.is-sending {
  opacity: 0.78;
  pointer-events: none;
}

#contactNote.success {
  color: #7ef0a1;
}

#contactNote.error {
  color: #ffb4a8;
}

#contactNote.info {
  color: var(--muted);
}


/* === Performance pass: dark glass, lighter current, fast tile reveal, contact dock === */
:root {
  --dock-size: 52px;
}

.spark-canvas,
.electric-layer,
.card-sheen,
.btn-primary::after,
.scan-photo::after,
.hero-charge,
.current-orb,
.current-orb-glow,
.current-trail,
.current-stream-aura,
.current-stream-ribbon,
.current-stream-wave,
.current-stream-core,
.current-stream-spark {
  display: none !important;
}

body.header-normal .header,
body.layout-safe .header {
  background: rgba(7, 10, 12, 0.94) !important;
  border-color: rgba(127, 223, 255, 0.22) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.38) !important;
  backdrop-filter: none !important;
}

body.header-normal .header.is-scrolled,
body.layout-safe .header.is-scrolled {
  background: rgba(7, 10, 12, 0.94) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.38) !important;
}

.hero-facts div,
.hero-card,
.service-card,
.about-panel,
.project-card,
.steps-grid > div,
.contact-form,
.seo-grid article,
.faq-item {
  background: linear-gradient(180deg, rgba(15, 16, 17, 0.93), rgba(9, 10, 11, 0.97)) !important;
  border-color: rgba(127, 223, 255, 0.16) !important;
  backdrop-filter: none !important;
}

.service-card,
.project-card,
.steps-grid > div,
.seo-grid article,
.faq-item {
  content-visibility: auto;
  contain-intrinsic-size: 360px;
}

.section,
.about,
.cta {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.hero-card,
.project-card,
.about-panel,
.contact-form,
.service-card,
.steps-grid > div {
  transform-style: flat !important;
  will-change: auto !important;
}

.service-card::before {
  opacity: 0.25;
}

.hero h1 .bolt-accent {
  background: linear-gradient(90deg, rgba(127, 223, 255, 0.05), rgba(127, 223, 255, 0.66), rgba(127, 223, 255, 0.05)) !important;
  box-shadow: 0 0 10px rgba(127, 223, 255, 0.26) !important;
}

.scroll-charge {
  width: 100% !important;
  transform: scaleX(0);
  transform-origin: left center;
  transition: none !important;
  will-change: transform;
}

.cable-current-bg {
  opacity: 0.78 !important;
  background:
    radial-gradient(circle at 50% 8%, rgba(77, 166, 255, 0.055), transparent 35%),
    #080808 !important;
}

.cable-shadow path {
  filter: none !important;
  stroke: rgba(0, 0, 0, 0.58) !important;
}

.cable-rim path,
.cable-nodes circle {
  filter: none !important;
}

.running-current {
  filter: none !important;
}

.running-current .flow {
  stroke: rgba(126, 225, 255, 0.62) !important;
  stroke-width: 2.4 !important;
  stroke-dasharray: 3 18 22 26;
  opacity: 0.7 !important;
  animation: optimizedCableFlow 7.5s linear infinite !important;
}

.running-current .flow-b,
.running-current .flow-d {
  animation-duration: 8.8s !important;
  animation-delay: -1.4s !important;
}

.running-current .flow-c,
.running-current .flow-f {
  animation-duration: 9.6s !important;
  animation-delay: -2.2s !important;
}

@keyframes optimizedCableFlow {
  to {
    stroke-dashoffset: -260;
  }
}

.cable-nodes circle {
  animation: none !important;
  stroke: rgba(127, 223, 255, 0.20) !important;
}

.reveal-item,
.tile-reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 0.36s ease-out,
    transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-item.is-visible,
.tile-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.contact-dock {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 120;
  transform: translateY(-50%);
  pointer-events: none;
}

.contact-dock__toggle,
.contact-dock__call,
.contact-dock__panel,
.contact-dock__link {
  font-family: inherit;
}

.contact-dock__call {
  display: none;
}

.contact-dock__toggle {
  width: var(--dock-size);
  min-height: 126px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid rgba(127, 223, 255, 0.28);
  border-radius: 999px;
  color: #061014;
  background: linear-gradient(180deg, #A7F3FF, #7FDFFF);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), 0 0 20px rgba(127, 223, 255, 0.18);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-dock__toggle:hover,
.contact-dock__call:hover,
.contact-dock.is-open .contact-dock__toggle {
  transform: translateX(-2px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.40), 0 0 24px rgba(127, 223, 255, 0.26);
}

.contact-dock__toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-dock__toggle span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.contact-dock__panel {
  position: absolute;
  right: calc(var(--dock-size) + 12px);
  top: 50%;
  width: min(318px, calc(100vw - 94px));
  padding: 10px;
  border: 1px solid rgba(127, 223, 255, 0.20);
  border-radius: 22px;
  background: rgba(9, 11, 13, 0.96);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.48);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(20px, -50%, 0) scale(0.98);
  transition:
    opacity 0.16s ease,
    transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 0.22s;
  contain: layout paint style;
}

.contact-dock.is-open .contact-dock__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, -50%, 0) scale(1);
  transition-delay: 0s;
}

.contact-dock__link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px;
  border-radius: 16px;
  color: var(--text);
  transition: background 0.16s ease, transform 0.16s ease;
}

.contact-choice {
  margin: 0;
  padding: 0;
}

.contact-choice + .contact-choice {
  margin-top: 4px;
}

.contact-choice summary {
  cursor: pointer;
  list-style: none;
}

.contact-choice .contact-dock__link {
  grid-template-columns: 42px minmax(0, 1fr) 12px;
}

.contact-choice summary::-webkit-details-marker {
  display: none;
}

.contact-choice summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(127, 223, 255, 0.72);
  border-bottom: 2px solid rgba(127, 223, 255, 0.72);
  justify-self: end;
  align-self: center;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.contact-choice[open] summary::after {
  transform: rotate(225deg);
}

.contact-dock__link:hover {
  background: rgba(127, 223, 255, 0.075);
  transform: translateX(-2px);
}

.contact-dock__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.contact-dock__icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.contact-dock__link strong,
.contact-dock__link small {
  display: block;
  min-width: 0;
}

.contact-dock__link strong {
  font-size: 15px;
  line-height: 1.05;
}

.contact-dock__link small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.contact-choice__list {
  display: grid;
  gap: 6px;
  padding: 2px 8px 10px 60px;
}

.contact-choice__list a {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(127, 223, 255, 0.12);
  border-radius: 12px;
  background: rgba(127, 223, 255, 0.045);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.contact-choice__list a:hover {
  border-color: rgba(127, 223, 255, 0.34);
  background: rgba(127, 223, 255, 0.09);
  transform: translateX(-2px);
}

.contact-choice__list small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.is-telegram .contact-dock__icon {
  background: #229ED9;
}

.is-whatsapp .contact-dock__icon {
  background: #22C55E;
}

.is-max .contact-dock__icon {
  background: linear-gradient(135deg, #0EA5E9, #7FDFFF);
  color: #061014;
}

@media (max-width: 720px) {
  .cable-current-bg {
    opacity: 0.42 !important;
  }

  .running-current .flow {
    opacity: 0.42 !important;
    stroke-width: 1.55 !important;
    animation-duration: 11s !important;
  }

  .service-card,
  .project-card,
  .steps-grid > div,
  .seo-grid article,
  .faq-item {
    contain-intrinsic-size: 420px;
  }

  .contact-dock {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    right: 12px;
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .contact-dock__call {
    width: 54px;
    min-height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(127, 223, 255, 0.30);
    border-radius: 50%;
    color: #061014;
    background: linear-gradient(180deg, #D5FBFF, #7FDFFF);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), 0 0 20px rgba(127, 223, 255, 0.18);
    pointer-events: auto;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .contact-dock__call:hover {
    transform: translateY(-2px);
  }

  .contact-dock__call svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }

  .contact-dock__call span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .contact-dock__toggle {
    width: 54px;
    min-height: 54px;
    padding: 0;
    border-radius: 50%;
  }

  .contact-dock__toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .contact-dock__panel {
    right: 0;
    top: auto;
    bottom: calc(var(--dock-size) + 12px);
    width: min(282px, calc(100vw - 24px));
    transform: translate3d(0, 14px, 0) scale(0.98);
  }

  .contact-dock.is-open .contact-dock__panel {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .running-current .flow {
    animation: none !important;
  }

  .reveal-item,
  .tile-reveal,
  .contact-dock__panel,
  .contact-dock__call,
  .contact-dock__toggle,
  .contact-dock__link {
    transition: none !important;
  }
}


/* === Cursor electrician runner === */
.electrician-follower {
  --runner-dir: 1;
  position: fixed;
  left: 0;
  top: 0;
  width: 112px;
  height: 140px;
  z-index: 90;
  pointer-events: none !important;
  opacity: 0;
  transform: translate3d(-220px, -220px, 0);
  transition: opacity 0.24s ease;
  will-change: transform, opacity;
  contain: layout paint style;
}

.electrician-follower.is-visible {
  opacity: 1;
}

.electrician-follower svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  transform: scaleX(var(--runner-dir));
  transform-origin: 50% 92%;
  transition: transform 0.12s ease;
  filter:
    drop-shadow(0 12px 20px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 13px rgba(127, 223, 255, 0.30))
    drop-shadow(0 0 22px rgba(61, 139, 255, 0.12));
}

.electrician-follower--mascot {
  width: 59px;
  height: 88px;
  z-index: 92;
}

.electrician-follower__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform: scaleX(var(--runner-dir));
  transform-origin: 50% 86%;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 16px 24px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 14px rgba(127, 223, 255, 0.36))
    drop-shadow(0 0 30px rgba(61, 139, 255, 0.20));
}

.electrician-follower--mascot.is-running .electrician-follower__image {
  animation: mascotRun 0.34s ease-in-out infinite;
}

.runner-shadow ellipse {
  fill: rgba(0, 0, 0, 0.48);
  filter: blur(0.5px);
}

.runner-cable path,
.runner-spark,
.runner-mini-bolt,
.runner-headlamp-glow {
  fill: none;
  stroke: rgba(127, 223, 255, 0.86);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.runner-cable > path:not(.runner-cable-glow):not(.runner-spark):not(.runner-mini-bolt):not(.runner-plug):not(.runner-plug-pin) {
  stroke-width: 3.6;
  filter: drop-shadow(0 0 8px rgba(127, 223, 255, 0.52));
}

.runner-cable-glow {
  stroke: rgba(61, 139, 255, 0.24);
  stroke-width: 9;
  filter: blur(2px);
}

.runner-plug {
  fill: #172431;
  stroke: rgba(167, 243, 255, 0.72);
  stroke-width: 1.7;
  filter: drop-shadow(0 0 8px rgba(127, 223, 255, 0.36));
}

.runner-plug-pin {
  stroke: #E8FCFF;
  stroke-width: 2.2;
}

.runner-cable-dot {
  fill: #7FDFFF;
  filter: drop-shadow(0 0 8px rgba(167, 243, 255, 0.92));
}

.runner-spark,
.runner-mini-bolt {
  stroke: #E8FCFF;
  stroke-width: 2.4;
  opacity: 0.86;
  animation: runnerSpark 0.8s ease-in-out infinite;
}

.runner-mini-bolt {
  stroke-width: 1.65;
  animation-delay: 0.22s;
}

.runner-headlamp-glow {
  stroke: rgba(167, 243, 255, 0.46);
  stroke-width: 4;
  opacity: 0.72;
  filter: blur(1px) drop-shadow(0 0 14px rgba(127, 223, 255, 0.42));
}

.runner-person,
.runner-body,
.runner-arm,
.runner-leg,
.runner-head {
  transform-box: fill-box;
  transform-origin: center;
}

.runner-person {
  transform-origin: 50% 82%;
}

.runner-neck {
  fill: #D58B61;
}

.runner-face {
  fill: url(#runnerSkinGrad);
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 1.5;
}

.runner-ear {
  fill: none;
  stroke: #C77752;
  stroke-width: 3.2;
  stroke-linecap: round;
}

.runner-hair {
  fill: #4E2F22;
  opacity: 0.82;
}

.runner-eye {
  fill: #0A1118;
}

.runner-brow,
.runner-nose,
.runner-smile {
  fill: none;
  stroke: #8A5137;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.runner-brow {
  stroke-width: 1.7;
  opacity: 0.68;
}

.runner-nose {
  stroke-width: 1.5;
  opacity: 0.58;
}

.runner-smile {
  stroke-width: 2.3;
  stroke-linecap: round;
}

.runner-helmet {
  fill: url(#runnerHelmetGrad);
  stroke: #9E6D00;
  stroke-width: 2.2;
  filter:
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.22))
    drop-shadow(0 0 8px rgba(255, 210, 74, 0.24));
}

.runner-helmet-rim,
.runner-helmet-line,
.runner-helmet-side {
  fill: none;
  stroke: #B77B00;
  stroke-width: 3.1;
  stroke-linecap: round;
}

.runner-helmet-side {
  stroke: rgba(255, 246, 180, 0.55);
  stroke-width: 1.8;
}

.runner-headlamp {
  fill: #E8FCFF;
  stroke: #328ED6;
  stroke-width: 2;
  filter:
    drop-shadow(0 0 8px rgba(167, 243, 255, 0.95))
    drop-shadow(0 0 16px rgba(77, 166, 255, 0.42));
}

.runner-jacket-back {
  fill: #07111A;
  stroke: rgba(127, 223, 255, 0.18);
  stroke-width: 2;
}

.runner-torso {
  fill: url(#runnerSuitGrad);
  stroke: rgba(167, 243, 255, 0.82);
  stroke-width: 1.8;
  filter:
    drop-shadow(0 0 8px rgba(127, 223, 255, 0.16))
    drop-shadow(0 4px 0 rgba(0, 0, 0, 0.18));
}

.runner-vest-left,
.runner-vest-right {
  fill: url(#runnerVestGrad);
  opacity: 0.92;
  stroke: rgba(232, 252, 255, 0.54);
  stroke-width: 1.1;
}

.runner-collar {
  fill: none;
  stroke: rgba(232, 252, 255, 0.82);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.runner-reflector {
  fill: none;
  stroke: rgba(232, 252, 255, 0.92);
  stroke-width: 3.2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(167, 243, 255, 0.56));
}

.runner-reflector-cross {
  stroke-width: 3.7;
}

.runner-belt {
  fill: #151C25;
  stroke: rgba(127, 223, 255, 0.38);
  stroke-width: 1.4;
}

.runner-buckle {
  fill: #FFD24A;
  stroke: rgba(0, 0, 0, 0.24);
  stroke-width: 0.8;
}

.runner-tool-bag {
  fill: #1B2832;
  stroke: rgba(167, 243, 255, 0.46);
  stroke-width: 1.7;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.20));
}

.runner-tool {
  fill: none;
  stroke: #FFD24A;
  stroke-width: 2.7;
  stroke-linecap: round;
}

.runner-tool-small {
  stroke: #E8FCFF;
  stroke-width: 1.8;
}

.runner-badge {
  fill: #0D304B;
  stroke: rgba(232, 252, 255, 0.86);
  stroke-width: 1.2;
}

.runner-badge-bolt {
  fill: none;
  stroke: #FFD24A;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.runner-sleeve {
  fill: none;
  stroke: #1E75B8;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(127, 223, 255, 0.12));
}

.runner-glove {
  fill: #E8FCFF;
  stroke: #3E8CCB;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px rgba(167, 243, 255, 0.34));
}

.runner-arm-back,
.runner-leg-back {
  opacity: 0.74;
}

.runner-pant {
  fill: url(#runnerSuitGrad);
  stroke: rgba(167, 243, 255, 0.32);
  stroke-width: 1.4;
}

.runner-knee {
  fill: none;
  stroke: rgba(232, 252, 255, 0.36);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.runner-boot {
  fill: url(#runnerBootGrad);
  stroke: rgba(127, 223, 255, 0.30);
  stroke-width: 1.5;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.26));
}

.electrician-follower.is-awake .runner-head {
  animation: runnerLook 1.6s ease-in-out infinite;
}

.electrician-follower.is-running .runner-person {
  animation: runnerBodyBounce 0.34s ease-in-out infinite;
}

.electrician-follower.is-running .runner-arm-front {
  animation: runnerArmFront 0.34s ease-in-out infinite;
}

.electrician-follower.is-running .runner-arm-back {
  animation: runnerArmBack 0.34s ease-in-out infinite;
}

.electrician-follower.is-running .runner-leg-front {
  animation: runnerLegFront 0.34s ease-in-out infinite;
}

.electrician-follower.is-running .runner-leg-back {
  animation: runnerLegBack 0.34s ease-in-out infinite;
}

.electrician-follower.is-running .runner-shadow {
  animation: runnerShadow 0.34s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes runnerBodyBounce {
  0%, 100% { transform: translateY(0) rotate(-0.8deg); }
  50% { transform: translateY(-4px) rotate(1.2deg); }
}

@keyframes runnerArmFront {
  0%, 100% { transform: rotate(15deg) translateY(2px); }
  50% { transform: rotate(-22deg) translateY(-2px); }
}

@keyframes runnerArmBack {
  0%, 100% { transform: rotate(-17deg) translateY(-2px); }
  50% { transform: rotate(20deg) translateY(2px); }
}

@keyframes runnerLegFront {
  0%, 100% { transform: rotate(-13deg) translateY(2px); }
  50% { transform: rotate(18deg) translateY(-2px); }
}

@keyframes runnerLegBack {
  0%, 100% { transform: rotate(16deg) translateY(-2px); }
  50% { transform: rotate(-18deg) translateY(2px); }
}

@keyframes runnerShadow {
  0%, 100% { transform: scaleX(0.88); opacity: 0.72; }
  50% { transform: scaleX(1.08); opacity: 0.48; }
}

@keyframes runnerLook {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(2.5deg); }
}

@keyframes runnerSpark {
  0%, 100% {
    opacity: 0.36;
    stroke-width: 1.8;
    filter: drop-shadow(0 0 5px rgba(127, 223, 255, 0.52));
  }
  45% {
    opacity: 1;
    stroke-width: 2.8;
    filter: drop-shadow(0 0 13px rgba(167, 243, 255, 0.95));
  }
}

@keyframes mascotRun {
  0%, 100% {
    transform: scaleX(var(--runner-dir)) translateY(0) rotate(-1.2deg);
  }
  50% {
    transform: scaleX(var(--runner-dir)) translateY(-5px) rotate(1.6deg);
  }
}

@media (max-width: 720px) {
  .electrician-follower {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .electrician-follower svg,
  .electrician-follower.is-awake .runner-head,
  .electrician-follower.is-running .runner-person,
  .electrician-follower.is-running .runner-arm-front,
  .electrician-follower.is-running .runner-arm-back,
  .electrician-follower.is-running .runner-leg-front,
  .electrician-follower.is-running .runner-leg-back,
  .electrician-follower.is-running .runner-shadow,
  .runner-spark {
    animation-duration: 1.2s !important;
  }
}


/* === Restore visible cold-blue electricity: constant CSS-only current === */
.cable-current-bg {
  opacity: 0.92 !important;
}

.cable-rim path {
  stroke: rgba(115, 219, 255, 0.52) !important;
  stroke-width: 2.4 !important;
  filter:
    drop-shadow(0 0 5px rgba(127, 223, 255, 0.34))
    drop-shadow(0 0 14px rgba(77, 166, 255, 0.18)) !important;
}

.running-current {
  display: block !important;
  opacity: 1 !important;
  filter: url("#currentGlowStrong") !important;
}

.running-current .flow {
  display: block !important;
  stroke: rgba(166, 241, 255, 0.98) !important;
  stroke-width: 3.8 !important;
  stroke-dasharray: 2 13 34 18 6 26 !important;
  stroke-dashoffset: 0;
  opacity: 0.96 !important;
  mix-blend-mode: screen;
  animation: coldBlueElectricCurrent 3.6s linear infinite !important;
  will-change: stroke-dashoffset;
}

.running-current .flow-a,
.running-current .flow-d {
  animation-duration: 3.15s !important;
}

.running-current .flow-b,
.running-current .flow-e {
  animation-duration: 4.1s !important;
  animation-direction: reverse !important;
}

.running-current .flow-c,
.running-current .flow-f {
  animation-duration: 4.7s !important;
}

@keyframes coldBlueElectricCurrent {
  to {
    stroke-dashoffset: -420;
  }
}

@media (max-width: 720px) {
  .cable-current-bg {
    opacity: 0.62 !important;
  }

  .running-current .flow {
    stroke-width: 2.6 !important;
    stroke-dasharray: 2 16 24 20 4 28 !important;
    animation-duration: 5.2s !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .running-current .flow {
    animation: coldBlueElectricCurrent 4.8s linear infinite !important;
  }
}

/* === Main page: three clear work directions === */
.core-directions {
  width: min(1180px, calc(100% - 40px));
  margin: 88px auto 0;
}

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

.core-direction-card {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(127, 223, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(15, 16, 17, 0.93), rgba(9, 10, 11, 0.97));
  box-shadow: 0 20px 50px var(--shadow);
}

.core-direction-card span {
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(127, 223, 255, 0.24);
  border-radius: 999px;
  color: #a7f3ff;
  background: rgba(127, 223, 255, 0.07);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.core-direction-card h3 {
  margin: 0;
  color: var(--accent-2);
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0;
}

.core-direction-card p {
  margin: 0;
  color: #d0cac0;
  line-height: 1.68;
}

@media (max-width: 920px) {
  .core-directions-grid {
    grid-template-columns: 1fr;
  }

  .core-direction-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .core-directions {
    width: min(100% - 24px, 1180px);
    margin-top: 56px;
  }
}


/* === Contact emphasis, Moscow digital clock, reviews and completed works === */
body.header-normal .header {
  gap: 18px !important;
}

body.header-normal .nav,
body.layout-safe .nav {
  gap: 14px !important;
  font-size: 12.5px !important;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.site-clock {
  min-width: 116px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(127, 223, 255, 0.24);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(127, 223, 255, 0.055);
  box-shadow: inset 0 0 18px rgba(127, 223, 255, 0.04), 0 0 16px rgba(127, 223, 255, 0.06);
}

.site-clock__label {
  color: rgba(248, 246, 241, 0.74);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.site-clock time {
  font-family: "Segoe UI", Inter, Roboto, Arial, Helvetica, sans-serif;
  color: #A7F3FF;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(127, 223, 255, 0.36);
}

body.header-normal .header-phone,
body.layout-safe .header-phone,
.header-phone {
  display: grid;
  gap: 2px;
  min-width: max-content;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(127, 223, 255, 0.28);
  background: rgba(127, 223, 255, 0.065);
  color: #A7F3FF !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  line-height: 1.05;
  text-shadow: 0 0 14px rgba(127, 223, 255, 0.32);
}

.header-phone span {
  color: rgba(248, 246, 241, 0.68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: none;
}

.header-phone strong {
  color: #A7F3FF;
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
}

.contact-links a:first-child,
.footer > div:last-child a:first-child {
  color: #A7F3FF;
  font-size: 20px;
  font-weight: 950;
  text-shadow: 0 0 14px rgba(127, 223, 255, 0.30);
}

.contact-links .contact-address {
  flex-basis: 100%;
  justify-content: flex-start;
  color: var(--text);
  border-color: rgba(127, 223, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
}

.footer > div:last-child a:last-child {
  color: var(--accent-2);
  max-width: 260px;
  justify-self: end;
}

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

.work-results,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.before-after-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(127, 223, 255, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(127, 223, 255, 0.10), rgba(255, 255, 255, 0.02)),
    rgba(6, 8, 9, 0.78);
}

.before-after-intro span {
  color: #A7F3FF;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.before-after-intro p {
  margin: 0;
  color: #ddd6ca;
  line-height: 1.65;
}

.before-after-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

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

.work-result-card,
.review-card,
.before-after-card {
  min-height: 240px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(127, 223, 255, 0.16);
  background: linear-gradient(180deg, rgba(15, 16, 17, 0.93), rgba(9, 10, 11, 0.97));
  box-shadow: 0 20px 50px var(--shadow);
  content-visibility: auto;
  contain-intrinsic-size: 360px;
}

.before-after-card {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: auto;
  gap: 16px;
  padding: 14px;
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.before-after-card:nth-child(3) {
  grid-column: span 2;
}

.before-after-photo {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(127, 223, 255, 0.16);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.26);
}

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

.before-after-photo::before {
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.24)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 45%, rgba(0, 0, 0, 0.22));
}

.before-after-photo::after {
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: 2px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 18px rgba(127, 223, 255, 0.50);
  transform: translateX(-1px);
}

.before-after-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-label {
  position: absolute;
  top: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1.22;
  text-transform: uppercase;
}

.photo-label--before {
  left: 14px;
  color: #ffd4c8;
  background: rgba(58, 24, 18, 0.82);
  border: 1px solid rgba(255, 150, 124, 0.28);
}

.photo-label--after {
  right: 14px;
  color: #A7F3FF;
  background: rgba(7, 33, 41, 0.84);
  border: 1px solid rgba(127, 223, 255, 0.34);
  box-shadow: 0 0 20px rgba(127, 223, 255, 0.18);
}

.before-after-caption {
  display: grid;
  gap: 8px;
  padding: 2px 4px 4px;
}

.before-after-card h3 {
  margin: 0;
  color: var(--accent-2);
  font-size: 24px;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.before-after-card p {
  margin: 0;
  color: #d0cac0;
  line-height: 1.68;
}

.work-result-card span,
.review-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-result-card h3 {
  margin: 18px 0 10px;
  color: var(--accent-2);
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.work-result-card p,
.review-card p {
  margin: 0;
  color: #d0cac0;
  line-height: 1.72;
}

.review-card {
  min-height: 310px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.review-card--mixed {
  border-color: rgba(255, 214, 128, 0.22);
}

.review-stars {
  color: #A7F3FF;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-shadow: 0 0 14px rgba(127, 223, 255, 0.40);
}

.review-card strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.1;
}

.review-card span {
  letter-spacing: 0;
  text-transform: none;
}

.review-reply {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding: 14px;
  border: 1px solid rgba(127, 223, 255, 0.14);
  border-radius: 18px;
  background: rgba(127, 223, 255, 0.055);
}

.review-reply strong {
  margin: 0;
  color: var(--accent-2);
  font-size: 14px;
}

.review-reply p {
  margin: 0;
  color: #cfc8bd;
  font-size: 14px;
  line-height: 1.58;
}

.reviews-section {
  padding-top: 96px;
}

.reviews-hero {
  max-width: 980px;
  margin: 86px auto 0;
  padding: 0 22px;
}

.reviews-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(44px, 6vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.reviews-section--page {
  padding-top: 42px;
}

.reviews-grid--page {
  max-width: 1180px;
  margin: 0 auto;
}

.reviews-note {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 22px auto 0;
  padding: 26px;
  border: 1px solid rgba(127, 223, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(127, 223, 255, 0.10), rgba(255, 255, 255, 0.025)),
    rgba(10, 12, 14, 0.88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.reviews-note span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reviews-note h2 {
  margin: 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.reviews-note p {
  margin: 0;
  color: #d0cac0;
  line-height: 1.68;
}

.reviews-note .btn {
  width: fit-content;
  margin-top: 6px;
}

.review-form {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.review-form input[type="text"],
.review-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(127, 223, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  outline: none;
}

.review-form input[type="text"] {
  min-height: 54px;
  padding: 0 16px;
}

.review-form textarea {
  min-height: 130px;
  padding: 14px 16px;
  resize: vertical;
}

.review-form input::placeholder,
.review-form textarea::placeholder {
  color: rgba(244, 240, 232, 0.56);
}

.rating-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(127, 223, 255, 0.14);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
}

.rating-field > span {
  margin-right: 2px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rating-field label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(127, 223, 255, 0.14);
  border-radius: 999px;
  color: #f4f0e8;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.rating-field input {
  accent-color: #7FDFFF;
}

.review-form-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.review-form-note.success {
  color: #9af2b7;
}

.review-form-note.error {
  color: #ffb5a6;
}

.review-form.is-sending {
  opacity: 0.72;
  pointer-events: none;
}

.review-modal .request-modal__dialog {
  max-width: 680px;
}

.review-modal .rating-field {
  margin: 0;
}

.review-modal .review-form-note {
  min-height: 22px;
}

body.header-normal #reviews,
body.layout-safe #reviews {
  scroll-margin-top: 40px !important;
}

@media (max-width: 1180px) {
  body.header-normal .nav,
  body.layout-safe .nav {
    gap: 10px !important;
    font-size: 12px !important;
  }

  .site-clock {
    min-width: 104px;
    padding-inline: 10px;
  }

  .header-phone strong {
    font-size: 16px;
  }
}

@media (max-width: 1040px) {
  .header-actions {
    display: none;
  }

  .before-after-block,
  .work-results,
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .before-after-intro {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .before-after-block,
  .work-results,
  .reviews-grid,
  .strip {
    grid-template-columns: 1fr;
  }

  .work-result-card,
  .review-card,
  .before-after-card {
    min-height: auto;
    padding: 20px;
  }

  .before-after-card:nth-child(3) {
    grid-column: auto;
  }

  .before-after-photo {
    border-radius: 16px;
  }

  .photo-label {
    top: 10px;
    min-height: 28px;
    padding: 6px 9px;
    font-size: 10px;
  }

  .photo-label--before {
    left: 10px;
  }

  .photo-label--after {
    right: 10px;
  }

  .before-after-card h3 {
    font-size: 22px;
  }

  .contact-links a:first-child,
  .footer > div:last-child a:first-child {
    font-size: 18px;
  }

  .footer > div:last-child a:last-child {
    justify-self: start;
  }
}

/* === Final responsive polish for merged public_html build === */
html {
  overflow-x: hidden;
}

body {
  overflow-x: clip;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.service-card,
.team-card,
.project-card,
.before-after-card,
.work-result-card,
.review-card,
.faq-item,
.contact-form {
  min-width: 0;
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.project-grid {
  align-items: stretch;
}

.project-photo,
.before-after-photo,
.team-photo {
  background: rgba(5, 12, 16, 0.96);
}

.contact-choice .contact-dock__link {
  width: 100%;
  border: 0;
  appearance: none;
}

.contact-choice__list a {
  overflow-wrap: anywhere;
}

@media (min-width: 721px) and (max-width: 1180px) {
  body.header-normal .header,
  body.layout-safe .header {
    width: min(100% - 28px, 1120px);
  }

  body.header-normal .nav,
  body.layout-safe .nav {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
  }

  .section,
  .about,
  .cta,
  .reviews-section {
    padding-left: 24px;
    padding-right: 24px;
  }

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

  .team-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .contact-dock__panel {
    width: min(330px, calc(100vw - 120px));
  }
}

@media (max-width: 900px) {
  .section-head,
  .section-head.narrow,
  .team-section-head {
    max-width: 100%;
  }

  .section-head h2,
  .about-content h2,
  .cta-content h2 {
    font-size: clamp(34px, 7vw, 54px);
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card.large {
    grid-row: auto;
  }

  .project-card.large .project-photo,
  .project-photo {
    min-height: clamp(280px, 54vw, 460px);
  }
}

@media (max-width: 720px) {
  body.header-normal,
  body.layout-safe {
    min-width: 0;
  }

  .header-stage {
    padding-left: 10px;
    padding-right: 10px;
  }

  body.header-normal .header,
  body.layout-safe .header {
    width: 100%;
    min-height: 62px;
    gap: 10px;
  }

  .logo {
    min-width: 0;
  }

  .logo-text strong,
  .logo-text small {
    max-width: 48vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.header-normal .nav.open,
  body.layout-safe .nav.open {
    left: 10px;
    right: 10px;
    width: auto;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .hero,
  .section,
  .about,
  .cta,
  .reviews-section,
  .seo-section,
  .faq-section {
    width: min(100% - 20px, var(--container));
    padding-left: 0;
    padding-right: 0;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 58px);
    line-height: 0.96;
  }

  .hero-actions,
  .contact-links {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .contact-links a,
  .contact-form button {
    width: 100%;
  }

  .services-grid,
  .team-grid,
  .project-grid,
  .before-after-block,
  .work-results,
  .reviews-grid,
  .steps-grid,
  .seo-grid {
    grid-template-columns: 1fr !important;
  }

  .service-card,
  .team-card,
  .project-card,
  .before-after-card,
  .work-result-card,
  .review-card {
    border-radius: 18px;
  }

  .service-card {
    min-height: auto;
    padding: 20px;
  }

  .service-card h3,
  .project-info h3,
  .before-after-card h3,
  .work-result-card h3 {
    letter-spacing: 0;
  }

  .team-photo {
    margin: 8px 8px 0;
    border-radius: 16px;
  }

  .team-card-content {
    padding: 18px 18px 22px;
  }

  .team-card h3 {
    font-size: clamp(23px, 8vw, 30px);
  }

  .team-role {
    font-size: 12px;
    line-height: 1.3;
  }

  .project-card.large .project-photo,
  .project-photo {
    min-height: 260px;
  }

  .before-after-photo {
    aspect-ratio: 16 / 10;
  }

  .before-after-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .contact-form {
    padding: 18px;
    border-radius: 18px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    min-height: 52px;
    font-size: 16px;
  }

  .contact-dock {
    z-index: 120;
  }

  .contact-dock__panel {
    width: min(330px, calc(100vw - 24px));
    max-height: min(70vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 18px;
  }

  .contact-choice .contact-dock__link {
    grid-template-columns: 38px minmax(0, 1fr) 12px;
    min-height: 50px;
    gap: 9px;
  }

  .contact-dock__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .contact-dock__link strong {
    font-size: 14px;
  }

  .contact-choice__list {
    padding: 0 6px 10px 50px;
  }

  .contact-choice__list a {
    padding: 8px 9px;
    font-size: 12px;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 430px) {
  .section-head h2,
  .about-content h2,
  .cta-content h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .logo-text small {
    display: none;
  }

  .site-datetime {
    transform: scale(0.92);
    transform-origin: top right;
  }

  .service-card ul {
    padding-left: 16px;
  }

  .contact-dock__panel {
    width: calc(100vw - 20px);
    right: -2px;
  }

  .photo-label {
    letter-spacing: 0.08em;
  }
}

/* === Final contact people routing === */
.call-choice {
  position: relative;
  pointer-events: auto;
}

.call-choice summary {
  list-style: none;
  cursor: pointer;
}

.call-choice summary::-webkit-details-marker {
  display: none;
}

.contact-dock .contact-dock__call {
  width: var(--dock-size);
  min-height: 126px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid rgba(127, 223, 255, 0.30);
  border-radius: 999px;
  color: #061014;
  background: linear-gradient(180deg, #D5FBFF, #7FDFFF);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), 0 0 20px rgba(127, 223, 255, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-dock .contact-dock__call svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-dock .contact-dock__call span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.call-choice[open] .contact-dock__call {
  transform: translateX(-2px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.40), 0 0 24px rgba(127, 223, 255, 0.26);
}

.call-choice__panel {
  position: absolute;
  right: calc(var(--dock-size) + 12px);
  top: 50%;
  width: min(286px, calc(100vw - 94px));
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(127, 223, 255, 0.20);
  border-radius: 20px;
  background: rgba(9, 11, 13, 0.96);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.48);
  transform: translate3d(20px, -50%, 0) scale(0.98);
}

.call-choice__panel a {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(127, 223, 255, 0.13);
  border-radius: 14px;
  background: rgba(127, 223, 255, 0.055);
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.call-choice__panel a:hover {
  border-color: rgba(127, 223, 255, 0.36);
  background: rgba(127, 223, 255, 0.10);
  transform: translateX(-2px);
}

.call-choice__panel small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

@media (max-width: 720px) {
  .contact-dock .contact-dock__call {
    width: 54px;
    min-height: 54px;
    padding: 0;
    border-radius: 50%;
  }

  .contact-dock .contact-dock__call span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .call-choice__panel {
    right: 0;
    top: auto;
    bottom: calc(54px + 12px);
    width: min(282px, calc(100vw - 24px));
    max-height: min(58vh, 430px);
    overflow-y: auto;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* === Request modal: compact contact flow === */
button.btn,
.hero-card-link,
.request-modal__close {
  font: inherit;
  cursor: pointer;
}

button.btn {
  border: 0;
}

.hero-card-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-2);
  font-weight: 900;
}

.hero-card-link:hover {
  color: #E8FCFF;
}

.cta-compact {
  grid-template-columns: minmax(0, 1fr) !important;
  padding-bottom: 58px !important;
}

.cta-compact .cta-content {
  max-width: 940px;
}

.cta-compact .btn {
  margin-top: 24px;
}

body.request-modal-opened {
  overflow: hidden;
}

.request-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.request-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.request-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(127, 223, 255, 0.18), transparent 34%),
    rgba(1, 5, 9, 0.78);
  backdrop-filter: blur(14px);
}

.request-modal__dialog {
  position: relative;
  width: min(560px, calc(100vw - 28px));
  max-height: min(92vh, 760px);
  overflow: auto;
  border: 1px solid rgba(127, 223, 255, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(13, 24, 34, 0.98), rgba(6, 9, 13, 0.98)),
    var(--card);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.62),
    0 0 42px rgba(127, 223, 255, 0.16);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.24s ease;
}

.request-modal.is-open .request-modal__dialog {
  transform: translateY(0) scale(1);
}

.request-modal__dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent), transparent);
  opacity: 0.9;
}

.request-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(127, 223, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.request-modal__head {
  padding: 30px 30px 0;
}

.request-modal__head h2 {
  margin: 10px 46px 10px 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.request-modal__head p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.request-modal__form {
  margin: 0;
  padding: 24px 30px 30px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.request-modal__form textarea {
  min-height: 112px;
}

@media (max-width: 720px) {
  .request-modal {
    padding: 12px;
    align-items: end;
  }

  .request-modal__dialog {
    width: 100%;
    max-height: 90vh;
    border-radius: 24px 24px 18px 18px;
  }

  .request-modal__head {
    padding: 24px 18px 0;
  }

  .request-modal__head h2 {
    margin-right: 44px;
    font-size: 28px;
  }

  .request-modal__form {
    padding: 20px 18px 22px;
  }
}

/* === Floating contact dock as clean icon buttons === */
.cta-compact .request-modal-open {
  display: none !important;
}

.contact-dock {
  --dock-size: 58px;
  gap: 10px !important;
}

.contact-dock .contact-dock__call,
.contact-dock__toggle {
  width: var(--dock-size) !important;
  height: var(--dock-size) !important;
  min-height: var(--dock-size) !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border-radius: 50% !important;
}

.contact-dock .contact-dock__call span,
.contact-dock__toggle span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  transform: none !important;
}

.contact-dock .contact-dock__call svg,
.contact-dock__toggle svg {
  width: 25px !important;
  height: 25px !important;
}

.contact-dock .contact-dock__call {
  color: #061014 !important;
  background: linear-gradient(180deg, #D5FBFF, #7FDFFF) !important;
}

.contact-dock__toggle {
  color: #E8FCFF !important;
  background: rgba(7, 13, 18, 0.92) !important;
  border: 1px solid rgba(127, 223, 255, 0.28) !important;
}

.contact-dock__toggle:hover,
.contact-dock .contact-dock__call:hover,
.call-choice[open] .contact-dock__call {
  transform: translateX(-3px) !important;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(127, 223, 255, 0.28) !important;
}

.call-choice__panel {
  right: calc(var(--dock-size) + 12px) !important;
}

@media (max-width: 720px) {
  .contact-dock {
    --dock-size: 54px;
  }

  .call-choice__panel {
    bottom: calc(var(--dock-size) + 12px) !important;
  }
}

/* === Mobile contact panels: keep choices readable and never hidden behind each other === */
@media (max-width: 720px) {
  .contact-dock {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    justify-content: flex-end !important;
    z-index: 140 !important;
  }

  .contact-dock__panel,
  .call-choice__panel {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(68vh, 520px) !important;
    overflow: auto !important;
    transform-origin: bottom right !important;
  }

  .contact-dock__panel {
    transform: translate3d(0, 12px, 0) scale(0.98) !important;
  }

  .contact-dock.is-open .contact-dock__panel {
    transform: translate3d(0, 0, 0) scale(1) !important;
  }

  .call-choice__panel {
    display: none !important;
    padding: 10px !important;
  }

  .call-choice[open] .call-choice__panel {
    display: grid !important;
  }

  .contact-choice__list {
    padding-left: 8px !important;
  }

  .contact-choice__list a,
  .call-choice__panel a {
    min-height: 48px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
}

@media (max-width: 380px) {
  .contact-dock__panel,
  .call-choice__panel {
    left: 8px !important;
    right: 8px !important;
  }
}

/* === About page === */
.about-page main {
  padding-top: 72px;
}

.about-hero,
.about-office,
.office-route,
.service-area {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.88fr);
  gap: 24px;
  align-items: center;
  min-height: 540px;
  padding: 24px 0 64px;
}

.about-page .about-hero.reveal-item {
  opacity: 1;
  transform: none;
}

.about-hero__copy {
  display: grid;
  align-content: center;
  gap: 22px;
}

.about-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

.about-hero__copy > p:not(.eyebrow) {
  max-width: 690px;
  margin: 0;
  color: #d7d0c4;
  font-size: 19px;
  line-height: 1.72;
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.podolsk-card {
  position: relative;
  isolation: isolate;
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(127, 223, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(127, 223, 255, 0.14), rgba(8, 14, 18, 0.92)),
    #071016;
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.34), inset 0 0 34px rgba(127, 223, 255, 0.05);
}

.podolsk-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.04);
}

.podolsk-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.12) 46%, rgba(0, 0, 0, 0.72)),
    linear-gradient(115deg, transparent 0 17%, rgba(127, 223, 255, 0.12) 17.2% 17.6%, transparent 17.8% 100%);
  opacity: 1;
  pointer-events: none;
}

.podolsk-card__sky {
  position: absolute;
  inset: 0;
}

.podolsk-card__sky span {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(127, 223, 255, 0.16);
  background: rgba(127, 223, 255, 0.055);
}

.podolsk-card__sky span:nth-child(1) {
  width: 260px;
  height: 260px;
  right: -70px;
  top: 54px;
}

.podolsk-card__sky span:nth-child(2) {
  width: 150px;
  height: 150px;
  left: 48px;
  top: 74px;
}

.podolsk-card__sky span:nth-child(3) {
  width: 92px;
  height: 92px;
  right: 112px;
  bottom: 142px;
}

.podolsk-card__monument {
  position: absolute;
  left: 50%;
  bottom: 110px;
  width: min(260px, 62%);
  height: 300px;
  transform: translateX(-50%);
}

.podolsk-card__monument::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 72px;
  width: 26px;
  height: 205px;
  border-radius: 999px 999px 16px 16px;
  background: linear-gradient(180deg, #bff4ff, #62d4f8);
  box-shadow: 0 0 28px rgba(127, 223, 255, 0.38);
  transform: translateX(-50%);
}

.podolsk-card__monument::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: 190px;
  height: 64px;
  border-radius: 24px 24px 10px 10px;
  background: linear-gradient(180deg, #17313d, #0d1c24);
  border: 1px solid rgba(127, 223, 255, 0.22);
  transform: translateX(-50%);
}

.podolsk-card__monument i {
  position: absolute;
  left: 50%;
  top: 22px;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  border: 5px solid #7fdfff;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 24px rgba(127, 223, 255, 0.34);
}

.podolsk-card__caption {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(127, 223, 255, 0.16);
  border-radius: 16px;
  background: rgba(5, 10, 13, 0.74);
  backdrop-filter: blur(12px);
}

.podolsk-card__caption strong {
  color: #a7f3ff;
  font-size: 28px;
  line-height: 1;
}

.podolsk-card__caption span {
  color: #d7d0c4;
  line-height: 1.45;
}

.about-office,
.office-route,
.service-area {
  padding: 82px 0;
}

.office-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.72fr);
  gap: 18px;
  margin-top: 22px;
  align-items: stretch;
}

.office-photo-placeholder,
.office-photo-card,
.office-info-card,
.route-card,
.route-video-card,
.area-map-card {
  border: 1px solid rgba(127, 223, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 16, 17, 0.93), rgba(9, 10, 11, 0.97));
  box-shadow: 0 20px 50px var(--shadow);
}

.office-photo-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  overflow: hidden;
  color: #a7f3ff;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(127, 223, 255, 0.18) 28.2% 28.8%, transparent 29% 100%),
    linear-gradient(180deg, rgba(127, 223, 255, 0.10), rgba(7, 12, 15, 0.92));
}

.office-photo-placeholder span {
  color: rgba(248, 246, 241, 0.72);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.office-photo-placeholder strong {
  font-size: 38px;
  line-height: 1;
}

.office-photo-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  isolation: isolate;
}

.office-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  filter: saturate(1.04) contrast(1.03);
}

.office-photo-card::after,
.route-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(3, 8, 12, 0.02), rgba(3, 8, 12, 0.72));
  pointer-events: none;
}

.office-photo-card div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(127, 223, 255, 0.20);
  border-radius: 18px;
  background: rgba(5, 10, 14, 0.78);
  backdrop-filter: blur(12px);
}

.office-photo-card span,
.route-card span {
  color: #7fdfff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.office-photo-card strong {
  color: var(--text);
  font-size: 28px;
  line-height: 1.08;
}

.office-info-card {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 28px;
}

.office-info-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.office-info-card h3 {
  margin: 0;
  color: var(--accent-2);
  font-size: 34px;
  line-height: 1.08;
}

.office-info-card p {
  margin: 0;
  color: #d0cac0;
  line-height: 1.68;
}

.office-info-card a {
  width: fit-content;
  margin-top: 8px;
  color: #061014;
  background: linear-gradient(135deg, #7fdfff, #d5fbff);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 950;
}

.route-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.route-carousel__viewport {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(127, 223, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 16, 17, 0.93), rgba(9, 10, 11, 0.97));
  box-shadow: 0 20px 50px var(--shadow);
}

.route-carousel__track {
  display: flex;
  transition: transform 0.38s ease;
  will-change: transform;
}

.route-carousel__btn {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(127, 223, 255, 0.24);
  border-radius: 999px;
  background: rgba(5, 10, 14, 0.82);
  color: #7fdfff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.30);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.route-carousel__btn:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 223, 255, 0.50);
  background: rgba(9, 18, 24, 0.94);
}

.route-carousel__dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.route-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(127, 223, 255, 0.40);
  border-radius: 999px;
  background: rgba(127, 223, 255, 0.18);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.route-carousel__dot.is-active {
  width: 28px;
  border-color: #7fdfff;
  background: #7fdfff;
}

.route-card {
  position: relative;
  flex: 0 0 100%;
  min-height: 430px;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #05090d;
}

.route-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.route-card:hover img {
  transform: scale(1.035);
}

.route-card div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(127, 223, 255, 0.18);
  border-radius: 16px;
  background: rgba(5, 10, 14, 0.80);
  backdrop-filter: blur(12px);
}

.route-card strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.22;
}

.route-video-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
}

.route-video-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  line-height: 1.08;
}

.route-video-card p:not(.eyebrow) {
  margin: 12px 0 0;
  color: #d0cac0;
  line-height: 1.64;
}

.route-video-card video {
  width: 100%;
  max-height: 520px;
  display: block;
  border: 1px solid rgba(127, 223, 255, 0.16);
  border-radius: 18px;
  background: #05090d;
  object-fit: contain;
}

.area-map-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  margin-top: 22px;
  padding: 16px;
}

.area-map {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(127, 223, 255, 0.14);
  border-radius: 20px;
  background: #071016;
}

.area-map-note {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 500;
  display: grid;
  gap: 3px;
  max-width: min(320px, calc(100% - 32px));
  padding: 13px 15px;
  border: 1px solid rgba(125, 240, 179, 0.35);
  border-radius: 16px;
  background: rgba(5, 12, 10, 0.86);
  color: var(--text);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32), 0 0 22px rgba(125, 240, 179, 0.12);
  backdrop-filter: blur(12px);
}

.area-map-note strong {
  color: #7df0b3;
  font-size: 18px;
  line-height: 1;
}

.area-map-note span {
  color: #d7d0c4;
  font-size: 13px;
  line-height: 1.35;
}

.service-area-map {
  width: 100%;
  min-height: 480px;
  height: min(62vh, 620px);
  background: #071016;
}

.area-legend {
  display: grid;
  gap: 12px;
  align-content: center;
}

.area-legend div {
  position: relative;
  padding: 18px 18px 18px 50px;
  border: 1px solid rgba(127, 223, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.legend-dot {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
}

.legend-dot.is-primary {
  background: #7df0b3;
  box-shadow: 0 0 18px rgba(125, 240, 179, 0.36);
}

.legend-dot.is-secondary {
  background: #7fdfff;
  box-shadow: 0 0 18px rgba(127, 223, 255, 0.34);
}

.legend-dot.is-muted {
  background: #68747a;
}

.area-legend strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
}

.area-legend p {
  margin: 8px 0 0;
  color: #d0cac0;
  line-height: 1.55;
}

@media (max-width: 920px) {
  .about-page main {
    padding-top: 64px;
  }

  .about-hero,
  .office-grid,
  .route-video-card,
  .area-map-card {
    grid-template-columns: 1fr;
  }

  .route-carousel {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
  }

  .route-carousel__btn {
    width: 46px;
    height: 46px;
    font-size: 30px;
  }

  .about-hero {
    min-height: auto;
  }

  .podolsk-card {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 720px) {
  .about-hero,
  .about-office,
  .office-route,
  .service-area {
    width: min(100% - 24px, 1180px);
  }

  .about-hero {
    padding-bottom: 34px;
  }

  .about-hero h1 {
    font-size: 38px;
    line-height: 1.04;
  }

  .about-hero__copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .podolsk-card {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
  }

  .podolsk-card__caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .podolsk-card__caption strong {
    font-size: 24px;
  }

  .about-office,
  .office-route,
  .service-area {
    padding: 50px 0;
  }

  .office-photo-placeholder,
  .office-photo-card,
  .office-photo-card img {
    min-height: 260px;
  }

  .office-photo-placeholder strong,
  .office-info-card h3 {
    font-size: 28px;
  }

  .office-info-card {
    padding: 22px;
  }

  .route-carousel {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .route-carousel__viewport {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .route-carousel__btn {
    grid-row: 2;
    justify-self: end;
  }

  .route-carousel__btn--next {
    justify-self: start;
  }

  .route-carousel__dots {
    grid-row: 3;
  }

  .route-card,
  .route-card img {
    min-height: 360px;
  }

  .route-card div {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 13px;
  }

  .route-card strong {
    font-size: 19px;
  }

  .route-video-card {
    padding: 12px;
  }

  .route-video-card h3 {
    font-size: 28px;
  }

  .area-map-card {
    padding: 10px;
  }

  .area-map-note {
    left: 10px;
    top: 10px;
    padding: 10px 12px;
  }

  .service-area-map {
    min-height: 360px;
    height: 58vh;
  }

  .area-label strong {
    font-size: 12px;
  }

  .area-label span {
    font-size: 9px;
  }
}

/* === Team cards compact polish === */
.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)) !important;
  gap: 14px !important;
  grid-auto-rows: auto !important;
}

.team-card {
  height: auto !important;
}

.team-photo {
  aspect-ratio: 1 / 1.08 !important;
  margin: 8px 8px 0 !important;
  border-radius: 18px !important;
}

.team-photo img {
  object-position: 50% 26% !important;
}

.team-photo img.portrait-olesya-work {
  object-position: 36% 28% !important;
  transform: scale(1.28);
  transform-origin: 36% 28%;
}

.team-photo img.portrait-anna-work {
  object-position: 28% 42% !important;
  transform: scale(1.38);
  transform-origin: 28% 42%;
}

.team-photo img.portrait-bogdan-work {
  object-position: 38% 30% !important;
  transform: scale(1.3);
  transform-origin: 38% 30%;
}

.team-photo img.portrait-alik-work {
  object-position: 34% 34% !important;
  transform: scale(1.32);
  transform-origin: 34% 34%;
}

.team-card-content {
  padding: 16px 16px 18px !important;
}

.team-card h3 {
  margin-top: 6px !important;
  font-size: clamp(22px, 2.4vw, 28px) !important;
  letter-spacing: -0.025em !important;
}

.team-role {
  margin-top: 0 !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  letter-spacing: 0.08em !important;
}

.team-description {
  margin-top: 10px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

@media (max-width: 720px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .team-photo {
    aspect-ratio: 1 / 1.05 !important;
  }

  .team-card-content {
    padding: 13px 13px 15px !important;
  }

  .team-card h3 {
    font-size: clamp(19px, 6vw, 24px) !important;
  }

  .team-description {
    display: none !important;
  }
}

/* === Podolsk Master logo polish === */
.logo-text strong {
  max-width: 230px;
  color: #F3FDFF;
  font-size: clamp(15px, 1.45vw, 18px) !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  white-space: nowrap;
}

.logo-text small {
  color: var(--accent-2) !important;
  font-size: clamp(9px, 1vw, 11px) !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-badge svg {
  filter:
    drop-shadow(0 0 10px rgba(127, 223, 255, 0.28))
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

@media (max-width: 720px) {
  .logo {
    gap: 9px !important;
  }

  .logo-badge {
    width: 40px !important;
    height: 40px !important;
  }

  .logo-text strong {
    max-width: 166px;
    font-size: 13px !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo-text small {
    max-width: 166px;
    font-size: 8px !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* === Podolsk Master logo v2 === */
.logo-badge {
  position: relative;
}

.logo-badge::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 18px;
  background: rgba(127, 223, 255, 0.20);
  filter: blur(12px);
  opacity: 0.58;
  z-index: -1;
}

.logo-badge svg {
  transform: translateZ(0);
  filter:
    drop-shadow(0 0 12px rgba(127, 223, 255, 0.36))
    drop-shadow(0 10px 22px rgba(0, 0, 0, 0.38)) !important;
}

.logo:hover .logo-badge::after {
  opacity: 0.85;
}

/* PM brand lockup */
body.layout-safe .logo { flex: 0 0 auto; gap: 0; }
body.layout-safe .logo-lockup {
  display: block;
  width: 310px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
body.layout-safe .footer-logo .logo-lockup { width: 350px; }
@media (max-width: 1100px) {
  body.layout-safe .header .logo-lockup { width: 265px; }
}
@media (max-width: 720px) {
  body.layout-safe .header .logo { max-width: calc(100% - 56px); }
  body.layout-safe .header .logo-lockup { width: 270px; }
  body.layout-safe .footer-logo .logo-lockup { width: 310px; }
}
.logo-badge img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(96, 206, 250, .18)); }
.logo-badge { width: 42px; height: 42px; }
.logo-badge::after { display: none; }
body.layout-safe .logo-text strong, .logo-text strong {
  font-family: "Bahnschrift", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  color: #8edfff;
  font-size: 18px !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  line-height: 1.15;
}
body.layout-safe .logo-text small, .logo-text small { letter-spacing: 0 !important; font-size: 10px !important; }
@media (max-width: 720px) {
  body.layout-safe .logo-text strong, .logo-text strong { font-size: 13px !important; }
  body.layout-safe .logo-text small, .logo-text small { font-size: 8px !important; }
}
