* {
    margin: 0;
    padding: 0;
}

/* iOS Safari/Chrome иначе автоматически увеличивает шрифты и ломает vw-размеры.
   ВАЖНО: не добавлять overflow-x: hidden на html/body — это превращает их в
   скролл-контейнеры и отключает position: sticky у шапки. */
html {
    -webkit-text-size-adjust: 100%;
}

@font-face {
    font-family: 'Montserrat-Regular';
    src: url(../fonts/Montserrat-Regular.ttf);
}

@font-face {
    font-family: 'Montserrat-Semi-Bold';
    src: url(../fonts/Montserrat-SemiBold.ttf);
}

@font-face {
    font-family: 'Old-Style';
    src: url(../fonts/Old-Style.ttf);
}

/* HEADER */

header {
    width: 100%;
    /* высоту задаёт контейнер: 5% от auto-высоты body в WebKit не работает */
    height: auto;

    display: flex;
    justify-content: center;

    position: sticky;
    top: 0;
    z-index: 100;

    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#header-wrapper {
    width: 100%;
    height: 8dvh;


    display: flex;
    /* align-items: center; */
    justify-content: space-between;

    font-size: 1vw;
    font-family: 'Montserrat-Regular';


}

/* Явная ширина: svg с width="100%" внутри flex-элемента без ширины
   в WebKit получает не ту же базовую ширину, что в Blink */
#header-logo-wrapper {
    width: 100%;
    height: 60%;
    min-width: 0;
    box-sizing: border-box;
}

#header-logo-wrapper svg {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}

#search-btn {
    width: 20%;
    height: 50px;

    color: white;
    background: linear-gradient(90deg,rgba(70, 147, 65, 1) 0%, rgba(77, 204, 64, 1) 100%);

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 15px;
    cursor: pointer;

}

#map-icon-white {
    padding: 5px 10px 0px 10px;
    display: block;
}

#map-icon-color {
    padding: 5px 10px 0px 10px;
    display: none;
}

#search-btn:hover span {
    background: #d9d9d9b4;
    font-weight: bold;
    color: transparent;
    -webkit-background-clip: text;
	background-clip: text;
	background-image: linear-gradient(90deg,rgba(70, 147, 65, 1) 0%, rgba(77, 204, 64, 1) 100%);

}

#search-btn:hover {
    background: #d9d9d9b4;
}



#menu-bar {
    /* Ширину задаёт grid-трек, а не проценты/min-content */
    width: 100%;
    min-width: 0;
    height: 60%;
    background: #d9d9d9b4;
    border-radius: 15px;
    font-size: 2vw;
    overflow: hidden;
    scroll-behavior: smooth;

    display: flex;
    flex-wrap: wrap;
}

.menu-options {
    border: 1px solid rgba(255, 255, 255, 0);
    height: 30px;
    padding-left: 10px;
    padding-right: 20px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.menu-element {
    text-align: center;
    flex: 0 0 100%;
    width: 100%;

    color: transparent;
    -webkit-background-clip: text;
	background-clip: text;
	background-image: linear-gradient(90deg,rgba(70, 147, 65, 1) 0%, rgba(77, 204, 64, 1) 100%);
    text-align: center;
    height: 100%;
    font-size: 3.5vw;

    display: flex;
    align-items: center;
    justify-content: center;

}


.menu-options:hover {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-btn {
    cursor: pointer;
}


.dropdown-list {
    display: flex;
    justify-content: center;
    align-items: center;

    /* Ширину задаёт grid-трек: абсолютное меню с min-width
       не может расширить кнопку и вытолкнуть шапку вбок */
    width: 100%;
    height: 60%;
    min-width: 0;

    position: relative;
    cursor: pointer;
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
}

.dropdown-list img {
    width: 100%;
    height: 100%;
    transition: transform 0.18s ease;
    transform-origin: center;
}

.dropdown-list:active img {
    transform: scale(0.9);
}

.dropdown-list.open img {
    transform: scale(0.96);
}

/* DROPDOWN MENU */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1001;

    display: flex;
    flex-direction: column;
    gap: 4px;

    min-width: min(260px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    padding: 10px;
    margin: 0;
    list-style: none;
    box-sizing: border-box;

    /* background: #c9c9c9b4; */
    /* требуется выбрать один из двух */
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);

    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.96);
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        visibility 180ms ease;
}

.dropdown-list.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition:
        opacity 240ms ease,
        transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 240ms ease;
}

.dropdown-item {
    margin: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.dropdown-list.open .dropdown-item {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-list.open .dropdown-item:nth-child(1) { transition-delay: 0.02s; }
.dropdown-list.open .dropdown-item:nth-child(2) { transition-delay: 0.05s; }
.dropdown-list.open .dropdown-item:nth-child(3) { transition-delay: 0.08s; }
.dropdown-list.open .dropdown-item:nth-child(4) { transition-delay: 0.11s; }
.dropdown-list.open .dropdown-item:nth-child(5) { transition-delay: 0.14s; }

.dropdown-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;

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

    border: 1px solid rgba(255, 255, 255, 0);
    border-radius: 12px;

    font-family: 'Montserrat-Regular';
    font-size: 3.5vw;
    font-size: clamp(15px, 3.5vw, 22px);
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;

    transition: background 0.18s ease, border-color 0.18s ease, backdrop-filter 0.18s ease;
}

.dropdown-link:hover,
.dropdown-link:focus-visible {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

.dropdown-label {
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(90deg, rgba(70, 147, 65, 1) 0%, rgba(77, 204, 64, 1) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .dropdown-list img,
    .dropdown-menu,
    .dropdown-item,
    .dropdown-link {
        transition: none !important;
        animation: none !important;
    }

    .dropdown-item,
    .dropdown-menu,
    .dropdown-list.open .dropdown-item,
    .dropdown-list.open .dropdown-menu {
        transform: none !important;
        transition-delay: 0s !important;
    }

    /* SLIDER */
    #banner-wrapper {
        scroll-behavior: auto !important;
    }

    .banner-box,
    .banner-box.active,
    .done-banner:hover {
        transition: none !important;
        scale: none !important;
    }
}

/* Пустой легаси-элемент, в вёрстке не участвует (background: reds — опечатка) */
#burger-menu {
    display: none;
}


#big-menu-rect {
    width: 100%;
    min-width: 0;
    /* Grid вместо flex: три явных трека, WebKit не подменяет их
       intrinsic-шириной svg/img, как это было с flex-basis: auto */
    display: grid;
    grid-template-columns: clamp(28px, 9vw, 40px) minmax(0, 1fr) clamp(28px, 9vw, 40px);
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    /* была смесь vh/dvh: на iOS с видимым адрес-баром высоты не совпадали */
    height: 100%;
    box-sizing: border-box;
}

/* INFO BOX */

#info-box {
    width: 100vw;

    display: flex;
    justify-content: center;
    align-content: baseline;
    flex-wrap: wrap;

    margin-bottom: 10dvh;
    margin-bottom: 10dvh;
}


#info-picture {
    width: 100%;
    margin-top: 5%;

    text-align: center;
}

#info-picture picture img{
    width: 70%;
}

#info-text-box {

    width: 80%;
    font-family: 'Montserrat-Regular';
    color: rgb(32, 63, 30);
    font-size: 1.3vw;
}


#info-text {
    padding: 0px;
}

#info-text p {
    margin-top: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
}

#info-head-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 15dvh;
    margin-bottom: 10px;
    font-family: 'Montserrat-Semi-Bold';
    font-size: 5vw;
    font-weight: bold;

    color: transparent;
    -webkit-background-clip: text;
	background-clip: text;
	background-image: linear-gradient(90deg,rgba(70, 147, 65, 1) 0%, rgba(77, 204, 64, 1) 100%);
}

#info-text-down {
    width: 90%;
    font-family: 'Montserrat-Regular';
    color: rgb(32, 63, 30);
    font-size: 3.5vw;
    font-size: 3.5vw;
    margin-left: 5%;
}

/* MAIN BOX */

#main-box {
    width: 100%;
    height: 72dvh;

    display: flex;
    justify-content: center;
    align-items: start;
    flex-wrap: wrap;

}

#main-box-wrapper {
    width: 100%;
    height: 100dvh;


    display: flex;
    justify-content: center;
    align-content: start;
    flex-wrap: wrap;

    margin-top: 30%;

}

#banner-wrapper {
    width: 100vw;
    height: 35dvh;
    display: flex;
    justify-content: space-around;
    align-items: space-between;
    overflow: auto;
    min-height: 240px;
    flex-shrink: 0;

    /* SLIDER: по одному элементу по центру */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scroll-padding-inline: calc(50% - 20vw);
    padding-inline: calc(50% - 20vw);
    padding-block: 12px;
    box-sizing: border-box;
}

/* ОТКЛЮЧЕНИЕ ПОЛОСЫ ПРОКРУТКИ */
#banner-wrapper {
    -ms-overflow-style: none; /* for Internet Explorer, Edge */
    scrollbar-width: none; /* for Firefox */
    overflow-x: scroll;
}

#banner-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

#banner-info {
    width: 80%;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5vw;
    font-family: 'Montserrat-Semi-Bold';
    font-weight: bold;
    
    color: white;
    background: linear-gradient(90deg,rgba(70, 147, 65, 1) 0%, rgba(77, 204, 64, 1) 100%);
    padding: 10px;
    
    border-radius: 20px;

}

.banner-label {
    width: 80%;
    height: 15%;

    font-size: 1.7vw;


    display: flex;
    justify-content: center;
    align-items: center;

    font-family: 'Montserrat-Regular';
    animation: textAppear 1s 
}

@keyframes textAppear {
    from {
        opacity: 0.1;
    }
    to {
        opacity: 1;
    }
}

.banner-box {
    width: 40vw;
    height: 90%;

    margin-left: 10px;
    margin-right: 10px;

    background-size: cover;

    /* один transition для всех свойств (раньше второй перезатирал первый) */
    transition: scale 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;

    /* SLIDER: центрирование по одному */
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transform-origin: center;

    /* border: 5px solid rgb(47, 109, 42); */
    border: 4px solid transparent;
    border-radius: 15px;
    box-sizing: border-box;

    min-width: 100px;

    position: relative;

    flex-shrink: 0;
}

/* SLIDER: центральный элемент — активный, выделенный и увеличенный */
.banner-box.active {
    scale: 1.06;
    z-index: 2;
    border-color: rgba(77, 204, 64, 1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.04);
}

.banner-box.active picture img {
    filter: none;
    opacity: 1;
}

.banner-box.active .big-green-restangle {
    font-weight: bold;
}

.banner-picture-text-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;

    text-align: center;

    color: white;
    z-index: 1;

    display: none;
    justify-content: center;
    align-items: center;
}

.banner-picture-text {
    width: 100%;
    padding: 10px;

    font-family: 'Montserrat-Semi-Bold';
    font-size: 1.2vw;
    transition: filter 0.5 ease;

}

.banner-box picture img {
    width: 100%;
    height: 83%;

    border-radius: 10px 10px 0 0;
    box-sizing: border-box;
    transition: filter 0.5 ease;
    display: block;
}

.banner-box picture img{
    filter: grayscale(1);
    cursor:not-allowed;

}

.done-banner:hover{
    scale: 1.05;
    background: rgba(0, 0, 0, 0.685);
    transition: scale .5s ease, filter 0.5 ease;

}

.done-banner picture img {
    filter: none;
}

.done-banner:hover {
    cursor: pointer;
}

.done-banner:hover picture img {
    transition: filter 0.5 ease;
    filter: blur(10px);
    opacity: 0.6;
}

#all-zones {
    width: 80%;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.7vw;
    font-family: 'Montserrat-Semi-Bold';
    font-weight: bold;
    
    color: transparent;
    -webkit-background-clip: text;
	background-clip: text;
	background-image: linear-gradient(90deg,rgba(70, 147, 65, 1) 0%, rgba(77, 204, 64, 1) 100%);

    padding: 10px;

    border: 5px solid rgb(47, 109, 42);
    border-radius: 20px;
}

.big-green-restangle {
    position: absolute;

    height: 17%;
    width: 100%;

    background: linear-gradient(90deg,rgba(70, 147, 65, 1) 0%, rgba(77, 204, 64, 1) 100%);; 
    border-radius: 0 0 10px 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    font-size: 2.7vw;
    font-family: 'Montserrat-Semi-Bold';
    color: #ffffff;
}

/* FOOTER */

footer {
    width: 100%;

    background: linear-gradient(90deg,rgb(47, 109, 42) 0%, rgba(77, 204, 64, 1) 100%);

    display: flex;
    justify-content: center;
    align-items: center;
}

#footer-wrapper {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: start;
    flex-wrap: wrap;
    color: white;

}

#footer-title {
    width: 100%;
    height: 15%;
    padding-top: 6vw;
    padding-bottom: 6vw;

    text-align: center;
    
}

#authors, #developers {
    width: 45%;
    height: 20%;

    border-radius: 5px;

    font-family: 'Montserrat-Regular';

    padding: 0px;
    margin-left: 5%;
}

#copyright {
    width: 100%;
    height: 15%;

    text-align: center;
    font-size: 3vw;
    font-family: 'Montserrat-Semi-Bold';

    padding-top: 6vw;
    padding-bottom: 6vw;
}

.footer-title {
    margin-top: 6vw;
    font-size: 5vw;
    font-family: 'Montserrat-Semi-Bold';
}

.footer-subtitle {
    font-size: 2.5vw;
}

.footer-name {
    font-size: 4.2vw;
    font-family: 'Montserrat-Semi-Bold';
}

/* ALLERGIC BOX */

#allergic {
    padding-top: 2dvh;
    padding-bottom: 1dvh;

    display: flex;
    justify-content: center;

}

#allergic-wrapper {
    width: 100%;
    height: 100%;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#allergic-table-info {
    width: 100%;
    padding: 10px;
    text-align: center;

    font-family: 'Montserrat-Semi-Bold';
    font-weight: bold;
    font-size: 5vw;

    color: transparent;
    -webkit-background-clip: text;
	background-clip: text;
	background-image: linear-gradient(90deg,rgba(70, 147, 65, 1) 0%, rgba(77, 204, 64, 1) 100%);
    margin-top: 5%;
}

#allergic-table-info span {
    font-style: italic;
    font-weight: normal;
    font-size: 3.7vw;
    font-size: 3.7vw;
    margin-bottom: 2%;
}

table {
    width: 100%;
    text-align: center;

    font-family: 'Montserrat-Regular';
    border: 5px solid rgb(47, 109, 42);
    border-radius: 12px;

}

table td {
    padding: 5px;
    border-bottom: 1px solid rgba(77, 204, 64, 1);
}

.allergic-head {
    padding: 20px;

    font-family: 'Montserrat-Regular';
    font-weight: bold;
    font-size: 1.3vw;

    border-bottom: 3px solid rgba(77, 204, 64, 1);
}

table tr:last-child {
    border-bottom: 1px solid white;
}

/* MOBILE-TABLE */
.scroll-wrapper {
    width: 100%;
    height: 35dvh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.table-wrapper {
    width: 90vw;
    height: 25dvh;
    min-height: 200px;

    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);

    display: flex;
    align-items: end;
    flex-wrap: wrap;
    justify-content: center;
    flex-shrink: 0;

    position: relative;
}

#table-element-wrapper {
    width: 90%;
    display: flex;
    
    margin-top: 3%;

    justify-content: space-around;

    padding: 5%;
    /* border-radius: 30px;
    border: 1px solid black; */

    overflow: scroll;
    flex-shrink: 0;
    
}

.table-element {
    width: 16dvh;
    height: 12dvh;
    min-height: 90px;
    min-width: 110px;

    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);

    display: flex;
    align-items: end;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-right: 10vw;

    position: relative;

}

/* ОТКЛЮЧЕНИЕ ПОЛОСЫ ПРОКРУТКИ */
#table-element-wrapper {
    -ms-overflow-style: none; /* for Internet Explorer, Edge */
    scrollbar-width: none; /* for Firefox */
    overflow-x: scroll;
}

#table-element-wrapper::-webkit-scrollbar {
  display: none;
}

.green-restangle {
    position: absolute;

    height: 3.7dvh;
    width: 100%;

    background: linear-gradient(90deg,rgba(70, 147, 65, 1) 0%, rgba(77, 204, 64, 1) 100%);; 
    border-radius: 0 0 15px 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    font-size: 2.7vw;
    font-family: 'Montserrat-Semi-Bold';
    color: #ffffff;
}

#text-wrapper {
    height: 70%;
    margin-bottom: 4dvh;
    margin-left: 1dvh;
    margin-top: 1.5dvh;
    flex-direction: column;
    display: flex;
    flex-wrap: wrap;
    align-items: space-around;
    
}

.latin-name {
    font-size: 2.5vw;
    font-family: 'Montserrat-Semi-Bold';
    color: rgba(77, 204, 64, 1);
}


.plant-name {
    font-size: 2.5vw;
    font-family: 'Montserrat-Regular';
    color: #3d3d3d;
    margin-top: 0.7dvh
}

#division-name {
    width: 100%;
    padding: 10px;
    text-align: center;

    font-family: 'Montserrat-Semi-Bold';
    font-size: 3vw;

    color: transparent;
    -webkit-background-clip: text;
	background-clip: text;
	background-image: linear-gradient(90deg,rgba(70, 147, 65, 1) 0%, rgba(77, 204, 64, 1) 100%);
    margin-top: 5%;
}

/* RECOMENDATIONS */

#recomendations { 
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: start;
    align-items: start;
    margin-top: 5%;
}

#recomendations-wrapper {
    width: 80%;
    font-family: 'Montserrat-Regular';
    align-items: start;
    margin-top: 10dvh;
    align-items: start;
    margin-top: 10dvh;
}

#recomendations-title {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 5vw;
    font-family: 'Montserrat-Semi-Bold';

    color: transparent;
    -webkit-background-clip: text;
	background-clip: text;
	background-image: linear-gradient(90deg,rgba(70, 147, 65, 1) 0%, rgba(77, 204, 64, 1) 100%);
}

#recomendations-text {
    text-align: justify;
    font-size: 3.5vw;
    text-indent: 3vw;
}

#recomendations-text p {
    margin-top: 10px;
}

#recomendations-text p::before {
    content: "✔ ";
    font-size: 3vw;
    color: transparent;
    -webkit-background-clip: text;
	background-clip: text;
	background-image: linear-gradient(90deg,rgba(70, 147, 65, 1) 0%, rgba(77, 204, 64, 1) 100%);
}

/* LAB */

#lab-wrapper {
    width: 100%;

    display: flex;
    justify-content: center;

}

#lab {
    width: 80%;
font-size: 1.2vw;
    font-family: 'Montserrat-Regular';
}

table td {width: 25%;}

.lab-task-head {
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 2.7vw;
    font-family: 'Montserrat-Semi-Bold';
    color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  background-image: linear-gradient(90deg,rgba(70, 147, 65, 1) 0%, rgba(77, 204, 64, 1) 100%);

  margin-top: 30px;
  margin-bottom: 30px;
}

details {
    margin-top: 25px;
    margin-bottom: 25px;
}

details:hover {
    cursor: pointer;
}

summary {
    background: linear-gradient(90deg,rgba(70, 147, 65, 1) 0%, rgba(77, 204, 64, 1) 100%);
    width: 15vw;
    text-align: center;
    padding: 10px;

    border-radius: 15px;

    color: white;

}

details[open] > summary {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

details div {
    background: linear-gradient(90deg,rgba(70, 147, 65, .25) 0%, rgba(77, 204, 64, .25) 100%);
    border: 3px solid rgba(70, 147, 65, 1);

    padding: 10px;

}

#lab-description {
    margin-top: 2%;
}

