

.p24-header,
  .p24-header *,
  .p24-header *::before,
  .p24-header *::after {
    box-sizing: border-box;
  }

  .p24-header {
    --p24-header-bg: #F7F7F5;
    --p24-header-white: #FFFFFF;
    --p24-header-navy: #0B1F4D;
    --p24-header-blue: #3E6DFF;
    --p24-header-text: #293775;
    --p24-header-muted: #646D82;
    --p24-header-orange: #FF6200;
    --p24-header-line: rgba(41, 55, 117, 0.12);
    --p24-header-total-height: 150px;
    --p24-mobile-header-height: 120px;
    position: relative;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: var(--p24-header-navy);
    background: var(--p24-header-bg);
    font-family: Arial, Helvetica, sans-serif;
  }

  .p24-header__container {
    width: min(calc(100% - 48px), 1200px);
    margin: 0 auto;
  }

  .p24-header__utility {
    color: #FFFFFF;
    background: linear-gradient(110deg, #071735 0%, #0B1F4D 58%, #123C7F 100%);
  }

  .p24-header__utility-inner {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .p24-header__descriptor {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #E4EAF7;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 400;
    white-space: nowrap;
  }

  .p24-header__status-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #42D98A;
    box-shadow: 0 0 0 6px rgba(66, 217, 138, 0.09), 0 0 16px rgba(66, 217, 138, 0.38);
  }

  .p24-header__utility-actions,
  .p24-header__messengers,
  .p24-header__contacts {
    display: flex;
    align-items: center;
  }

  .p24-header__utility-actions { gap: 20px; }
  .p24-header__messengers { gap: 8px; }
  .p24-header__contacts { gap: 20px; }

  .p24-header__messenger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 13px;
    text-decoration: none;
    transition: opacity 0.18s ease;
  }

  .p24-header__messenger img {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
  }

  .p24-header__messenger:hover {
    opacity: 0.82;
  }

  .p24-header__phone,
  .p24-header__email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease;
  }

  .p24-header__phone:hover,
  .p24-header__email:hover { color: #FFB58C; }

  .p24-header__phone svg,
  .p24-header__email svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .p24-header__main {
    position: relative;
    border-bottom: 1px solid rgba(41, 55, 117, 0.10);
    background:
      radial-gradient(circle at 88% 35%, rgba(94, 138, 242, 0.17), transparent 28%),
      radial-gradient(circle at 10% 24%, rgba(255, 98, 0, 0.08), transparent 24%),
      var(--p24-header-bg);
  }

  .p24-header__main-inner {
    position: relative;
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 22px;
  }

  .p24-header__logo {
    display: inline-flex;
    flex: 0 0 auto;
    text-decoration: none;
  }

  .p24-header__logo-img {
    display: block;
    width: 176px;
    max-width: 100%;
    height: auto;
  }

  .p24-header__navrow {
    position: static;
    min-width: 0;
    flex: 1 1 auto;
  }

  .p24-header__nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 70px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .p24-header__nav-item { list-style: none; }
  .p24-header__nav-item--services { position: static; }

  .p24-header__services-trigger {
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }

  .p24-header__nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    color: var(--p24-header-navy);
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease;
  }

  .p24-header__nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--p24-header-orange);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.18s ease;
  }

  .p24-header__nav-link:hover,
  .p24-header__nav-link[aria-current="page"],
  .p24-header__nav-item--services.is-open .p24-header__services-link { color: var(--p24-header-orange); }

  .p24-header__nav-link:hover::after,
  .p24-header__nav-link[aria-current="page"]::after,
  .p24-header__nav-item--services.is-open .p24-header__services-link::after { transform: scaleX(1); }

  .p24-header__drop-btn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: var(--p24-header-navy);
    background: transparent;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease;
  }

  .p24-header__drop-btn:hover,
  .p24-header__nav-item--services.is-open .p24-header__drop-btn {
    color: var(--p24-header-orange);
    background: rgba(255, 98, 0, 0.08);
  }

  .p24-header__drop-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.18s ease;
  }

  .p24-header__nav-item--services.is-open .p24-header__drop-btn svg { transform: rotate(180deg); }

  .p24-header__mega {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 20;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1120px, calc(100vw - 48px));
    max-height: calc(100vh - var(--p24-header-total-height));
    max-height: calc(100dvh - var(--p24-header-total-height));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--p24-header-line);
    border-radius: 17px;
    background: #FFFFFF;
    box-shadow: 0 26px 58px rgba(11, 31, 77, 0.19), 0 5px 16px rgba(11, 31, 77, 0.07);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .p24-header__nav-item--services.is-open > .p24-header__mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .p24-header__mega-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--p24-header-line);
    background: linear-gradient(90deg, rgba(234, 240, 255, 0.76), rgba(255, 255, 255, 0.94));
  }

  .p24-header__mega-head > div { display: grid; gap: 4px; }
  .p24-header__mega-head > div > span,
  .p24-header__panel-head > div > span {
    color: var(--p24-header-blue);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }

  .p24-header__mega-head strong {
    color: var(--p24-header-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.15;
  }

  .p24-header__mega-note {
    color: var(--p24-header-muted);
    font-size: 12px;
    line-height: 1.3;
  }

  .p24-header__catalog {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 430px;
    overflow: hidden;
  }

  .p24-header__categories {
    overflow-y: auto;
    padding: 12px;
    border-right: 1px solid var(--p24-header-line);
    background: #F7F8FB;
    scrollbar-width: thin;
  }

  .p24-header__category {
    width: 100%;
    min-height: 49px;
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--p24-header-navy);
    background: transparent;
    text-align: left;
    font: 500 14px/1.2 Arial, Helvetica, sans-serif;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  }

  .p24-header__category + .p24-header__category { margin-top: 4px; }
  .p24-header__category:hover,
  .p24-header__category.is-active {
    border-color: rgba(62, 109, 255, 0.22);
    color: var(--p24-header-blue);
    background: #FFFFFF;
  }

  .p24-header__category-number {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    color: var(--p24-header-blue);
    background: #EAF0FF;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
  }

  .p24-header__category.is-active .p24-header__category-number {
    color: #FFFFFF;
    background: var(--p24-header-orange);
  }

  .p24-header__category i {
    color: #A5ADC0;
    font-size: 22px;
    line-height: 1;
    font-style: normal;
  }

  .p24-header__panels {
    min-width: 0;
    overflow-y: auto;
    padding: 22px 24px 26px;
    scrollbar-width: thin;
  }

  .p24-header__panel { min-width: 0; }
  .p24-header__panel:not(.is-active) { display: none; }
  .p24-header__panel.is-active { display: block; }

  .p24-header__panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--p24-header-line);
  }

  .p24-header__panel-head > div { display: grid; gap: 5px; }

  .p24-header__panel-title {
    display: block;
    color: var(--p24-header-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    line-height: 1.05;
    letter-spacing: -0.025em;
  }

  .p24-header__panel-head > a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--p24-header-navy);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease;
  }

  .p24-header__panel-head > a:hover { color: var(--p24-header-orange); }

  .p24-header__service-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
  }

  .p24-header__service-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 32px 10px 13px;
    border-radius: 10px;
    color: var(--p24-header-text);
    font-size: 14px;
    line-height: 1.28;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease;
  }

  .p24-header__service-link::after {
    content: "›";
    position: absolute;
    top: 50%;
    right: 12px;
    color: #A1AABC;
    font-size: 19px;
    line-height: 1;
    transform: translateY(-50%);
  }

  .p24-header__service-link:hover {
    color: var(--p24-header-orange);
    background: #F6F8FC;
  }

  .p24-header__service-link--lead {
    min-height: 58px;
    border: 1px solid rgba(62, 109, 255, 0.15);
    color: var(--p24-header-navy);
    background: #F5F7FD;
    font-weight: 600;
  }

  .p24-header__rating {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 50px;
    flex: 0 0 150px;
    overflow: hidden;
    border-radius: 8px;
  }

  .p24-header__rating-static {
    display: grid;
    align-content: center;
    gap: 3px;
    width: 150px;
    height: 50px;
    padding: 6px 9px;
    border-radius: 8px;
    color: var(--p24-header-navy);
    background: rgba(255, 255, 255, 0.9);
    text-decoration: none;
  }

  .p24-header__rating-static > span { display: flex; align-items: center; gap: 7px; }
  .p24-header__rating-static b { font-size: 14px; line-height: 1; }
  .p24-header__rating-static i { color: #FFBF00; font-size: 12px; line-height: 1; font-style: normal; letter-spacing: 1px; }
  .p24-header__rating-static small { color: var(--p24-header-muted); font-size: 8px; line-height: 1.1; }

  .p24-header__rating iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 150px;
    height: 50px;
    border: 0;
    background: #FFFFFF;
  }

  .p24-header__rating.is-widget-loaded .p24-header__rating-static { visibility: hidden; }

  .p24-header__mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--p24-header-navy);
    cursor: pointer;
  }

  .p24-header__mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #FFFFFF;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .p24-header.is-mobile-open .p24-header__mobile-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .p24-header.is-mobile-open .p24-header__mobile-toggle span:nth-child(2) { opacity: 0; }
  .p24-header.is-mobile-open .p24-header__mobile-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .p24-header a:focus-visible,
  .p24-header button:focus-visible {
    outline: 3px solid rgba(255, 98, 0, 0.5);
    outline-offset: 3px;
  }

  @media (min-width: 821px) and (hover: hover) and (pointer: fine) {
    .p24-header__nav-item--services:hover > .p24-header__mega {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translate(-50%, 0);
    }
  }

  @media (max-width: 1180px) {
    .p24-header__descriptor { font-size: 13px; }
    .p24-header__main-inner { gap: 15px; }
    .p24-header__logo-img { width: 158px; }
    .p24-header__nav-list { gap: 12px; }
    .p24-header__nav-link { font-size: 13px; }
  }

  @media (max-width: 1020px) {
    .p24-header__descriptor { display: none; }
    .p24-header__utility-inner { justify-content: flex-end; }
    .p24-header__email { display: none; }
    .p24-header__rating { display: none; }
  }


  @media (min-width: 821px) and (max-width: 900px) {
    .p24-header__catalog { grid-template-columns: 220px minmax(0, 1fr); }
    .p24-header__panels { padding: 20px 18px 24px; }
    .p24-header__service-links { gap: 8px 14px; }
  }

  @media (max-width: 820px) {
    .p24-header__container { width: calc(100% - 32px); }
    .p24-header__utility-inner { min-height: 48px; justify-content: center; }
    .p24-header__utility-actions { width: 100%; justify-content: center; gap: 10px; }
    .p24-header__contacts { gap: 0; }

    .p24-header__messenger {
      width: 42px;
      height: 42px;
      flex-basis: 42px;
      border-radius: 12px;
    }

    .p24-header__messenger img { width: 40px; height: 40px; border-radius: 11px; }
    .p24-header__phone {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.08);
    }
    .p24-header__phone span { display: none; }
    .p24-header__phone svg { width: 21px; height: 21px; }

    .p24-header__main-inner {
      min-height: 62px;
      justify-content: space-between;
      gap: 10px;
      padding: 5px 2px;
    }

    .p24-header__logo-img { width: 142px; }
    .p24-header__mobile-toggle { display: inline-flex; flex: 0 0 42px; }

    .p24-header__navrow {
      position: absolute;
      top: 100%;
      right: 0;
      left: 0;
      z-index: 30;
      display: none;
      width: 100%;
      max-height: calc(100vh - var(--p24-mobile-header-height));
      max-height: calc(100dvh - var(--p24-mobile-header-height));
      overflow-y: auto;
      border: 1px solid var(--p24-header-line);
      border-top: 0;
      border-radius: 0 0 16px 16px;
      background: #FFFFFF;
      box-shadow: 0 22px 44px rgba(11, 31, 77, 0.18);
      overscroll-behavior: contain;
    }

    .p24-header.is-mobile-open .p24-header__navrow { display: block; }

    .p24-header__nav-list { display: block; min-height: 0; padding: 7px 10px 12px; }
    .p24-header__nav-item { border-bottom: 1px solid rgba(41, 55, 117, 0.09); }
    .p24-header__nav-item:last-child { border-bottom: 0; }

    .p24-header__nav-link { width: 100%; min-height: 48px; font-size: 15px; }
    .p24-header__nav-link::after { display: none; }

    .p24-header__services-trigger { display: grid; grid-template-columns: minmax(0, 1fr) 44px; width: 100%; }
    .p24-header__drop-btn { width: 44px; height: 44px; justify-self: end; }

    .p24-header__mega {
      position: static;
      display: block;
      width: 100%;
      max-height: 0;
      margin: 0;
      overflow: hidden;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      opacity: 1;
      visibility: hidden;
      pointer-events: none;
      transform: none;
      transition: max-height 0.25s ease, visibility 0.25s ease;
    }

    .p24-header__nav-item--services.is-open > .p24-header__mega {
      max-height: 2400px;
      padding: 4px 0 12px;
      visibility: visible;
      pointer-events: auto;
      transform: none;
    }

    .p24-header__mega-head {
      min-height: 58px;
      padding: 11px 13px;
      border: 1px solid var(--p24-header-line);
      border-radius: 14px 14px 0 0;
    }

    .p24-header__mega-head strong { font-size: 18px; }
    .p24-header__mega-note { display: none; }

    .p24-header__catalog {
      display: block;
      min-height: 0;
      overflow: visible;
      border: 1px solid var(--p24-header-line);
      border-top: 0;
      border-radius: 0 0 14px 14px;
    }

    .p24-header__categories {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 7px;
      padding: 10px;
      overflow: visible;
      border-right: 0;
      border-bottom: 1px solid var(--p24-header-line);
    }

    .p24-header__category {
      min-width: 0;
      min-height: 52px;
      grid-template-columns: 30px minmax(0, 1fr);
      gap: 8px;
      padding: 6px 8px;
      border-color: var(--p24-header-line);
      background: #FFFFFF;
      font-size: 12.5px;
    }

    .p24-header__category + .p24-header__category { margin-top: 0; }
    .p24-header__category-number { width: 30px; height: 30px; border-radius: 8px; }
    .p24-header__category i { display: none; }

    .p24-header__panels { overflow: visible; padding: 17px 13px 19px; }
    .p24-header__panel-head { display: grid; align-items: start; gap: 10px; margin-bottom: 11px; padding-bottom: 11px; }
    .p24-header__panel-title { font-size: 22px; }
    .p24-header__panel-head > a { font-size: 12.5px; white-space: normal; }
    .p24-header__service-links { grid-template-columns: 1fr; gap: 4px; }
    .p24-header__service-link,
    .p24-header__service-link--lead {
      min-height: 44px;
      padding: 9px 28px 9px 10px;
      border: 0;
      background: transparent;
      font-size: 13px;
      font-weight: 600;
    }
    .p24-header__service-link--lead { color: var(--p24-header-navy); background: #F5F7FD; }
  }

  @media (max-width: 420px) {
    .p24-header__container { width: calc(100% - 32px); }
    .p24-header__logo-img { width: 128px; }
    .p24-header__messengers { gap: 5px; }
    .p24-header__messenger { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }
    .p24-header__messenger img { width: 36px; height: 36px; border-radius: 9px; }
    .p24-header__phone { width: 38px; height: 38px; border-radius: 10px; }
    .p24-header__mobile-toggle { width: 40px; height: 40px; flex-basis: 40px; border-radius: 10px; }
    .p24-header__categories { gap: 6px; padding: 8px; }
    .p24-header__category { grid-template-columns: 28px minmax(0, 1fr); gap: 6px; padding: 6px; font-size: 12px; }
    .p24-header__category-number { width: 28px; height: 28px; }
  }

  @media (max-width: 340px) {
    .p24-header__logo-img { width: 112px; }
    .p24-header__categories { grid-template-columns: 1fr; }
  }

  /* Однострочная светлая компоновка шапки */
  .p24-header {
    --p24-header-bg: #ffffff;
    --p24-header-blue: #145f9c;
    --p24-header-orange: #ff5c00;
    --p24-header-line: #dfe3ea;
    --p24-header-total-height: 78px;
    --p24-mobile-header-height: 64px;
    background: #ffffff;
    font-family: Inter, Arial, Helvetica, sans-serif;
  }

  .p24-header__container {
    width: min(calc(100% - 48px), 1200px);
  }

  .p24-header__main {
    border-bottom: 1px solid var(--p24-header-line);
    background: #ffffff;
  }

  .p24-header__main-inner {
    min-height: 78px;
    gap: 14px;
  }

  .p24-header__logo-img { width: 142px; }

  .p24-header__descriptor {
    flex: 0 0 auto;
    color: #66707e;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .p24-header__nav-list {
    min-height: 78px;
    gap: 13px;
  }

  .p24-header__nav-link {
    min-height: 52px;
    font-size: 13px;
    font-weight: 500;
  }

  .p24-header__messengers,
  .p24-header__contacts {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
  }

  .p24-header__messengers { gap: 5px; }
  .p24-header__contacts { gap: 10px; }

  .p24-header__messenger {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 5px;
  }

  .p24-header__messenger img {
    width: 42px;
    height: 42px;
    border-radius: 5px;
  }

  .p24-header__phone,
  .p24-header__email {
    color: #222b38;
    font-size: 12px;
    font-weight: 500;
  }

  .p24-header__phone:hover,
  .p24-header__email:hover { color: var(--p24-header-orange); }

  .p24-header__phone svg,
  .p24-header__email svg {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  @media (max-width: 1360px) {
    .p24-header__main-inner { gap: 10px; }
    .p24-header__logo-img { width: 132px; }
    .p24-header__descriptor { font-size: 10px; letter-spacing: 0.05em; }
    .p24-header__nav-list { gap: 9px; }
    .p24-header__nav-link { font-size: 12px; }
    .p24-header__contacts { gap: 7px; }
    .p24-header__phone,
    .p24-header__email { font-size: 11px; }
  }

  @media (max-width: 1180px) {
    .p24-header__descriptor { display: none; }
    .p24-header__email { display: none; }
  }

  @media (max-width: 1020px) {
    .p24-header__rating { display: none; }
  }

  @media (max-width: 820px) {
    .p24-header__main-inner {
      min-height: 64px;
      gap: 8px;
      padding: 5px 2px;
    }

    .p24-header__logo-img { width: 132px; }
    .p24-header__messengers { margin-left: auto; }
    .p24-header__messenger,
    .p24-header__messenger img {
      width: 36px;
      height: 36px;
      flex-basis: 36px;
      border-radius: 5px;
    }

    .p24-header__phone {
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      border: 1px solid rgba(20, 95, 156, 0.22);
      border-radius: 5px;
      background: #eef6fc;
      color: var(--p24-header-blue);
    }

    .p24-header__phone span { display: none; }
    .p24-header__mobile-toggle { border-radius: 5px; background: var(--p24-header-blue); }
    .p24-header__nav-list { min-height: 0; }
  }

  @media (max-width: 430px) {
    .p24-header__container { width: calc(100% - 32px); }
    .p24-header__logo-img { width: 118px; }
    .p24-header__messenger,
    .p24-header__messenger img {
      width: 32px;
      height: 32px;
      flex-basis: 32px;
    }
    .p24-header__phone { width: 34px; height: 34px; }
    .p24-header__mobile-toggle { width: 38px; height: 38px; flex-basis: 38px; }
  }

  @media (max-width: 360px) {
    .p24-header__logo-img { width: 108px; }
    .p24-header__messengers { gap: 3px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .p24-header *,
    .p24-header *::before,
    .p24-header *::after {
      scroll-behavior: auto !important;
      transition: none !important;
      animation: none !important;
    }
  }

  html.p24-header-menu-open,
  html.p24-header-menu-open body {
    overflow: hidden;
  }

  .p24-header .p24-header__nav-link,
  .p24-header .p24-header__category,
  .p24-header .p24-header__service-link {
    font-weight: 500;
    font-synthesis: none;
  }

  .p24-header .p24-header__service-link--lead,
  .p24-header .p24-header__panel-head > a {
    font-weight: 600;
    font-synthesis: none;
  }

  .p24-header__service-link[aria-current="page"] {
    color: var(--p24-header-orange);
    background: #fff5ef;
  }
@media (min-width:1001px){.p24-header .p24-header__main-inner{gap:10px}.p24-header .p24-header__nav-list{gap:10px}.p24-header .p24-header__rating{flex:0 0 132px}}