header {
    display: flex;
    flex-direction: column;
    padding: 5vh 5vw;
    width: 100%;
}

header > ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    gap: 10px; /* отступы между элементами */
    padding: 0;
    margin: 0;
    list-style: none;
    margin-bottom: 10px;
}

header > ul > li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 100px; /* минимальная ширина для wrap */
    box-sizing: border-box;
}

/* Соотношение 1 : 3 : 1 */
header > ul > li:nth-child(1) {
    flex: 1 1 100px; /* "малые" блоки */
}

header > ul > li:nth-child(2) {
    flex: 8 1 200px; /* "большой" блок */
}

header > ul > li:nth-child(3) {
    flex: 1 1 100px; /* "малые" блоки */
}

header > ul h1, header > ul h2 {
    font-size: clamp(12px, 1.75vw, 22px);
    font-weight: 900;
    text-align: center;
    margin: 0;
}

header > ul a {
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 900;
    font-family: Georgia;
    color: var(--color);
    text-decoration: none;
}

header > ul img {
    width: auto;       /* сохраняет пропорции */
    height: auto;      /* сохраняет пропорции */
    max-width: 100%;   /* не растягивается больше контейнера */
    max-height: 120px; /* ограничение по высоте */
    min-height: 60px;  /* минимальная высота */
    object-fit: contain; /* чтобы изображение вписывалось */
}

header>nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: center;
}
header>nav>a, header>nav>details {
    color: #fff;
    background: var(--color);
    font-size: clamp(12px, 2vw, 20px);
    font-weight: 700;
    border-radius: 30px;
    margin-bottom: 10px;
    min-width: 150px;
}

header>nav>a:hover, header>nav>details:hover {
    background: var(--color-dark);
}

header>nav summary {
    width: 100%;
    height: 100%;
    user-select: none;
    list-style: none;
}

header>nav summary::marker {
    display: none;
}

header>nav>a, header>nav summary {
    color: #fff;
    padding: 1.25rem 20px;
}

header>nav>details {
    position: relative;
    cursor: pointer;
}

header>nav>details div {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
}

header>nav>details ul {
    position: relative;
    width: 100%;
    height: 100%;
}

header>nav>details li {
    position: absolute;
    width: 60%;
    height: 75%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: var(--color);
}

header>nav>details li:hover {
    background: var(--color-dark);
    z-index: 1;
}

header>nav>details a {
    color: #fff;
}

header>nav>details li:nth-child(1) {
    left: 88%;
    bottom: -20%;
}

header>nav>details li:nth-child(2) {
    left: 30%;
    bottom: -20%;
}

#home-nav-frame {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1000;
    max-width: 40px;
    width: 5vw;
}