.clients-document {
  background: var(--surface);
  color: var(--ink);
}

.clients-page {
  padding-top: 40px;
}

.clients-hero {
  padding: 0 40px 64px;
}

.clients-hero h1,
.client-panel__heading h2 {
  margin: 0;
  font-family: "Radiotechnika", sans-serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.clients-hero p,
.client-panel__heading > p {
  max-width: 760px;
  margin: 20px 0 0;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: uppercase;
}

.client-tabs__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 40px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.client-tabs__list button {
  position: relative;
  min-height: 88px;
  padding: 20px 52px 20px 20px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: background-color 240ms ease, color 240ms ease;
}

.client-tabs__list button:last-child {
  border-right: 0;
}

.client-tabs__list button i,
.mega-menu__arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 24px;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
}

.client-tabs__list button i::after,
.mega-menu__arrow::after {
  position: absolute;
  top: -4px;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.client-tabs__list button:hover,
.client-tabs__list button:focus-visible,
.client-tabs__list button[aria-selected="true"] {
  background: var(--ink);
  color: var(--surface);
  outline: none;
}

.client-tabs__panels {
  margin-top: 64px;
}

.client-panel {
  padding: 82px 40px;
  background: #fbfaf7;
}

.client-panel[hidden] {
  display: none;
}

.client-panel__heading {
  margin-bottom: 64px;
}

.clients-delivery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.clients-delivery-grid article {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.clients-delivery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clients-delivery-grid h3,
.client-facts h3,
.payment-layout h3,
.care-layout h3 {
  margin: 16px 0 0;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.clients-delivery-grid p,
.client-facts p,
.payment-layout p,
.care-layout p {
  margin: 6px 0 0;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.clients-delivery-note {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
}

.client-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0 0 64px;
}

.client-facts > div,
.payment-layout__items > div,
.care-layout__copy > div {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}

.client-facts span,
.payment-layout__items span,
.care-layout__copy span {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: start;
}

.payment-layout__lead,
.care-layout__lead {
  max-width: 620px;
  margin: 0 !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

.payment-layout__items {
  display: grid;
  gap: 48px;
}

.care-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.care-layout > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.care-layout__copy {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 0 0 20px;
}

.mega-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
}

.mega-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mega-menu__backdrop {
  display: none;
}

.mega-menu.is-open .mega-menu__backdrop {
  opacity: 0;
}

.mega-menu__panel {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100dvh;
  height: 100%;
  overflow-y: auto;
  background: var(--surface);
  transform: translateX(-100%);
  transition: transform 360ms cubic-bezier(.22,.8,.2,1);
}

.mega-menu.is-open .mega-menu__panel {
  transform: translateX(0);
}

.mega-menu__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height, 84px);
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
}

.mega-menu__close {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mega-menu__close::before,
.mega-menu__close::after {
  position: absolute;
  left: 11px;
  top: 21px;
  width: 22px;
  height: 1px;
  background: var(--ink);
  content: "";
}

.mega-menu__close::before { transform: rotate(45deg); }
.mega-menu__close::after { transform: rotate(-45deg); }

.mega-menu__brand {
  width: 178px;
  height: 30px;
  overflow: hidden;
  background: none;
}

.mega-menu__account {
  justify-self: end;
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
}

.mega-menu__rows {
  padding: 40px;
}

.mega-menu__row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 20px;
  padding: 22px 48px 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.mega-menu__label {
  font-family: "Radiotechnika", sans-serif;
  font-size: 36px;
  line-height: 1.12;
}

.mega-menu__row small {
  grid-column: 1;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.mega-menu__arrow {
  right: 0;
}

.clients-price-nav {
  position: fixed;
  z-index: 100;
  right: 40px;
  bottom: 20px;
  left: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
  border-top-width: 2px;
  background: rgb(236 236 236 / 96%);
  box-shadow: 0 14px 36px rgb(36 35 33 / 10%);
  backdrop-filter: blur(14px);
}

.clients-price-nav a {
  display: flex;
  min-height: 102px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

.clients-price-nav a:last-child { border-right: 0; }
.clients-price-nav strong { font-family: "Montserrat", sans-serif; font-size: 22px; font-weight: 400; }
.clients-price-nav small { color: var(--muted); font-family: "Montserrat", sans-serif; font-size: 10px; }
.clients-price-nav .mobile-label { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .client-panel.is-active {
    animation: client-panel-enter 420ms cubic-bezier(.22,.8,.2,1) both;
  }
  @keyframes client-panel-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 700px) {
  .clients-page { padding-top: 40px; }
  .clients-hero { padding: 0 16px 32px; }
  .clients-hero h1,
  .client-panel__heading h2 { font-size: 22px; line-height: 1.15; }
  .clients-hero p,
  .client-panel__heading > p {
    margin-top: 10.67px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
  }
  .client-tabs__list { margin: 0 16px; }
  .client-tabs__list button {
    min-height: 64px;
    padding: 12px 22px 12px 8px;
    font-size: 9px;
    line-height: 1.25;
  }
  .client-tabs__list button i { right: 8px; width: 12px; }
  .client-tabs__list button i::after { top: -3px; width: 6px; height: 6px; }
  .client-tabs__panels { margin-top: 40px; }
  .client-panel { padding: 40px 16px; }
  .client-panel__heading { margin-bottom: 40px; }
  .clients-delivery-grid { grid-template-columns: 1fr; gap: 32px; }
  .clients-delivery-grid h3,
  .client-facts h3,
  .payment-layout h3,
  .care-layout h3 { margin-top: 10px; font-size: 10px; line-height: 1.35; }
  .clients-delivery-grid p,
  .client-facts p,
  .payment-layout p,
  .care-layout p { font-size: 12px; line-height: 1.5; }
  .clients-delivery-note { margin-top: 20px; padding-top: 16px; font-size: 10px; line-height: 1.35; }
  .client-facts { grid-template-columns: 1fr; gap: 32px; margin: 0 0 40px; }
  .client-facts span,
  .payment-layout__items span,
  .care-layout__copy span { font-size: 9px; }
  .payment-layout { grid-template-columns: 1fr; gap: 40px; }
  .payment-layout__lead,
  .care-layout__lead { font-size: 16px !important; line-height: 1.4 !important; }
  .payment-layout__items { gap: 32px; }
  .care-layout { grid-template-columns: 1fr; gap: 40px; }
  .care-layout > img { min-height: 0; aspect-ratio: 3 / 4; }
  .care-layout__copy { gap: 32px; padding: 0; }
  .mega-menu__panel { width: 100%; }
  .mega-menu__top { grid-template-columns: auto 1fr; gap: 16px; min-height: 64px; padding: 0 16px; }
  .mega-menu__brand { justify-self: start; width: 124px; height: 19px; }
  .mega-menu__account { grid-column: 1 / -1; justify-self: stretch; order: 3; padding: 14px 0; border-top: 1px solid var(--line); text-align: center; }
  .mega-menu__rows { padding: 16px; }
  .mega-menu__row { padding: 16px 32px 16px 0; }
  .mega-menu__label { font-size: 17px; line-height: 1.15; }
  .mega-menu__row small { display: none; font-size: 9px; }
  .mega-menu__row.is-preview small { display: block; }
  .mega-menu__arrow { width: 16px; }
  .clients-price-nav {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-bottom: env(safe-area-inset-bottom);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }
  .clients-price-nav a { min-height: 68px; gap: 0; }
  .clients-price-nav strong { font-size: 10px; font-weight: 600; }
  .clients-price-nav small, .clients-price-nav .desktop-label { display: none; }
  .clients-price-nav .mobile-label { display: inline; }
}

/* Match the catalog preview behavior used by the full-screen menu on the home page. */
.mega-menu__row--catalog {
  display: block;
  padding: 0;
}

.mega-menu__catalog-trigger {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 20px;
  padding: 22px 48px 22px 0;
  color: var(--ink);
  text-decoration: none;
}

.mega-menu__catalog-trigger small {
  grid-column: 1;
}

.mega-menu__row--catalog .mega-menu__catalog-expand .mega-menu__category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 700px) {
  .mega-menu__catalog-trigger {
    padding: 16px 32px 16px 0;
  }

  .mega-menu__catalog-trigger small {
    display: none;
    font-size: 9px;
  }

  .mega-menu__row--catalog.is-preview .mega-menu__catalog-trigger small {
    display: block;
  }

  .mega-menu__row--catalog .mega-menu__catalog-expand .mega-menu__category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: shared bottom rails and a non-overlapping account action. */
@media (max-width: 767px) {
  .clients-document,
  .business-document,
  .account-document {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }

  .clients-price-nav {
    position: fixed;
    z-index: 100;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 56px;
    padding: 0 0 env(safe-area-inset-bottom);
    border: 0;
    border-top: 1px solid rgba(36, 35, 33, .72);
    background: rgba(236, 236, 236, .98);
    box-shadow: 0 -10px 28px rgba(36, 35, 33, .08);
    backdrop-filter: blur(12px);
  }

  .clients-price-nav a,
  .clients-price-nav button {
    min-width: 0;
    min-height: 56px;
    padding: 8px 2px;
  }

  .clients-price-nav strong {
    font-size: clamp(8px, 2.6vw, 10px);
    line-height: 1.15;
    white-space: nowrap;
  }

  .clients-price-nav .desktop-label {
    display: inline;
  }

  .clients-price-nav .mobile-label,
  .clients-price-nav small {
    display: none;
  }

  .mega-menu__panel {
    display: grid;
    grid-template-rows: 64px minmax(0, 1fr);
    overflow: hidden;
  }

  .mega-menu__top {
    min-height: 64px;
  }

  .mega-menu__rows {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mega-menu__account {
    position: fixed;
    z-index: 8;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 16px;
    display: flex;
    width: auto;
    max-width: none;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid var(--ink);
    background: rgba(236, 236, 236, .98);
    box-shadow: 0 -18px 30px 16px rgba(236, 236, 236, .96);
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    backdrop-filter: blur(12px);
  }
}
