/* Glass values from the homepage. Category controls follow the shop grid. */
@layer defaults {
  #layout:has(.rz-editorial-hero) > .main {
    background: radial-gradient(ellipse at 12% 23%, #dde4e8 0%, transparent 58%),
      radial-gradient(ellipse at 89% 73%, #dee3e7 0%, transparent 56%),
      linear-gradient(165deg, #f8fafb, #e8edf0 47%, #f5f7f8);
  }
  .rz-editorial-hero {
    --hero-inset: clamp(20px, 3vw, 40px);
    --hero-radius: 30px;
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 1240px);
    margin: 58px auto 0;
    padding: 26px var(--hero-inset);
    border: 1px solid rgb(0 0 0 / 6%);
    overflow: visible;
    transform: none;
    transition: none;
    border-radius: var(--hero-radius);
    background: linear-gradient(155deg, rgb(255 255 255 / 78%), rgb(255 255 255 / 42%));
    -webkit-backdrop-filter: blur(12px) saturate(.65);
    backdrop-filter: blur(12px) saturate(.65);
    box-shadow: 0 3px 7px rgb(0 0 0 / 7%), inset 0 1px 0 rgb(255 255 255 / 18%);
  }
  .rz-editorial-hero > .hero-cta-inner { display: grid; grid-template-columns: minmax(0, 1fr); }
  .rz-editorial-copy, .rz-editorial-art { grid-area: 1 / 1; }
  .rz-editorial-copy {
    position: relative;
    z-index: 1;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 49%;
    min-width: 0;
    color: #020203;
  }
  .rz-editorial-copy h1 {
    margin: 0;
    font: 900 36px/1.12 Inter, sans-serif;
    letter-spacing: -.8px;
    overflow-wrap: anywhere;
    color: inherit;
  }
  .rz-editorial-copy .hero-cta-sub { margin: 4px 0; font: 500 15px/1.4 Inter, sans-serif; color: inherit; }
  .rz-editorial-art {
    display: flow-root;
    align-self: end;
    justify-self: end;
    width: calc(54cqw + var(--hero-inset) * 1.08);
    margin: -59px calc(-1px - var(--hero-inset)) -27px 0;
    pointer-events: none;
    clip-path: inset(-100px 0 0 0 round 0 0 var(--hero-radius) 0);
  }
  .rz-editorial-hero { container-type: inline-size; }
  .rz-editorial-art img { display: block; width: 100%; height: auto; margin-bottom: -6px; }
  .rz-editorial-menu h2 { scroll-margin-top: 110px; }
  @media (max-width: 1200px) {
    .rz-editorial-copy h1 { font-size: 32px; letter-spacing: -.6px; }
  }
  @media (max-width: 1100px) {
    .rz-editorial-hero { --hero-radius: 24px; margin-top: 52px; }
    .rz-editorial-hero > .hero-cta-inner { gap: 18px; }
    .rz-editorial-copy, .rz-editorial-art { grid-area: auto; }
    .rz-editorial-copy { width: min(100%, 580px); margin-inline: auto; }
    .rz-editorial-art {
      order: -1;
      justify-self: stretch;
      width: auto;
      margin: calc(-27px - clamp(24px, 6vw, 46px)) calc(-1 * var(--hero-inset)) 0;
      clip-path: none;
    }
    .rz-editorial-art img { width: min(100%, 580px); margin: 0 auto; clip-path: inset(0 0 1.25%); }
  }
  @media (max-width: 540px) {
    .rz-editorial-copy h1 { font-size: 26px; letter-spacing: -.4px; }
    .rz-editorial-copy p { font-size: 14px; }
  }
}

@layer defaults {
  .rz-editorial-menu { width: min(100%, 1240px); margin: 32px auto 38px; box-sizing: border-box; }
  .rz-editorial-menu h2 { margin: 0 0 22px; text-align: center; }
  .rz-editorial-menu ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
  .rz-editorial-menu li { min-width: 0; margin: 0; padding: 0; }
  .rz-editorial-menu a {
    box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr) 12px;
    align-items: center; gap: clamp(10px, 1.4vw, 19px); height: 100%; min-height: 100px;
    padding: clamp(12px, 1.6vw, 20px); border-radius: 22px;
    border: 1px solid rgb(255 255 255 / 56%);
    background: linear-gradient(155deg, rgb(255 255 255 / 78%), rgb(255 255 255 / 42%));
    -webkit-backdrop-filter: blur(12px) saturate(.65);
    backdrop-filter: blur(12px) saturate(.65);
    box-shadow: 0 3px 8px rgb(34 47 57 / 10%), inset 0 1px 0 rgb(255 255 255 / 62%), inset 0 -1px 1px rgb(38 54 65 / 5%);
    color: #020203 !important; -webkit-text-fill-color: currentColor !important;
    text-decoration: none !important; text-align: left; font-weight: 700;
    font-size: clamp(15px, 1.5vw, 20px); line-height: 1.25; overflow-wrap: anywhere;
  }
  .rz-editorial-menu .rz-editorial-icon {
    display: grid; place-items: center; width: clamp(48px, 5vw, 68px); aspect-ratio: 1;
    border: 1px solid rgb(255 255 255 / 65%); border-radius: 16px;
    background: rgb(255 255 255 / 46%); color: #007cc7;
    font: normal clamp(26px, 3vw, 36px)/1 "Material Symbols Outlined";
    font-feature-settings: "liga"; font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  }
  .rz-editorial-menu a::after {
    content: ""; justify-self: center; width: 8px; height: 8px;
    border: solid #007cc7; border-width: 2px 2px 0 0; rotate: 45deg;
  }
  .rz-editorial-menu a:focus-visible { outline: 2px solid #007cc7 !important; outline-offset: 3px; }
  @media (max-width: 850px) { .rz-editorial-menu ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 540px) {
    .rz-editorial-menu ul { grid-template-columns: 1fr; gap: 9px; }
    .rz-editorial-menu a { min-height: 72px; border-radius: 18px; }
  }
  @media (hover: hover) {
    .rz-editorial-menu a:hover { border-color: rgb(0 145 234 / 62%); color: #007cc7 !important; }
  }
  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .rz-editorial-menu a { transition: translate 160ms ease-out, border-color 160ms ease-out; }
    .rz-editorial-menu a:hover { translate: 0 -1px; }
  }
}


 .rz-editorial-hero .hero-cta-form-wrap {
 max-width: 580px;
 width: 100%;
 margin-top: 6px;
 }

 .rz-editorial-hero .hero-cta-form-wrap form {
 display: grid !important;
 grid-template-columns: minmax(0, 1fr) auto !important;
 gap: 10px !important;
 align-items: stretch !important;
 width: 100% !important;
 max-width: 100% !important;
 margin: 0 !important;
 padding: 0 !important;
 background: transparent !important;
 border: none !important;
 }

 .rz-editorial-hero .hero-cta-form-wrap form > table,
 .rz-editorial-hero .hero-cta-form-wrap form > table > tbody,
 .rz-editorial-hero .hero-cta-form-wrap form > table > tbody > tr {
 display: contents !important;
 background: transparent !important;
 border: none !important;
 margin: 0 !important;
 padding: 0 !important;
 }

 .rz-editorial-hero .hero-cta-form-wrap form > table > tbody > tr > td {
 display: block !important;
 width: auto !important;
 padding: 0 !important;
 border: none !important;
 background: transparent !important;
 min-width: 0 !important;
 }

 .rz-editorial-hero .hero-cta-form-wrap form > table > tbody > tr:first-child,
 .rz-editorial-hero .hero-cta-form-wrap form > table > tbody > tr:has(input[name="f1"]),
 .rz-editorial-hero .hero-cta-form-wrap form > table > tbody > tr:has(input[name="f2"]),
 .rz-editorial-hero .hero-cta-form-wrap form > table > tbody > tr:has(label) {
 display: none !important;
 }

 .rz-editorial-hero .hero-cta-form-wrap label {
 display: none !important;
 }

 .rz-editorial-hero .hero-cta-form-wrap textarea,
 .rz-editorial-hero .hero-cta-form-wrap input[type="text"],
 .rz-editorial-hero .hero-cta-form-wrap input[type="tel"] {
 box-sizing: border-box !important;
 width: 100% !important;
 height: 54px !important;
 min-height: 54px !important;
 padding: 16px 22px !important;
 border: 1.5px solid rgba(0, 0, 0, 0.1) !important;
 background-color: #ffffff !important;
 border-radius: 100px !important;
 font-size: 16px !important;
 font-weight: 500 !important;
 color: #020203 !important;
 outline: none !important;
 resize: none !important;
 font-family: inherit !important;
 line-height: 1.2 !important;
 display: block !important;
 box-shadow: none !important;
 }
 .rz-editorial-hero .hero-cta-form-wrap textarea::placeholder {
 color: #9a9da7 !important;
 }
 .rz-editorial-hero .hero-cta-form-wrap textarea:focus,
 .rz-editorial-hero .hero-cta-form-wrap input[type="text"]:focus,
 .rz-editorial-hero .hero-cta-form-wrap input[type="tel"]:focus {
 border-color: #0091ea !important;
 box-shadow: 0 0 0 3px rgba(0, 145, 234, 0.15) !important;
 }

 .rz-editorial-hero .hero-cta-form-wrap input[type="submit"],
 .rz-editorial-hero .hero-cta-form-wrap button[type="submit"] {
 display: inline-flex !important;
 align-items: center !important;
 justify-content: center !important;
 width: auto !important;
 height: 54px !important;
 min-height: 54px !important;
 padding: 0 28px !important;
 background-color: #0091ea !important;
 background-image: none !important;
 color: #ffffff !important;
 font-size: 16px !important;
 font-weight: 700 !important;
 font-family: inherit !important;
 border: none !important;
 border-radius: 100px !important;
 cursor: pointer !important;
 box-shadow: 0 6px 18px rgba(242, 153, 74, 0.4) !important;
 transition: background-color 0.3s ease, transform 0.2s ease !important;
 text-align: center !important;
 line-height: 1 !important;
 margin: 0 !important;
 white-space: nowrap !important;
 box-sizing: border-box !important;
 }
 .rz-editorial-hero .hero-cta-form-wrap input[type="submit"]:hover,
 .rz-editorial-hero .hero-cta-form-wrap button[type="submit"]:hover {
 background-color: #e08a3c !important;
 color: #ffffff !important;
 transform: translateY(-1px);
 }
 .rz-editorial-hero .hero-cta-form-wrap input[type="submit"]:active,
 .rz-editorial-hero .hero-cta-form-wrap button[type="submit"]:active {
 transform: translateY(0);
 }

 .rz-editorial-hero .hero-cta-form-wrap img.captcha-question {
 display: none !important;
 }

 .rz-editorial-hero .hero-cta-agree {
 display: flex;
 align-items: flex-start;
 gap: 10px;
 font-size: 13px;
 color: #020203;
 opacity: 0.85;
 line-height: 1.4;
 max-width: 580px;
 margin-top: 6px;
 cursor: pointer;
 }

 .rz-editorial-hero .hero-cta-agree input[type="checkbox"] {
 width: 20px;
 height: 20px;
 flex-shrink: 0;
 margin: 0;
 accent-color: #0091ea;
 cursor: pointer;
 }
 
 .rz-editorial-hero .hero-cta-agree a {
 color: inherit;
 text-decoration: underline;
 }


#layout .rz-editorial-hero .hero-cta-form-wrap textarea:focus,
#layout .rz-editorial-hero .hero-cta-form-wrap input[type="text"]:focus,
#layout .rz-editorial-hero .hero-cta-form-wrap input[type="tel"]:focus {
  border-color: #0091EA !important;
  box-shadow: 0 0 0 3px rgba(0,145,234,.18) !important;
}
#layout .rz-editorial-hero .hero-cta-form-wrap input[type="submit"],
#layout .rz-editorial-hero .hero-cta-form-wrap button[type="submit"] {
  position: relative !important;
  z-index: 2 !important;
  background: linear-gradient(180deg, rgba(54,177,255,.94) 0%, rgba(0,145,234,.96) 44%, rgba(0,92,153,.98) 51%, rgba(0,116,190,.98) 100%) !important;
  background-color: #0091EA !important;
  background-image: linear-gradient(180deg, rgba(54,177,255,.94) 0%, rgba(0,145,234,.96) 44%, rgba(0,92,153,.98) 51%, rgba(0,116,190,.98) 100%) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -8px 0 rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.38) !important;
}

/* Статические HERO: кнопка телефона и соцсети в стиле страницы услуги 59 */
#layout .rz-editorial-hero .hero-cta-contact-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin-top: 12px !important;
}
#layout .rz-editorial-hero .custom-contact-btn {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  min-height: 54px !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(54,177,255,.94) 0%, rgba(0,145,234,.96) 44%, rgba(0,92,153,.98) 51%, rgba(0,116,190,.98) 100%) !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -8px 0 rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.38) !important;
  transition: transform .2s ease, filter .2s ease !important;
}
#layout .rz-editorial-hero .custom-contact-btn::before {
  content: "" !important;
  position: absolute !important;
  top: -20% !important;
  bottom: -20% !important;
  left: -34% !important;
  width: 34% !important;
  z-index: 3 !important;
  border-radius: 8px !important;
  pointer-events: none !important;
  background: linear-gradient(108deg, transparent 0%, rgba(255,255,255,.18) 22%, rgba(255,255,255,.72) 47%, rgba(255,255,255,.78) 53%, rgba(255,255,255,.2) 78%, transparent 100%) !important;
  filter: drop-shadow(0 0 5px rgba(255,255,255,.28)) !important;
  opacity: 0;
  transform: translate3d(0,0,0) skewX(-24deg);
}
#layout .rz-editorial-hero .custom-contact-btn > * {
  position: relative !important;
  z-index: 4 !important;
}
#layout .rz-editorial-hero .custom-contact-icon.fa {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  color: #fff !important;
  font-size: 26px !important;
  line-height: 1 !important;
}
#layout .rz-editorial-hero .custom-phone-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  text-align: left !important;
}
#layout .rz-editorial-hero .custom-phone-text strong {
  color: #fff !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}
#layout .rz-editorial-hero .custom-social-group {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
#layout .rz-editorial-hero .custom-messengers {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}
#layout .rz-editorial-hero .custom-msg-btn {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 54px !important;
  width: 54px !important;
  height: 54px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: inherit !important;
  text-decoration: none !important;
  transition: transform .18s ease, opacity .18s ease !important;
}
#layout .rz-editorial-hero .custom-brand-icon {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
#layout .rz-editorial-hero .custom-msg-btn:focus-visible,
#layout .rz-editorial-hero .custom-contact-btn:focus-visible {
  outline: 2px solid rgba(224,244,255,.9) !important;
  outline-offset: 3px !important;
}
#layout .rz-editorial-hero .hero-cta-form-wrap form > table > tbody > tr > td:has(> input[type="submit"]),
#layout .rz-editorial-hero .hero-cta-form-wrap form > table > tbody > tr > td:has(> button[type="submit"]) {
  border-radius: 8px !important;
}
#layout .rz-editorial-hero .hero-cta-form-wrap form > table > tbody > tr > td:has(> input[type="submit"])::before,
#layout .rz-editorial-hero .hero-cta-form-wrap form > table > tbody > tr > td:has(> button[type="submit"])::before,
#layout .rz-editorial-hero .hero-cta-form-wrap input[type="submit"],
#layout .rz-editorial-hero .hero-cta-form-wrap button[type="submit"] {
  border-radius: 8px !important;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #layout .rz-editorial-hero .custom-contact-btn:hover {
    filter: brightness(1.02) !important;
    transform: translateY(-1px) !important;
  }
  #layout .rz-editorial-hero .custom-contact-btn:hover::before,
  #layout .rz-editorial-hero .custom-contact-btn:focus-visible::before,
  #layout .rz-editorial-hero .hero-cta-form-wrap form > table > tbody > tr > td:has(> input[type="submit"]:hover)::before,
  #layout .rz-editorial-hero .hero-cta-form-wrap form > table > tbody > tr > td:has(> input[type="submit"]:focus-visible)::before,
  #layout .rz-editorial-hero .hero-cta-form-wrap form > table > tbody > tr > td:has(> button[type="submit"]:hover)::before,
  #layout .rz-editorial-hero .hero-cta-form-wrap form > table > tbody > tr > td:has(> button[type="submit"]:focus-visible)::before {
    animation: editorialHeroButtonShine 1.1s linear 1 both !important;
  }
  #layout .rz-editorial-hero .custom-msg-btn:hover {
    transform: translateY(-2px) scale(1.06) !important;
    opacity: .88 !important;
  }
}
@media (max-width: 640px) {
  #layout .rz-editorial-hero .hero-cta-contact-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  #layout .rz-editorial-hero .custom-contact-btn {
    width: 100% !important;
    justify-content: center !important;
  }
  #layout .rz-editorial-hero .custom-messengers {
    width: 100% !important;
    gap: 8px !important;
  }
  #layout .rz-editorial-hero .custom-msg-btn {
    flex-basis: 40px !important;
    width: 40px !important;
    height: 40px !important;
  }
  #layout .rz-editorial-hero .custom-phone-text strong {
    font-size: 17px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #layout .rz-editorial-hero .custom-contact-btn::before {
    animation: none !important;
  }
  #layout .rz-editorial-hero .custom-contact-btn,
  #layout .rz-editorial-hero .custom-msg-btn {
    transition: none !important;
  }
}


#layout .rz-editorial-hero .hero-cta-form-wrap :is(input[type="submit"],button[type="submit"]) { -webkit-text-fill-color: #fff !important; }
#layout .rz-editorial-hero .custom-contact-btn { box-sizing: border-box; }
#layout .rz-editorial-hero .custom-contact-icon { font: 24px/1 "Material Symbols Outlined"; }
@media (max-width: 640px) {
  #layout .rz-editorial-hero .hero-cta-form-wrap form { grid-template-columns: minmax(0, 1fr) !important; }
  #layout .rz-editorial-hero .hero-cta-form-wrap :is(input[type="submit"],button[type="submit"]) { width: 100% !important; }
}

@keyframes editorialHeroButtonShine {
  0% { transform: translate3d(0,0,0) skewX(-24deg); opacity: 0; }
  12%, 82% { opacity: .95; }
  100% { transform: translate3d(420%,0,0) skewX(-24deg); opacity: 0; }
}

/* The native callback needs .hero-cta. Keep the shared legacy HERO theme off these two layouts. */
@layer defaults {
  body #layout.layout .hero-cta.rz-editorial-hero {
    overflow: visible !important;
    contain: none !important;
    background-color: transparent !important;
    background: linear-gradient(155deg, rgb(255 255 255 / 78%), rgb(255 255 255 / 42%)) !important;
    border: 1px solid rgb(0 0 0 / 6%) !important;
    border-radius: var(--hero-radius) !important;
    box-shadow: 0 3px 7px rgb(0 0 0 / 7%), inset 0 1px 0 rgb(255 255 255 / 18%) !important;
    backdrop-filter: blur(12px) saturate(.65) !important;
    -webkit-backdrop-filter: blur(12px) saturate(.65) !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
    animation: none !important;
    transition: none !important;
  }
  body #layout.layout .hero-cta.rz-editorial-hero::before,
  body #layout.layout .hero-cta.rz-editorial-hero::after { content: none !important; }
  body #layout.layout .hero-cta.rz-editorial-hero .rz-editorial-art img {
    transform: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Soften the edges of existing project photos against the glass. Cutouts keep their original alpha. */
#layout .rz-editorial-art .rubric-photo {
  --rubric-mask: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: var(--rubric-mask), linear-gradient(to bottom, transparent, #000 11%);
  mask-composite: intersect;
}
#layout .rz-editorial-art .rubric-photo-news {
  --rubric-mask: linear-gradient(to right, transparent 16%, #000 24%, #000 76%, transparent 84%);
}

/* Square article cutouts align their contents, rather than only their image box, to the HERO edge. */
#layout .rz-editorial-art img[src$="-cutout.png"] {
  object-position: right bottom;
  /* The square begins 32.55% into the 1527:1030 stage. Soften the source's side seams. */
  mask-image: linear-gradient(to right,
    transparent 32.55%, #000 calc(32.55% + clamp(6px, 1.1vw, 16px)),
    #000 calc(100% - clamp(6px, 1.1vw, 16px)), transparent);
}

@media (max-width: 1100px) {
  #layout .rz-editorial-art img:is([src$="-cutout.png"], [src$="-wide.png"]) {
    clip-path: none;
  }
}

/* User-supplied 1448x1086 cutouts in the nine news HERO blocks. */
@layer defaults {
  body #layout.layout:not(.sitePage1-layout) .hero-cta.rz-editorial-hero.hero-cta .hero-cta-right:has(> img[src*="/news-hero-"]) > img[src*="/news-hero-"] {
    width: min(100%, 500px) !important;
    max-width: 500px !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: contain !important;
    margin: 0 0 0 auto !important;
    clip-path: none !important;
  }
  @media (max-width: 1100px) {
    body #layout.layout:not(.sitePage1-layout) .hero-cta.rz-editorial-hero.hero-cta .hero-cta-right:has(> img[src*="/news-hero-"]) > img[src*="/news-hero-"] {
      width: min(100%, 580px) !important;
      max-width: 580px !important;
      margin: 0 auto !important;
    }
    .rz-editorial-hero .rz-editorial-art:has(> img[src*="/news-hero-"]) {
      margin-top: -27px;
    }
  }
}

@layer defaults {
  @media (min-width: 1101px) {
    body #layout.layout:not(.sitePage1-layout) .hero-cta.rz-editorial-hero.hero-cta .hero-cta-right:has(> img[src*="/news-hero-s"]) > img[src*="/news-hero-s"] {
      width: min(100%, 440px) !important;
      max-width: 440px !important;
    }
  }
}
