@layer components {
/* ARBITEX V58 — shared visual system for mobile only.
 * CSS-only visual changes: no copy, form fields, event names, prices or section order are changed.
 * Desktop starts at 768px and is intentionally untouched.
 */
@media screen and (max-width: 767.98px) {
  html { scroll-padding-top: 86px; }
  body { overflow-x: clip; background: #fff; color: #102846; }

  /* A restrained single-row mobile header, matching the approved light mockup.
     Real contact links remain clickable and keep their original destinations. */
  body > div.fixed.top-0.left-0.right-0.z-40:not(:has(a[href^="mailto:"])) {
    position: fixed !important;
    inset: 0 56px auto 126px !important;
    width: auto !important;
    height: 70px !important;
    border: 0 !important;
    background: transparent !important;
    z-index: 62 !important;
    transform: none !important;
    translate: none !important;
    pointer-events: none !important;
  }
  body > div.fixed.top-0.left-0.right-0.z-40:not(:has(a[href^="mailto:"])) > div {
    width: 100%; height: 70px; gap: 5px; padding: 0 !important;
    justify-content: flex-end;
  }
  body > div.fixed.top-0.left-0.right-0.z-40:not(:has(a[href^="mailto:"])) a {
    pointer-events: auto !important;
    flex-shrink: 0;
  }
  body > div.fixed.top-0.left-0.right-0.z-40:not(:has(a[href^="mailto:"])) a[href^="tel:"] {
    font-size: 11px !important;
    font-weight: 750;
    white-space: nowrap;
    gap: 3px !important;
    letter-spacing: -0.03em;
    color: #092958 !important;
  }
  body > div.fixed.top-0.left-0.right-0.z-40:not(:has(a[href^="mailto:"])) a[href^="tel:"] svg {
    width: 13px; height: 13px;
  }
  body > div.fixed.top-0.left-0.right-0.z-40:not(:has(a[href^="mailto:"])) a img {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain;
  }
  body:has(> div.fixed.top-0.z-40 a[href^="tel:"]) > header.fixed.left-0.right-0.z-50 {
    top: 0 !important;
    z-index: 61 !important;
    min-height: 70px !important;
    border-bottom: 1px solid #e2e9f3 !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: 0 5px 18px rgba(14,47,90,.045) !important;
    backdrop-filter: blur(12px);
  }
  body > header.fixed.left-0.right-0.z-50 > div:first-child {
    height: 70px !important;
    padding-inline: 12px !important;
  }
  body > header.fixed.left-0.right-0.z-50 a[aria-label="Арбитекс — на главную"] {
    gap: 5px !important;
    color: #082a5e !important;
  }
  body > header.fixed.left-0.right-0.z-50 a[aria-label="Арбитекс — на главную"] img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 7px !important;
  }
  body > header.fixed.left-0.right-0.z-50 a[aria-label="Арбитекс — на главную"] span {
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: -.028em;
  }
  body > header.fixed.left-0.right-0.z-50 button[aria-label="Открыть меню"],
  body > header.fixed.left-0.right-0.z-50 button[aria-label="Закрыть меню"] {
    position: relative; z-index: 2;
    width: 38px; height: 40px;
    color: #082a5e !important;
    border-radius: 11px;
  }
  body > header.fixed.left-0.right-0.z-50 nav[aria-label="Мобильная навигация"] {
    background: rgba(255,255,255,.99) !important;
    border-color: #e0eaf5 !important;
    box-shadow: 0 15px 34px rgba(8,42,94,.10);
  }

  /* The Moscow utility header displays email instead of a phone: keep two
     readable lines there rather than compressing or hiding an address. */
  body > div.fixed.top-0.left-0.right-0.z-40:has(a[href^="mailto:"]) {
    background: #fff !important;
    border-color: #e4ebf3 !important;
  }

  /* The Moscow utility bar contains email instead of a phone; preserve its
     two-row mobile header and keep the hero below both rows. */
  body:has(> div.fixed.top-0.z-40 a[href^="mailto:"]) main section.premium-hero {
    padding-top: 127px !important;
  }

  /* Light, airy, photo-free HERO background with non-content decorative art. */
  main section.premium-hero {
    isolation: isolate;
    min-height: 0 !important;
    padding-top: 71px !important;
    padding-bottom: 8px !important;
    background: linear-gradient(155deg, #ffffff 0%, #ffffff 56%, #f4f8ff 100%) !important;
  }
  main section.premium-hero::after {
    content: none !important;
    display: none !important;
  }
  main section.premium-hero::before {
    content: "" !important;
    display: block !important;
    pointer-events: none !important;
    position: absolute !important;
    inset: 160px -84px auto auto !important;
    width: 300px !important;
    height: 385px !important;
    z-index: -1 !important;
    opacity: .53 !important;
    background: url('/images/arbitex-mobile-legal-watermark-v58.svg') center / contain no-repeat !important;
  }
  main section.premium-hero > div {
    padding: 28px 18px 28px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: none !important;
  }
  main section.premium-hero > div > div:first-child {
    gap: 18px !important;
  }
  html body main section.premium-hero h1:not(.arbitex-unstyled) {
    color: #082a5e !important;
    font-size: clamp(26px, 7.3vw, 30px) !important;
    line-height: 1.14 !important;
    font-weight: 800 !important;
    letter-spacing: -.035em !important;
    text-wrap: balance;
    overflow-wrap: break-word !important;
  }
  main section.premium-hero h1 + p {
    margin-top: 18px !important;
    color: #536987 !important;
    font-size: 16px !important;
    line-height: 1.59 !important;
    font-weight: 400;
  }
  main section.premium-hero .mobile-hero-secondary,
  main section.premium-hero h1 ~ div.flex + p {
    color: #637791 !important;
    line-height: 1.55 !important;
  }
  main section.premium-hero h1 ~ div.flex {
    gap: 10px !important;
    margin-top: 18px !important;
  }

  /* Bright rectangular buttons, like the approved reference. */
  main section.premium-hero button[class*="bg-primary"],
  main section.premium-hero a[class*="bg-primary"] {
    display: inline-flex;
    min-height: 52px !important;
    width: 100% !important;
    border-radius: 13px !important;
    border: 1px solid #0b5ed7 !important;
    background: linear-gradient(115deg,#0b5ed7,#165cdf) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    box-shadow: 0 7px 14px rgba(11,94,215,.12) !important;
  }
  main section.premium-hero a[class*="border"],
  main section.premium-hero button[class*="border"] {
    min-height: 52px !important;
    width: 100% !important;
    border-radius: 13px !important;
    border: 1px solid #afcaf5 !important;
    background: rgba(255,255,255,.88) !important;
    color: #0b5ed7 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }
  main section.premium-hero a[class*="bg-primary"][class*="border"],
  main section.premium-hero button[class*="bg-primary"][class*="border"] {
    background: linear-gradient(115deg,#0b5ed7,#165cdf) !important;
    color: white !important;
    border-color: #0b5ed7 !important;
  }

  /* Unified soft cards and proof links, with existing review sources untouched. */
  main section.premium-hero .liquidation-hero-price {
    margin-top: 19px !important;
    padding: 17px 16px !important;
    border-radius: 21px !important;
    border: 1px solid #d5e6fb !important;
    background: linear-gradient(137deg, #f5f9ff 0%, #eaf3ff 100%) !important;
    box-shadow: 0 6px 17px rgba(8,42,94,.055) !important;
  }
  main section.premium-hero .liquidation-hero-price > p:first-child {
    color: #082a5e !important;
    font-size: 20px !important;
    line-height: 1.22 !important;
  }
  main section.premium-hero .liquidation-hero-price > p + p {
    margin-top: 10px !important;
    color: #52657a !important;
    font-size: 13px !important;
    line-height: 1.48 !important;
  }
  main section.premium-hero .liquidation-hero-gift {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 38px !important;
    margin: 14px auto 0 !important;
    padding: 8px 10px !important;
    border: 1px solid #cfe1fa !important;
    border-radius: 13px !important;
    background: #e6f0ff !important;
    box-shadow: none !important;
    font-size: 12px !important;
    color: #0b5ed7 !important;
    text-align: center;
  }
  main section.premium-hero .arbitex-hero-proof {
    margin-top: 16px !important;
  }
  main section.premium-hero .arbitex-hero-proof__mobile {
    gap: 10px !important;
  }
  main section.premium-hero .arbitex-review-card {
    min-height: 62px !important;
    padding: 10px 9px !important;
    border: 1px solid #e1eaf5 !important;
    border-radius: 17px !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(8,42,94,.08) !important;
  }
  main section.premium-hero .arbitex-review-card img {
    display: block;
    object-fit: contain;
    max-height: 45px !important;
  }

  /* Same visual language throughout the body; never alter sections' order or text. */
  main > section:not(.premium-hero) {
    scroll-margin-top: 82px;
  }
  main > section:not(.premium-hero) h2 {
    font-size: clamp(24px, 6.6vw, 29px) !important;
    line-height: 1.23 !important;
    letter-spacing: -.025em;
  }
  main > section:not(.premium-hero) :is(article, .rounded-2xl.border, .rounded-xl.border) {
    border-radius: 19px;
  }
  main > section:not(.premium-hero) :is(article,[class*="rounded-2xl"][class*="border"]) {
    box-shadow: 0 5px 16px rgba(8,42,94,.035);
  }
  main > section:not(.premium-hero) :is(button[class*="bg-primary"], a[class*="bg-primary"]) {
    border-radius: 12px;
    font-weight: 700;
  }
  main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea) {
    max-width: 100%;
    border-radius: 12px;
  }
  main .premium-quick-services > a {
    border-radius: 17px !important;
    box-shadow: 0 3px 12px rgba(8,42,94,.045);
  }
}
@media screen and (max-width: 359.98px) {
  body > div.fixed.top-0.left-0.right-0.z-40:not(:has(a[href^="mailto:"])) {
    left: 112px !important;
    right: 52px !important;
  }
  body > div.fixed.top-0.left-0.right-0.z-40:not(:has(a[href^="mailto:"])) a[href^="tel:"] {
    font-size: 10px !important;
    letter-spacing: -.05em;
  }
  body > div.fixed.top-0.left-0.right-0.z-40:not(:has(a[href^="mailto:"])) a img {
    width: 19px !important; height: 19px !important;
  }
  body > header.fixed.left-0.right-0.z-50 a[aria-label="Арбитекс — на главную"] span {
    font-size: 14px !important;
  }
  html body main section.premium-hero h1:not(.arbitex-unstyled) {
    font-size: 25px !important;
  }
}

}
@layer components {
/* ARBITEX V58 — standalone /yurist-dlya-biznesa mobile style.
   Applied only under 768px, preserving business form/Metriка and desktop. */
@media screen and (max-width: 767.98px) {
  body { background: #fff; color: #102846; overflow-x: clip; }
  .siteChrome { position: relative; z-index: 50; }
  .utility {
    position: fixed !important;
    top: 0; right: 56px; left: 126px;
    z-index: 65;
    height: 70px !important;
    border: 0 !important;
    background: transparent !important;
    pointer-events: none;
  }
  .utility .chromeWrap { height: 70px !important; width: 100% !important; justify-content: flex-end; }
  .utilityRight { margin: 0; gap: 5px; font-size: 11px; pointer-events: auto; }
  .utilityRight .utilityPhone { font-size: 11px; white-space: nowrap; letter-spacing: -.035em; }
  .utilityPhone::before { font-size: 12px !important; }
  .utilityRight img { width: 22px !important; height: 22px !important; }
  .mainNav {
    height: 70px !important;
    position: fixed !important;
    z-index: 62 !important;
    top: 0 !important;
    right: 0; left: 0;
    background: rgba(255,255,255,.98) !important;
    border-bottom: 1px solid #e2e9f3 !important;
    box-shadow: 0 5px 18px rgba(14,47,90,.045);
  }
  .mainNav .chromeWrap { width: calc(100% - 24px) !important; height: 70px !important; }
  .mobileNavBrand { gap: 5px; font-size: 16px !important; letter-spacing: -.028em; }
  .mobileNavBrand img { width: 28px !important; height: 28px !important; border-radius: 7px !important; }
  .mobileMenuBtn { font-size: 26px; }
  .mobileMenu { top: 70px !important; border-color: #e1eaf5 !important; }
  .hero { padding: 70px 0 0 !important; background: linear-gradient(155deg,#fff 0%,#fff 56%,#f4f8ff 100%) !important; isolation: isolate; }
  .hero::before {
    position: absolute;
    top: 185px; right: -84px; z-index: -1;
    display: block;
    width: 300px; height: 385px;
    opacity: .53;
    background: url('/images/arbitex-mobile-legal-watermark-v58.svg') center / contain no-repeat;
    pointer-events: none;
    content: "";
  }
  .heroPanel { width: calc(100% - 36px) !important; margin: 0 auto; padding: 26px 0 34px !important; }
  .heroCard { max-width: none; background: transparent !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; }
  .hero .tagHero { display: inline-flex !important; border-radius: 999px; background: #e7f0ff !important; color: #0b5ed7 !important; font-size: 12px; padding: 7px 13px; }
  html body .hero h1 { margin-top: 18px !important; font-size: clamp(26px,7.3vw,30px) !important; line-height: 1.14 !important; letter-spacing: -.035em; color: #082a5e !important; }
  .hero .lead { margin-top: 18px; color: #536987 !important; font-size: 16px !important; line-height: 1.59 !important; }
  .heroPriceLines { color: #52657a !important; font-size: 14px !important; line-height: 1.55; margin-top: 16px; }
  .hero .actions { gap: 11px !important; margin-top: 21px; }
  .hero .actions .btn { min-height: 52px !important; border-radius: 13px !important; font-size: 15px !important; font-weight: 700 !important; width: 100%; }
  .hero .actions .btn.primary { color:#fff !important; background:linear-gradient(115deg,#0b5ed7,#165cdf) !important; border-color:#0b5ed7 !important; box-shadow:0 7px 14px rgba(11,94,215,.12); }
  .hero .actions .btn.secondary { background:rgba(255,255,255,.88) !important; border:1px solid #afcaf5 !important; color:#0b5ed7 !important; }
  .heroHint { margin-top: 17px !important; color:#637791 !important; font-size: 13px !important; line-height:1.53; }
  .heroMobileSupport { gap: 11px; }
  .heroReviewsMobile { gap: 10px !important; margin-top: 17px !important; }
  .heroReviewsMobile a { min-height: 62px !important; border:1px solid #e1eaf5 !important; border-radius:17px !important; background:#fff !important; box-shadow:0 8px 22px rgba(8,42,94,.08) !important; }
  .heroReviewsMobile img { max-height: 45px !important; }
  main > section:not(.hero) { scroll-margin-top: 82px; }
  main > section:not(.hero) h2 { font-size: clamp(24px,6.6vw,29px) !important; line-height: 1.23 !important; letter-spacing: -.025em; }
  .entryCard,.formatCard,.card,.review,.tariff,.teamCardAlt,.faq,.compare { border-radius: 19px !important; }
  .tariffs { grid-template-columns: minmax(0,1fr) !important; }
  .tariff { width: 100%; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .teamPhotos { display: flex !important; justify-content: center; }
  .teamPhotoAlt { display:block; width:min(78%,280px)!important; max-width:280px; height:180px!important; margin:4px auto 0; border-radius:20px!important; object-fit:cover; object-position:50% 18%; }
  .siteFooter { margin-top: 0; }
  input, select, textarea { border-radius: 12px !important; }
}
@media screen and (max-width:359.98px) {
  .utility { left: 112px; right: 52px; }
  .mobileNavBrand { font-size: 14px !important; }
  .utilityRight .utilityPhone { font-size: 10px; }
  .utilityRight img { width: 19px !important; height: 19px !important; }
  html body .hero h1 { font-size: 25px !important; }
}

}

@layer components {
/* On 320–359px devices the telephone and brand must not collide.
   Keep every contact link visible, but give the header two compact rows. */
@media screen and (max-width:359.98px) {
  body > div.fixed.top-0.left-0.right-0.z-40:not(:has(a[href^="mailto:"])) {
    inset: 0 10px auto auto !important;
    width: auto !important;
    height: 35px !important;
  }
  body > div.fixed.top-0.left-0.right-0.z-40:not(:has(a[href^="mailto:"])) > div {
    height: 35px !important;
  }
  body:has(> div.fixed.top-0.z-40 a[href^="tel:"]) > header.fixed.left-0.right-0.z-50 {
    top: 35px !important;
    min-height: 60px !important;
  }
  body > header.fixed.left-0.right-0.z-50 > div:first-child {
    height: 60px !important;
  }
  body > header.fixed.left-0.right-0.z-50 nav[aria-label="Мобильная навигация"] {
    top: 60px !important;
  }
  body:has(> div.fixed.top-0.z-40 a[href^="tel:"]) main section.premium-hero {
    padding-top: 96px !important;
  }

  body:has(.siteChrome) .utility {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 35px !important;
    padding: 0 10px !important;
    background: #fff !important;
    border: 0 !important;
  }
  body:has(.siteChrome) .utility .chromeWrap { height: 35px !important; }
  body:has(.siteChrome) .mainNav {
    top: 35px !important;
    height: 60px !important;
  }
  body:has(.siteChrome) .mainNav .chromeWrap { height: 60px !important; }
  body:has(.siteChrome) .mobileMenu { top: 60px !important; }
  body:has(.siteChrome) .hero { padding-top: 95px !important; }
}

}
