@charset "UTF-8";
/* =====================================================================
   Self-hosted fonts (variable woff2, font-display:swap)
   Inter — body + Cyrillic headings (Ukrainian). Space Grotesk has no
   Cyrillic subset, so the font stack falls back to Inter for Cyrillic;
   Space Grotesk is self-hosted for Latin display text (numerals, prices,
   "SolutionM5", "Landing Page", "Telegram").
   ===================================================================== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  min-height: 100vh;
  background: #050505;
  color: #ffffff;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

:where(h1, h2, h3, h4, h5, h6) {
  line-height: 1.1;
  font-weight: 700;
}

body.is-locked {
  overflow: hidden;
}

.eyebrow {
  display: inline-block;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff2424;
}

.section__title {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.lead {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  color: #a0a0a0;
}

.text-accent {
  color: #ff2424;
}

.text-muted {
  color: #a0a0a0;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
  max-width: 720px;
}
.section__head--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  position: relative;
  padding-block: 60px;
}
@media (min-width: 768px) {
  .section {
    padding-block: 90px;
  }
}
@media (min-width: 1280px) {
  .section {
    padding-block: 120px;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.split {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

[data-animate] {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

[data-animate=fade-up] {
  transform: translateY(36px);
}

[data-animate=fade-down] {
  transform: translateY(-36px);
}

[data-animate=fade-left] {
  transform: translateX(36px);
}

[data-animate=fade-right] {
  transform: translateX(-36px);
}

[data-animate=scale] {
  transform: scale(0.94);
}

[data-stagger] > * {
  transition-delay: calc(var(--stagger-index, 0) * 90ms);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}
.anim-float {
  animation: float 6s ease-in-out infinite;
}

.anim-pulse {
  animation: pulse-glow 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .anim-float,
  .anim-pulse {
    animation: none;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 400;
  padding: 12px 16px;
  background: #ff2424;
  color: #ffffff;
  border-radius: 12px;
  font-weight: 600;
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 16px;
}

.mt-auto {
  margin-top: auto;
}

.mb-0 {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 1280px) {
  .hide-desktop {
    display: none !important;
  }
}

.dot-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding-inline: 28px;
  border-radius: 999px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.btn:focus-visible {
  outline: 2px solid #ff2424;
  outline-offset: 3px;
  border-radius: 12px;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn--primary {
  background: #ff2424;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(255, 36, 36, 0.18);
}
.btn--primary:hover {
  background: #ff4a4a;
  box-shadow: 0 16px 40px rgba(255, 36, 36, 0.35);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn--ghost:hover {
  border-color: #ff2424;
  color: #ff4a4a;
}
.btn--dark {
  background: #111111;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.btn--dark:hover {
  background: #161616;
}
.btn--lg {
  height: 64px;
  padding-inline: 32px;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
}
.btn--block {
  width: 100%;
}
.btn--icon {
  width: 56px;
  padding: 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #ffffff;
  transition: color 0.3s ease, gap 0.3s ease;
}
.link-arrow::after {
  content: "→";
  color: #ff2424;
  transition: transform 0.3s ease;
}
.link-arrow:hover {
  color: #ff4a4a;
  gap: 12px;
}
.link-arrow:hover::after {
  transform: translateX(4px);
}
.link-arrow:focus-visible {
  outline: 2px solid #ff2424;
  outline-offset: 3px;
  border-radius: 12px;
}

.card {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  position: relative;
  padding: 32px;
  overflow: hidden;
  isolation: isolate;
}

.card--interactive {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card--interactive:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 36, 36, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 36, 36, 0.4), 0 20px 50px rgba(255, 36, 36, 0.18);
}

.icon-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255, 36, 36, 0.12);
  color: #ff2424;
  border: 1px solid rgba(255, 36, 36, 0.25);
}
.icon-chip svg {
  width: 24px;
  height: 24px;
}

.card-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0a;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.logo__accent {
  color: #ff2424;
}
.logo:focus-visible {
  outline: 2px solid #ff2424;
  outline-offset: 3px;
  border-radius: 12px;
}

.nav {
  display: none;
}
@media (min-width: 1280px) {
  .nav {
    display: block;
  }
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: #a0a0a0;
  transition: color 0.3s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #ff2424;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__link:hover, .nav__link.is-active {
  color: #ffffff;
}
.nav__link:hover::after, .nav__link.is-active::after {
  transform: scaleX(1);
}
.nav__link:focus-visible {
  outline: 2px solid #ff2424;
  outline-offset: 3px;
  border-radius: 12px;
}

/* Burger / open button — accent-tinted surface so it reads clearly on the
   dark header. */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 36, 36, 0.1);
  border: 1px solid rgba(255, 36, 36, 0.45);
  transition: background-color 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease, transform 0.2s ease;
}
.burger:hover {
  background: rgba(255, 36, 36, 0.16);
  border-color: rgba(255, 36, 36, 0.7);
  box-shadow: 0 6px 20px rgba(255, 36, 36, 0.2);
}
.burger:active {
  transform: scale(0.96);
}
@media (min-width: 1280px) {
  .burger {
    display: none;
  }
}
.burger:focus-visible {
  outline: 2px solid #ff2424;
  outline-offset: 3px;
  border-radius: 12px;
}
.burger__line {
  width: 100%;
  height: 2.5px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.is-open .burger__line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.burger.is-open .burger__line:nth-child(2) {
  opacity: 0;
}
.burger.is-open .burger__line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(88vw, 380px);
  z-index: 300;
  display: flex;
  flex-direction: column;
  padding: 20px 24px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(120% 55% at 100% 0%, rgba(255, 36, 36, 0.13) 0%, transparent 55%),
    #0a0a0a;
  border-left: 1px solid rgba(255, 36, 36, 0.18);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.is-open {
  transform: translateX(0);
}
.mobile-menu[hidden] {
  display: flex;
}

/* Top bar: logo + close (hide) button */
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.mobile-menu__logo {
  font-size: 1.25rem;
}
.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.3s ease, background-color 0.3s ease,
              border-color 0.3s ease, transform 0.3s ease;
}
.mobile-menu__close:hover {
  color: #ff2424;
  background: rgba(255, 36, 36, 0.1);
  border-color: rgba(255, 36, 36, 0.5);
  transform: rotate(90deg);
}
.mobile-menu__close:focus-visible {
  outline: 2px solid #ff2424;
  outline-offset: 3px;
}

.mobile-menu__nav {
  margin-top: 4px;
}
.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu__list li {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-menu.is-open .mobile-menu__list li {
  opacity: 1;
  transform: none;
}
.mobile-menu.is-open .mobile-menu__list li:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) { transition-delay: 0.14s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) { transition-delay: 0.18s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(5) { transition-delay: 0.22s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(6) { transition-delay: 0.26s; }
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 4px;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #f2f2f2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.mobile-menu__link:hover {
  color: #ff2424;
  padding-left: 10px;
}
.mobile-menu__arrow {
  flex: 0 0 auto;
  color: #555555;
  transition: transform 0.25s ease, color 0.25s ease;
}
.mobile-menu__link:hover .mobile-menu__arrow {
  color: #ff2424;
  transform: translateX(4px);
}

.mobile-menu__footer {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu__cta {
  width: 100%;
  justify-content: center;
}
.mobile-menu__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #c8c8c8;
  transition: color 0.3s ease;
}
.mobile-menu__contact svg {
  color: #ff2424;
}
.mobile-menu__contact:hover {
  color: #ff2424;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.overlay.is-open {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu__list li,
  .mobile-menu__close,
  .burger,
  .burger__line {
    transition: none;
  }
  .mobile-menu__list li {
    opacity: 1;
    transform: none;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #a0a0a0;
}

.input,
.textarea {
  width: 100%;
  padding: 16px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  color: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.input::placeholder,
.textarea::placeholder {
  color: rgba(160, 160, 160, 0.6);
}
.input:focus,
.textarea:focus {
  outline: none;
  border-color: #ff2424;
  box-shadow: 0 0 0 3px rgba(255, 36, 36, 0.18);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__cta {
  display: none;
}
@media (min-width: 1280px) {
  .header__cta {
    display: inline-flex;
  }
}
.header.is-scrolled {
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* =====================================================================
   HERO — reference composition (Creation-of-Adam) with custom hand assets.
   Content sits in the upper-centre; two reaching hands (robotic left +
   monochrome human right) anchor the lower zone and do not touch.
   Visual weight ~40% content / ~60% visual. Palette: #050505 + #ff2424.
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(120px, 19vh, 200px);
  padding-bottom: 0;
  overflow: hidden;
  isolation: isolate;
  background: #050505;
}
.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  width: 100%;
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  width: 100%;
  max-width: 560px;
}
.hero__title {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(1.7rem, 1rem + 2.1vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero__desc {
  font-size: clamp(0.98rem, 0.93rem + 0.22vw, 1.08rem);
  line-height: 1.55;
  color: #a0a0a0;
  max-width: 44ch;
  margin-inline: auto;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---- Hands: reaching from each edge, lower zone, not touching -------- */
.hero__hands {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: clamp(300px, 60vh, 600px);
  pointer-events: none;
}
.hero__hand {
  position: absolute;
  bottom: 0;
  height: auto;
  /* tie the two hands together with a faint shared red edge light */
  filter: drop-shadow(0 0 2px rgba(255, 36, 36, 0.3));
}
.hero__hand--left {
  left: 0;
  width: clamp(320px, 50vw, 720px);
}
.hero__hand--right {
  right: 0;
  bottom: 4%;
  width: clamp(320px, 50vw, 720px);
  /* the photographed wrist fades out toward its end; shift the hand right by
     a fraction of its own width so the solid palm/wrist bleeds off the screen
     edge with no gap, mirroring the left hand */
  transform: translateX(11%);
  /* nudge the human hand a touch darker so it shares the robotic hand's
     graphite weight while keeping its soft red edge */
  filter: brightness(0.9) drop-shadow(0 0 2px rgba(255, 36, 36, 0.3));
}
/* ground the hands into the base so they don't read as pasted PNGs */
.hero__hands-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(to top, #050505 8%, transparent);
}

/* ---- Background: calm base + soft red atmosphere + dot texture ------ */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  left: 50%;
  top: 62%;
  width: min(620px, 78vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 36, 36, 0.2) 0%, rgba(255, 36, 36, 0.05) 38%, transparent 68%);
  filter: blur(72px);
  opacity: 0.85;
}
.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 50% 55%, #000 0%, transparent 60%);
  mask-image: radial-gradient(circle at 50% 55%, #000 0%, transparent 60%);
  opacity: 0.5;
}
/* grain overlays the hands too (z above hands, below content) */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* Shorter / smaller viewports: keep the whole hero on the first screen */
@media (max-height: 820px) {
  .hero {
    padding-top: clamp(108px, 15vh, 160px);
  }
  .hero__hands {
    height: clamp(260px, 52vh, 460px);
  }
}
@media (max-width: 640px) {
  .hero__hand--left {
    width: 72vw;
  }
  .hero__hand--right {
    width: 72vw;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-top: 16px;
}
@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stats__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stats__value {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight: 700;
  color: #ff2424;
}
.stats__label {
  font-size: 0.875rem;
  color: #a0a0a0;
}

.services__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  background: #141414;
  border-color: rgba(255, 36, 36, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 36, 36, 0.4), 0 20px 50px rgba(255, 36, 36, 0.18);
}
.service-card__media {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #0a0a0a;
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-card__media img {
  transform: scale(1.05);
}
.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: rgba(255, 36, 36, 0.12);
  border: 1px solid rgba(255, 36, 36, 0.25);
  color: #ff2424;
}
.service-card__category {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff2424;
  margin-top: -4px;
}
.service-card__title {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 600;
}
.service-card__desc {
  font-size: 0.875rem;
  color: #a0a0a0;
}
.service-card__meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}
.service-card__meta-label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a0a0a0;
}
.service-card__price {
  font-size: 1rem;
  color: #ff2424;
}
.service-card__cta {
  font-size: 0.875rem;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* template hover structure: the arrow link is revealed on hover
   (also on keyboard focus, and always on touch where there is no hover) */
.service-card:hover .service-card__cta,
.service-card:focus-within .service-card__cta {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .service-card__cta {
    opacity: 1;
    transform: none;
  }
}

/* Open horizontal timeline (ref: how_we_work) — big numerals on a connecting
   line with node dots, centred title + description. No cards. Site palette
   only: red numerals/dots (#ff2424), white titles, muted copy, hairline rule. */
.process__timeline {
  display: grid;
  gap: 36px 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .process__timeline {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
}
.process__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding-inline: 10px;
}
.process__num {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(2.4rem, 1.5rem + 2.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #ff2424;
}
.process__rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 14px;
}
.process__dot {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff2424;
  box-shadow: 0 0 0 4px rgba(255, 36, 36, 0.14);
  transition: box-shadow 0.3s ease;
}
/* connecting line from each dot to the next (desktop row only) */
@media (min-width: 900px) {
  .process__step:not(:last-child) .process__rail::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% + 8px);
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-50%);
  }
}
.process__title {
  font-size: 1.05rem;
  font-weight: 600;
}
.process__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #a0a0a0;
  max-width: 26ch;
  margin-inline: auto;
}

/* Calculator progress: Конфігурація → Оплата → Контакт */
.calc-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 620px;
  margin: 0 auto 40px;
  padding: 0;
  list-style: none;
}
.calc-progress__step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6a6a6a;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s ease;
}
.calc-progress__step:not(:last-child) {
  flex: 1;
}
.calc-progress__step:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 2px;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}
.calc-progress__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a0a0a;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.calc-progress__label {
  white-space: nowrap;
}
.calc-progress__step.is-active {
  color: #ffffff;
}
.calc-progress__step.is-active .calc-progress__num {
  border-color: #ff2424;
  background: #ff2424;
  color: #ffffff;
}
.calc-progress__step.is-done {
  color: #d4d4d4;
}
.calc-progress__step.is-done .calc-progress__num {
  border-color: #ff2424;
  background: rgba(255, 36, 36, 0.16);
  color: #ff2424;
}
.calc-progress__step.is-done:not(:last-child)::after {
  background: #ff2424;
}
@media (max-width: 600px) {
  .calc-progress__label {
    display: none;
  }
  .calc-progress__step.is-active .calc-progress__label {
    display: inline;
  }
}

/* Payment-schedule selection (Оплата step) */
.pay-plans {
  display: grid;
  gap: 12px;
  margin: 4px 0 24px;
}
.pay-plan {
  position: relative;
  display: block;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.pay-plan:hover {
  border-color: rgba(255, 255, 255, 0.22);
}
.pay-plan:has(.pay-plan__input:focus-visible) {
  outline: 2px solid #ff2424;
  outline-offset: 2px;
}
.pay-plan.is-on,
.pay-plan:has(.pay-plan__input:checked) {
  border-color: #ff2424;
  background: rgba(255, 36, 36, 0.06);
}
.pay-plan__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pay-plan__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pay-plan__check {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.24);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.pay-plan.is-on .pay-plan__check,
.pay-plan:has(.pay-plan__input:checked) .pay-plan__check {
  border-color: #ff2424;
  background: radial-gradient(circle at center, #ff2424 0 6px, transparent 7px);
}
.pay-plan__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}
.pay-plan__note {
  display: block;
  margin: 6px 0 0 34px;
  font-size: 0.8rem;
  color: #a0a0a0;
}
.pay-plan__breakdown {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding: 14px 0 0 34px;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.pay-plan__breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: #a0a0a0;
}
.pay-plan__breakdown li span:last-child {
  color: #d4d4d4;
  font-weight: 500;
}

.calculator__layout {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 1024px) {
  .calculator__layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
  }
}
.calculator__main {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 0;
}
@media (min-width: 1024px) {
  .calculator__extras {
    max-height: clamp(320px, 46vh, 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
  }
  .calculator__extras::-webkit-scrollbar {
    width: 8px;
  }
  .calculator__extras::-webkit-scrollbar-track {
    background: transparent;
  }
  .calculator__extras::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
  }
  .calculator__extras::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.24);
  }
  /* Fixed-bundle packages (e.g. Швидкий старт) have short, non-scrolling
     content — drop the scroll area so no scrollbar shows. */
  .calculator__extras--static {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}
.calculator__step {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.calculator__step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 700;
}
.calculator__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 36, 36, 0.12);
  border: 1px solid rgba(255, 36, 36, 0.3);
  color: #ff2424;
  font-size: 0.875rem;
  font-weight: 700;
}
.calculator__note {
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 36, 36, 0.08);
  border: 1px solid rgba(255, 36, 36, 0.2);
  color: #a0a0a0;
  font-size: 0.875rem;
}

.calculator__projects {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .calculator__projects {
    grid-template-columns: repeat(3, 1fr);
  }
}

.proj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.proj-card__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.proj-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
}
.proj-card:has(.proj-card__input:focus-visible) {
  outline: 2px solid #ff2424;
  outline-offset: 3px;
}
.proj-card.is-active, .proj-card:has(.proj-card__input:checked) {
  border-color: rgba(255, 36, 36, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 36, 36, 0.4), 0 20px 50px rgba(255, 36, 36, 0.18);
  background: linear-gradient(180deg, rgba(255, 36, 36, 0.06), transparent 60%), #111111;
}
.proj-card__check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.proj-card__check::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.proj-card:has(.proj-card__input:checked) .proj-card__check, .proj-card.is-active .proj-card__check {
  background: #ff2424;
  border-color: #ff2424;
}
.proj-card:has(.proj-card__input:checked) .proj-card__check::after, .proj-card.is-active .proj-card__check::after {
  opacity: 1;
}
.proj-card__name {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  padding-right: 32px;
}
.proj-card__from {
  font-size: 0.875rem;
  color: #a0a0a0;
}
.proj-card__from strong {
  color: #ff2424;
  font-weight: 600;
}
.proj-card__desc {
  font-size: 0.875rem;
  color: #a0a0a0;
}

.extra-group + .extra-group {
  margin-top: 32px;
}
.extra-group__title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a0a0a0;
  margin-bottom: 16px;
}
.extra-group__note {
  font-size: 0.875rem;
  color: #a0a0a0;
  margin: -8px 0 16px;
}
.extra-group__list {
  display: grid;
  gap: 12px;
}

.package-fit__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.package-fit__item {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #d4d4d4;
}
.package-fit__item::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.package-fit--yes .package-fit__item::before {
  content: "✓";
  color: #ff2424;
}
.package-fit--no .package-fit__item {
  color: #a0a0a0;
}
.package-fit--no .package-fit__item::before {
  content: "✕";
  color: #6a6a6a;
}

.extra {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  border-radius: 18px;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.extra:hover {
  border-color: rgba(255, 255, 255, 0.14);
}
.extra:has(.extra__input:focus-visible) {
  outline: 2px solid #ff2424;
  outline-offset: 2px;
}
.extra.is-on, .extra:has(.extra__input:checked) {
  border-color: rgba(255, 36, 36, 0.45);
  background: linear-gradient(180deg, rgba(255, 36, 36, 0.05), transparent), #0a0a0a;
}
.extra__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.extra__box {
  flex: 0 0 auto;
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.extra__box::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.extra:has(.extra__input:checked) .extra__box, .extra.is-on .extra__box {
  background: #ff2424;
  border-color: #ff2424;
}
.extra:has(.extra__input:checked) .extra__box::after, .extra.is-on .extra__box::after {
  opacity: 1;
}
.extra__text {
  flex: 1;
  font-size: 0.875rem;
  color: #ffffff;
}
.extra__price {
  flex: 0 0 auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ff2424;
}
.extra__qty {
  flex: 0 0 auto;
  display: none;
  align-items: center;
  gap: 4px;
}
.extra.is-on .extra__qty,
.extra:has(.extra__input:checked) .extra__qty {
  display: inline-flex;
}
.extra__qty-btn {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  color: #ffffff;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.extra__qty-btn:hover {
  border-color: rgba(255, 36, 36, 0.6);
  background: #1f1f1f;
}
.extra__qty-input {
  width: 44px;
  height: 26px;
  text-align: center;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  -moz-appearance: textfield;
}
.extra__qty-input::-webkit-outer-spin-button,
.extra__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.summary__qty {
  color: #ff2424;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .calculator__summary {
    position: sticky;
    top: 100px;
  }
}

/* --- Form mode: package selection fades out, price block becomes the form --- */
.calculator__main {
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.calculator__main.is-hidden {
  opacity: 0;
  transform: translateX(-28px);
  pointer-events: none;
}
.calculator__layout.is-form .calculator__main {
  display: none;
}
@media (min-width: 1024px) {
  .calculator__layout.is-form {
    grid-template-columns: 1fr;
  }
  .calculator__layout.is-form .calculator__summary {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
  }
}
/* Card content stays hidden while the block morphs into place. */
.summary--morph > * {
  opacity: 0;
}

.summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: radial-gradient(circle at 80% -10%, rgba(255, 36, 36, 0.12), transparent 55%), #111111;
  border-color: rgba(255, 36, 36, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
@media (min-width: 1024px) {
  .summary {
    gap: 8px;
    padding: 24px;
  }
}
.summary__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a0a0a0;
}
.summary__price {
  line-height: 1;
}
.summary__amount {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}
@media (min-width: 1024px) {
  .summary__amount {
    font-size: clamp(2.2rem, 1.6rem + 1.6vw, 2.6rem);
  }
}
.summary__project {
  font-size: 0.875rem;
  color: #ff2424;
  font-weight: 600;
}
.summary__estimate {
  display: grid;
  gap: 2px;
}
.summary__estimate-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
}
.summary__estimate-note {
  font-size: 0.7rem;
  line-height: 1.4;
  color: #a0a0a0;
}
.summary__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 1024px) {
  .summary__meta {
    padding-block: 12px;
  }
}
.summary__meta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
}
.summary__meta li span:first-child {
  color: #a0a0a0;
}
.summary__meta li span:last-child {
  color: #ffffff;
  font-weight: 600;
}
.summary__block-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a0a0a0;
  margin-bottom: 12px;
}
@media (min-width: 1024px) {
  .summary__block-title {
    margin-bottom: 8px;
  }
}
.summary__list {
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
  color: #a0a0a0;
}
@media (min-width: 1024px) {
  .summary__list {
    gap: 4px;
  }
}
.summary__list--included li {
  position: relative;
  padding-left: 24px;
  font-size: 0.75rem;
}
.summary__list--included li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ff2424;
  font-weight: 700;
}
.summary__list--extras li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
}
.summary__plus {
  color: #ff2424;
  font-weight: 600;
}
.summary__empty {
  color: #a0a0a0;
}
.summary__actions {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.summary__hint {
  font-size: 0.8rem;
  color: #a0a0a0;
  text-align: center;
}
.summary__back {
  align-self: flex-start;
  padding: 0;
  font-size: 0.8rem;
  color: #a0a0a0;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}
.summary__back:hover {
  color: #ffffff;
}
.summary__done-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

/* --- Summary / form transition ------------------------------------- */
@keyframes summaryEnter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes leadFieldIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes summaryLeave {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(16px) scale(0.96); }
}
.summary--enter {
  animation: summaryEnter 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.summary--leave {
  animation: summaryLeave 0.28s ease both;
}
/* Stagger the form fields in just after the card settles. */
.summary--enter .lead-form > * {
  animation: leadFieldIn 0.3s ease both;
  animation-delay: calc(0.12s + var(--i, 0) * 0.05s);
}
.summary--enter .lead-form > *:nth-child(1) { --i: 0; }
.summary--enter .lead-form > *:nth-child(2) { --i: 1; }
.summary--enter .lead-form > *:nth-child(3) { --i: 2; }
.summary--enter .lead-form > *:nth-child(4) { --i: 3; }
.summary--enter .lead-form > *:nth-child(5) { --i: 4; }
/* Content-only reveal used after the desktop morph (card frame already shown,
   so we stagger just the children in rather than re-fading the whole card). */
.summary--reveal > * {
  animation: leadFieldIn 0.32s ease both;
}
.summary--reveal > *:nth-child(1) { animation-delay: 0s; }
.summary--reveal > *:nth-child(2) { animation-delay: 0.05s; }
.summary--reveal > *:nth-child(3) { animation-delay: 0.1s; }
.summary--reveal > *:nth-child(4) { animation-delay: 0.15s; }
.summary--reveal > *:nth-child(5) { animation-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .summary--enter,
  .summary--enter .lead-form > *,
  .summary--reveal > *,
  .summary--leave {
    animation: none;
  }
}

/* --- Lead form ----------------------------------------------------- */
.lead-form {
  display: grid;
  gap: 14px;
}
/* Paired fields sit side by side on wider screens, stack on mobile. */
.lead-form__row {
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .lead-form__row {
    grid-template-columns: 1fr 1fr;
  }
}
.lead-form__field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.lead-form__label {
  font-size: 0.8rem;
  color: #a0a0a0;
}
.lead-form__optional {
  color: #6a6a6a;
}
.lead-form__req {
  color: #ff2424;
}
.lead-form__error {
  margin: 0;
  font-size: 0.85rem;
  color: #ff6b6b;
}
/* Honeypot anti-spam trap — kept in the DOM (bots fill it) but removed from
   view and the tab order for real users. Not display:none, so naive bots
   still render and complete it. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Consent / privacy notice shown under the submit button. */
.lead-form__consent {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #808080;
  text-align: center;
}
.lead-form__consent a {
  color: #c8c8c8;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap; /* keep "Політикою конфіденційності" unbroken */
  transition: color 0.3s ease;
}
.lead-form__consent a:hover {
  color: #ff2424;
}
/* Contact-section consent: spans the full card width so the whole sentence
   fits on one line on desktop (the form column is only 340px). */
.contact__consent {
  width: 100%;
  margin-top: 4px;
}
@media (min-width: 768px) {
  .contact__consent { white-space: nowrap; }
}
/* Calendar picker icon visible on the dark input. */
.lead-form__input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.55;
  cursor: pointer;
}
.lead-form__input[type="date"]:hover::-webkit-calendar-picker-indicator {
  opacity: 0.85;
}
/* Submitting state. */
.lead-form.is-submitting {
  opacity: 0.85;
  pointer-events: none;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.lead-form__input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.9rem;
  color: #ffffff;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  transition: border-color 0.25s ease, background-color 0.25s ease,
    box-shadow 0.25s ease;
}
.lead-form__input::placeholder {
  color: #6a6a6a;
}
.lead-form__input:hover {
  border-color: rgba(255, 255, 255, 0.24);
}
.lead-form__input:focus {
  outline: none;
  border-color: #ff2424;
  background: #0d0d0d;
  box-shadow: 0 0 0 3px rgba(255, 36, 36, 0.15);
}
.lead-form__textarea {
  resize: vertical;
  min-height: 80px;
}
.lead-form__phone {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.lead-form__phone-code {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #d4d4d4;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}
.lead-form__phone-input {
  flex: 1;
  min-width: 0;
}
.lead-form__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.lead-form__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #a0a0a0;
}
.lead-form__trust-icon {
  flex: none;
  color: #ff2424;
}

.faq__list {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin-inline: auto;
  /* JS reserves a min-height = tallest open state; keep rows their natural
     size and let the spare space sit at the bottom (no row stretching). */
  align-content: start;
}
.faq__item {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq__item[open] {
  border-color: rgba(255, 36, 36, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s ease;
}
.faq__question::-webkit-details-marker {
  display: none;
}
.faq__question:hover {
  color: #ff4a4a;
}
.faq__question:focus-visible {
  outline: 2px solid #ff2424;
  outline-offset: 3px;
  border-radius: 12px;
}
.faq__marker {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 36, 36, 0.3);
  background: rgba(255, 36, 36, 0.12);
}
.faq__marker::before, .faq__marker::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: #ff2424;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq__marker::after {
  transform: rotate(90deg);
}
.faq__item[open] .faq__marker::after {
  transform: rotate(0deg);
  opacity: 0;
}
.faq__answer {
  padding: 0 24px 24px;
  color: #a0a0a0;
  font-size: 1rem;
  line-height: 1.65;
}
.faq__answer p {
  max-width: 64ch;
}

.contact__cta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: clamp(32px, 4vw, 64px);
  border-radius: 24px;
  border: 1px solid rgba(255, 36, 36, 0.4);
  background: radial-gradient(circle at 80% 0%, rgba(255, 36, 36, 0.18) 0%, transparent 55%), #111111;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
@media (min-width: 768px) {
  .contact__cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* lets the full-width consent line drop below text + form */
  }
}
.contact__title {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 700;
}
.contact__desc {
  margin-top: 8px;
  color: #a0a0a0;
  max-width: 48ch;
}
.contact__form-wrap {
  width: 100%;
}
.contact__form {
  display: grid;
  gap: 14px;
}
.contact__form .btn {
  height: 48px;
  padding-inline: 28px;
  font-size: 0.95rem;
  justify-self: start; /* content-width, not full field width */
  margin-top: 4px;
}
/* Success overlay — premium toast shown over the contact card, then faded out.
   Bounded by .contact__cta (position:relative; overflow:hidden) so it clips to
   the card's rounded corners. Visibility/auto-dismiss handled in contactForm.js. */
.contact__success {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 5, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.contact__success[hidden] { display: none; }
.contact__success.is-visible { opacity: 1; }
.contact__success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 380px;
  padding: 32px 28px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.96), rgba(12, 12, 12, 0.96));
  border: 1px solid rgba(255, 36, 36, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact__success.is-visible .contact__success-card {
  transform: translateY(0) scale(1);
}
.contact__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #ff2424;
  background: rgba(255, 36, 36, 0.1);
  border: 1px solid rgba(255, 36, 36, 0.4);
}
.contact__success-icon svg { width: 28px; height: 28px; }
.contact__success-text {
  margin: 0;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.5;
}
@media (prefers-reduced-motion: reduce) {
  .contact__success,
  .contact__success-card { transition: none; }
  .contact__success-card { transform: none; }
}
@media (min-width: 768px) {
  .contact__form-wrap {
    flex: 0 0 auto;
    width: 340px;
  }
}
.contact__info {
  display: grid;
  gap: 24px;
  margin-top: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .contact__info {
    grid-template-columns: repeat(3, 1fr);
  }
}
.contact__info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
}
.contact__info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a0a0a0;
}
.contact__info-value {
  font-weight: 600;
  color: #ffffff;
  transition: color 0.3s ease;
}
.contact__info-value:hover {
  color: #ff2424;
}

.footer {
  /* Seamless blend from the page base (#050505) into the slightly darker
     footer tone — no hard border line, no visible shade step. */
  background: linear-gradient(180deg, #050505 0%, #0a0a0a 220px);
}
/* Centered footer: logo, legal links, social icons stacked and centred. */
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding-block: 64px 52px;
}
.footer__logo {
  font-size: 1.375rem;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 32px;
}
.footer__legal a {
  font-size: 0.9375rem;
  color: #a0a0a0;
  transition: color 0.3s ease;
}
.footer__legal a:hover {
  color: #ff2424;
}
.footer__social {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #c8c8c8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}
.footer__social a:hover {
  color: #ff2424;
  background: rgba(255, 36, 36, 0.08);
  border-color: rgba(255, 36, 36, 0.5);
  transform: translateY(-2px);
}
.footer__social svg {
  width: 20px;
  height: 20px;
}
/* Bottom bar: copyright, separated from the main footer, left-aligned. */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: 22px;
}
.footer__bottom p {
  font-size: 0.875rem;
  color: #808080;
  text-align: left;
}

/* ===== Phase 2: guarantee section (compiled from scss/sections/_guarantee.scss) ===== */
.guarantee__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .guarantee__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1280px) {
  .guarantee__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.guarantee-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.guarantee-item:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 36, 36, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 36, 36, 0.4), 0 20px 50px rgba(255, 36, 36, 0.18);
}
.guarantee-item__title {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 600;
}
.guarantee-item__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #a0a0a0;
}

/* =====================================================================
   Phase 3.5 — Visual polish layer (CSS only, additive overrides)
   Appended like the Phase 2 blocks above. No calculator / pricing /
   colour / copy / structure changes. Palette is unchanged (red #ff2424,
   white + black tints only). Animations: transform/opacity only.
   ===================================================================== */

/* ---- Phase 3.5: typography balance ---------------------------------- */
/* Tighter display tracking + balanced wrapping = stronger, more premium
   hierarchy (hero > section > card > micro) without new font sizes. */
.hero__title {
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section__title {
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.contact__title {
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.service-card__title,
.guarantee-item__title,
.faq__question {
  letter-spacing: -0.01em;
  text-wrap: balance;
}
/* Pretty wrapping avoids single-word orphans in body/lead copy. */
.lead,
.hero__desc,
.service-card__desc,
.guarantee-item__desc,
.faq__answer p {
  text-wrap: pretty;
}
/* Calmer rhythm in centred section intros: a touch more air between
   eyebrow / title / lead, and a tighter measure for the lead. */
.section__head--center {
  gap: 16px;
}
.section__head--center .lead {
  max-width: 600px;
}
/* end Phase 3.5 typography */

/* ---- Phase 3.5: section density & rhythm ---------------------------- */
/* A little more separation between the head and the content grid so
   sections read as composed, not collapsed. */
.section__head {
  margin-bottom: 56px;
}
@media (max-width: 767px) {
  .section__head {
    margin-bottom: 40px;
  }
}

/* Restrained, section-specific backgrounds so each block feels slightly
   different and no section reads as a flat void. (Pricing/calculator and
   contact are intentionally left untouched.) */

/* Guarantee — a faint sheen to lift the risk-reversal block. Fades IN from
   transparent at the very top so the section boundary stays seamless. */
.guarantee {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.018) 16%, transparent 46%);
}

/* end Phase 3.5 sections */

/* ---- Phase 3.5: card system depth ---------------------------------- */
/* Quiet resting shadow + a 1px top edge-light give every content card
   (service / portfolio / guarantee / testimonial) a sense of layer and
   material without heavy floating shadows. The edge turns red on hover. */
.card {
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.8);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1) 50%, transparent);
  opacity: 0.85;
  transition: background-color 0.3s ease;
}
.card:hover::before {
  background: linear-gradient(90deg, transparent, rgba(255, 36, 36, 0.55) 50%, transparent);
}

/* Icon containers read as crafted objects: subtle directional fill,
   inner top highlight and a soft red lift. One icon size system (52px). */
.icon-chip,
.service-card__icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(155deg, rgba(255, 36, 36, 0.22), rgba(255, 36, 36, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 22px -12px rgba(255, 36, 36, 0.55);
}

/* Process: open timeline (see core rules). Only a subtle dot hover — no card,
   no number chip. */
.process__step:hover .process__dot {
  box-shadow: 0 0 0 5px rgba(255, 36, 36, 0.2);
}
/* end Phase 3.5 cards */

/* ---- Phase 3.5: visual details ------------------------------------- */
/* Dividers fade from the centre instead of a flat hairline. */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12) 50%, transparent);
}

/* In-card separators read as deliberate, not accidental. */
.service-card__meta {
  border-top-color: rgba(255, 255, 255, 0.1);
}

/* Contact CTA: a second soft corner glow balances the existing top-left
   wash and gives the closing block more depth. */
.contact__cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact__cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: 180px;
  height: 180px;
  pointer-events: none;
  background: radial-gradient(circle at 100% 100%, rgba(255, 36, 36, 0.12) 0%, transparent 70%);
}

/* Footer: a faint red top accent over the existing hairline anchors the
   base of the page. */
.footer {
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 36, 36, 0.4) 50%, transparent);
}
/* end Phase 3.5 details */

/* ---- Phase 3.5: consistency pass ----------------------------------- */
/* One internal padding for every content card (28px) so the grids share
   a single rhythm; previously these ranged 24-32px. Portfolio keeps its
   edge-to-edge media (its body padding is set below). */
.service-card,
.guarantee-item,
.contact__info-item {
  padding: 28px;
}
/* Card radius is unified at 24px across the system. */
.contact__info-item {
  border-radius: 24px;
}
/* Two intentional hover tiers: bordered/glow cards lift 6px; the quieter
   about/process tiles lift 4px. Both share the red accent on the edge. */
/* end Phase 3.5 consistency */

/* =====================================================================
   RED ABSTRACT GRID DECOR — CSS-only, behind content, pointer-events:none.
   Palette: #ff2424 / low-alpha red only (+ none-white). No JS, no images,
   no animation, no backdrop-filter, no layout impact. Each section gets a
   different, restrained intensity; the hero is the strongest.
   ===================================================================== */

/* ---- HERO (intensity 100%): faint side mesh that fades away from the
   headline, plus a red perspective "floor" grid in the lower zone behind
   the hands. Lives inside .hero__bg (z0) so it sits behind hands + content
   and is clipped by the hero's overflow. ----------------------------- */
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at top left, rgba(255, 36, 36, 0.55) 0 1.6px, transparent 2.2px),
    repeating-linear-gradient(90deg, rgba(255, 36, 36, 0.32) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(255, 36, 36, 0.27) 0 1px, transparent 1px 58px);
  background-size: 58px 58px, auto, auto;
  -webkit-mask-image: radial-gradient(125% 95% at 50% 40%, transparent 0 16%, #000 58%);
  mask-image: radial-gradient(125% 95% at 50% 40%, transparent 0 16%, #000 58%);
  opacity: 1;
}
.hero__bg::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8%;
  width: 200%;
  height: 66%;
  transform: translateX(-50%) perspective(460px) rotateX(62deg);
  transform-origin: bottom center;
  pointer-events: none;
  background-image:
    radial-gradient(circle at top left, rgba(255, 36, 36, 0.7) 0 1.7px, transparent 2.4px),
    repeating-linear-gradient(90deg, rgba(255, 36, 36, 0.45) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(255, 36, 36, 0.38) 0 1px, transparent 1px 56px);
  background-size: 56px 56px, auto, auto;
  -webkit-mask-image: linear-gradient(to top, #000 4%, transparent 86%);
  mask-image: linear-gradient(to top, #000 4%, transparent 86%);
  opacity: 0.95;
}
/* end red-grid hero */

/* ---- SECTION DECOR ------------------------------------------------------
   Each section is made a stacking context (isolation) so a ::before at
   z-index:-1 sits above the section background but behind all content.
   Distinct pattern + intensity per section; all red, all pointer-events:none,
   all masked so they never reach the readable text core. -------------- */
.services,
.process,
.guarantee,
.calculator,
.faq,
.contact {
  isolation: isolate;
}
.services::before,
.process::before,
.guarantee::before,
.calculator::before,
.faq::before,
.contact::before,
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Services (~30%): fine diagonal red hairlines fanning from the top-right. */
.services::before {
  background-image: repeating-linear-gradient(135deg, rgba(255, 36, 36, 0.18) 0 1px, transparent 1px 28px);
  -webkit-mask-image: radial-gradient(90% 80% at 100% 0%, #000, transparent 74%);
  mask-image: radial-gradient(90% 80% at 100% 0%, #000, transparent 74%);
  opacity: 0.9;
}

/* Process (~30%): thin vertical "sequence" lines echoing the 5 steps,
   faded top and bottom. */
.process::before {
  background-image: repeating-linear-gradient(90deg, rgba(255, 36, 36, 0.16) 0 1px, transparent 1px 74px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 32%, #000 68%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 32%, #000 68%, transparent);
  opacity: 0.8;
}

/* Guarantee (~32%): red edge-lines (left/right) + sparse horizontal rules. */
.guarantee::before {
  background-image:
    linear-gradient(90deg, rgba(255, 36, 36, 0.22), transparent 16%),
    linear-gradient(-90deg, rgba(255, 36, 36, 0.22), transparent 16%),
    repeating-linear-gradient(0deg, rgba(255, 36, 36, 0.1) 0 1px, transparent 1px 66px);
  opacity: 0.7;
}

/* Pricing/calculator (~15%): a whisper of vertical lines at the very top,
   well clear of the calculator UI. */
.calculator::before {
  background-image: repeating-linear-gradient(90deg, rgba(255, 36, 36, 0.08) 0 1px, transparent 1px 92px);
  -webkit-mask-image: radial-gradient(100% 55% at 50% 0%, #000, transparent 70%);
  mask-image: radial-gradient(100% 55% at 50% 0%, #000, transparent 70%);
  opacity: 0.6;
}

/* FAQ (~12%): minimal, centre-vignetted horizontal rules. */
.faq::before {
  background-image: repeating-linear-gradient(0deg, rgba(255, 36, 36, 0.08) 0 1px, transparent 1px 90px);
  -webkit-mask-image: radial-gradient(70% 80% at 50% 50%, #000, transparent 80%);
  mask-image: radial-gradient(70% 80% at 50% 50%, #000, transparent 80%);
  opacity: 0.55;
}

/* Contact (~45%): the strongest after the hero — a red depth glow rising
   from the base plus a fine grid, masked to the lower area. */
.contact::before {
  background-image:
    radial-gradient(60% 80% at 50% 118%, rgba(255, 36, 36, 0.24), transparent 60%),
    radial-gradient(circle at top left, rgba(255, 36, 36, 0.45) 0 1.6px, transparent 2.2px),
    repeating-linear-gradient(90deg, rgba(255, 36, 36, 0.13) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(255, 36, 36, 0.11) 0 1px, transparent 1px 58px);
  background-size: auto, 58px 58px, auto, auto;
  -webkit-mask-image: radial-gradient(125% 100% at 50% 100%, #000, transparent 82%);
  mask-image: radial-gradient(125% 100% at 50% 100%, #000, transparent 82%);
  opacity: 0.8;
}

/* Footer (~15%): small red technical grid fading up from the bottom.
   (.footer::before is the existing red top accent — this uses ::after.) */
.footer {
  isolation: isolate;
}
.footer::after {
  background-image: repeating-linear-gradient(90deg, rgba(255, 36, 36, 0.11) 0 1px, transparent 1px 70px);
  -webkit-mask-image: radial-gradient(85% 100% at 50% 100%, #000, transparent 75%);
  mask-image: radial-gradient(85% 100% at 50% 100%, #000, transparent 75%);
  opacity: 0.6;
}
/* end red-grid sections */

/* =====================================================================
   LEGAL PAGES (privacy.html / terms.html) — simple centred document.
   ===================================================================== */
.legal__inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.legal__logo {
  display: inline-flex;
  font-size: 1.5rem;
  margin-bottom: 40px;
}
.legal__title {
  margin-bottom: 20px;
}
.legal__note {
  color: #a0a0a0;
  line-height: 1.7;
}
.legal__back {
  margin-top: 40px;
}
.legal__back a {
  color: #ff2424;
  transition: opacity 0.3s ease;
}
.legal__back a:hover {
  opacity: 0.75;
}
/* Long-form legal document (privacy / terms) — readable left-aligned body */
.legal__updated {
  margin-top: -8px;
  margin-bottom: 28px;
  font-size: 0.875rem;
  color: #808080;
}
.legal__lead {
  color: #c8c8c8;
  line-height: 1.75;
  text-align: left;
}
.legal__body {
  margin-top: 40px;
  text-align: left;
}
.legal__body h2 {
  margin-top: 40px;
  margin-bottom: 14px;
  font-size: 1.25rem;
  color: #ffffff;
}
.legal__body h2:first-child {
  margin-top: 0;
}
.legal__body p {
  color: #a8a8a8;
  line-height: 1.75;
  margin-bottom: 16px;
}
.legal__body ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.legal__body li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: #a8a8a8;
  line-height: 1.7;
}
.legal__body li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff2424;
}
.legal__body strong {
  color: #e8e8e8;
  font-weight: 600;
}
.legal__body a {
  color: #ff2424;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.3s ease;
}
.legal__body a:hover {
  opacity: 0.75;
}

/* Floating Telegram contact button (bottom-right, pulsing) */
.tg-fab {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 150;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  color: #ffffff;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(34, 158, 217, 0.45);
  /* Hidden until the hero scrolls out of view (toggled by JS). */
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease,
    box-shadow 0.25s ease;
}
.tg-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.tg-fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 36px rgba(34, 158, 217, 0.6);
}
.tg-fab:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}
.tg-fab__icon {
  position: relative;
  z-index: 1;
  margin-left: -2px; /* optical centering of the paper-plane glyph */
}
/* Expanding ring behind the button */
.tg-fab__pulse {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: #229ed9;
  animation: tgFabPulse 2.4s ease-out infinite;
}
@keyframes tgFabPulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70%,
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tg-fab {
    transition: none;
  }
  .tg-fab__pulse {
    display: none;
  }
}
