/* =========================================================
   ОСНОВНЫЕ НАСТРОЙКИ
========================================================= */

:root {
    --blue: #1955a5;
    --blue-light: #0077c8;
    --black: #111111;
    --gray: #a9a9a9;
    --border: #c7c7c7;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    font-size: 16px;
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    padding: 0;
    min-width: 320px;

    font-family: Arial, Helvetica, sans-serif;
    color: var(--black);
    background: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

svg {
    display: block;
}

.main {
    min-height: 60vh;
}


/* =========================================================
   ШАПКА
========================================================= */

.site-header {
    position: relative;
    z-index: 100;

    width: 100%;
    height: 66px;

    background: #ffffff;
    border-top: 1px solid #bdbdbd;
    border-bottom: 1px solid #e5e5e5;
}

.site-header__inner {
    width: min(calc(100% - 80px), 1350px);
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}


/* =========================================================
   ЛОГОТИП И НАЗВАНИЕ
========================================================= */

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 5px;

    flex-shrink: 0;
}

.site-header__logo {
    width: 205px;
    height: auto;

    object-fit: contain;
    flex-shrink: 0;
}

.site-header__title {
    display: block;

    font-size: 15px;
    line-height: 1.15;
    font-weight: 400;
    color: #111111;

    white-space: nowrap;
}


/* =========================================================
   НАВИГАЦИЯ НА КОМПЬЮТЕРЕ
========================================================= */

.site-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 45px;
}

.site-header__link {
    position: relative;

    display: inline-block;
    padding: 7px 0 8px;

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

    white-space: nowrap;

    transition: color 0.2s ease;
}

.site-header__link::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 1px;

    background: var(--blue);

    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.site-header__link:hover,
.site-header__link.is-active {
    color: var(--blue);
}

.site-header__link:hover::after,
.site-header__link.is-active::after {
    transform: scaleX(1);
}
/* =========================================================
   ВЫПАДАЮЩЕЕ МЕНЮ
========================================================= */

.site-header__dropdown {
    position: relative;

    display: flex;
    align-items: center;
}

/* Прозрачная область между кнопкой и списком,
   чтобы меню не закрывалось при движении мыши */

.site-header__dropdown::before {
    content: "";

    position: absolute;
    top: 100%;
    left: -15px;

    width: calc(100% + 30px);
    height: 14px;
}

.site-header__dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 7px 0 8px;

    border: 0;
    background: transparent;

    font-family: inherit;

    cursor: pointer;
}

.site-header__dropdown-icon {
    width: 10px;
    height: 7px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 0.2s ease;
}


/* Сам выпадающий список */

.site-header__dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    z-index: 500;

    min-width: 225px;
    padding: 8px;

    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1);

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

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

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


/* Открытое состояние */

.site-header__dropdown.is-open .site-header__dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

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

.site-header__dropdown.is-open .site-header__dropdown-icon {
    transform: rotate(180deg);
}


/* Ссылки внутри списка */

.site-header__dropdown-link {
    display: block;

    width: 100%;
    padding: 12px 14px;

    border-radius: 2px;

    font-size: 14px;
    line-height: 1.25;
    font-weight: 400;
    color: #111111;
    white-space: nowrap;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.site-header__dropdown-link:hover,
.site-header__dropdown-link.is-active {
    color: var(--blue);
    background: #f3f8fc;
}
/* =========================================================
   ВЫПАДАЮЩИЙ СПИСОК В МОБИЛЬНОМ МЕНЮ
========================================================= */

.mobile-menu__dropdown {
    width: 270px;
    max-width: 100%;
}

.mobile-menu__dropdown summary {
    list-style: none;
}

.mobile-menu__dropdown summary::-webkit-details-marker {
    display: none;
}

.mobile-menu__dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    cursor: pointer;
}

.mobile-menu__dropdown-arrow {
    width: 12px;
    height: 12px;

    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    transform: rotate(45deg) translateY(-3px);

    transition: transform 0.2s ease;
}

.mobile-menu__dropdown[open] .mobile-menu__dropdown-arrow {
    transform: rotate(225deg) translate(-2px, -2px);
}

.mobile-menu__dropdown[open] .mobile-menu__dropdown-toggle {
    margin-bottom: 14px;

    color: var(--blue);
}

.mobile-menu__submenu {
    padding: 0 0 24px 20px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.mobile-menu__submenu-link {
    font-size: 21px;
    line-height: 1.25;
    color: #444444;

    transition: color 0.2s ease;
}

.mobile-menu__submenu-link:hover,
.mobile-menu__submenu-link.is-active {
    color: var(--blue);
}
/* =========================================================
   КНОПКА-БУРГЕР
========================================================= */

.site-header__burger {
    display: none;

    width: 25px;
    height: 23px;
    padding: 2px 0;

    border: 0;
    background: transparent;

    cursor: pointer;
    flex-shrink: 0;
}

.site-header__burger span {
    display: block;

    width: 100%;
    height: 1.5px;
    margin-bottom: 6px;

    background: #111111;
}

.site-header__burger span:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ПОЛНОЭКРАННОЕ МОБИЛЬНОЕ МЕНЮ
========================================================= */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 7777;

    display: none;

    width: 100%;
    height: 100vh;
    height: 100dvh;

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

    background: #ffffff;

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

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu__inner {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    padding: 42px 42px 32px;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   ВЕРХ МОБИЛЬНОГО МЕНЮ
========================================================= */

.mobile-menu__top {
    width: 100%;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.mobile-menu__brand {
    display: flex;
    align-items: center;
    gap: 35px;
}

.mobile-menu__logo {
    width: 160px;
    height: auto;

    object-fit: contain;
    flex-shrink: 0;
}

.mobile-menu__brand-title {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 400;
    color: #111111;
}


/* =========================================================
   КРЕСТИК ЗАКРЫТИЯ
========================================================= */

.mobile-menu__close {
    position: relative;

    width: 48px;
    height: 48px;
    margin-top: 9px;
    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
    flex-shrink: 0;
}

.mobile-menu__close span {
    position: absolute;
    top: 50%;
    left: 0;

    width: 100%;
    height: 2px;

    background: #111111;
}

.mobile-menu__close span:first-child {
    transform: rotate(45deg);
}

.mobile-menu__close span:last-child {
    transform: rotate(-45deg);
}


/* =========================================================
   ССЫЛКИ МОБИЛЬНОГО МЕНЮ
========================================================= */

.mobile-menu__nav {
    margin-top: 90px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mobile-menu__link {
    width: 270px;
    max-width: 100%;

    margin-bottom: 26px;
    padding: 0 0 18px;

    border-bottom: 1px solid #bfc1c4;

    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.1;
    font-weight: 400;
    color: #050505;

    transition: color 0.2s ease;
}

.mobile-menu__link:hover,
.mobile-menu__link.is-active {
    color: var(--blue);
}

.mobile-menu__link--last {
    width: auto;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}


/* =========================================================
   КОНТАКТЫ В МОБИЛЬНОМ МЕНЮ
========================================================= */

.mobile-menu__contacts {
    width: 100%;

    margin-top: auto;
    padding-top: 80px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-menu__contacts-line {
    width: 100%;
    height: 1px;

    margin-bottom: 40px;

    background: #bdbdbd;
}

.mobile-menu__contact-content {
    width: 100%;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px 52px;
}

.mobile-menu__contact-content .mobile-menu__contact--phone,
.mobile-menu__contact-content .mobile-menu__contact--address,
.mobile-menu__contact-content .mobile-menu__content-text,
.mobile-menu__contact-content .mobile-menu__content-rich-text,
.mobile-menu__contact-content .mobile-menu__vk {
    width: 100%;
    flex: 0 0 100%;
}

.mobile-menu__contact-content .mobile-menu__contact--phone,
.mobile-menu__contact-content .mobile-menu__contact--address {
    margin-bottom: 0;
}

.mobile-menu__contact-content .mobile-menu__site,
.mobile-menu__contact-content .mobile-menu__mail {
    flex: 0 1 auto;
}

.mobile-menu__content-text,
.mobile-menu__content-rich-text {
    text-align: center;
}

.mobile-menu__content-rich-text p {
    margin: 0 0 10px;
}

.mobile-menu__content-rich-text p:last-child {
    margin-bottom: 0;
}

.mobile-menu__contact-content .mobile-menu__vk {
    margin-top: 10px;

    display: flex;
    justify-content: center;
}

.mobile-menu__contact-content .mobile-menu__vk a {
    display: inline-flex;
}


.mobile-menu__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    font-size: 21px;
    line-height: 1.4;
    color: #111111;
}

.mobile-menu__contact--phone {
    margin-bottom: 32px;
}

.mobile-menu__contact--address {
    width: 100%;
    margin-bottom: 20px;
}

.mobile-menu__contact--address span {
    text-align: center;
}

.mobile-menu__contact-row {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 52px;

    font-size: 18px;
}

.mobile-menu__site,
.mobile-menu__mail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-menu__label {
    font-weight: 700;
    color: var(--blue);
}

.mobile-menu__site a,
.mobile-menu__mail a {
    color: var(--blue);
}


/* =========================================================
   SVG-ИКОНКИ МОБИЛЬНОГО МЕНЮ
========================================================= */

.mobile-menu .contact-icon {
    width: 25px;
    height: 25px;
    min-width: 25px;
    max-width: 25px;
    flex: 0 0 25px;

    fill: none;
    stroke: var(--blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-menu__vk {
    width: 31px;
    height: auto;
    margin-top: 50px;

    color: #ababab;
}

.mobile-menu__vk svg {
    width: 31px;
    height: auto;

    fill: currentColor;
}

.mobile-menu__copyright {
    margin-top: 25px;

    font-size: 15px;
    line-height: 1.3;
    color: #b7b7b7;
    text-align: center;
}


/* =========================================================
   ФУТЕР
========================================================= */

.site-footer {
    width: 100%;

    background: #ffffff;
    color: #111111;
}

.site-footer__inner {
    /* width: min(calc(100% - 80px), 1145px);
    margin: 0 auto; */


    padding: 8px 0 66px;
}

.site-footer__line {
    width: 100%;
    height: 1px;

    margin-bottom: 45px;

    background: #bdbdbd;
}


/* =========================================================
   КОНТАКТЫ ФУТЕРА
========================================================= */

.site-footer__contacts {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.site-footer__section + .site-footer__section {
    margin-top: 40px;
}

.site-footer__section-heading {
    margin: 0 0 25px;

    font-size: 22px;
    line-height: 1.25;
    font-weight: 400;
    text-align: center;
    color: var(--blue);
}

.site-footer__content-text,
.site-footer__content-rich-text {
    white-space: normal;
    text-align: center;
}

.site-footer__content-rich-text p {
    margin: 0 0 10px;
}

.site-footer__content-rich-text p:last-child {
    margin-bottom: 0;
}
.site-footer__item {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    color: #111111;

    white-space: nowrap;
}

.site-footer__item--site {
    display: block;
}

.site-footer__label {
    display: inline;

    font-weight: 700;
    color: var(--blue);
}

.site-footer__item a {
    transition: color 0.2s ease;
}

.site-footer__item a:hover {
    color: var(--blue);
}


/* =========================================================
   SVG-ИКОНКИ ФУТЕРА
========================================================= */

.site-footer__icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    flex: 0 0 20px;

    fill: none;
    stroke: var(--blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   VK И КОПИРАЙТ ФУТЕРА
========================================================= */

.site-footer__vk {
    width: 30px;
    height: auto;
    margin: 29px auto 0;

    color: #ababab;
}

.site-footer__vk svg {
    width: 30px;
    height: auto;

    fill: currentColor;
}
.site-footer__vk a {
    display: inline-flex;
}   
.site-footer__copyright {
    margin-top: 24px;

    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    color: #bdbdbd;
}


/* =========================================================
   СТРАНИЦА КОЛЛЕКЦИИ
========================================================= */

.collection-page {
    width: 100%;
    background: #ffffff;
}

.collection-container {
    width: min(calc(100% - 80px), 1280px);
    margin: 0 auto;
    padding: 45px 0 90px;
}

.collection-title {
    margin: 0 0 32px;

    font-size: 56px;
    line-height: 1.1;
    font-weight: 400;
    color: var(--blue-light);
}


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

.collection-search {
    margin-bottom: 30px;
}

.search-field {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    height: 64px;

    padding: 0 28px 0 72px;

    border: 1px solid #b7b7b7;
    border-radius: 34px;
    outline: none;

    background: #ffffff;

    font-size: 26px;
    font-weight: 300;
    color: #111111;
}

.search-input:focus {
    border-color: var(--blue-light);
}

.search-input::placeholder {
    color: #b7b7b7;
}

.search-icon {
    position: absolute;
    left: 28px;
    top: 50%;

    width: 24px;
    height: 24px;
    padding: 0;

    border: 2px solid #b7b7b7;
    border-radius: 50%;
    background: transparent;

    transform: translateY(-50%);
}

.search-icon::after {
    content: "";

    position: absolute;
    right: -9px;
    bottom: -5px;

    width: 13px;
    height: 2px;

    background: #b7b7b7;

    transform: rotate(45deg);
}


/* =========================================================
   ФИЛЬТР
========================================================= */

.collection-filter-form {
    margin-bottom: 36px;
}

.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    padding: 0;

    border: 0;
    background: transparent;

    font-size: 28px;
    color: #a8a8a8;

    cursor: pointer;
}

.filter-arrow {
    position: relative;

    width: 34px;
    height: 34px;

    border: 2px solid #a8a8a8;
    border-radius: 5px;
}

.filter-arrow::before {
    content: "";

    position: absolute;
    left: 10px;
    top: 8px;

    width: 10px;
    height: 10px;

    border-right: 2px solid #a8a8a8;
    border-bottom: 2px solid #a8a8a8;

    transform: rotate(-45deg);
}

.filter-toggle.is-open .filter-arrow::before {
    top: 11px;
    transform: rotate(45deg);
}

.filter-panel {
    display: none;

    width: 100%;
    max-width: 780px;
    margin-top: 26px;
}

.filter-panel.is-open {
    display: block;
}

.filter-row {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 16px;

    margin-bottom: 16px;

    font-size: 26px;
    line-height: 1.2;

    cursor: pointer;
}

.filter-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox {
    position: relative;

    width: 24px;
    height: 24px;

    border: 1.5px solid #a8a8a8;
    border-radius: 5px;

    background: #ffffff;
}

.filter-row input:checked + .custom-checkbox {
    border-color: var(--blue-light);
    background: var(--blue-light);
}

.filter-row input:checked + .custom-checkbox::after {
    content: "";

    position: absolute;
    left: 7px;
    top: 3px;

    width: 6px;
    height: 12px;

    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;

    transform: rotate(45deg);
}

.filter-name,
.filter-count {
    color: #111111;
}

.show-more-categories {
    min-width: 300px;
    height: 44px;
    margin-top: 10px;
    padding: 0 25px;

    border: 0;
    border-radius: 24px;

    background: #a8a8a8;
    color: #ffffff;

    font-size: 20px;
    cursor: pointer;

    transition: background 0.2s ease;
}

.show-more-categories:hover {
    background: var(--blue-light);
}

.is-hidden {
    display: none !important;
}


/* =========================================================
   КАРТОЧКИ ЭКСПОНАТОВ
========================================================= */

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

.exhibit-card {
    position: relative;

    display: block;
    height: 265px;

    overflow: hidden;

    border-radius: 12px;
    background: #d9d9d9;
}

.exhibit-card-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.3s ease;
}

.exhibit-card:hover .exhibit-card-image {
    transform: scale(1.04);
}

.exhibit-card-placeholder {
    width: 100%;
    height: 100%;

    background: #d9d9d9;
}

.exhibit-card-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 38%,
        rgba(0, 0, 0, 0.75) 100%
    );
}

.exhibit-card-content {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 15px;

    color: #ffffff;
}

.exhibit-card-title {
    margin: 0 0 5px;

    overflow: hidden;

    font-size: 22px;
    line-height: 1.1;
    font-weight: 500;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.exhibit-card-category {
    margin: 0;

    overflow: hidden;

    font-size: 15px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.9);

    white-space: nowrap;
    text-overflow: ellipsis;
}

.collection-empty {
    margin: 0;

    font-size: 24px;
    color: #777777;
}


/* =========================================================
   НОУТБУКИ И НЕБОЛЬШИЕ ЭКРАНЫ
========================================================= */

@media (max-width: 1150px) {

    .site-header__inner {
        width: calc(100% - 52px);
        gap: 28px;
    }

    .site-header__brand {
        gap: 10px;
    }

    .site-header__logo {
        width: 205px;
    }

    .site-header__title {
        font-size: 13px;
    }

    .site-header__nav {
        gap: 25px;
    }

    .site-header__link {
        font-size: 14px;
    }

    .site-footer__inner {
        /* width: calc(100% - 52px); */
    }

    .site-footer__contacts {
        grid-template-columns:
            auto
            minmax(280px, 1fr)
            auto
            auto;

        gap: 23px;
    }

    .site-footer__item {
        font-size: 12px;
    }

    .collection-container {
        width: calc(100% - 52px);
    }

    .exhibit-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
========================================================= */

@media (max-width: 900px) {

    /* Шапка */

    .site-header {
        height: 103px;
    }

    .site-header__inner {
        width: 100%;
        padding: 0 29px;
    }

    .site-header__brand {
        gap: 10px;
    }

    .site-header__logo {
        width: 205px;
    }

    .site-header__title {
        font-size: 13px;
        line-height: 1.1;
    }

    .site-header__nav {
        display: none;
    }

    .site-header__burger {
        display: block;
    }


    /* Мобильное меню */

    .mobile-menu {
        display: block;
    }


    /* Футер */

    .site-footer__inner {
        /* width: calc(100% - 36px); */
        padding: 14px 0 34px;
    }

    .site-footer__line {
        margin-bottom: 25px;
    }

    .site-footer__contacts {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "phone phone"
            "address address"
            "site mail";

        gap: 18px 12px;
    }

    .site-footer__item {
        justify-content: center;

        font-size: 13px;
        white-space: normal;
    }

    .site-footer__item--phone {
        grid-area: phone;
    }

    .site-footer__item--address {
        grid-area: address;
    }

    .site-footer__item--site {
        grid-area: site;

        text-align: center;
    }

    .site-footer__item--mail {
        grid-area: mail;
    }

    .site-footer__item--address span {
        text-align: center;
    }

    .site-footer__vk {
        width: 25px;
        margin-top: 27px;
    }

    .site-footer__vk svg {
        width: 25px;
    }

    .site-footer__copyright {
        margin-top: 19px;
        font-size: 11px;
    }


    /* Коллекция */

    .collection-container {
        width: calc(100% - 52px);
        padding: 32px 0 70px;
    }

    .collection-title {
        margin-bottom: 24px;
        font-size: 44px;
    }

    .search-input {
        height: 56px;
        padding-left: 64px;

        font-size: 22px;
    }

    .search-icon {
        left: 24px;

        width: 22px;
        height: 22px;
    }

    .filter-toggle {
        font-size: 25px;
    }

    .filter-row {
        font-size: 23px;
    }

    .exhibit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 16px;
    }

    .exhibit-card {
        height: 210px;
    }

    .exhibit-card-title {
        font-size: 19px;
    }

    .exhibit-card-category {
        font-size: 14px;
    }
}


/* =========================================================
   ТЕЛЕФОНЫ
========================================================= */

@media (max-width: 520px) {

    /* Шапка */

    .site-header__inner {
        padding: 0 29px;
    }

    .site-header__brand {
        gap: 10px;
    }

    .site-header__logo {
        width: 150px;
    }

    .site-header__title {
        font-size: 13px;
    }


    /* Мобильное меню */

    .mobile-menu__inner {
        padding:
            max(34px, env(safe-area-inset-top))
            22px
            max(28px, env(safe-area-inset-bottom));
    }

    .mobile-menu__top {
        align-items: center;
    }

    .mobile-menu__brand {
        gap: 17px;
    }

    .mobile-menu__logo {
        width: 102px;
    }

    .mobile-menu__brand-title {
        font-size: 17px;
    }

    .mobile-menu__close {
        width: 34px;
        height: 34px;
        margin-top: 0;
    }

    .mobile-menu__close span {
        height: 1px;
    }

    .mobile-menu__nav {
        margin-top: 62px;
    }

    .mobile-menu__link {
        width: 270px;

        margin-bottom: 23px;
        padding-bottom: 15px;

        font-size: 32px;
    }

    .mobile-menu__contacts {
        padding-top: 70px;
    }

    .mobile-menu__contacts-line {
        margin-bottom: 27px;
    }
    .mobile-menu__contact-content {
        gap: 16px 22px;
    }
    .mobile-menu__contact {
        gap: 9px;
        font-size: 13px;
    }

    .mobile-menu__contact--phone {
        margin-bottom: 22px;
        font-size: 16px;
    }

    .mobile-menu__contact--address {
        margin-bottom: 16px;
    }

    .mobile-menu__contact-row {
        gap: 22px;
        font-size: 12px;
    }

    .mobile-menu__site,
    .mobile-menu__mail {
        gap: 6px;
    }

    .mobile-menu .contact-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
        max-width: 20px;
        flex-basis: 20px;
    }

    .mobile-menu__vk {
        width: 27px;
        margin-top: 38px;
    }

    .mobile-menu__vk svg {
        width: 27px;
    }

    .mobile-menu__copyright {
        margin-top: 20px;
        font-size: 12px;
    }


    /* Футер */

    .site-footer__contacts {
        gap: 17px 8px;
    }

    .site-footer__item {
        gap: 8px;
        font-size: 11px;
    }

    .site-footer__item--site,
    .site-footer__item--mail {
        font-size: 10px;
    }

    .site-footer__icon {
        width: 17px;
        height: 17px;
        min-width: 17px;
        max-width: 17px;
        flex-basis: 17px;
    }


    /* Коллекция */

    .collection-container {
        width: calc(100% - 36px);
        padding: 28px 0 60px;
    }

    .collection-title {
        font-size: 38px;
    }

    .search-input {
        height: 52px;
        padding-left: 60px;

        font-size: 20px;
    }

    .filter-row {
        grid-template-columns: 24px 1fr auto;

        font-size: 20px;
    }

    .custom-checkbox {
        width: 22px;
        height: 22px;
    }

    .filter-row input:checked + .custom-checkbox::after {
        left: 6px;
        top: 2px;
    }

    .show-more-categories {
        width: 100%;
        min-width: 0;
    }

    .exhibit-grid {
        gap: 16px 14px;
    }

    .exhibit-card {
        height: 165px;
    }

    .exhibit-card-content {
        left: 12px;
        right: 12px;
        bottom: 10px;
    }

    .exhibit-card-title {
        font-size: 16px;
    }

    .exhibit-card-category {
        font-size: 12px;
    }
}


/* =========================================================
   ОЧЕНЬ УЗКИЕ ТЕЛЕФОНЫ
========================================================= */

@media (max-width: 390px) {

    .site-header__inner {
        padding: 0 20px;
    }

    .site-header__brand {
        gap: 10px;
    }

    .site-header__logo {
        width: 150px;
    }

    .site-header__title {
        font-size: 11px;
    }

    .mobile-menu__brand {
        gap: 12px;
    }

    .mobile-menu__logo {
        width: 82px;
    }

    .mobile-menu__brand-title {
        font-size: 14px;
    }

    .mobile-menu__link {
        font-size: 28px;
    }

    .mobile-menu__contact-row {
        flex-direction: column;
        gap: 12px;
    }

    .site-footer__contacts {
        grid-template-columns: 1fr;
        grid-template-areas:
            "phone"
            "address"
            "site"
            "mail";
    }
}


/* =========================================================
   МОБИЛЬНОЕ МЕНЮ НА КОМПЬЮТЕРЕ ВСЕГДА СКРЫТО
========================================================= */

@media (min-width: 901px) {

    .mobile-menu {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}


/* =========================================================
   ВЫПАДАЮЩЕЕ МЕНЮ В ШАПКЕ
========================================================= */

.site-header__dropdown {
    position: relative;

    display: flex;
    align-items: center;
}


/* Кнопка "Видеоматериалы" */

.site-header__dropdown-toggle {
    appearance: none;

    display: flex;
    align-items: center;
    gap: 7px;

    margin: 0;
    padding: 7px 0 8px;

    border: 0;
    outline: 0;
    background: transparent;

    font-family: inherit;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 400;
    color: #111111;

    white-space: nowrap;
    cursor: pointer;
}


/* Стрелка */

.site-header__dropdown-icon {
    display: block;

    width: 11px;
    height: 7px;
    min-width: 11px;

    overflow: visible;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 0.2s ease;
}

.site-header__dropdown-icon path {
    fill: none;
    stroke: currentColor;
}


/* Выпадающий блок */

.site-header__dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    z-index: 1000;

    min-width: 220px;
    padding: 8px;

    display: flex;
    flex-direction: column;

    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);

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

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

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


/* Открытое состояние */

.site-header__dropdown.is-open .site-header__dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

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

.site-header__dropdown.is-open .site-header__dropdown-icon {
    transform: rotate(180deg);
}


/* Ссылки внутри списка */

.site-header__dropdown-link {
    display: block;

    width: 100%;
    padding: 11px 14px;

    color: #111111;
    font-size: 14px;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;

    border-radius: 3px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.site-header__dropdown-link:hover,
.site-header__dropdown-link.is-active {
    color: var(--blue);
    background: #f2f7fb;
}

/* 404 */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.error-page__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-page__code {
    margin: 0 0 16px;
    font-size: clamp(80px, 15vw, 180px);
    line-height: 1;
    font-weight: 700;
}

.error-page__text {
    margin: 0 0 32px;
    font-size: clamp(20px, 3vw, 32px);
}

.error-page__link {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
}



/* =========================================================
   Мобильное меню CMS
========================================================= */

