* {
    box-sizing: border-box; /* Теперь padding не ломает ширину */
}

@font-face {
    font-family: 'Involve';
    src: url('/static/fonts/Involve-Regular.woff2') format('woff2'),
    url('/static/fonts/Involve-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;  /* Не блокирует загрузку страницы */
}

@font-face {
    font-family: 'Involve';
    src: url('/static/fonts/Involve-Bold.woff2') format('woff2'),
    url('/static/fonts/Involve-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Involve Bold Oblique';
    src: url('/static/fonts/Involve-BoldOblique.woff2') format('woff2'),
    url('/static/fonts/Involve-BoldOblique.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Involve';
    src: url('/static/fonts/Involve-Medium.woff2') format('woff2'),
    url('/static/fonts/Involve-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Involve Medium Oblique';
    src: url('/static/fonts/Involve-MediumOblique.woff2') format('woff2'),
    url('/static/fonts/Involve-MediumOblique.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Involve';
    src: url('/static/fonts/Involve-SemiBold.woff2') format('woff2'),
    url('/static/fonts/Involve-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Involve SemiBold Oblique';
    src: url('/static/fonts/Involve-SemiBoldOblique.woff2') format('woff2'),
    url('/static/fonts/Involve-SemiBoldOblique.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

ul {
    list-style: none;
}

body {
    font-family: 'Involve', Arial, sans-serif; /* Fallback на Arial, если Involve не загрузится */
    line-height: 1.5;
    color: #333;
    margin: 0;
    min-width: 320px; /* Минимальная ширина экрана */
    overflow-x: hidden; /* Убирает горизонтальный скролл */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Вертикальное выравнивание */
}

.logo {
    padding-top: 5px;
    padding-left: 20px;
}

.navigation {
    display: flex;
    justify-content: center; /* Горизонтальное выравнивание */
    align-items: center; /* Вертикальное выравнивание */
    padding: 10px;
    gap: 20px;
}

.nav-link {
    color: inherit; /*наследует цвет текста от родителя */
    white-space: nowrap; /*запрещает перенос текста */
    display: flex;
    padding: 10px;
    gap: 30px;
}

.search-form {
    padding: 2px;
}

.no-underline {
    text-decoration: none; /* убирает подчёркивание в ссылке */
    color: inherit; /*наследует цвет текста от родителя */
    width: 100%;
    height: 100%;
    display: block;
}

/* Начало блока header с большой картинкой ФлораДома */

.flora-container {
    display: flex;
    /* width: 550px */
    justify-content: space-between;
    background-color: #F0E3D8;
}

.flora-subconteiner {
    display: flex;
    justify-content: center; /* Горизонтальное выравнивание */
    align-items: center; /* Вертикальное выравнивание */
    margin: 30px;
    padding-left: 60px;
}

.flora-doma {
    width: 400px;
    height: auto;
}

.flora-picture {
    margin-bottom: 0;
    margin-top: 0;
}

/* Начало блока main про популярные */
.background-white {
    background-color: white;
    padding-bottom: 30px;
}

.plants-section {
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 0;
    padding-bottom: 50px;
    padding-top: 20px;
}

.plants-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    /* height: 250px; */
    /* padding: 10px; */
    margin-top: 10px;
    margin-bottom: 10px;
    gap: 20px;
}

.popular-plants {
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    /*width: 250px;*/
    max-width: 250px;
    background-color: #F0E3D8;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.1); /* Тень снизу: 0 по X, 4px по Y, 12px размытие, 10% прозрачности */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popular-plants:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.plant-card {
    margin-bottom: 0;
}

.plant-image {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    /*border: 1px solid black;*/
}

.plant-description {
    margin-left: 20px;
}

.plant-caption {
    margin: 0;
    padding: 0;
}

.background-gray {
    background-color: #F0E3D8;
    padding-bottom: 30px;
}

.plants-section2 {
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 0;
    padding-bottom: 50px;
    padding-top: 20px;
}

.plants-section2 .popular-plants {
    background-color: white;
}

.footer_base {
    padding: 15px;
}

/* тут стили карточки */
/*.card-base {*/
/*    display: flex;*/
/*    flex-wrap: wrap;*/
/*    margin: 0;*/
/*}*/

.card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Горизонтальное выравнивание */
    align-items: center; /* Вертикальное выравнивание */
    background-color: #F0E3D8;
}

.card-img {
    max-width: 500px;
    max-height: 500px;
 /*   background: white; */
 /*   border-radius: 12px; */
    margin: 40px 30px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-specifications {

}

.description-container {
    display: flex;
    justify-content: space-around;
    padding: 35px;
}

.description {

}

.advertisement {
    width: 300px;
    height: 100%;
    background-color: aquamarine;
}


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

.base_discr {
    margin: 15px 30px;
    background: white;
    border-radius: 12px; 
    padding: 20px;
    
}

.letter {
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    justify-content: space-between;
    /*height: 1000px;*/
    /*margin: 20px;*/
    background-color: #F0E3D8;
    padding: 80px;
    gap: 10px;
}

.list {
    display: flex;
    background-color: white;
    /*margin-top: 25px;*/
    flex-wrap: nowrap;
    /*min-height: auto;*/
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.1); /* Тень снизу: 0 по X, 4px по Y, 12px размытие, 10% прозрачности */
}

.name {
    transition: font-size 0.3s ease, transform 0.1s ease;
}

.name:hover {
    font-size: 1em;
    transform: scale(1.05);
}

.letter ul {
    list-style: none;
    padding: 10px;
    margin-left: 5px;

}

.alphabet {
    font-size: 40px;
    width: 35px;
    margin-top: 18px;
    text-align: center;

}

.alf {
    text-align: center;

}

.list ul {
    width: 250px;
}

.with_dots {
    list-style: initial;
}

/*КАТАЛОГ СТАТЕЙ*/

.art {
    display: flex;
    background-color: #F0E3D8;
    margin: 0;
}

.art_gen {
    display: flex;
    justify-content: space-evenly;

    align-items: center;
    flex-wrap: wrap;
    margin: 50px;
    gap: 30px;

}

.art_gen_sub {
    width: 270px;
    height: 350px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.1); /* Тень снизу: 0 по X, 4px по Y, 12px размытие, 10% прозрачности */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.art_gen_sub:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.art_gen_sub_img {
    width: 100%;
    /*height: 100%;*/
    max-height: 300px;
    border-radius: 10px;
    display: block; /* Убирает лишний зазор снизу */
    margin: 0 auto 12px;
    /*border: 1px solid black;*/
}

.no_underscore {
    text-decoration: none;
    color: inherit;
    text-align: center;
}


table {
    border: 2px solid black;
    border-collapse: collapse;
}

td {
    border: solid black;
    padding: 5px;
}

th {
    border: solid black;
    padding: 5px;
}

caption {
    text-align: left;
}

/*Статья*/

.articleColor {
    background-color: #F0E3D8;
    padding: 10px;
}

.art_list {
    display: flex;
    flex-direction: column;
}

.qq {
    margin: 20px 80px;
    padding : 20px 80px;
}
.qq2 {
    margin: 20px 80px;
    background-color: #F0E3D8;
}

.img_art {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    border: 1px solid black;;
}

/* ############## Адаптация для мобильных ############## */
@media (max-width: 768px) {
    /* 1. Шапка */
    .header-container {
        flex-direction: column;
        padding: 10px;
    }

    .logo {
        padding: 10px 0;
        text-align: left;
    }

    /* 2. Меню */
    .nav-link {
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
    }

    /* 3. Главный баннер */
    .flora-container {
        flex-direction: column;
        /*padding: 20px 15px;*/
    }

    .flora-doma {
        width: 100%;
        margin-bottom: 20px;
    }

    .flora-picture {
        display: flex;
        flex-direction: row-reverse;
        width: 100%;
        height: auto;

    }

    /* 4. Блоки с растениями */
    .plants-container {
        display: flex;
        /*grid-template-columns: repeat(1, 1fr); !* 2 колонки *!*/
        gap: 10px;
    }

    .popular-plants {
        text-align: center;
        width: 100%;
    }
    .plant-description {
        margin-left: 30px;
    }

    .card-img {
        max-width: 300px;
        max-height: 300px;
    }

    .card-base {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    }

    aside.advertisement {
        display: none;
    }

    .qq {
        margin: 5px 10px;
        }

}

/* Для очень маленьких экранов */

@media (max-width: 480px) {

    .catalog-container {
        display: flex;
    }

    .plants-container {
        display: flex;
        gap: 10px;
        /*display: grid;*/
        /*grid-template-columns: 1fr; !* 1 колонка *!*/
        }

    .description-container {
        display: flex;
        justify-content: center;
        }

            .plant-description {
        }

    .qq {
	margin: 5px 10px;
	}

    .base_discr {
    margin-bottom: 40px;
    background: white;
    border-radius: 12px; 
    padding: 10px;
    }

    }

    /*.letter {*/
    /*    align-items: center;*/
    /*}*/

    /*.list ul {*/
    /*    width: auto;*/
    /*}*/

