

.header-nav-cascade__group-link {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 0.8rem;
  color: #082d7c;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.header-nav-cascade__group:hover > .header-nav-cascade__group-link,
.header-nav-cascade__group:focus-within > .header-nav-cascade__group-link {
  background: rgba(8, 45, 124, 0.06);
}

.header-nav-cascade__panel {
  position: absolute;
  top: 0;
  left: calc(100% + 0.6rem);
  z-index: 60;
  min-width: 22rem;
  margin: 0;
  padding: 0.8rem 1rem;
  list-style: none;
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 0.4rem 2rem rgba(8, 45, 124, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.header-nav-cascade__group:hover > .header-nav-cascade__panel--lvl-2,
.header-nav-cascade__group:focus-within > .header-nav-cascade__panel--lvl-2 {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-nav-cascade__item--has-children {
  position: relative;
}

.header-nav-cascade__branch {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 0.6rem;
  color: #222;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: default;
}

.header-nav-cascade__item--has-children:hover > .header-nav-cascade__branch,
.header-nav-cascade__item--has-children:focus-within > .header-nav-cascade__branch {
  background: rgba(8, 45, 124, 0.05);
}

.header-nav-cascade__item--has-children:hover > .header-nav-cascade__panel--lvl-3,
.header-nav-cascade__item--has-children:focus-within > .header-nav-cascade__panel--lvl-3 {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-nav-cascade__link {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: 0.6rem;
  color: #222;
  font-size: 1.8rem;
  line-height: 1.35;
  text-decoration: none;
}

.header-nav-cascade__link--lvl-3 {
  font-size: 1.6rem;
  color: #444;
}

.header-nav-cascade__link:hover {
  background: rgba(8, 45, 124, 0.06);
  color: #082d7c;
}

.header-nav-cascade__link::after {
  display: none;
}

.header-nav-cascade__group:last-child .header-nav-cascade__panel--lvl-2 {
  left: auto;
  right: calc(100% + 0.6rem);
}

.header-nav-cascade__panel--lvl-2 .header-nav-cascade__item--has-children:last-child .header-nav-cascade__panel--lvl-3,
.header-nav-cascade__panel--lvl-2 .header-nav-cascade__item--has-children:nth-last-child(2) .header-nav-cascade__panel--lvl-3 {
  left: auto;
  right: calc(100% + 0.6rem);
}

.price-item__title[id],
.direction__title[id] {
  scroll-margin-top: 12rem;
}

.direction__list-item--ai {
  background-color: #e8e4ff;
  color: #06006b;
}

/* Home «Направления»: пункты услуг — цветные плашки (не маркированный список) */
.section-directions .direction__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin-top: 1.2rem;
  padding-left: 0;
  list-style: none;
}

.section-directions .direction__list-item {
  list-style: none;
  margin: 0;
  padding: 0.8rem 1.4rem;
  border-radius: 1rem;
  font-size: 1.6rem;
  line-height: 1.35;
  font-weight: 500;
  color: #082d7c;
  background: linear-gradient(
    96deg,
    rgba(231, 240, 253, 0.95) 0%,
    rgba(172, 203, 238, 0.85) 100%
  );
  border: 1px solid rgba(8, 45, 124, 0.12);
}

.section-directions .direction__list-item::after {
  display: none;
}

.section-directions .direction__list-item--ai {
  background: linear-gradient(135deg, #e8e4ff 0%, #c7daff 100%);
  color: #06006b;
  border-color: rgba(6, 0, 107, 0.2);
}

@media screen and (max-width: 550px) {
  .section-directions .direction__list-item {
    font-size: 2.2rem;
    line-height: 1.3;
    padding: 1rem 1.6rem;
  }
}

.header.--th-scrolled {
  box-shadow: 0 0.2rem 1.2rem rgba(8, 45, 124, 0.08);
}

.header.--th-scrolled .header__top,
.header.--th-scrolled .header__bot {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.section-partners__placeholder {
  margin: 2rem 0 0;
  color: #222;
  font-size: 2.4rem;
  line-height: 1.35;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 1.6rem;
}

.language-switcher__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  min-height: 3.2rem;
  border: 0.1rem solid rgba(8, 45, 124, 0.2);
  border-radius: 999rem;
  color: #082d7c;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.25s cubic-bezier(0.23, 1, 0.32, 1),
    color 0.25s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.language-switcher__link:not(.--th-active):hover {
  border-color: rgba(8, 45, 124, 0.45);
  background: rgba(8, 45, 124, 0.06);
}

.language-switcher__link.--th-active {
  background: #082d7c;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .header-nav-item__link,
  .header-nav-flip__face,
  .header-nav-glow,
  .header__cta,
  .language-switcher__link {
    transition: none;
  }

  .header-nav-item__link:hover .header-nav-flip__face--front,
  .header-nav-item--active > .header-nav-item__link .header-nav-flip__face--front {
    transform: none;
    opacity: 1;
  }

  .header-nav-item__link:hover .header-nav-flip__face--back,
  .header-nav-item--active > .header-nav-item__link .header-nav-flip__face--back {
    display: none;
  }
}

.burger-menu__item .burger-menu__list.--th-2,
.burger-menu__item .burger-menu__list.--th-3,
.burger-menu__item .burger-menu__list.--th-4 {
  opacity: 0;
  visibility: hidden;
  display: none;
}

.burger-menu__item.--th-active > .burger-menu__list.--th-2,
.burger-menu__item.--th-active > .burger-menu__list.--th-3,
.burger-menu__item.--th-active > .burger-menu__list.--th-4 {
  opacity: 1;
  visibility: visible;
  display: block;
}

.burger-menu__list.--th-2,
.burger-menu__list.--th-3 {
  margin-top: 0.6rem;
  padding-left: 1.2rem;
}

.burger-menu__list.--th-4 {
  margin-top: 0.6rem;
  padding-left: 1.2rem;
}

.burger-menu__list.--th-2 .burger-menu__link,
.burger-menu__list.--th-3 .burger-menu__link,
.burger-menu__list.--th-4 .burger-menu__link {
  font-size: 1.8rem;
}

.burger-menu button.burger-menu__link {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.--burger-open {
  overflow: hidden;
}

@media screen and (max-width: 1024px) {
  .burger-menu__inner {
    position: relative;
    min-height: 100dvh;
    padding: 2rem 2rem 3rem;
    background: linear-gradient(165deg, #e8f0fc 0%, #f4f8ff 48%, #fff 100%);
    overflow-y: auto;
  }

  .burger-menu__hide {
    position: absolute !important;
    top: 1.6rem !important;
    right: 1.6rem !important;
    left: auto !important;
    width: 4.4rem !important;
    height: 4.4rem !important;
    min-width: 4.4rem;
    min-height: 4.4rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 0.2rem solid #082d7c !important;
    border-radius: 0.8rem !important;
    background: #fff !important;
    color: #082d7c !important;
    font-size: 2.8rem !important;
    line-height: 1 !important;
    font-weight: 400;
    box-shadow: 0 0.4rem 1.2rem rgba(8, 45, 124, 0.12);
    z-index: 3;
  }

  .burger-menu__inner > .language-switcher {
    margin-top: 0.4rem;
    margin-bottom: 2rem;
    padding-right: 5.6rem;
  }

  .burger-menu__nav {
    margin-top: 0.4rem;
  }

  .burger-menu__list.--th-1 {
    display: flex;
    flex-direction: column;
    gap: 0 !important;
    grid-gap: 0 !important;
  }

  .burger-menu__list.--th-1 > .burger-menu__item {
    border-bottom: 0.1rem solid rgba(8, 45, 124, 0.14);
  }

  .burger-menu__list.--th-1 > .burger-menu__item:last-child {
    border-bottom: none;
  }

  .burger-menu__list.--th-1 > .burger-menu__item > .burger-menu__link {
    padding: 1.4rem 0;
    font-size: 2rem;
    font-weight: 600;
    color: #082d7c;
  }

  .burger-menu__list.--th-1 > .burger-menu__item:not(.--th-2) > a.burger-menu__link {
    font-size: 2.2rem;
  }

  .burger-menu__item.--th-1 > button.burger-menu__link::after {
    content: '';
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    border-right: 0.2rem solid #082d7c;
    border-bottom: 0.2rem solid #082d7c;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-right: 0.4rem;
  }

  .burger-menu__item.--th-1.--th-active > button.burger-menu__link::after {
    transform: rotate(-135deg);
    margin-top: 0.4rem;
  }

  .burger-menu__item.--th-2 > button.burger-menu__link::after,
  .burger-menu__item.--th-3 > button.burger-menu__link::after {
    content: '';
    flex-shrink: 0;
    width: 0.8rem;
    height: 0.8rem;
    border-right: 0.15rem solid #54b7eb;
    border-bottom: 0.15rem solid #54b7eb;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .burger-menu__item.--th-2.--th-active > button.burger-menu__link::after,
  .burger-menu__item.--th-3.--th-active > button.burger-menu__link::after {
    transform: rotate(-135deg);
  }

  .burger-menu__list.--th-2 .burger-menu__link,
  .burger-menu__list.--th-3 .burger-menu__link,
  .burger-menu__list.--th-4 .burger-menu__link {
    font-size: 1.6rem;
    font-weight: 500;
    color: #444651;
    padding: 0.9rem 0;
  }

  .burger-menu__item--cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 0.2rem solid rgba(8, 45, 124, 0.16) !important;
    border-bottom: none !important;
  }

  .burger-menu__item--cta .burger-menu__link.btn {
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    padding: 1.4rem 2rem !important;
  }
}

/* Legacy index.min uses --th-opened; JS toggles --th-active + --th-opened */
.burger-menu:not(.--th-active):not(.--th-opened) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(2rem) !important;
}

.burger-menu.--th-active,
.burger-menu.--th-opened {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  z-index: 100001 !important;
}

@media screen and (min-width: 1025px) {
  .header-nav-item__dropdown {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .header-nav-item:hover .header-nav-item__dropdown,
  .header-nav-item:focus-within .header-nav-item__dropdown,
  .header-nav-item--open .header-nav-item__dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
  }

  /* Legacy index.min.css sets padding-top: 8rem — breaks Stitch mega position */
  .header-nav-item-dropdown,
  .header-nav-item-dropdown--mega,
  .header-nav-item-dropdown--about {
    padding: 0 !important;
  }
}

/* Tablet + mobile: burger only */
@media screen and (max-width: 1024px) {
  .root-page {
    padding-top: 0 !important;
  }

  .header {
    position: sticky !important;
    top: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 0.1rem solid #ced9f2;
  }

  /* Legacy index.min.css sets huge logo box on small screens */
  .header__logo {
    width: auto !important;
    height: auto !important;
    max-width: 14rem;
    margin-left: 0 !important;
  }

  .header__logo img,
  .header__logo .logo {
    width: auto !important;
    height: 3.2rem !important;
    max-height: 3.2rem;
  }

  .header__bar {
    display: flex;
    position: relative;
    min-height: 5.6rem;
    padding-right: 5.6rem;
    gap: 1.2rem;
  }

  .header-nav {
    display: none !important;
  }

  .header__cta {
    display: none !important;
  }

  .header__actions {
    margin-left: auto;
    gap: 1rem;
  }

  .header__burger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 4.8rem !important;
    height: 4.8rem !important;
    min-width: 4.4rem;
    min-height: 4.4rem;
    z-index: 202 !important;
    cursor: pointer;
    pointer-events: auto !important;
    background: transparent;
    border: none;
    padding: 0;
  }

  .header__burger svg {
    width: 3.2rem !important;
    height: 3.2rem !important;
    pointer-events: none;
  }
}

.burger-menu__backdrop {
  display: none;
}

@media screen and (max-width: 1024px) {
  .burger-menu__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 45, 124, 0.4);
    backdrop-filter: blur(4px);
    z-index: 0;
  }

  .burger-menu__inner {
    position: relative;
    z-index: 1;
  }
}

.section-banner.--th-first .section-banner__inner {
  background-color: #082d7c;
}

.section-banner.--th-secondary .section-banner__inner {
  background-color: #06006b;
}

.section-call-back {
  overflow: hidden;
  isolation: isolate;
}

.section-call-back__inner,
.section-call-back__form,
.form {
  position: relative;
  z-index: 2;
}

.section-call-back__ball {
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

@media screen and (max-width: 1024px) {
  .section-call-back__ball {
    display: none;
  }
}

.development-type__action {
  margin-top: 2.4rem;
}

.development-type__action .btn {
  display: inline-flex;
}

.price-item__price[data-price-rub]::after {
  content: attr(data-price-note);
}

.section-partners.z-front {
  z-index: 1;
}

.footer__main--5 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.4rem 3.2rem;
  flex: 1 1 auto;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col__link--media,
.footer-col__link--contact {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-col__link--media img {
  flex-shrink: 0;
  opacity: 0.85;
}

.footer-col__contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  font-weight: 600;
  color: #082d7c;
}

.footer-col__link--static {
  cursor: default;
  text-decoration: none;
  color: inherit;
}

@media screen and (max-width: 1024px) {
  .footer__inner {
    flex-direction: column;
  }

  .footer__main--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

@media screen and (max-width: 550px) {
  .footer__main--5 {
    grid-template-columns: 1fr;
  }

  .header__actions .language-switcher {
    margin-right: 0;
  }

  .burger-menu .language-switcher {
    margin: 0 0 2rem;
  }
}

/* Home hero v2 — Stitch layout on legacy blue gradient + cube (no glass panel) */
.section-utp--home-v2 {
  position: relative;
}

.section-utp--home-v2 .section-utp__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3.2rem;
  max-width: 72rem;
  padding: 4rem 0 2rem;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.section-utp--home-v2 .section-utp__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.section-utp--home-v2 .section-utp__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1.2rem;
  border-radius: 10rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #082d7c;
  background: #c7daff;
}

.section-utp--home-v2 .section-utp__title {
  max-width: none;
  margin: 0;
  font-size: clamp(3.2rem, 4.2vw, 4.8rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.section-utp--home-v2 .section-utp__title span {
  margin-left: 0;
  color: inherit;
}

.section-utp--home-v2 .section-utp__text {
  padding-left: 0 !important;
  margin: 0 !important;
  max-width: 52rem;
  font-size: 1.8rem;
  line-height: 1.6;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}

.section-utp--home-v2 .section-utp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 0;
}

.section-utp--home-v2 .section-utp__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.8rem;
  padding: 1.2rem 2.8rem;
  border-radius: 0.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.section-utp--home-v2 .section-utp__btn--outline {
  color: #082d7c;
  background: #fcf9f8;
  border: 0.2rem solid #082d7c;
}

.section-utp--home-v2 .section-utp__btn--outline:hover {
  color: #fff;
  background: #082d7c;
  text-decoration: none;
}

.section-utp--home-v2 .section-utp__btn--solid {
  color: #fff;
  background: #5254af;
  border: 0.2rem solid #5254af;
}

.section-utp--home-v2 .section-utp__btn--solid:hover {
  color: #fff;
  background: #082d7c;
  border-color: #082d7c;
  text-decoration: none;
}

@media screen and (max-width: 1024px) {
  .section-utp--home-v2 .section-utp__content {
    max-width: 100%;
    padding: 3.2rem 0 1.6rem;
  }
}

@media screen and (max-width: 550px) {
  .section-utp--home-v2 .section-utp__content {
    gap: 2.4rem;
    padding: 2rem 0 1rem;
  }

  .section-utp--home-v2 .section-utp__title {
    font-size: 3.2rem;
    line-height: 1.25;
  }

  .section-utp--home-v2 .section-utp__text {
    font-size: 1.6rem;
  }

  .section-utp--home-v2 .section-utp__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .section-utp--home-v2 .section-utp__btn {
    width: 100%;
  }
}


/* --- public/styles/site-chrome.css --- */
/* Site chrome: preloader (bundled with site.bundle.css; critical rules duplicated inline in BaseDocument) */

body.is-preloading {
  overflow: hidden;
}