

  /* =========================================================
     ОСНОВНОЕ МЕГАМЕНЮ
  ========================================================= */

  .arch-mega-menu {
    --o: #f4512c;
    --t: #f0f1f2;
    --m: #b8bdc0;
    --b: rgba(215, 220, 222, 0.26);
    --top: 90px;
    --notch: 430px;
    --mh: calc(100vh - 105px);

    position: fixed;
    top: var(--top);
    left: 50%;
    right: auto;

    width: min(850px, calc(100vw - 36px));

    z-index: 99990;

    max-height: var(--mh);

    overflow-x: hidden;
    overflow-y: auto;

    color: var(--t);

    background:
      radial-gradient(
        circle at 53% 25%,
        rgba(68, 77, 80, 0.27),
        transparent 38%
      ),
      linear-gradient(
        90deg,
        #151a1d 0%,
        #101518 52%,
        #151a1d 100%
      );

    border-top: 1px solid var(--o);

    box-shadow:
      0 24px 48px rgba(0, 0, 0, 0.42),
      inset 0 1px rgba(255, 255, 255, 0.025);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translate(-50%, -7px);

    transition:
      opacity 0.18s ease,
      transform 0.18s ease,
      visibility 0.18s ease;
  }


  .arch-mega-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translate(-50%, 0);
  }


  .arch-mega-menu::before {
    content: "";

    position: absolute;

    top: -10px;
    left: var(--notch);

    width: 0;
    height: 0;

    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--o);

    transform: translateX(-50%);
  }


  .arch-mega-menu * {
    box-sizing: border-box;
  }


  .arch-mega-menu__inner {
    width: 100%;

    padding: 22px 22px 20px;
  }


  /* =========================================================
     ОСНОВНАЯ СЕТКА
  ========================================================= */

  .arch-mega-menu__grid {
    display: grid;


    grid-template-columns:
      0.65fr
      0.7fr
      0.7fr
      0.80fr
      0.95fr
      0.7fr;

    column-gap: 8px;

    align-items: stretch;

    width: 100%;
  }


  .arch-mega-menu__column {
    display: flex;

    flex-direction: column;

    min-width: 0;

    padding-left: 8px;

    border-left: 1px solid var(--b);
  }


  .arch-mega-menu__column:first-child {
    padding-left: 0;

    border-left: 0;
  }


  /* =========================================================
     ЗАГОЛОВКИ КОЛОНОК
  ========================================================= */

  .arch-mega-menu__heading {
    position: relative;

    display: flex;

    align-items: center;

    gap: 8px;

    min-height: 26px;

    margin: 0 0 10px;

    padding: 0;

    color: var(--t);

    font-family: Arial, Helvetica, sans-serif;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;

    letter-spacing: 0.04em;

    text-transform: uppercase;

    white-space: nowrap;
  }


  /* =========================================================
     ИКОНКИ
  ========================================================= */

  .arch-mega-menu__icon {
    position: relative;

    display: block;

    width: 25px;
    height: 25px;

    color: var(--o);

    flex: 0 0 auto;
  }


  .arch-mega-menu__icon svg {
    display: block;

    width: 25px;
    height: 25px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
  }


  .arch-mega-menu__icon--drawing {
    border: 2px solid currentColor;

    background:
      linear-gradient(
        90deg,
        transparent 46%,
        currentColor 46% 54%,
        transparent 54%
      ),
      linear-gradient(
        0deg,
        transparent 46%,
        currentColor 46% 54%,
        transparent 54%
      );
  }


  .arch-mega-menu__icon--size {
    border: 2px dashed currentColor;
  }


  .arch-mega-menu__icon--color {
    width: 27px;
    height: 27px;
  }


  .arch-mega-menu__icon--color svg {
    width: 27px;
    height: 27px;
  }


  .arch-mega-menu__icon-shine {
    opacity: 0.72;

    stroke-width: 1.5;
  }


  .arch-mega-menu__icon--surface {
    border: 2px solid currentColor;

    overflow: hidden;
  }


  .arch-mega-menu__icon--surface::before {
    content: "";

    position: absolute;

    inset: 4px;

    background:
      repeating-linear-gradient(
        135deg,
        currentColor 0 2px,
        transparent 2px 5px
      );
  }


  /* =========================================================
     СПИСКИ
  ========================================================= */

  .arch-mega-menu__list {
    list-style: none;

    margin: 0;
    padding: 0;
  }


  .arch-mega-menu__list.is-collapsed li:nth-child(n + 6) {
    display: none;
  }


  .arch-mega-menu__list li {
    margin: 0 0 6px;
    padding: 0;
  }


  .arch-mega-menu__link {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    max-width: 100%;


    white-space: nowrap;

    color: var(--m) !important;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.28;

    text-decoration: none !important;

    transition:
      color 0.16s ease,
      transform 0.16s ease;
  }


  .arch-mega-menu__link:hover,
  .arch-mega-menu__link:focus-visible {
    color: #ffffff !important;

    transform: translateX(2px);
  }


  /* =========================================================
     ОБЩАЯ КНОПКА "ПОКАЗАТЬ ЕЩЁ / СВЕРНУТЬ"
  ========================================================= */

  .arch-mega-menu__footer {
    display: flex;

    justify-content: center;

    margin-top: 16px;
    padding-top: 14px;

    border-top: 1px solid var(--b);
  }


  .arch-mega-menu__more {
    padding: 8px 22px;

    border: 1px solid var(--o);

    background: transparent;

    color: var(--o);

    font-family: Arial, Helvetica, sans-serif;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;

    letter-spacing: 0.06em;

    text-transform: uppercase;

    cursor: pointer;

    transition:
      background 0.16s ease,
      color 0.16s ease;
  }


  .arch-mega-menu__more:hover,
  .arch-mega-menu__more:focus-visible {
    background: var(--o);

    color: #ffffff;
  }


  /* =========================================================
     ЦВЕТА
  ========================================================= */

  .arch-mega-menu__color-dot {
    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    border-radius: 50%;

    box-shadow:
      inset 0 0 0 1px rgba(0, 0, 0, 0.16),
      0 0 0 1px rgba(255, 255, 255, 0.08);
  }


  .arch-mega-menu__color--beige {
    background: #eee0bf;
  }


  .arch-mega-menu__color--white {
    background: #f0f3f4;
  }


  .arch-mega-menu__color--blue {
    background: #55bdd8;
  }


  .arch-mega-menu__color--green {
    background: #15a45d;
  }


  .arch-mega-menu__color--brown {
    background: #6f5138;
  }


  .arch-mega-menu__color--red {
    background: #e6382e;
  }


  .arch-mega-menu__color--orange {
    background: #ff7414;
  }


  .arch-mega-menu__color--gray {
    background: #aaaeb0;
  }


  .arch-mega-menu__color--multi {
    background:
      conic-gradient(
        #ff3548,
        #ffca26,
        #1bd06c,
        #25c9ef,
        #6f50ff,
        #ff3548
      );
  }


  .arch-mega-menu__color--black-white {
    background:
      linear-gradient(
        110deg,
        #17191a 0 49%,
        #f2f3f3 51% 100%
      );
  }


  .arch-mega-menu__color--black {
    background: #151718;
  }


  /* =========================================================
     КНОПКА ЗАКРЫТИЯ
  ========================================================= */

  .arch-mega-menu__close {
    position: absolute;

    top: 10px;
    right: 12px;

    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;

    color: #ffffff;

    background: transparent;

    font:
      400
      30px/1
      Arial,
      sans-serif;

    cursor: pointer;
  }


  .arch-mega-menu-trigger {
    position: relative;
  }


  /* =========================================================
     АДАПТИВ
  ========================================================= */

  @media (max-width: 1440px) {

    .arch-mega-menu__inner {
      padding: 20px 18px 18px;
    }


    .arch-mega-menu__grid {
      column-gap: 6px;
    }


    .arch-mega-menu__column {
      padding-left: 6px;
    }


    .arch-mega-menu__heading {
      font-size: 13px;

      gap: 7px;

      min-height: 22px;

      margin-bottom: 8px;
    }


    .arch-mega-menu__icon {
      width: 22px;
      height: 22px;
    }


    .arch-mega-menu__icon svg {
      width: 22px;
      height: 22px;
    }


    .arch-mega-menu__icon--color,
    .arch-mega-menu__icon--color svg {
      width: 24px;
      height: 24px;
    }


    .arch-mega-menu__link {
      font-size: 14px;

      gap: 7px;
    }


    .arch-mega-menu__color-dot {
      width: 15px;
      height: 15px;

      flex: 0 0 15px;
    }

  }


  @media (max-width: 1100px) {

    .arch-mega-menu {
      width: calc(100vw - 20px);
    }


    .arch-mega-menu__inner {
      padding: 38px 18px 22px;
    }


    .arch-mega-menu__grid {
      grid-template-columns:
        repeat(
          3,
          minmax(0, 1fr)
        );

      column-gap: 12px;
      row-gap: 18px;
    }


    .arch-mega-menu__column,
    .arch-mega-menu__column:first-child {
      padding-left: 8px;

      border-left: 1px solid var(--b);
    }


    .arch-mega-menu__column:nth-child(3n + 1) {
      padding-left: 0;

      border-left: 0;
    }


    .arch-mega-menu__link {
      white-space: normal;
    }


    .arch-mega-menu__close {
      display: block;
    }

  }


  @media (max-width: 720px) {

    .arch-mega-menu {
      width: calc(100vw - 12px);
    }


    .arch-mega-menu__inner {
      padding: 44px 14px 20px;
    }


    .arch-mega-menu__grid {
      grid-template-columns: 1fr 1fr;

      column-gap: 10px;
    }


    .arch-mega-menu__column,
    .arch-mega-menu__column:first-child,
    .arch-mega-menu__column:nth-child(3n + 1) {
      padding-left: 8px;

      border-left: 1px solid var(--b);
    }


    .arch-mega-menu__column:nth-child(odd) {
      padding-left: 0;

      border-left: 0;
    }

  }


  @media (max-width: 480px) {

    .arch-mega-menu__grid {
      grid-template-columns: 1fr;
    }


    .arch-mega-menu__column,
    .arch-mega-menu__column:first-child,
    .arch-mega-menu__column:nth-child(3n + 1),
    .arch-mega-menu__column:nth-child(odd) {
      padding-left: 0;

      border-left: 0;
    }

  }


  @media (prefers-reduced-motion: reduce) {

    .arch-mega-menu,
    .arch-mega-menu__link,
    .arch-mega-menu__more {
      transition: none;
    }

  }

