/*
Theme Name: Plants Theme
Description: Кастомная тема для сайта о растениях
Version: 1.0
Author: Developer
*/

/* Подключение шрифтов Playfair Display SC */
@font-face {
    font-family: 'Playfair Display SC';
    src: url('assets/fonts/PlayfairDisplaySC-Regular.woff2') format('woff2'),
        url('assets/fonts/PlayfairDisplaySC-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display SC';
    src: url('assets/fonts/PlayfairDisplaySC-Italic.woff2') format('woff2'),
        url('assets/fonts/PlayfairDisplaySC-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display SC';
    src: url('assets/fonts/PlayfairDisplaySC-Bold.woff2') format('woff2'),
        url('assets/fonts/PlayfairDisplaySC-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display SC';
    src: url('assets/fonts/PlayfairDisplaySC-BoldItalic.woff2') format('woff2'),
        url('assets/fonts/PlayfairDisplaySC-BoldItalic.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display SC';
    src: url('assets/fonts/PlayfairDisplaySC-BlackItalic.woff2') format('woff2'),
        url('assets/fonts/PlayfairDisplaySC-BlackItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --dark: #091317;
    --gold: #FEB07D;
    --brown: #655144;
    --light: #F1D7C6;
    --light-gold: #A68A71;
    --white: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
}

ul,
p {
    margin: 0;
    padding: 0;
}

ul li {
    list-style-type: none;
}

html,
body {
    height: 100%;
    font-family: 'Georgia', serif;
    font-size: 24px;
    line-height: 120%;
    font-weight: 400;
    color: var(--gold);
    background-color: var(--dark);
    background-image: url('assets/img/bg.png');
    background-repeat: no-repeat;
    background-position: center 0;
    background-size: cover;
}

.screen {
    padding: 80px 0;
}

.screen_border {
    border-bottom: 1px dashed #7c7a75;
}

.screen_padding {
    padding: 280px 0;
    padding-bottom: 400px;
}

.screen_back {
    position: relative;
}

.screen_back .wrapper {
    position: relative;
    z-index: 2;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    /* transform: scale(0.9);
    transform-origin: top center; */
}

main {
    flex: 1;
}

.wrapper {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 40px;
}

.big-wrapper {
    width: 100%;
    max-width: 1740px;
    margin: 0 auto;
    padding: 0 40px;
}

.playfair-font {
    font-family: 'Playfair Display SC', serif;
}

.header {
    padding: 22px 0;
    border-bottom: 1px solid var(--brown);
}

.header__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.main-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

.main-menu a {
    font-size: 26px;
    line-height: 120%;
    font-weight: 400;
    color: var(--light);
}

.main-menu a:hover {
    color: var(--gold);
}

.mobile-menu {
    display: none;
    order: 2;
}

.btn-primary {
    display: inline-block;
    min-width: 208px;
    padding: 10px 25px;
    font-size: 24px;
    line-height: 120%;
    font-weight: 400;
    font-style: italic;
    color: var(--light);
    text-align: center;
    background-color: transparent;
    border: 1px solid var(--gold);
    border-radius: 32px;
}

.btn-secondary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-width: 208px;
    padding: 10px 25px;
    font-size: 24px;
    line-height: 120%;
    font-weight: 400;
    font-style: italic;
    color: var(--light);
    text-align: center;
    background-color: var(--brown);
    border: 1px solid transparent;
    border-radius: 32px;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero__item:nth-child(2) {
    width: 40%;
}

.hero .btn-primary {
    width: 100%;
    max-width: 400px;
}

.title-block {
    margin-bottom: 82px;
}

.main-title {
    margin-top: 0;
    margin-bottom: 56px;
    font-size: 227px;
    font-weight: 300;
    line-height: 120%;
    color: var(--light);
}

.small-title {
    margin-top: 0;
    margin-bottom: 40px;
    font-family: 'Playfair Display SC', serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 120%;
    color: var(--light);
}

.small-title_center {
    text-align: center;
}

.tagline {
    font-size: 26px;
    line-height: 120%;
    color: var(--light);
    font-style: italic;
    text-align: center;
}

.info {
    font-size: 26px;
    color: var(--light);
}

.info_columns {
    column-count: 2;
}

.info p {
    margin-bottom: 20px;
}

.info_italic p {
    margin-bottom: 0;
}

.border-img {
    padding: 6px;
    background: transparent;
    box-shadow: 0 0 0 1px var(--light-gold);
}

.feature-list {
    position: relative;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 46px;
    align-items: flex-start;
}

.feature-list li {
    position: relative;
}

.feature-list li:first-child {
    left: 90px;
}

.feature-list li:nth-child(2) {
    left: 125px;
}

.feature-list li:nth-child(3) {
    left: 105px;
}

.feature-list li:last-child {
    left: -55px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.feature-card__img {
    width: 150px;
    height: 150px;
    border-radius: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.feature-card__img_big {
    width: 220px;
    height: 220px;
}

.feature-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100%;
}

.feature-card__item_info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.feature-card__tagline {
    font-size: 22px;
    line-height: 120%;
    color: var(--gold);
    font-style: italic;
}

.feature-card__title {
    font-size: 30px;
    line-height: 120%;
    color: var(--light);
    font-weight: 400;
    text-transform: uppercase;
}


.ark {
    border-radius: 600px 600px 0 0;
}

.circle {
    border-radius: 120px / 127px;
}

.mat {
    position: absolute;
    z-index: 1;
    filter: url(#outline);
    transition: all 0.4s ease;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 250px;
}

.card__top {
    position: relative;
    height: 100%;
}

.card__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.plants-swiper .card__top {
    height: 400px;
}

.card__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card__img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.product-gallery .card__img {
    height: auto;
}

.card__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
    /* важно для text-overflow в flex-контейнере */
    min-width: 0;
    flex: 1 1 auto;
}

.card__title {
    font-size: 30px;
    line-height: 120%;
    color: var(--light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.card__price {
    font-size: 20px;
    line-height: 120%;
}

.sticker {
    position: absolute;
    bottom: 23px;
    left: 0;
    padding: 8px;
    font-size: 24px;
    line-height: 120%;
    color: var(--brown);
    background: var(--gold);
    border-radius: 0 6px 6px 0;
}

.footer {
    border-top: 1px solid var(--gold);
}

.footer__top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0;
    color: var(--gold);
}

.footer__top::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-image: url('assets/img/dashed.png');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 32px 0;
}


.umarta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--light);
}

.umarta a {
    position: relative;
    top: 5px;
}

.umarta svg {
    fill: #F1D7C6;
}

.wrapper-link {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.requisites,
.email-link,
.privacy-link {
    font-size: 20px;
    line-height: 120%;
    color: var(--light);
}

.email-link:hover,
.privacy-link:hover {
    color: var(--gold);
}

.requisites {
    line-height: 160%;
}

.br-desktop {
    display: block;
}

.br-mobile {
    display: none;
}

/* Стили для Swiper слайдера */
.plants-swiper {
    position: relative;
    padding: 20px 0 60px 0;
}

.plants-swiper .swiper-wrapper {
    padding: 15px 0;
    position: relative;
    z-index: 1;
}

.plants-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

.plants-swiper .swiper-slide .card {
    width: 100%;
    min-width: 250px;
    max-width: 400px;
}

.plants-swiper .swiper-slide .card.circle,
.plants-swiper .swiper-slide .card.ark {
    max-width: 400px;
}

.swiper-button-wrapper {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 80px;
    position: relative;
    z-index: 5;
}

.plants-swiper .swiper-button-next,
.plants-swiper .swiper-button-prev {
    position: relative;
    width: 80px;
    height: 80px;
    left: 0;
    right: 0;
    background-color: transparent;
    border: 1px solid var(--light);
    border-radius: 50%;
    color: var(--light);
    opacity: 0.4;
    transition: all 0.3s ease;
    outline: none;
    z-index: 6;
    pointer-events: auto;
    touch-action: pan-y;
}

.plants-swiper .swiper-button-next:hover,
.plants-swiper .swiper-button-prev:hover {
    border: 1px solid var(--light);
    color: var(--light);
    opacity: 1;
}

.plants-swiper .swiper-button-next::after,
.plants-swiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* Стили для кнопок карточек */
.card__btns {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.card__btns a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.card__btns a img {
    width: 20px;
    height: 20px;
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-content .small-title {
    margin-bottom: 24px;
}

.about-content .small-title {
    margin-bottom: 24px;
}

.about-content .info_italic {
    margin-bottom: 40px;
}

.product-top {
    display: flex;
    gap: 42px;
}

.product-slider {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.product-info {
    flex: 1;
}

.product-gallery {
    display: flex;
    gap: 16px;
    flex: 1;
    max-width: 640px;
}

.product-meta {
    margin-bottom: 40px;
}

.product-row {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    color: var(--light);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.product-row_label {
    width: 245px;
    font-size: 26px;
    line-height: 34px;
    opacity: 0.6;
}

.product-row_value {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: right;
}

.product-description {
    margin-bottom: 28px;
    font-size: 24px;
    line-height: 1.6;
    color: var(--light);
}

.product-description .small-title {
    margin-bottom: 28px;
    font-size: 38px;
    line-height: 1.6;
}

.shipping-period {
    margin-bottom: 48px;
    font-size: 24px;
    line-height: 120%;
    font-style: italic;
    color: var(--light);
    text-align: center;
}

.product-info_bottom {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.product-info_bottom-btn {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.product-price {
    font-size: 34px;
    line-height: 44px;
    color: var(--light);
}

.in-cart-link {
    display: block;
    width: 136px;
    height: 40px;
}

.in-cart {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 5px 16px;
    font-size: 24px;
    line-height: 120%;
    color: var(--light);
    border-radius: 24px;
    background-color: #ffffff33;
}

.in-cart::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 16px;
    width: 16px;
    height: 3px;
    margin: auto;
    background-image: url('assets/img/minus.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.in-cart::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 16px;
    width: 16px;
    height: 15px;
    margin: auto;
    background-image: url('assets/img/plus.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.in-favorite-link {
    display: inline-block;
    padding-bottom: 5px;
    font-size: 20px;
    line-height: 120%;
    font-style: italic;
    color: var(--light);
    border-bottom: 1px dashed var(--light);
}

.back {
    display: inline-block;
    padding-bottom: 5px;
    font-size: 20px;
    line-height: 120%;
    font-style: italic;
    color: var(--light);
    font-family: 'Georgia', serif;
    border-bottom: 1px dashed var(--light);
}

.back__absolute {
    position: absolute;
    top: -47px;
    left: 0;
    bottom: 0;
    margin: auto;
    height: 26px;
}

#main-swiper {
    flex: 1;
    height: 565px;
    overflow: hidden;
}

#thumbs-swiper {
    width: 92px;
    height: 520px;
}

#thumbs-swiper .swiper-slide {
    height: 100px !important;
}


/* Стили для мобильного меню */
.mobile-menu-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark);
    z-index: 1000;
    padding: 80px 20px 20px;
}

.mobile-menu-open .main-menu {
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

/* Мобильная ссылка "Войти" в бургер-меню */
.header .mobile-login-link {
    display: none;
}

.header .mobile-menu-open .mobile-login-link {
    display: block;
    margin: 0 auto;
    margin-top: 20px;
    width: 200px;
}

.mobile-menu.active {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

/* Анимации */
.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для фокуса */
.focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Стили для ошибок форм */
.error {
    border-color: #ff4444 !important;
    box-shadow: 0 0 5px rgba(255, 68, 68, 0.3);
}

/* WordPress Block Editor Styles */
.wp-block-heading {
    margin: 0 0 1em 0;
}

.wp-block-heading.has-text-align-center {
    text-align: center !important;
}

.wp-block-heading.has-text-align-left {
    text-align: left !important;
}

.wp-block-heading.has-text-align-right {
    text-align: right !important;
}

.wp-block-paragraph {
    margin: 0 0 1em 0;
}

.wp-block-paragraph.has-text-align-center {
    text-align: center !important;
}

.wp-block-paragraph.has-text-align-left {
    text-align: left !important;
}

.wp-block-paragraph.has-text-align-right {
    text-align: right !important;
}

/* Общие стили для выравнивания текста */
.has-text-align-center {
    text-align: center !important;
}

.has-text-align-left {
    text-align: left !important;
}

.has-text-align-right {
    text-align: right !important;
}

/* Стили для страницы каталога */
.decor-title {
    position: relative;
    margin-bottom: 80px;
    font-size: 80px;
    line-height: 120%;
    color: var(--light);
    text-align: center;
}

.decor-title span {
    position: relative;
    z-index: 2;
    display: inline-block;
    max-width: 700px;
    margin: 0 16px;
    padding: 16px 80px;
    border: 1px solid var(--brown);
    border-radius: 70px / 50%;
}

.decor-title::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 20%;
    height: 1px;
    margin: auto;
    background: var(--brown);
}

.decor-title::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 1;
    width: 20%;
    height: 1px;
    margin: auto;
    background: var(--brown);
}

.filter-wrapper {
    position: relative;
    margin-bottom: 80px;
    padding: 32px 25px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

/* Стили для формы поиска */
.filter-form {
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 4px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--brown);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 24px;
    color: var(--light);
}

.search-input::placeholder {
    color: var(--light);
    opacity: 0.7;
}

.search-button {
    position: absolute;
    right: 0;
    bottom: 14px;
    width: 28px;
    height: 16px;
    color: var(--light);
}

.search-results-info {
    text-align: center;
    margin-top: 20px;
    color: var(--light);
    font-size: 16px;
}

.search-results-info span {
    color: var(--gold);
    font-weight: bold;
}

/* Стили для групп фильтров */
.filter-group {
    display: flex;
    gap: 24px;
    justify-content: space-between;
}

.filter-item {
    position: relative;
    min-width: 140px;
    display: flex;
    align-items: center;
}

.filter-item__price::after {
    content: "руб.";
    display: inline-block;
    font-size: 24px;
    color: var(--light);
}

.filter-item label {
    font-size: 24px;
    color: var(--light);
}

.filter-input,
.filter-input--culture,
.filter-select {
    width: 300px;
    padding: 12px 8px;
    font-family: 'Georgia', serif;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--brown);
    color: var(--light);
    font-size: 24px;
    outline: none;
    transition: all 0.3s ease;
}

.filter-input {
    width: 90px;
}

.filter-input--culture {
    width: 300px;
}

.filter-input:focus,
.filter-select:focus {
    border-color: var(--brown);
    background: rgba(255, 255, 255, 0.1);
}

.filter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filter-input--culture::placeholder {
    color: var(--light);
}

.filter-select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M6%209L12%2015L18%209%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.filter-select option {
    background-color: var(--brown);
    color: var(--light);
    padding: 8px;
}

/* Стили для кнопки сброса фильтров */
.filter-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.reset-filters-btn {
    position: relative;
    display: none;
    /* Скрываем кнопку по умолчанию */
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 12px 0;
    color: var(--light);
    font-size: 24px;
    font-style: italic;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-filters-btn::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--brown);

}

.reset-filters-btn svg {
    color: var(--light);
}

/* Кнопка применить фильтры - только для мобильной версии */
.apply-filters-btn {
    display: none;
    /* Скрываем на десктопе */
    align-items: center;
    background: var(--brown);
    border: 1px solid var(--light);
    padding: 12px 24px;
    color: var(--light);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.apply-filters-btn:hover {
    background: var(--light);
    color: var(--brown);
}

.catalog-grid {
    display: grid;
    grid-gap: 32px;
    grid-template-columns: 27% 27% 20% 20%;
    grid-template-rows: repeat(5, auto);
    justify-content: space-between;
}

.catalog-grid__item {
    position: relative;
}

.box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.box .card {
    width: 100%;
    height: 100%;
    background: transparent;
    color: inherit;
}


/* Стили для блока K с двумя карточками */
.k-cards {
    display: flex;
    gap: 32px;
    width: 100%;
    height: 100%;
}

.k-cards .card {
    flex: 1;
    min-height: 0;
}

.empty-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
}

.c {
    grid-column: auto / span 2;
    grid-row: auto / span 2;
}

.k {
    grid-column: auto / span 2;
}

.g {
    grid-row: auto / span 2;
}

.f {
    grid-row: auto / span 2;
}

.h,
.n {
    grid-column: auto / span 2;
    grid-row: auto / span 2;
}

/* Стили для карточек в каталоге */
.catalog-grid .card {
    width: 100%;
    height: 100%;
}

.catalog-grid .card.ark {
    border-radius: 20px;
}

.card.ark .card__img,
.card.ark .card__img img {
    border-radius: 600px 600px 0 0;
}

.catalog-grid .card.circle {
    border-radius: 50%;
}

.card.circle .card__img,
.card.circle .card__img img {
    border-radius: 100%;
}


/* Адаптивность для каталога */

@media (max-width: 1900px) {
    .feature-list li:nth-child(2) {
        left: 105px;
    }
}

@media (max-width: 1800px) {
    .main-title {
        font-size: 220px;
    }
}

@media (max-width: 1700px) {
    .main-title {
        font-size: 150px;
    }

    .feature-list li:first-child {
        left: -35px;
    }

    .feature-list li:nth-child(2) {
        left: 20px;
    }

    .feature-list li:nth-child(3) {
        left: 15px;
    }

    .feature-list li:last-child {
        left: -125px;
    }

}

@media (max-width: 1350px) {
    .wrapper {
        padding: 0 40px;
    }

    .hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 80px;
    }

    .hero__item,
    .hero__item:nth-child(2) {
        width: 100%;
    }

    .hero__item:nth-child(1) {
        text-align: center;
    }


    .feature-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .feature-list li {
        width: 47%;
    }

    .feature-list li:first-child,
    .feature-list li:nth-child(2),
    .feature-list li:nth-child(3),
    .feature-list li:last-child {
        left: 0;
    }

    .feature-card__img,
    .feature-card__img_big {
        width: 160px;
        height: 160px;
    }

    .feature-card {
        align-items: flex-start;
        flex-direction: column;
    }


    .info_columns {
        column-count: 1;
    }
}

@media (max-width: 1200px) {

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

    .c {
        grid-column: auto / span 1;
        grid-row: auto / span 1;
    }

    .f {
        grid-row: auto / span 1;
    }

    .g {
        grid-row: auto / span 1;
    }

    .h,
    .n {
        grid-column: auto / span 1;
        grid-row: auto / span 1;
    }
}


@media (max-width: 1000px) {


    .feature-list li:first-child,
    .feature-list li:nth-child(2),
    .feature-list li:nth-child(3),
    .feature-list li:last-child {
        left: 0;
    }

    .catalog-grid {
        grid-template-columns: repeat(1, minmax(100px, 1fr));
        gap: 16px;
    }

    .a,
    .b,
    .c,
    .d,
    .e,
    .f,
    .g,
    .h,
    .i,
    .j,
    .k,
    .l,
    .m,
    .n {
        grid-column: auto / span 1;
        grid-row: auto / span 1;
    }

    .k-cards {
        display: grid;
        flex-direction: column;
        gap: 70px;
    }

    .plants-swiper {
        padding: 10px 0 50px 0;
    }

    .plants-swiper .swiper-slide .card {
        min-width: 200px;
        max-width: 300px;
    }


    .plants-swiper .card__img {
        height: 200px;
    }

    .plants-swiper .swiper-button-next,
    .plants-swiper .swiper-button-prev {
        margin-bottom: 40px;
    }

    .plants-swiper .swiper-button-next::after,
    .plants-swiper .swiper-button-prev::after {
        font-size: 27px;
    }

    .product-single__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-single__image .card__img {
        height: 300px;
    }

    .product-single__price {
        font-size: 24px;
    }

    .price-value {
        font-size: 28px;
    }

    .screen,
    .screen_padding {
        padding: 40px 0;
        padding-bottom: 40px;
    }

    .small-title {
        font-size: 30px;
    }

    .decor-title {
        margin-bottom: 16px;
        text-align: left;
    }

    .decor-title span {
        padding: 0;
        font-size: 52px;
        line-height: 85%;
        border: none;
    }

    .decor-title::before,
    .decor-title::after {
        content: none;
    }


    .footer .main-menu {
        flex-direction: column;
        gap: 18px;
    }

    .logo-link {
        width: 148px;
    }

    .email-link,
    .privacy-link {
        font-size: 20px;
    }

    .product-single__image .card__img {
        height: 250px;
    }

    .product-single__price {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .price-value {
        font-size: 24px;
    }

    .footer__top {
        flex-direction: column;
        gap: 24px;
    }

}

/* Состояния для каталога */
.empty-state,
.error-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state h3,
.error-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--light);
}

.empty-state p,
.error-state p {
    font-size: 16px;
    color: var(--light);
    opacity: 0.8;
}

.region-filter {
    position: relative;
}

.region-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--light);
    cursor: pointer;
    border-bottom: 1px solid var(--brown);
    background-image: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M6%209L12%2015L18%209%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E);
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    width: 300px;
}

.region-toggle svg {
    opacity: .8;
}

.region-panel {
    position: absolute;
    top: 48px;
    left: 0;
    width: 100%;
    background: rgb(99 99 99 / 100%);
    border: 1px solid rgba(241, 215, 198, .25);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    padding: 12px;
    z-index: 50;
}

.region-search {
    position: relative;
}

.region-search input {
    width: 100%;
    padding: 10px 30px 10px 12px;
    background: transparent;
    color: var(--light);
    border: 0;
    border-bottom: 1px solid var(--gold);
    outline: none;
}

.region-search-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .8;
}

.region-list {
    max-height: 220px;
    overflow: auto;
    margin-top: 10px;
    padding-right: 4px;
}

.region-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 6px;
    font-size: 14px;
    color: var(--light);
}

.region-item input[type="checkbox"] {
    appearance: none;
    position: relative;
    top: 5px;
    width: 16px;
    height: 16px;
    background-color: transparent;
    border: 1px solid var(--light);
    border-radius: 4px;
}

.region-item input[type="checkbox"]:checked {
    background-color: var(--light);
    border-color: transparent;
}

.region-item label {
    cursor: pointer;
}

.filters-toggle {
    position: relative;
    display: none;
    margin: auto;
    padding: 10px 14px;
    font-size: 24px;
    font-style: italic;
    color: var(--light);
}

.filters-toggle::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--brown);
}

/* Десктоп: панель видна как обычный блок */
.filters-panel {
    display: contents;
    position: static;
    right: auto;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    border-left: 0;
    z-index: auto;
    transition: none;
    padding: 0;
    box-shadow: none;
}

.filters-panel__header {
    display: none;
}

.modal[style*="display: flex"],
.modal[style*="display:flex"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important; /* для мобильных браузеров */
    z-index: 1000 !important;
}

.modal-overlay {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    inset: 0;
}

.modal-dialog {
    position: relative;
    z-index: 1001;
    width: 90%;
    max-width: 480px;
    margin: 0;
    padding: 24px 32px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    flex-shrink: 0;
}

.modal-dialog .btn-primary {
    width: 100%;
}

.modal-title {
    margin-top: 0;
    margin-bottom: 40px;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    text-transform: uppercase;
}

.modal-close {
    position: absolute;
    right: 32px;
    top: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.faq-item {
    margin-bottom: 56px;
}

.faq-question {
    margin-bottom: 16px;
    font-size: 30px;
    line-height: 36px;
    color: var(--gold);
}

.faq-answer {
    font-size: 24px;
    font-weight: 400;
    line-height: 120%;
    color: var(--light);
}

.faq-answer a {
    color: var(--gold);
}

/* Мобильное поведение */
@media (max-width: 1000px) {
    .filters-toggle {
        display: block;
    }

    .filters-panel {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: none;
        height: 100vh;
        background: rgba(38, 38, 38, .95);
        backdrop-filter: blur(8px);
        border-left: 1px solid rgba(241, 215, 198, .25);
        z-index: 1000;
        transition: right .3s ease;
        padding: 16px;
        overflow: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    }

    .filters-panel.open {
        display: block;
        right: 0;
    }

    .filters-panel__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .filters-panel__title {
        font-weight: 600;
        letter-spacing: .06em;
    }

    .filters-panel__close {
        border: 0;
        background: transparent;
        color: var(--light);
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }

    /* скрываем десктопную секцию фильтров на мобильных */
    #filters-desktop-slot .filters-section {
        display: none;
    }

    /* когда панель открыта — скрывать прокрутку страницы */
    .filters-open body {
        overflow: hidden;
    }

    .filter-group {
        flex-wrap: wrap;
    }

    /* Показываем кнопку "Применить фильтры" только в мобильной версии */
    .apply-filters-btn {
        display: flex !important;
    }
}

@media (max-width: 1260px) {
    .main-menu {

        gap: 50px;
    }

}

@media (max-width: 1260px) {
    .main-menu {
        gap: 35px;
    }

    .main-wrapper {
        transform: scale(1);
        transform-origin: top center;
    }

    .main-menu a {
        font-size: 24px;
    }

    .product-top {
        flex-wrap: wrap;
        justify-content: center;
    }

}

@media (max-width: 1118px) {

    .wrapper,
    .header__wrapper,
    .hero {
        padding: 0 16px;
    }

    .header__wrapper {
        gap: 28px;
        flex-wrap: wrap;
    }

    .header .logo-link {
        order: 1;
    }

    .header .btn-primary {
        order: 2;
    }

    .main-nav {
        order: 3;
        flex-grow: 1;
    }

    .main-menu {
        gap: 40px;
    }

    .main-title {
        margin-bottom: 48px;
        font-size: 104px;
    }

    .screen_slider {
        padding: 0 16px;
    }

    .plants-swiper .card__top {
        height: 460px;
    }

    .plants-swiper .swiper-slide .card.circle,
    .plants-swiper .swiper-slide .card.ark {
        max-width: 100%;
    }

    .plants-swiper .card__img {
        height: 100%;
    }

    .footer__bottom {
        flex-wrap: wrap;
        gap: 24px;
    }

    .requisites {
        order: 3;
        flex: 1;
        width: 100%;
        text-align: center;
        line-height: 175%;
    }

    .email-link,
    .wrapper-link {
        width: 40%;
    }

    .email-link {
        order: 1;
    }

    .wrapper-link {
        order: 2;
        text-align: right;
    }

    .back__absolute {
        display: none;
    }

    .modal-dialog {
        max-width: none;
    }

    .modal-title {
        margin-bottom: 90px;
        text-align: center;
    }

}


@media (max-width: 650px) {

    .header__wrapper {
        gap: 28px;
        flex-wrap: wrap;
    }

    .header .main-nav,
    .header .btn-primary {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .main-title {
        margin-bottom: 24px;
        font-size: 52px;
    }

    .screen {
        padding: 40px 0;
    }

    .screen_slider {
        padding: 0 16px;
    }

    .header .main-nav,
    .header .btn-primary {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .main-title {
        font-size: 52px;
        margin-bottom: 40px;
    }

    .small-title {
        font-size: 30px;
    }

    .feature-list li {
        width: 100%;
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        align-items: center;
    }

    .feature-card__img,
    .feature-card__img_big {
        width: 120px;
        height: 120px;
    }

    .feature-card__title {
        font-size: 24px;
    }

    .product-info_bottom-btn .btn-secondary {
        width: 100%;
    }

    .feature-card__tagline {
        font-size: 18px;
    }

    .footer .main-menu {
        flex-direction: column;
        gap: 18px;
    }

    .logo-link {
        width: 148px;
    }

    .about-content .small-title,
    .about-content .info {
        text-align: center;
    }

    .footer__bottom {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        text-align: center;
    }

    .requisites,
    .email-link,
    .wrapper-link {
        width: 100%;
        font-size: 18px;
        text-align: center;
    }

    .privacy-link {
        font-size: 18px;
        text-align: center;
    }

    .requisites {
        order: 1;
        line-height: 130%;
    }

    .email-link {
        order: 2;
    }

    .wrapper-link {
        order: 3;
    }

    .br-desktop {
        display: none;
    }

    .br-mobile {
        display: block;
    }

    .product-single__image .card__img {
        height: 250px;
    }

    .product-single__price {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .price-value {
        font-size: 24px;
    }

    .k-cards {
        gap: 16px;
    }

    .product-gallery {
        flex-direction: column;
        max-width: 100%;
    }

    #main-swiper {
        width: 100%;
        height: auto;
    }

    #thumbs-swiper {
        order: 2;
        width: 100%;
        height: auto;
    }

    #thumbs-swiper .swiper-wrapper {
        align-items: stretch;
    }

    .product-slider {
        width: 100%;
    }

    .product-row {
        flex-wrap: wrap;
    }

    .product-row_value {
        text-align: left;
    }

    .product-info_bottom {
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 20px;
    }

    .modal[style*="display: flex"],
    .modal[style*="display:flex"] {
        padding: 20px;
        box-sizing: border-box;
    }

    .modal-dialog {
        padding: 32px 10px;
        padding-top: 52px;
        width: 100%;
        max-width: none;
    }

    .modal-title {
        margin-bottom: 48px;
        font-size: 22px;
        line-height: 28px;
    }

    .modal-close {
        right: 15px;
        top: 15px;
    }
}