/* Homepage-only corrections. Shared styles, original cards and desktop hero remain. */
body.page-home.home-video main {
  overflow:clip;
  background:
    radial-gradient(ellipse 650px 500px at 0 180px,rgba(34,211,238,.13),transparent 75%),
    radial-gradient(ellipse 700px 550px at 100% 180px,rgba(37,99,235,.07),transparent 75%),
    #eef7ff;
}
body.page-home.home-video .home-hero-v2 { overflow:visible; }
body.page-home.home-video .work-cases-section { overflow:visible; }
body.page-home.home-video main > :is(.home-hero-v2,.section) {
  background:transparent !important;
}
body.page-home.home-video .home-hero-v2::before,
body.page-home.home-video .home-hero-v2 + .page-breadcrumbs + .popular-services-section--stage3::after {
  background:none;
}
body.page-home.home-video .faq-section--cards::before {
  background:none;
}
body.page-home.home-video .faq-cards-grid {
  align-items: start;
}
body.page-home.home-video .home-faq-card:hover {
  transform: none;
}
@media(min-width:993px) {
  /* Each column grows independently; DOM and keyboard order stay 1–6. */
  body.page-home.home-video .faq-cards-grid.home-faq-independent {
    grid-auto-flow: row dense;
    grid-auto-rows: 1px;
    row-gap: 0;
  }
  body.page-home.home-video .home-faq-independent > .home-faq-card {
    grid-row: span var(--faq-rows);
  }
  body.page-home.home-video .home-faq-independent > .home-faq-card:nth-child(odd) {
    grid-column: 1;
  }
  body.page-home.home-video .home-faq-independent > .home-faq-card:nth-child(even) {
    grid-column: 2;
  }
}
/* Section-sized ornaments were clipped at section edges. The common canvas
   carries the soft colour; the original card decorations and hover stay intact. */
body.page-home.home-video .home-hero-v2::after,
body.page-home.home-video .home-hero-v2__orbit,
body.page-home.home-video .popular-services-section--stage3::before,
body.page-home.home-video .advantages-section--stage4::before,
body.page-home.home-video .work-cases-section::before,
body.page-home.home-video .work-cases-section::after { display:none; }
body.page-home.home-video main > .section:not(.page-breadcrumbs) {
  padding-block:60px !important;
}
body.page-home.home-video .home-hero-v2 + .page-breadcrumbs + .popular-services-section--stage3 {
  margin-top:0;
  padding-top:36px !important;
}
body.page-home.home-video .popular-service-card h3 { min-height:2.5em; }
body.page-home.home-video .popular-service-card__actions { margin-top:auto; }
body.page-home.home-video .popular-service-card__cta,
body.page-home.home-video .popular-service-card__more { min-height:44px; }
/* The full telephone number is readable on touch screens and without hover. */
html body.page-home.home-video .phone-hover-x10-target .phone-hover-x10__blurred {
  filter:none !important;opacity:1 !important;
}
body.page-home.home-video .phone-hover-x10__visible { margin-right:.22em; }
body.page-home.home-video .header .phone { white-space:nowrap; }
body.page-home.home-video .toast:not(.show) { display:none; }
body.page-home.home-video .js-reveal { opacity:1;transform:none; }
body.page-home.home-video :is(a,button,summary,input,textarea):focus-visible {
  outline:3px solid #0369a1;outline-offset:4px;
}
body.page-home.home-video .footer :is(.fine,.copyright-link) { color:#cbd5e1 !important; }
body.page-home.home-video :is(.contact-split__badge,.question-form__policy a) { color:#0369a1; }
body.page-home.home-video .question-form__label { display:block;margin-bottom:8px; }

@media(min-width:1440px) {
  /* At 1920px the original 58px type wrapped two phrases into five lines. */
  body.page-home.home-video .home-hero-v2__title { font-size:54px; }
  body.page-home.home-video .home-hero-v2__card { padding:44px; }
}

@media(max-width:1023px) {
  body.page-home.home-video .home-hero-v2__media img { transform:none;object-position:55% 39%; }
  body.page-home.home-video .home-hero-v2__media { height:300px; }
  body.page-home.home-video .home-hero-v2__card { margin-bottom:16px; }
}
@media(min-width:600px) and (max-width:1023px) {
  body.page-home.home-video .home-hero-v2__media { height:360px; }
  body.page-home.home-video .home-hero-v2__media img { object-position:55% 0%; }
}
@media(max-width:767px) {
  body.page-home.home-video main > .section:not(.page-breadcrumbs) { padding-block:40px !important; }
  body.page-home.home-video .home-hero-v2 + .page-breadcrumbs + .popular-services-section--stage3 { padding-top:30px !important; }
  body.page-home.home-video :is(.popular-services-head,.advantages-head,.work-cases-head,.section-heading) { margin-bottom:24px; }
  body.page-home.home-video .question-form__input,
  body.page-home.home-video .question-form__textarea { font-size:16px; }
}
@media(max-width:599px) {
  /* A reserved bottom strip keeps the messenger controls off FAQ/action rows.
     Reuse the original artwork, links and header colours. */
  body.page-home.home-video { padding-bottom:calc(68px + env(safe-area-inset-bottom,0px)); }
  html body.page-home.home-video .social-widget.social-widget.social-widget {
    inset:auto 0 0 !important;right:0 !important;bottom:0 !important;
    width:100%;height:calc(68px + env(safe-area-inset-bottom,0px));
    padding:10px 18px calc(10px + env(safe-area-inset-bottom,0px));
    flex-direction:row !important;justify-content:flex-end;gap:12px !important;
    background:linear-gradient(110deg,#19394a,#25384e);
    box-shadow:0 -4px 18px rgba(8,22,47,.12);
    border-top:1px solid rgba(34,211,238,.24);
  }
  body.page-home.home-video .social-widget::before {
    content:'Написать нам';margin-right:auto;color:#fff;font-size:14px;font-weight:700;
  }
  /* Read the service first, see the photograph, then call. The original surface
     and controls are reused; the desktop composition stays unchanged. */
  body.page-home.home-video .home-hero-v2__inner { padding:16px 14px 20px; }
  body.page-home.home-video .home-hero-v2__composition {
    display:grid;grid-template-columns:minmax(0,1fr);position:relative;
    gap:0;padding:22px 20px;border-radius:28px;
    border:1px solid rgba(14,165,233,.20);
    background:radial-gradient(circle at 0 0,rgba(34,211,238,.09),transparent 34%),linear-gradient(150deg,rgba(255,255,255,.995),rgba(248,253,255,.985));
    box-shadow:0 24px 54px rgba(15,23,42,.12),0 7px 22px rgba(14,165,233,.08),inset 0 1px 0 #fff;
  }
  body.page-home.home-video .home-hero-v2__media {
    grid-row:4;order:0;height:190px;width:100%;border:0;border-radius:20px;
    margin:4px 0 20px;box-shadow:none;
  }
  body.page-home.home-video .home-hero-v2__card {
    display:contents;
  }
  body.page-home.home-video .home-hero-v2__orb-decor { display:none; }
  body.page-home.home-video .home-hero-v2__eyebrow { grid-row:1;justify-self:start;font-size:10px; }
  body.page-home.home-video .home-hero-v2__title {
    grid-row:2;
    font-size:clamp(27px,7.2vw,30px) !important;line-height:1.1 !important;
    letter-spacing:-.035em;text-wrap:pretty;
  }
  body.page-home.home-video .home-hero-v2__title > span { display:block; }
  body.page-home.home-video .home-hero-v2__lead { grid-row:3;font-size:16px;line-height:1.5;margin-bottom:16px; }
  body.page-home.home-video .home-hero-v2__cta { grid-row:5; }
  body.page-home.home-video .home-hero-v2__trust { grid-row:6;gap:8px;margin-top:16px; }
  body.page-home.home-video .popular-service-card { padding:20px; }
  body.page-home.home-video .popular-service-card__top { margin-bottom:12px !important; }
  body.page-home.home-video .popular-service-card h3 { min-height:0;font-size:18px !important;line-height:1.3 !important; }
  body.page-home.home-video .popular-service-card .service-desc { min-height:0;font-size:14px;line-height:1.55;margin-bottom:16px; }
  body.page-home.home-video .popular-service-card__actions {
    display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) !important;gap:10px !important;
  }
  body.page-home.home-video .popular-service-card__actions a { width:auto !important;min-width:0; }
  body.page-home.home-video .popular-service-card__cta { font-size:13px;padding:12px 10px; }
  body.page-home.home-video .contact-split { padding:20px 16px;gap:24px; }
  body.page-home.home-video .contact-split__card { padding:22px 16px; }
}
@media(hover:none) {
  body.page-home.home-video :is(.popular-service-card,.advantage-card,.work-case-card):hover { transform:none !important; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  body.page-home.home-video *,body.page-home.home-video *::before,body.page-home.home-video *::after {
    animation:none !important;transition:none !important;scroll-behavior:auto !important;
  }
  body.page-home.home-video :is(.popular-service-card,.advantage-card,.work-case-card):hover { transform:none !important; }
}
