/* Visual repairs for the October buh preview. */
.slider-main { position: relative; }
.slider-main > .slider-main-item:not(:first-child) { display: none !important; }
.slider-main.is-ready > .slider-main-item { display: none !important; }
.slider-main.is-ready > .slider-main-item.is-active { display: flex !important; }
.slider-main > .slider-main-item {
  position: relative;
  overflow: hidden;
  padding: 60px 100px 78px;
  background-image: radial-gradient(circle at 82% 20%, rgba(117, 155, 219, .38), transparent 31%), radial-gradient(circle at 13% 100%, rgba(71, 110, 180, .55), transparent 39%), linear-gradient(120deg, #001e62, #345a9c) !important;
}
.slider-main > .slider-main-item::before { content: ''; position: absolute; width: 330px; height: 330px; right: -100px; bottom: -160px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.035), 0 0 0 96px rgba(255,255,255,.025); pointer-events: none; }
.slider-main .info { position: relative; z-index: 1; max-width: 1050px; }
.bg63-slider-nav { position: absolute; left: 50%; bottom: 49px; z-index: 2; display: flex; gap: 10px; transform: translateX(-50%); }
.bg63-slider-dot { width: 11px; height: 11px; min-width: 11px; padding: 0; border: 1px solid white; border-radius: 50%; background: transparent; cursor: pointer; }
.bg63-slider-dot[aria-current="true"] { background: white; }
.bg63-slider-dot:focus-visible { outline: 3px solid white; outline-offset: 4px; }
@media (max-width: 596px) { .slider-main > .slider-main-item { min-height: 360px; padding: 54px 25px 72px; } .slider-main-item .info .title { font-size: 30px; line-height: 1.2; } }
.header-block-wrapper .contacts-wrapper .max, footer .contacts-info .social .max { background-size: 24px; }
.header-block-wrapper .contacts-wrapper .max:hover, footer .contacts-info .social .max:hover { background-size: 24px; }

/* VK group and video cards */
.vk-video { align-items: stretch; gap: 20px; }
.vk-video .info-wrapper { flex: 1 1 55%; width: auto; min-width: 0; min-height: 360px; padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.vk-video .block-video { flex: 1 1 34%; width: auto; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.vk-video .substrate-vk { position: static; box-sizing: border-box; width: 100%; margin-top: auto; padding: 18px; align-items: center; }
.vk-video .substrate-vk img { display: block; width: 72px; height: 72px; flex: 0 0 72px; object-fit: contain; border-radius: 16px; }
.vk-video .substrate-vk .text { min-width: 0; gap: 6px; overflow-wrap: anywhere; }
.vk-video .substrate-vk .text p { margin: 0; }
.vk-video .block-video .item { box-sizing: border-box; flex: 1 1 0; min-height: 170px; margin: 0; }
.bg63-vk-video-link { box-sizing: border-box; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 150px; height: 100%; padding: 24px; border-radius: 16px; color: #fff !important; text-decoration: none !important; background: radial-gradient(circle at 90% 10%, #5989d5, transparent 45%), linear-gradient(125deg, #062c72, #16559d); transition: filter .2s ease; }
.bg63-vk-video-link:hover { filter: brightness(1.12); }
.bg63-vk-video-link:focus-visible { outline: 3px solid #2762be; outline-offset: 3px; }
.bg63-vk-video-play { display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; padding-left: 3px; border-radius: 50%; background: #fff; color: #16549c; font-size: 19px; }
.bg63-vk-video-text { display: flex; flex-direction: column; gap: 5px; font-size: 20px; line-height: 1.25; }
.bg63-vk-video-text small { opacity: .8; font-size: 14px; }
@media (max-width: 850px) {
  .vk-video .info-wrapper, .vk-video .block-video { flex-basis: 100%; }
  .vk-video .info-wrapper { min-height: 0; padding: 24px; }
  .vk-video .substrate-vk { margin-top: 4px; }
  .vk-video .substrate-vk img { width: 60px; height: 60px; flex-basis: 60px; }
  .vk-video .block-video .item { min-height: 0; }
  .bg63-vk-video-link { min-height: 120px; }
}
/* Social icons in the header */
.header-block-wrapper .contacts-wrapper .telegram,
.header-block-wrapper .contacts-wrapper .vk,
.header-block-wrapper .contacts-wrapper .max { width: 42px; height: 42px; border: 0; background-size: 36px; }
.header-block-wrapper .contacts-wrapper .telegram:hover,
.header-block-wrapper .contacts-wrapper .vk:hover,
.header-block-wrapper .contacts-wrapper .max:hover { background-color: transparent; background-size: 36px; }
@media (max-width: 850px) { .vk-video .block-video .item { flex: 0 0 auto; min-height: 140px; } }

.vk-video .title-block-point { margin-bottom: 0; }

/* Generated banner images with original brand overlay. */
.slider-main > .slider-main-item:nth-child(1) { background-image: linear-gradient(90deg, rgba(1,20,52,.38), rgba(1,20,52,.42)), url('/__preview/vendor/bg63-banners/banner-audit-v2-desktop.webp') !important; }
.slider-main > .slider-main-item:nth-child(2) { background-image: linear-gradient(90deg, rgba(1,20,52,.38), rgba(1,20,52,.42)), url('/__preview/vendor/bg63-banners/banner-cost-v2-desktop.webp') !important; }
.slider-main > .slider-main-item:nth-child(3) { background-image: linear-gradient(90deg, rgba(1,20,52,.38), rgba(1,20,52,.42)), url('/__preview/vendor/bg63-banners/banner-records-desktop.webp') !important; }
.slider-main > .slider-main-item::before { display: none; }
.bg63-banner-brand { position: absolute; top: 28px; left: 35px; z-index: 1; display: flex; align-items: center; gap: 14px; color: white; font: 500 14px/1.2 Arial, sans-serif; }
.bg63-banner-brand img { display: block; width: 110px; height: 44px; object-fit: contain; filter: brightness(0) invert(1); }
.bg63-banner-brand span { border-left: 1px solid rgba(255,255,255,.55); padding-left: 14px; }
.slider-main .info .title { text-shadow: 0 2px 12px rgba(0,0,0,.35); }
@media (max-width: 596px) {
  .slider-main > .slider-main-item { padding-top: 100px; background-position: 70% center; }
  .bg63-banner-brand { top: 20px; left: 22px; gap: 9px; font-size: 12px; }
  .bg63-banner-brand img { width: 86px; height: 35px; }
  .bg63-banner-brand span { padding-left: 9px; }
}

@media (max-width: 596px) {
  .slider-main > .slider-main-item:nth-child(1) { background-image: linear-gradient(90deg, rgba(1,20,52,.64), rgba(1,20,52,.48)), url('/__preview/vendor/bg63-banners/banner-audit-v2-mobile.webp') !important; }
  .slider-main > .slider-main-item:nth-child(2) { background-image: linear-gradient(90deg, rgba(1,20,52,.64), rgba(1,20,52,.48)), url('/__preview/vendor/bg63-banners/banner-cost-v2-mobile.webp') !important; }
  .slider-main > .slider-main-item:nth-child(3) { background-image: linear-gradient(90deg, rgba(1,20,52,.64), rgba(1,20,52,.48)), url('/__preview/vendor/bg63-banners/banner-records-mobile.webp') !important; }
}
.slider-main button.arrow::after { content: '→'; display: grid; place-items: center; background: none !important; color: #001e62; font-size: 22px; line-height: 1; }
.slider-main button.arrow:hover::after { color: #fff; }

/* Real staff and client collage from the archived service page. */
.slider-main.is-ready > .slider-main-item { background-image: linear-gradient(90deg, rgba(0,18,48,.58), rgba(0,25,65,.34)), url('/__preview/vendor/bg63-team/bg63-team-background.webp') !important; justify-content: flex-start; }
.slider-main .info { width: 51%; max-width: 620px; text-align: left; }
.slider-main-item .info .title { text-align: left; font-size: clamp(34px, 3.5vw, 56px); }
.bg63-team-collage { position: absolute; z-index: 1; right: 4%; top: 100px; width: 41%; max-width: 540px; color: white; }
.bg63-team-heading { margin-bottom: 14px; font-size: 15px; letter-spacing: .04em; font-weight: 600; }
.bg63-team-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bg63-team-card { min-width: 0; overflow: hidden; border-radius: 14px; background: #fff; color: #001e62; box-shadow: 0 8px 25px rgba(0, 15, 40, .15); }
.bg63-team-card > img { display: block; width: 100%; aspect-ratio: 1.35; object-fit: cover; object-position: center 25%; }
.bg63-team-person { padding: 10px 9px; min-height: 62px; }
.bg63-team-person strong, .bg63-team-person small { display: block; line-height: 1.2; }
.bg63-team-person strong { font-size: 13px; }
.bg63-team-person small { margin-top: 4px; color: #66738b; font-size: 11px; }
.bg63-team-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 15px; }
.bg63-team-trust > span { font-size: 13px; color: rgba(255,255,255,.84); }
.bg63-team-logos { display: flex; gap: 6px; }
.bg63-team-logos > span { display: grid; place-items: center; width: 80px; height: 38px; padding: 4px; border-radius: 7px; background: #fff; }
.bg63-team-logos img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 850px) {
 .slider-main > .slider-main-item { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 25px; padding: 95px 22px 75px; }
 .slider-main .info { width: 100%; max-width: none; text-align: center; }
 .slider-main-item .info .title { text-align: center; font-size: clamp(26px, 7vw, 38px); line-height: 1.15; margin-bottom: 18px; }
 .bg63-team-collage { position: static; width: 100%; max-width: 540px; margin: 0 auto; }
 .bg63-team-card > img { aspect-ratio: 1.5; }
 .bg63-team-person { padding: 7px 6px; min-height: 58px; }
 .bg63-team-person strong { font-size: 11px; }
 .bg63-team-person small { font-size: 10px; }
 .bg63-team-trust { gap: 8px; }
 .bg63-team-logos > span { width: 69px; height: 34px; }
}

.bg63-team-logos > span { box-sizing: border-box; overflow: hidden; flex: 0 0 80px; }
.bg63-team-logos > span img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 850px) {
 .bg63-team-logos > span { flex-basis: 69px; }
 .bg63-team-person strong { font-size: 12px; }
}

/* Keep the footer subscription controls and consent text inside the layout. */
footer .footer-top-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "brand headline" "contacts menu" "subscribe menu";
  align-items: start;
  column-gap: clamp(36px, 6vw, 110px);
  row-gap: 20px;
}
footer .footer-top-block > div { width: auto; min-width: 0; }
footer .footer-top-block > .logo { grid-area: brand; }
footer .footer-top-block > .contacts-info { grid-area: contacts; }
footer .footer-top-block > .footer-subtitle { grid-area: headline; }
footer .footer-top-block > .footer-menu { grid-area: menu; }
footer .footer-top-block > .form-wrapper { grid-area: subscribe; position: static; width: auto; max-width: 576px; margin: 8px 0 0; }
footer .form-wrapper #subscribe-form {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 0;
  width: 100%;
  max-width: 450px;
  margin: 18px 0 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
footer .form-wrapper #subscribe-form > input[type="email"] {
  box-sizing: border-box;
  width: 100%; min-width: 0; height: 52px;
  margin: 0; padding: 0 18px;
  border: 1px solid #fff; border-radius: 12px 0 0 12px;
  background: #fff; color: #001e62; font-size: 15px;
}
footer .form-wrapper #subscribe-form > input[type="submit"],
footer .form-wrapper #subscribe-form > button[type="submit"] {
  position: static; box-sizing: border-box;
  width: auto; height: 52px; margin: 0; padding: 0 18px;
  border: 1px solid #fff; border-radius: 0 12px 12px 0;
  background: #001e62; color: #fff; font-size: 15px;
}
footer .form-wrapper #subscribe-form .konf_mess {
  grid-column: 1 / -1; width: 100%; max-width: 450px;
  margin: 0; padding: 0; color: #d5ddeb;
  font-size: 12px; line-height: 1.45; text-align: left; overflow-wrap: anywhere;
}
footer .form-wrapper #subscribe-form .konf_mess input[type="checkbox"] { display: inline-block; width: auto; height: auto; margin: 0 5px 0 0; padding: 0; vertical-align: middle; }
footer .form-wrapper #subscribe-form .konf_mess a { color: #fff; text-decoration: underline; }
footer .form-wrapper .bg63-subscription-status { color: #e8efff; }
@media (max-width: 850px) {
  footer .footer-top-block { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "contacts" "headline" "subscribe" "menu"; row-gap: 24px; }
  footer .footer-top-block > .form-wrapper { max-width: none; margin: 0; }
  footer .form-wrapper #subscribe-form { max-width: none; }
  footer .form-wrapper #subscribe-form .konf_mess { max-width: none; }
}
footer .form-wrapper #subscribe-form { height: auto; }
footer .form-wrapper #subscribe-form #email { width: 100%; min-width: 0; height: 52px; margin: 0; padding: 0 18px; border-radius: 12px 0 0 12px; }
footer .contacts-info .phone::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.61 21 3 13.39 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.24.2 2.45.57 3.57a1 1 0 0 1-.25 1.02l-2.2 2.2Z'/%3E%3C/svg%3E") no-repeat center / 18px 18px; }
