.technology-panel-close {
  display: none;
}

.catalog-filters > summary {
  display: none;
}

dialog.technology-inspector {
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  color: var(--ice);
  &:not([open]) {
    display: none;
  }
}
/* Технологии: прокрутка и переполнение. */
body.technology-open {
  overflow: hidden;
}
/* Адаптация для (width <= 899px). */
@media (width <= 899px) {
  body.multipage {
    & .site-header {
      padding-top: max(10px, env(safe-area-inset-top));
    }
    &[data-page]
      :is(
        .wordmark,
        .specialist-link,
        .composition-link,
        .services-system-link,
        .social-links > a,
        .agreement-support a,
        .auth-assistance a
      ) {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
    }
    &[data-page] main :is(.button, .wizard-controls .button) {
      min-height: 48px;
    }
    &[data-page]
      main
      :is(
        input:not([type='checkbox']):not([type='radio']):not([type='file']),
        textarea,
        select
      ) {
      font-size: 1rem;
      min-height: 48px;
      height: auto;
    }
    &[data-page] main .check-control {
      min-height: 48px;
    }
    & .menu-button {
      width: 44px;
      height: 44px;
      flex: 0 0 44px;
    }
    & .account-links-compact .account-login {
      min-height: 44px;
    }
    & .mobile-menu {
      top: calc(var(--site-header-height, 80px) + 8px);
      max-height: calc(100dvh - var(--site-header-height, 80px) - 20px);
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: thin;
      padding: 16px 20px max(20px, env(safe-area-inset-bottom));
      background: #06101f;
    }
    & .mobile-menu nav :is(a, :where(.portal-menu-tab)) {
      min-height: 48px;
      padding: 12px 4px;
      font-size: 1rem;
    }
    &
      .mobile-menu
      :is(.account-links > a, .mobile-direct > a, .social-links > a) {
      min-height: 44px;
    }
    & .mobile-direct {
      align-items: stretch;
      gap: 0;
      font: 0.875rem/1.5 var(--font);
    }
    & .mobile-direct > a {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    &
      :is(
        .button,
        .text-link,
        .anchor-pills a,
        .detail-nav a,
        .filter-group button,
        .technology-filters button,
        .wizard-controls button,
        .auth-back,
        .auth-mode > a,
        .auth-recovery-link,
        .auth-privacy
      ) {
      min-height: 44px;
    }
    & :is(.text-link, .auth-privacy) {
      display: inline-flex;
      align-items: center;
    }
    &
      :is(
        input:not([type='checkbox']):not([type='radio']):not([type='file']),
        textarea,
        select
      ) {
      font-size: 1rem;
      min-height: 48px;
      scroll-margin-block: calc(var(--site-header-height, 80px) + 16px) 32px;
    }
    & :is(.check-control, .choice-group label, .wizard-options label) {
      min-height: 48px;
    }
    & .modal-close,
    & .file-remove {
      min-width: 44px;
      min-height: 44px;
    }
    & .site-footer nav > a {
      display: flex;
      align-items: center;
      min-height: 44px;
      width: fit-content;
      padding-block: 8px;
    }
    & .site-footer .social-links > a {
      min-height: 44px;
    }
    & .button:hover {
      transform: none;
    }
    & :is(button, a, label, input) {
      -webkit-tap-highlight-color: #247cff33;
    }
    & :is(a, button, input, select, textarea):focus-visible {
      outline: 2px solid #72b1ff;
      outline-offset: 3px;
    }
  }
}
/* Адаптация для (width <= 759px). */
@media (width <= 759px) {
  body[data-page='services'] {
    & .technology-controls {
      gap: 20px;
    }
    & .technology-filters {
      display: flex;
      flex-wrap: nowrap;
      overflow-x: auto;
      width: 100%;
      max-width: 100%;
      padding: 3px 3px 10px;
      scrollbar-width: thin;
      scrollbar-color: #294d7f transparent;
    }
    & .technology-filters button {
      flex: 0 0 auto;
      font-size: 0.875rem;
    }
    & .technology-search {
      max-width: none;
    }
    & .technology-grid {
      grid-template-columns: 1fr;
      gap: 10px;
    }
    & .technology-card {
      padding: 16px 18px;
      border-radius: 14px;
    }
    & main .technology-card h3 {
      margin-top: 8px;
      font-size: 1.125rem;
    }
    & .technology-preview {
      margin: 8px 0;
      font-size: 0.875rem;
    }
    & .technology-card-total {
      font-size: 0.8125rem;
    }
  }
  .technology-card-group {
    display: none;
  }
  .technology-explorer.is-enhanced {
    display: block;
  }
  .is-enhanced dialog.technology-inspector[open] {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top)));
    padding: 0 20px max(24px, env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 -12px 60px #0008;
    background: #08172c;
  }
  dialog.technology-inspector::backdrop {
    background: #020812bb;
    backdrop-filter: blur(5px);
  }
  .is-enhanced .technology-panel-close {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 64px;
    padding: 12px 0;
    margin: 0 0 20px;
    color: #c4daf9;
    background: #08172c;
    border: 0;
    border-bottom: 1px solid #284367;
    font: 0.875rem/1.5 var(--font);
  }
  .technology-panel-close > span {
    font-size: 28px;
    line-height: 1;
  }
  body[data-page='services'] {
    & main .technology-detail h3 {
      margin-top: 18px;
      font-size: 1.5rem;
    }
    & .technology-detail li {
      font-size: 0.875rem;
      padding: 10px 12px;
    }
  }
}
/* Адаптация для (width <= 639px). */
@media (width <= 639px) {
  body.multipage {
    &[data-page] main .catalog-filters {
      border-block: 1px solid #25436a;
    }
    &[data-page] main .catalog-filters > summary {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      min-height: 56px;
      padding-block: 12px;
      color: var(--ice);
      font-size: 1rem;
      cursor: pointer;
      list-style: none;
    }
  }
  .catalog-filters > summary::-webkit-details-marker {
    display: none;
  }
  .catalog-filters > summary > span {
    font-size: 0.8125rem;
    color: #8fb7ef;
  }
  .catalog-filters > summary::after {
    content: '+';
    color: #72b1ff;
    font-size: 24px;
  }
  .catalog-filters[open] > summary::after {
    content: '−';
  }
  body.multipage {
    &[data-page] main .catalog-filters .filter-bar {
      border: 0;
      padding-top: 8px;
    }
    &[data-page] main :is(.page-hero, .services-hero, .auth-section),
    &.home-page[data-page] main .hero {
      padding-top: calc(var(--site-header-height, 80px) + 24px);
    }
    &[data-page] main .breadcrumbs {
      align-items: center;
      margin-bottom: 12px;
    }
    &[data-page] main .hero-stage.ecosystem {
      min-height: 0;
    }
    & {
      --gutter: max(
        16px,
        env(safe-area-inset-left),
        env(safe-area-inset-right)
      );
      --section-y: 56px;
    }
    & .header-shell {
      padding: 6px 8px 6px 10px;
      border-radius: 20px;
      gap: 8px;
    }
    & .header-actions {
      gap: 6px;
    }
    & .wordmark-copy small {
      display: none;
    }
    & .wordmark {
      gap: 10px;
    }
    & :is(.page-hero, .services-hero, .auth-section),
    &.home-page .hero {
      padding-top: calc(var(--site-header-height, 80px) + 28px);
      padding-bottom: 48px;
    }
    & :is(.page-hero-layout, .services-hero-layout),
    &.home-page .hero .container {
      gap: 28px;
    }
    & .breadcrumbs {
      flex-wrap: wrap;
      gap: 6px 10px;
      margin-bottom: 24px;
      line-height: 1.5;
    }
    & .breadcrumbs > a {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
    }
    & :is(.page-hero-copy > p, .hero-lead, .services-hero-copy > p) {
      margin-top: 20px;
    }
    & :is(.hero-actions, .page-hero .hero-actions, .services-hero-actions) {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
      margin-top: 24px;
    }
    & :is(.hero-actions, .services-hero-actions) > :is(a, button) {
      justify-content: center;
      width: 100%;
      min-height: 48px;
    }
    & .hero-points {
      margin-top: 20px;
    }
    & :is(.section, .editorial-section) {
      padding-block: 56px;
    }
    & :is(.section-heading, .editor-heading) {
      margin-bottom: 28px;
    }
    & :is(.section-heading > p, .editor-heading > p) {
      margin-top: 16px;
    }
    & .page-hero .delivery-milestone {
      grid-template-columns: 1fr;
    }
    & .page-hero .delivery-milestone > div {
      grid-column: 1;
      grid-row: auto;
      padding: 12px 0 0;
      margin-top: 4px;
      border-left: 0;
      border-top: 1px solid #28466e;
    }
    & .page-hero .delivery-milestone > strong {
      max-width: none;
    }
    & :is(.lead-form-card, .direct-card, .standalone-form, .meeting-panel) {
      padding: 24px 18px;
    }
    & .form-row {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    & .file-trigger {
      min-width: 0;
      align-items: flex-start;
    }
    & .file-trigger > span:last-child {
      min-width: 0;
      overflow-wrap: anywhere;
    }
    & .modal {
      padding: 0;
      align-items: end;
    }
    & .modal-card {
      max-height: calc(100dvh - max(20px, env(safe-area-inset-top)));
      padding: 64px 20px max(24px, env(safe-area-inset-bottom));
      border-radius: 24px 24px 0 0;
      overscroll-behavior: contain;
    }
    & .modal-close {
      top: 12px;
      right: 12px;
    }
    & .auth-mode {
      flex-wrap: wrap;
      gap: 12px 24px;
    }
    & .auth-identity {
      flex-wrap: wrap;
      gap: 8px;
      padding: 12px 18px;
    }
    & .auth-password-toggle {
      min-height: 44px;
    }
    & .auth-field input {
      height: auto;
    }
    & .footer-grid {
      gap: 28px;
    }
    & .footer-caption {
      margin-top: 16px;
    }
  }
}
/* Адаптация для (width <= 359px). */
@media (width <= 359px) {
  body.multipage .header-actions .account-links-compact {
    display: none;
  }
}

/* Компактная композиция публичных страниц без уменьшения интерактивных элементов. */
@media (width <= 700px) {
  body.multipage:not(.portal-page):not(.auth-page) {
    --section-y: 48px;
    & main :is(.page-hero, .services-hero) {
      padding-top: calc(var(--site-header-height, 80px) + 8px);
      padding-bottom: 40px;
    }
    & main .breadcrumbs {
      margin-bottom: 16px;
      column-gap: 8px;
      font-size: 0.75rem;
    }
    & .page-hero-copy > .eyebrow {
      display: none;
    }
    & main h1 {
      font-size: clamp(1.875rem, 7.9vw, 2.375rem);
      line-height: 1.15;
      letter-spacing: -0.035em;
      text-wrap: balance;
    }
    & main h2 {
      font-size: clamp(1.625rem, 6.8vw, 2rem);
      line-height: 1.2;
      letter-spacing: -0.025em;
      text-wrap: balance;
    }
    & main :is(h1, h2) > br {
      display: none;
    }
    & main :is(.page-hero-copy > p, .hero-lead, .services-hero-copy > p) {
      margin-top: 18px;
      font-size: 0.9375rem;
      line-height: 1.65;
    }
    & :is(.hero-actions, .services-hero-actions) {
      gap: 4px;
      margin-top: 24px;
    }
    & :is(.hero-actions, .services-hero-actions) .button-secondary {
      background: none;
      box-shadow: none;
      border-color: transparent;
      font-size: 0.875rem;
    }
    & :is(.section, .editorial-section) {
      padding-block: 44px;
    }
    & :is(.section-heading, .editor-heading) {
      margin-bottom: 24px;
      gap: 16px;
    }
    & :is(.section-heading > p, .editor-heading > p) {
      margin-top: 0;
      font-size: 0.9375rem;
      line-height: 1.65;
    }
    & :is(.page-hero-layout, .services-hero-layout) {
      gap: 24px;
    }
    & .page-hero :is(.workspace-header, .composition-meta) {
      font-size: 0.625rem;
      gap: 12px;
    }
    & .page-hero :is(.workspace-footer, .interface-detail-foot) {
      display: none;
    }
    & .page-hero .delivery-workspace {
      padding: 20px;
    }
    & .page-hero .delivery-content {
      gap: 12px;
    }
    & .page-hero .delivery-task:not(.is-current) small {
      display: none;
    }
    & .page-hero .delivery-task {
      padding: 10px 12px;
    }
    & .page-hero .delivery-milestone {
      padding: 14px;
    }
    & .page-hero .services-system-map {
      grid-template-columns: 72px minmax(0, 1fr);
      align-items: center;
      gap: 20px;
      margin-block: 20px 0;
    }
    & .page-hero .services-system-title {
      margin-top: 16px;
    }
    & .page-hero .services-system-title strong {
      font-size: 1.25rem;
    }
    & .page-hero .services-system-parts {
      gap: 16px;
    }
    & .page-hero .services-system-parts strong {
      font-size: 0.9375rem;
    }
    & .page-hero .services-system-parts small {
      font-size: 0.8125rem;
    }
    & .page-hero .services-system-link {
      min-height: 44px;
      margin-top: 16px;
    }
    & main :is(.lead-form-card, .standalone-form) {
      padding: 20px 0;
      border: 0;
      border-radius: 0;
      background: none;
      box-shadow: none;
    }
    & main :is(.lead-form-card, .standalone-form)::before {
      display: none;
    }
    & main .direct-card {
      padding: 24px 0;
      border-inline: 0;
      border-radius: 0;
      background: none;
      box-shadow: none;
    }
    & main .form-row {
      gap: 18px;
    }
    & .footer-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 28px 20px;
    }
    & .footer-grid > div:first-child,
    & .footer-grid > nav:last-child {
      grid-column: 1 / -1;
    }
    & .footer-grid > div:first-child p {
      max-width: 40ch;
      font-size: 0.875rem;
    }
    & .footer-grid > div:first-child .footer-caption {
      display: none;
    }
    & .footer-grid nav :is(a, button) {
      min-height: 44px;
      font-size: 0.8125rem;
      line-height: 1.5;
      overflow-wrap: anywhere;
    }
    & .footer-grid > nav:last-child {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 6px 20px;
      padding-top: 20px;
      border-top: 1px solid var(--release-edge);
    }
    &
      .footer-grid
      > nav:last-child
      :is(strong, .social-links, .footer-caption) {
      grid-column: 1 / -1;
    }
    & .footer-grid > nav:last-child .footer-caption {
      margin-top: 8px;
    }
    & .footer-bottom {
      padding-top: 24px;
      margin-top: 24px;
    }
    & .case-catalog {
      gap: 20px;
    }
    & .case-catalog .catalog-case .product-art {
      height: 180px;
      min-height: 180px;
      padding: 16px 16px 0;
    }
    & .catalog-case .catalog-case-copy {
      padding: 20px;
    }
    & .catalog-case h2 {
      font-size: 1.25rem;
      margin-top: 10px;
    }
    & .catalog-case .tag-line {
      display: none;
    }
    & .catalog-case .text-link {
      border: 0;
      padding-top: 0;
      min-height: 44px;
    }
  }
}
.technology-mobile-filter {
  display: none;
}
.modal-toolbar {
  display: contents;
}
@media (width <= 700px), (width <= 1000px) and (height <= 500px) and (pointer: coarse) {
  body.multipage {
    & .modal {
      inset: var(--modal-visible-top, 0px) 0 auto;
      height: var(--modal-visible-height, 100dvh);
    }
    & .modal-card {
      max-height: calc(var(--modal-visible-height, 100dvh) - 20px);
      padding-top: 20px;
      scroll-padding-block: 80px 24px;
    }
    & .modal-toolbar {
      display: flex;
      justify-content: flex-end;
      position: sticky;
      top: -20px;
      z-index: 10;
      margin: -20px -20px 20px;
      padding: 12px;
      background: #08172c;
    }
    & .modal-toolbar .modal-close {
      position: static;
    }
  }
  body.multipage .technology-controls {
    & .technology-filters {
      display: none;
    }
    & .technology-mobile-filter {
      display: grid;
      gap: 8px;
      min-width: 0;
      color: var(--steel);
      font-size: 0.8125rem;
    }
    & .technology-mobile-filter select {
      width: 100%;
      min-width: 0;
      min-height: 48px;
      padding: 12px;
      border: 1px solid var(--release-edge);
      border-radius: 10px;
      color: var(--ice);
      background: #08172c;
      font: inherit;
      font-size: 1rem;
    }
  }
}

/* Сокращение движения по настройке пользователя. */
@media (prefers-reduced-motion: reduce) {
  body.multipage :is(.mobile-menu, .menu-button span, .technology-card) {
    transition: none;
  }
}
