/**
 * Мегаменю «Все проекты» (Figma 7165:431).
 *
 * Зачем: новая сетка карточек + иконки + утилити-ряд.
 * Изоляция: ВСЕ селекторы только под .dropdown-menu--projects —
 * Бизнес / Оборудование / Магазин / Поддержка / О нас не затрагиваются.
 * Подключение: base.php → projects-megamenu.css; разметка — menu_item id=5 + right_menu.php.
 */

/* Полная ширина дропдауна — без колонки nav__left */
.nav--top .dropdown-menu.dropdown-menu--projects {
    padding: 28px 40px 24px;
}

.dropdown-menu--projects .laserwar-projects-menu {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
}

.dropdown-menu--projects .laserwar-projects {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
}

.dropdown-menu--projects .laserwar-projects ul.projects-featured {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.dropdown-menu--projects .laserwar-projects ul.projects-featured > li {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    display: block;
}

.dropdown-menu--projects .laserwar-projects .projects-featured__card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 402 / 324;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background: #1a1a1a;
    animation-name: navbar-dropdown-drop-in-delayed;
    animation-duration: 200ms;
    animation-fill-mode: backwards;
    animation-timing-function: ease-out;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.dropdown-menu--projects .laserwar-projects .projects-featured__card:hover,
.dropdown-menu--projects .laserwar-projects .projects-featured__card:focus-visible {
    color: #fff;
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.dropdown-menu--projects .laserwar-projects .projects-featured__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.dropdown-menu--projects .laserwar-projects .projects-featured__card:hover .projects-featured__bg {
    transform: scale(1.05);
}

.dropdown-menu--projects .laserwar-projects .projects-featured__shade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 62%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.dropdown-menu--projects .laserwar-projects .projects-featured__card--alphatag .projects-featured__shade {
    background: linear-gradient(180deg, rgba(140, 0, 0, 0) 0%, rgba(140, 0, 0, 0.75) 100%);
}

.dropdown-menu--projects .laserwar-projects .projects-featured__content {
    position: absolute;
    z-index: 2;
    left: 6%;
    right: 6%;
    bottom: 9%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.dropdown-menu--projects .laserwar-projects .projects-featured__logo {
    display: block;
    width: auto;
    max-width: 78%;
    max-height: 72px;
    height: auto;
    object-fit: contain;
}

.dropdown-menu--projects .laserwar-projects .projects-featured__card--avatar .projects-featured__logo {
    max-width: 56%;
    max-height: 44px;
}

.dropdown-menu--projects .laserwar-projects .projects-featured__desc {
    display: block;
    font-family: "Proxima Nova", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Ряд иконок: перебиваем старые ширины .projects-first-row только внутри projects-dropdown */
.dropdown-menu--projects .laserwar-projects ul.projects-icons-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dropdown-menu--projects .laserwar-projects ul.projects-icons-row > li {
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
    margin: 0;
    margin-bottom: 0;
}

.dropdown-menu--projects .laserwar-projects ul.projects-icons-row > li > a {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 400;
    color: #000;
}

.dropdown-menu--projects .laserwar-projects ul.projects-icons-row > li > a:hover {
    color: #000;
}

/* Утилити-ряд снизу — ховер как у старого .nav__left */
.dropdown-menu--projects .projects-utility {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 40px;
    list-style: none;
    margin: 0;
    padding: 4px 0 0;
}

.dropdown-menu--projects .projects-utility li {
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.dropdown-menu--projects .projects-utility a {
    display: inline-block;
    position: relative;
    border-bottom: 1px solid transparent;
    color: #000;
    font-family: "Proxima Nova", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    transition: border-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.dropdown-menu--projects .projects-utility a:hover {
    color: #f5222d;
    text-decoration: none;
}

.dropdown-menu--projects .projects-utility a:hover:after {
    content: "";
    display: block;
    width: 0;
    height: 1px;
    position: absolute;
    left: 0;
    bottom: -1px;
    background-color: #f00;
    animation: mainmenuselected-border-anim linear 0.35s forwards;
}

.dropdown-menu--projects .projects-utility > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0 !important;
    padding: 0;
    font-size: 0;
    line-height: 1;
    color: #000;
    transition: color 0.2s ease-in-out;
}

.dropdown-menu--projects .projects-utility > li > span[class^="icon-"]::before,
.dropdown-menu--projects .projects-utility > li > span[class*=" icon-"]::before {
    font-size: 1.125rem;
}

.dropdown-menu--projects .projects-utility > li:hover > span {
    color: #f5222d;
}

.dropdown-menu--projects .projects-utility span.project-icon-base {
    width: 20px !important;
    height: 20px;
    margin: 0 !important;
    background-position: center;
    background-size: 17px 15px;
    background-repeat: no-repeat;
}
