/* Immersive transitions, footer depth and mobile-first action states. */

:root {
  --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
}

.home-page #faq {
  padding-bottom: clamp(48px, 5vw, 72px);
}

.cta-band--immersive {
  --spot-x: 68%;
  --spot-y: 40%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 8vw, 112px) 0;
  background:
    linear-gradient(120deg, #a9d3bc 0%, #c7e5d5 50%, #95c5aa 100%);
}

.cta-band--immersive::before {
  content: '';
  position: absolute;
  inset: -40%;
  z-index: -2;
  background: radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(255,255,255,.62) 0%, rgba(255,255,255,0) 33%);
  transition: background-position .25s ease;
}

.cta-band--immersive::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .16;
  background-image:
    linear-gradient(rgba(13,21,18,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,21,18,.18) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 100%);
}

.cta-band--immersive .cta-band__inner {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(40px, 7vw, 104px);
}

.cta-band__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(13,21,18,.72);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.cta-band__eyebrow span,
.footer__status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e6c50;
  box-shadow: 0 0 0 5px rgba(46,108,80,.12);
  animation: immersivePulse 2.4s ease-in-out infinite;
}

.cta-band--immersive .cta-band__title {
  max-width: 600px;
  margin-bottom: 16px;
  color: #0d1512;
  font-size: clamp(2.35rem, 4vw, 4.4rem);
  letter-spacing: -.07em;
  line-height: .98;
}

.cta-band--immersive .cta-band__desc {
  max-width: 540px;
  color: rgba(13,21,18,.7);
  font-size: 1.05rem;
  line-height: 1.65;
}

.cta-band__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.cta-band__proof span {
  padding: 8px 12px;
  border: 1px solid rgba(13,21,18,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.26);
  color: rgba(13,21,18,.78);
  font-size: .76rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.cta-band__form-shell {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 28px;
  background: rgba(13,21,18,.11);
  box-shadow: 0 24px 56px rgba(34,72,55,.16);
  backdrop-filter: blur(16px);
}

.cta-band__form-title {
  margin-bottom: 14px;
  color: #0d1512;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

.cta-band--immersive .inline-form {
  flex-wrap: nowrap;
  gap: 10px;
}

.inline-form__field {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.inline-form__field > svg {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 1;
  color: #416c59;
  transform: translateY(-50%);
  pointer-events: none;
}

.inline-form__field .inline-form__input {
  width: 100%;
  min-height: 50px;
  padding-left: 48px;
  color: #17211f;
}

.inline-form__input::placeholder {
  color: #7c8580;
  opacity: 1;
}

.cta-band--immersive .btn {
  min-width: 176px;
  min-height: 50px;
}

.cta-band--immersive .inline-form__note {
  margin-top: 11px;
  color: rgba(13,21,18,.62);
  line-height: 1.45;
}

.cta-band--immersive .inline-form__note a {
  color: #254f3d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(62px, 7vw, 88px) 0 28px;
  background:
    radial-gradient(circle at 76% 12%, rgba(82,132,106,.16), transparent 32%),
    linear-gradient(180deg, #0d1512 0%, #09100d 100%);
}

.footer__aura {
  position: absolute;
  top: -260px;
  right: -160px;
  z-index: -1;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(182,220,200,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(182,220,200,.018), 0 0 0 160px rgba(182,220,200,.012);
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer__grid {
  gap: clamp(32px, 5vw, 72px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.footer__about {
  max-width: 430px;
}

.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  font-weight: 700;
}

.footer__status span {
  background: #9ad1b4;
  box-shadow: 0 0 0 5px rgba(154,209,180,.1);
}

.footer__social {
  margin-top: 18px;
}

.footer .social-link,
.footer .maks-link {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(182,220,200,.12);
  border-radius: 13px;
  background: rgba(182,220,200,.09);
}

.footer .social-link:hover,
.footer .maks-link:hover {
  border-color: rgba(182,220,200,.28);
  background: rgba(182,220,200,.18);
}

.footer__bottom {
  align-items: flex-start;
}

.maks-float {
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
}

.is-near-footer .maks-float {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.home-hero__backdrop,
.home-editorial__image img {
  transform: translate3d(0, var(--immersive-y, 0px), 0) scale(1.025);
  will-change: transform;
}

@keyframes immersivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .58; transform: scale(.82); }
}

@media (hover: hover) and (pointer: fine) {
  .service-card,
  .how-step,
  .review-card,
  .faq-item {
    transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .3s ease;
  }

  .service-card:hover,
  .how-step:hover,
  .review-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 50px rgba(23,33,31,.1);
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(78px + var(--mobile-safe-bottom));
  }

  .home-page .hero.home-hero {
    padding-top: 44px;
    padding-bottom: 48px;
  }

  .home-page .hero__title {
    font-size: clamp(2.35rem, 11vw, 3rem);
    line-height: .99;
  }

  .home-page .hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .home-page .hero__actions .btn {
    min-width: 0;
    padding: 12px 8px;
    font-size: .78rem;
    white-space: nowrap;
  }

  .home-page .hero__trust {
    flex-wrap: nowrap;
    gap: 10px;
    margin: 26px -16px 0;
    padding: 0 16px 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .home-page .hero__trust::-webkit-scrollbar { display: none; }
  .home-page .hero__trust-item {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    scroll-snap-align: start;
  }

  .home-page .hero__form {
    padding: 22px;
    border-radius: 20px;
  }

  .cta-band--immersive {
    padding: 60px 0 58px;
  }

  .cta-band--immersive::after {
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, transparent, #000 28%, #000 100%);
  }

  .cta-band--immersive .cta-band__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cta-band--immersive .cta-band__title {
    font-size: clamp(2.3rem, 11vw, 3.05rem);
  }

  .cta-band__proof {
    display: grid;
    grid-template-columns: repeat(2, max-content);
  }

  .cta-band__form-shell {
    padding: 18px;
    border-radius: 22px;
  }

  .cta-band--immersive .inline-form {
    flex-direction: column;
  }

  .inline-form__field {
    width: 100%;
    min-width: 0;
  }

  .cta-band--immersive .btn {
    width: 100%;
  }

  .footer {
    padding: 54px 0 24px;
  }

  .footer__aura {
    top: -190px;
    right: -260px;
    width: 520px;
    height: 520px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 22px;
    margin-bottom: 38px;
  }

  .footer__brand,
  .footer__col:last-child {
    grid-column: 1 / -1;
  }

  .footer__links a,
  .footer__contacts a {
    padding: 7px 0;
  }

  .footer__bottom {
    display: block;
  }

  .footer__legal {
    gap: 10px 16px;
    margin-top: 20px;
  }

  .footer__license {
    line-height: 1.55;
  }

  .mobile-call-btn {
    right: 12px;
    bottom: calc(10px + var(--mobile-safe-bottom));
    left: 12px;
    min-height: 56px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    font-size: .9rem;
    box-shadow: 0 16px 38px rgba(5,12,9,.34);
  }

  .maks-float {
    display: none;
  }

  .scroll-top {
    bottom: calc(82px + var(--mobile-safe-bottom));
  }
}

@media (max-width: 370px) {
  .home-page .hero__actions {
    grid-template-columns: 1fr;
  }

  .cta-band__proof {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-band__eyebrow span,
  .footer__status span {
    animation: none;
  }

  .home-hero__backdrop,
  .home-editorial__image img {
    transform: none;
    will-change: auto;
  }
}
