/* КАРТА ФАЙЛА style.css
   Основной файл оформления сайта. Правила намеренно не удалялись:
   здесь есть исторические и переопределяющие блоки, часть из них может
   обеспечивать совместимость отдельных страниц.
   Основные разделы по порядку: базовые элементы и контейнеры; главный экран;
   секции главной; карточки и каталог; оформление заказа и корзина;
   шапка и навигация; подвал; дополнительные визуальные исправления.
   Адаптивные правила вынесены преимущественно в adaptive.css.
   Важно: при будущей чистке сначала проверять использование класса во всех HTML.
*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:"Manrope",sans-serif;

    background: linear-gradient(
        120deg,
        #F4F5F3 0%,
        #EDF1EA 55%,
        #E8EEE4 100%
    );
    background-attachment: fixed;

    color:#344139;

}

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

.container{
    width:1200px;
    margin:0 auto;
}

header{
    height:90px;
    display:flex;
    align-items:center;
    border-bottom:1px solid #ececec;
}

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


.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* Логотип в шапке: ограничиваем размер для страниц, где у img нет отдельного класса */
.header .logo img {
    display: block;
    width: 150px;
    height: auto;
    max-height: 70px;
    object-fit: contain;
}

.logo-image {
    display: block;
    width: 150px;
    height: auto;
    object-fit: contain;
}


nav{
    display:flex;
    gap:40px;
}

nav a{
    font-size:25px;
    transition:.3s;
}

nav a:hover{
    color:#8A4BD6;
}

.icons{
    display:flex;
    gap:25px;
    font-size:22px;
}

.icons i{
    cursor:pointer;
    transition:.3s;
}

.icons i:hover{
    color:#8A4BD6;
}
/* ---------- HERO ---------- */

.hero{

    padding:80px 0 120px;

    background:transparent;

}

.hero-content{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:80px;

}

.hero-text{

    width:520px;

}

.hero-subtitle{

    color:#8A4BD6;

    font-weight:700;

    margin-bottom:15px;

}

.hero h1{

    font-size:64px;

    line-height:72px;

    margin-bottom:25px;

    color:#2B2B2B;

}

.hero-description{

    color:#666;

    font-size:18px;

    line-height:30px;

    margin-bottom:40px;

}

.hero-button{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    height:58px;

    padding:0 36px;

    border-radius:14px;

    background:#8A4BD6;

    color:white;

    font-weight:700;

    transition:.3s;

    box-shadow:0 15px 35px rgba(138,75,214,.35);

}

.hero-button:hover{

    transform:translateY(-3px);

    background:#7337bf;

}


.hero-image{

    width:560px;

    height:520px;

    border-radius:36px;

    background:linear-gradient(145deg,#F1F3EF,#E5ECE0);

    display:flex;

    justify-content:center;

    align-items:center;

    position:relative;

    overflow:hidden;

    box-shadow:

    0 20px 60px rgba(0,0,0,.08),

    inset 0 1px rgba(255,255,255,.7);

}
.hero-image::before{

    content:"";

    position:absolute;

    width:300px;

    height:300px;

    background:rgba(255,255,255,.35);

    border-radius:50%;

    top:-80px;

    right:-80px;

    filter:blur(20px);

}

.hero-image::after{

    content:"";

    position:absolute;

    width:220px;

    height:220px;

    background:rgba(138,75,214,.08);

    border-radius:50%;

    bottom:-60px;

    left:-60px;

}

.hero-image:hover{

    transform:translateY(-8px);

}
.hero-buttons{

    display:flex;

    gap:16px;

}

.hero-button-light{

    background:white;

    color:#8A4BD6;

    border:2px solid #8A4BD6;

    box-shadow:none;

}

.hero-button-light:hover{

    background:#8A4BD6;

    color:white;

}
/* =========================
   ПРЕИМУЩЕСТВА
========================= */

.advantages {
    padding: 0 0 80px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.advantage-card {
    min-height: 130px;

    padding: 22px 18px;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 18px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    gap: 15px;

    transition: all 0.3s ease;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.advantage-card:hover {
    transform: translateY(-5px);

    border-color: #e5d5f7;

    box-shadow: 0 12px 30px rgba(138, 75, 214, 0.12);
}

.advantage-icon {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    background: #f5efff;

    color: #8a4bd6;

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

    font-size: 19px;
}

.advantage-text h3 {
    font-size: 14px;

    line-height: 20px;

    font-weight: 700;

    margin-bottom: 5px;
}

.advantage-text p {
    color: #777;

    font-size: 11px;

    line-height: 16px;
}
/* =========================
   ПОПУЛЯРНЫЕ ТОВАРЫ
========================= */

.popular-products {
    padding: 90px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 35px;
}

.section-label {
    color: #8a4bd6;

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 36px;

    line-height: 44px;

    margin-bottom: 8px;
}

.section-description {
    color: #777;

    font-size: 15px;
}

.view-all {
    display: flex;

    align-items: center;

    gap: 10px;

    color: #8a4bd6;

    font-size: 14px;

    font-weight: 700;

    transition: 0.3s;
}

.view-all:hover {
    color: #7337bf;

    transform: translateX(4px);
}


/* =========================
   СЕТКА ТОВАРОВ
========================= */

.products-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}


/* =========================
   КАРТОЧКА
========================= */

.product-card {
    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 20px;

    overflow: hidden;

    transition: 0.3s;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-7px);

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}


/* =========================
   ФОТО ТОВАРА
========================= */

.product-image {
    height: 280px;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #f5efff,
            #eee6ff
        );

    display: flex;

    align-items: center;

    justify-content: center;
}

.product-placeholder {
    font-size: 95px;

    transition: 0.3s;
}

.product-card:hover .product-placeholder {
    transform: scale(1.08);
}


/* =========================
   ИЗБРАННОЕ
========================= */

.favorite-button {
    position: absolute;

    top: 15px;

    right: 15px;

    width: 38px;

    height: 38px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    color: #555;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 16px;

    transition: 0.3s;
}

.favorite-button:hover {
    color: #8a4bd6;

    transform: scale(1.08);
}


/* =========================
   ИНФОРМАЦИЯ
========================= */

.product-info {
    padding: 20px;
}

.product-category {
    color: #8a4bd6;

    font-size: 12px;

    font-weight: 600;

    margin-bottom: 7px;
}

.product-name {
    font-size: 16px;

    line-height: 22px;

    min-height: 44px;

    margin-bottom: 18px;
}

.product-bottom {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;
}

.product-price {
    display: block;

    font-size: 20px;

    font-weight: 800;

    margin-bottom: 5px;
}

.product-stock {
    display: block;

    color: #888;

    font-size: 11px;
}

.add-cart-button {
    width: 42px;

    height: 42px;

    border-radius: 12px;

    background: #6b8d4b;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: 0.3s;
}

.add-cart-button:hover {
    background: #58753d;

    transform: scale(1.06);
}
/* =========================
   БАННЕР СКИДКИ
========================= */

.sale-banner {
    padding: 20px 0 90px;
}

.sale-content {
    min-height: 300px;

    position: relative;

    overflow: hidden;

    border-radius: 28px;

    padding: 45px 60px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background:
        linear-gradient(
            120deg,
            #f5eaff,
            #ead7ff
        );

    box-shadow:
        0 20px 50px rgba(138, 75, 214, 0.12);
}

.sale-text {
    position: relative;

    z-index: 2;

    max-width: 520px;
}

.sale-label {
    display: inline-block;

    margin-bottom: 12px;

    color: #8a4bd6;

    font-size: 13px;

    font-weight: 700;
}

.sale-text h2 {
    margin-bottom: 12px;

    font-size: 38px;

    line-height: 44px;

    color: #2b2433;
}

.sale-text p {
    max-width: 430px;

    margin-bottom: 25px;

    color: #6d6375;

    font-size: 15px;

    line-height: 24px;
}

.sale-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding: 0 25px;

    border-radius: 12px;

    background: #8a4bd6;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    box-shadow:
        0 10px 25px rgba(138, 75, 214, 0.25);

    transition: 0.3s;
}

.sale-button:hover {
    background: #7337bf;

    transform: translateY(-3px);
}


/* =========================
   ДЕКОР БАННЕРА
========================= */

.sale-decoration {
    position: absolute;

    right: 70px;

    top: 50%;

    width: 400px;

    height: 400px;

    transform: translateY(-50%);
}

.sale-decoration::before {
    content: "";

    position: absolute;

    width: 330px;

    height: 330px;

    right: 10px;

    top: 30px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.35);

    filter: blur(2px);
}

.sale-flower {
    position: absolute;

    right: 70px;

    top: 50px;

    font-size: 150px;

    transform: rotate(-10deg);
}

.sale-flower-small {
    right: 250px;

    top: 190px;

    font-size: 80px;

    transform: rotate(15deg);
}

/* =========================
   КАК СДЕЛАТЬ ЗАКАЗ
========================= */

.how-order {
    padding: 20px 0 100px;
}

.section-title-center {
    text-align: center;

    margin-bottom: 50px;
}

.section-title-center h2 {
    font-size: 36px;

    line-height: 44px;

    margin-bottom: 10px;
}

.section-title-center > p:last-child {
    color: #777;

    font-size: 15px;
}

.order-steps {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}

.order-step {
    position: relative;

    text-align: center;

    padding: 30px 25px;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 20px;

    transition: 0.3s;
}

.order-step:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.07);
}

.step-number {
    position: absolute;

    top: 18px;

    right: 20px;

    color: #ddd;

    font-size: 12px;

    font-weight: 800;
}

.step-icon {
    width: 60px;

    height: 60px;

    margin: 0 auto 20px;

    border-radius: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f5efff;

    color: #8a4bd6;

    font-size: 23px;
}

.order-step h3 {
    margin-bottom: 10px;

    font-size: 16px;
}

.order-step p {
    color: #777;

    font-size: 13px;

    line-height: 21px;
}
/* =========================
   ДОСТАВКА
========================= */

.delivery-section {
    padding: 20px 0 100px;
}

.delivery-wrapper {
    min-height: 480px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 50px;

    align-items: center;

    padding: 55px;

    border-radius: 28px;

    background: #f8f7f5;

    overflow: hidden;
}

.delivery-content {
    max-width: 520px;
}

.delivery-content h2 {
    font-size: 38px;

    line-height: 46px;

    margin-bottom: 18px;

    color: #292929;
}

.delivery-description {
    color: #777;

    font-size: 15px;

    line-height: 24px;

    margin-bottom: 30px;
}


/* =========================
   ПРЕИМУЩЕСТВА ДОСТАВКИ
========================= */

.delivery-features {
    display: flex;

    flex-direction: column;

    gap: 18px;

    margin-bottom: 30px;
}

.delivery-feature {
    display: flex;

    align-items: center;

    gap: 15px;
}

.delivery-feature-icon {
    width: 46px;

    height: 46px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: #ffffff;

    color: #6b8d4b;

    font-size: 17px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.05);
}

.delivery-feature h3 {
    font-size: 14px;

    margin-bottom: 3px;
}

.delivery-feature p {
    color: #888;

    font-size: 12px;

    line-height: 18px;
}


/* =========================
   КНОПКА
========================= */

.delivery-button {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    min-height: 46px;

    padding: 0 22px;

    border-radius: 12px;

    background: #6b8d4b;

    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    transition: 0.3s;
}

.delivery-button:hover {
    background: #58753d;

    transform: translateY(-2px);
}


/* =========================
   КАРТА
========================= */

.delivery-map {
    height: 370px;

    border-radius: 24px;

    overflow: hidden;

    position: relative;

    background: #e9eadf;
}

.map-background {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            ellipse at 30% 35%,
            rgba(255,255,255,.9) 0,
            rgba(255,255,255,.9) 25%,
            transparent 26%
        ),
        radial-gradient(
            ellipse at 70% 65%,
            rgba(255,255,255,.8) 0,
            rgba(255,255,255,.8) 20%,
            transparent 21%
        ),
        linear-gradient(
            145deg,
            #e3e7dc,
            #d5ddce
        );
}


/* декоративные линии карты */

.map-background::before {
    content: "";

    position: absolute;

    width: 130%;

    height: 2px;

    left: -15%;

    top: 45%;

    background: rgba(255,255,255,.8);

    transform: rotate(-18deg);

    box-shadow:
        0 55px rgba(255,255,255,.6),
        0 -60px rgba(255,255,255,.5);
}

.map-background::after {
    content: "";

    position: absolute;

    width: 2px;

    height: 130%;

    top: -15%;

    left: 52%;

    background: rgba(255,255,255,.7);

    transform: rotate(20deg);

    box-shadow:
        80px 0 rgba(255,255,255,.5),
        -90px 0 rgba(255,255,255,.5);
}


/* =========================
   ТОЧКИ НА КАРТЕ
========================= */

.map-point {
    position: absolute;

    width: 14px;

    height: 14px;

    border-radius: 50%;

    background: #8a4bd6;

    border: 4px solid rgba(255,255,255,.8);

    box-shadow:
        0 5px 12px rgba(0,0,0,.15);

    z-index: 2;
}

.point-1 {
    left: 25%;

    top: 35%;
}

.point-2 {
    left: 42%;

    top: 52%;
}

.point-3 {
    left: 63%;

    top: 30%;
}

.point-4 {
    left: 72%;

    top: 62%;
}

.point-5 {
    left: 50%;

    top: 75%;
}
/* =========================
   FOOTER
========================= */

.footer {
    background: #f2f1ed;

    padding: 65px 0 25px;

    margin-top: 20px;
}

.footer-main {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1.3fr;

    gap: 50px;

    padding-bottom: 50px;

    border-bottom: 1px solid #deddd8;
}

.footer-brand {
    max-width: 260px;
}

.footer-logo {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: #222;

    font-size: 16px;

    line-height: 18px;

    font-weight: 800;

    margin-bottom: 18px;
}

.logo-flower {
    color: #8a4bd6;

    font-size: 28px;
}

.footer-brand p {
    color: #777;

    font-size: 13px;

    line-height: 21px;
}

.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 11px;
}

.footer-column h3 {
    font-size: 14px;

    margin-bottom: 8px;
}

.footer-column a,
.footer-column p {
    color: #777;

    font-size: 13px;

    line-height: 20px;

    transition: 0.2s;
}

.footer-column a:hover {
    color: #8a4bd6;
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding-top: 25px;
}

.footer-bottom p {
    color: #999;

    font-size: 11px;
}


/* Логотип в подвале сайта */
.footer .footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.footer .footer-logo img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ========================================
   КАТАЛОГ
======================================== */

.catalog-page {
    padding: 70px 0 100px;
}


/* =========================
   ЗАГОЛОВОК
========================= */

.catalog-heading {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom: 45px;
}

.catalog-heading h1 {
    font-size: 42px;

    line-height: 50px;

    margin-bottom: 8px;
}

.catalog-heading > div > p:last-child {
    color: #777;

    font-size: 15px;
}


/* =========================
   СЕТКА
========================= */

.catalog-layout {
    display: grid;

    grid-template-columns: 220px 1fr;

    gap: 40px;

    align-items: start;
}


/* =========================
   SIDEBAR
========================= */

.catalog-sidebar {
    position: sticky;

    top: 20px;

    padding: 25px;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 18px;
}

.filter-block {
    padding-bottom: 25px;

    margin-bottom: 25px;

    border-bottom: 1px solid #eeeeee;
}

.filter-block h3 {
    font-size: 14px;

    margin-bottom: 18px;
}

.filter-option {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 12px;

    cursor: pointer;

    color: #666;

    font-size: 13px;
}

.filter-option input {
    width: 16px;

    height: 16px;

    accent-color: #8a4bd6;

    cursor: pointer;
}

.clear-filters {
    width: 100%;

    padding: 11px;

    border: 1px solid #ddd;

    border-radius: 10px;

    color: #777;

    font-size: 12px;

    background: #fff;

    cursor: pointer;

    transition: .2s;
}

.clear-filters:hover {
    color: #8a4bd6;

    border-color: #8a4bd6;
}


/* =========================
   TOOLBAR
========================= */

.catalog-toolbar {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.catalog-search {
    position: relative;

    flex: 1;
}

.catalog-search i {
    position: absolute;

    left: 16px;

    top: 50%;

    transform: translateY(-50%);

    color: #999;

    font-size: 13px;
}

.catalog-search input {
    width: 100%;

    height: 46px;

    padding: 0 15px 0 42px;

    border: 1px solid #e5e5e5;

    border-radius: 12px;

    outline: none;

    font-size: 13px;

    transition: .2s;
}

.catalog-search input:focus {
    border-color: #8a4bd6;

    box-shadow:
        0 0 0 3px rgba(138,75,214,.08);
}

.catalog-toolbar select {
    width: 210px;

    height: 46px;

    padding: 0 15px;

    border: 1px solid #e5e5e5;

    border-radius: 12px;

    background: #fff;

    color: #555;

    outline: none;

    cursor: pointer;
}


/* =========================
   ТОВАРЫ
========================= */

.catalog-products {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.catalog-product-card {
    overflow: hidden;

    border: 1px solid #eeeeee;

    border-radius: 18px;

    background: #ffffff;

    transition: .3s;
}

.catalog-product-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(0,0,0,.08);
}


/* =========================
   ФОТО
========================= */

.catalog-product-image {
    position: relative;

    height: 250px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #f5efff,
            #eee6ff
        );
}

.catalog-product-image .product-placeholder {
    font-size: 85px;
}


/* =========================
   ИНФОРМАЦИЯ
========================= */

.catalog-product-info {
    padding: 18px;
}

.catalog-product-name {
    min-height: 44px;

    margin-bottom: 12px;

    font-size: 15px;

    line-height: 21px;
}

.catalog-product-meta {
    display: flex;

    gap: 8px;

    margin-bottom: 18px;
}

.catalog-product-meta span {
    padding: 5px 8px;

    border-radius: 6px;

    background: #f5f5f5;

    color: #777;

    font-size: 10px;
}

.catalog-product-bottom {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;
}

.catalog-product-bottom strong {
    display: block;

    margin-bottom: 4px;

    font-size: 19px;
}

.catalog-product-bottom small {
    display: block;

    color: #888;

    font-size: 10px;
}


/* =========================
   ПУСТОЙ РЕЗУЛЬТАТ
========================= */

.catalog-empty {
    display: none;

    min-height: 300px;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    text-align: center;

    color: #777;
}

.catalog-empty i {
    margin-bottom: 15px;

    color: #bbb;

    font-size: 40px;
}

.catalog-empty h3 {
    margin-bottom: 8px;

    color: #444;

    font-size: 18px;
}

.catalog-empty p {
    max-width: 350px;

    font-size: 13px;

    line-height: 20px;
}
/* ========================================
   HEADER — ФИНАЛЬНАЯ СТРУКТУРА
======================================== */

.header {
    width: 100%;

    height: 82px;

    background: #ffffff;

    border-bottom: 1px solid #eeeeee;

    position: relative;

    z-index: 100;
}


.header-inner {
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* =========================
   ЛОГОТИП
========================= */

.header .logo {
    flex-shrink: 0;

    display: flex;

    align-items: center;

    gap: 9px;

    color: #292929;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    line-height: 16px;
}

.header .logo-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 34px;

    height: 34px;

    color: #8a4bd6;

    font-size: 27px;
}

.header .logo-text {
    white-space: nowrap;
}


/* =========================
   НАВИГАЦИЯ
========================= */

.header .nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex: 1;
}

.header .nav a {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
    font-size: 17px; /* было 13px */
    font-weight: 500;
    transition: color .2s;
}

.header .nav a:hover,
.header .nav a.active {
    color: var(--color-primary);
}

/* =========================
   ИКОНКИ
========================= */

.header .icons {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.header .icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-text);
    text-decoration: none;
    transition: .2s;
}

.header .icons a:hover {
    color: var(--color-primary);
}

.header .icons i {
    font-size: 23px; /* было 17px */
}



/* =========================
   КАРТОЧКИ КАТАЛОГА — ДОРАБОТКА
========================= */

/* Фотография */
.catalog-product-image {
    height: 230px;
    overflow: hidden;
    background: #f5efff;
}

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

/* Информация под фотографией */
.catalog-product-info {
    display: flex;
    flex-direction: column;
    padding: 14px;
    min-width: 0;
}

/* Категория */
.catalog-product-info .product-category {
    margin-bottom: 5px;
    font-size: 12px;
}

/* Название */
.catalog-product-name {
    min-height: 0;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Артикул */
.product-article {
    display: block;
    margin: -5px 0 10px;
    color: #888;
    font-size: 11px;
}

/* Подпись формата */
.product-format-label {
    display: block;
    margin-bottom: 6px;
    color: #666;
    font-size: 12px;
}

/* Выпадающий список форматов */
.product-format-select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    margin-bottom: 12px;
    padding: 8px 10px;
    border: 1px solid #e2d9ec;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.product-format-select:focus {
    outline: 2px solid #d9c2f3;
    border-color: #8a4bd6;
}

/* Цвет товара */
.catalog-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
}

/* Цена и корзина */
.catalog-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.catalog-product-bottom .product-price {
    margin: 0;
    font-size: 19px;
    line-height: 1.3;
}

.catalog-product-bottom .add-cart-button {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: 0;
    cursor: pointer;
}

/* Чтобы карточки не растягивались из-за длинного текста */
.catalog-product-card {
    min-width: 0;
}

@media (max-width: 600px) {
    .catalog-product-image {
        height: 190px;
    }

    .catalog-product-info {
        padding: 12px;
    }

    .product-format-select {
        font-size: 11px;
    }

    .catalog-product-bottom .product-price {
        font-size: 17px;
    }
}

/* =========================
   КОРЗИНА
========================= */
.cart-header-link { position: relative; }
.cart-count { position: absolute; top: -9px; right: -11px; min-width: 19px; height: 19px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50px; background: var(--primary-color, #7b8f52); color: #fff; font-size: 11px; font-weight: 700; }
.cart-count[hidden] { display: none; }
.cart-page { padding: 56px 0 80px; min-height: 55vh; }
.cart-page-heading { margin-bottom: 34px; }
.cart-page-heading h1 { margin: 7px 0 12px; font-size: clamp(30px, 4vw, 44px); }
.cart-page-heading > p:last-child { color: #6f716a; margin: 0; }
.cart-eyebrow { color: #7b8f52; font-size: 12px; font-weight: 700; letter-spacing: .14em; margin: 0; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.cart-items { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px; border: 1px solid #e8e9e2; border-radius: 16px; background: #fff; }
.cart-item-image { width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; background: #f5f6ef; font-size: 34px; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h2 { margin: 0 0 7px; font-size: 18px; line-height: 1.35; }
.cart-item-article, .cart-item-variant { margin: 4px 0; color: #73766c; font-size: 13px; }
.cart-item-price { display: inline-block; margin-top: 7px; font-size: 14px; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.quantity-control { display: flex; align-items: center; gap: 13px; padding: 4px; border: 1px solid #e5e7de; border-radius: 10px; }
.quantity-control button { width: 28px; height: 28px; border: 0; border-radius: 7px; background: #f3f5ec; color: #3f4b31; cursor: pointer; font-size: 19px; }
.quantity-control span { min-width: 15px; text-align: center; font-weight: 600; }
.cart-line-total { white-space: nowrap; }
.cart-remove { border: 0; padding: 0; background: none; color: #8b6a62; text-decoration: underline; cursor: pointer; font-size: 13px; }
.cart-summary { padding: 24px; border: 1px solid #e8e9e2; border-radius: 16px; background: #fafbf7; }
.cart-summary h2 { margin: 0 0 22px; font-size: 21px; }
.cart-summary-line, .cart-summary-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-summary-line { color: #6f716a; padding-bottom: 17px; border-bottom: 1px solid #e6e8df; }
.cart-summary-total { padding: 18px 0; font-size: 17px; }
.cart-summary-total strong { font-size: 23px; }
.cart-summary > p { color: #77796f; font-size: 12px; line-height: 1.55; }
.cart-checkout, .cart-continue { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 10px; text-decoration: none; text-align: center; }
.cart-checkout { width: 100%; margin-top: 10px; }
.cart-back-link { display: block; margin-top: 16px; text-align: center; color: #5c6845; font-size: 14px; }
.cart-empty, .checkout-placeholder { padding: 48px 24px; border: 1px solid #e8e9e2; border-radius: 18px; background: #fafbf7; text-align: center; }
.cart-empty-icon, .checkout-placeholder > i { color: #7b8f52; font-size: 38px; }
.cart-empty h2, .checkout-placeholder h2 { margin: 16px 0 8px; }
.cart-empty p, .checkout-placeholder p { max-width: 520px; margin: 0 auto 22px; color: #73766c; line-height: 1.6; }
.cart-notice { position: fixed; z-index: 9999; right: 22px; bottom: 22px; max-width: calc(100vw - 44px); padding: 14px 20px; border-radius: 12px; background: #35432c; color: #fff; box-shadow: 0 8px 30px #0002; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; }
.cart-notice.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 800px) { .cart-layout { grid-template-columns: 1fr; } .cart-summary { order: -1; } }
@media (max-width: 560px) { .cart-page { padding: 36px 0 55px; } .cart-item { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 13px; } .cart-item-image { width: 76px; height: 76px; } .cart-item-info h2 { font-size: 15px; } .cart-item-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; } .cart-line-total { font-size: 14px; } .cart-summary { padding: 19px; } }

.button-primary { background: #65794b; color: #fff; border: 1px solid #65794b; font-weight: 600; cursor: pointer; transition: background .2s; }
.button-primary:hover { background: #52643c; color: #fff; }


/* Форма оформления заказа */
.checkout-form { display: grid; gap: 17px; margin-top: 22px; }
.checkout-field { display: grid; gap: 7px; }
.checkout-field label { font-weight: 600; font-size: 14px; }
.checkout-field input, .checkout-field textarea { width: 100%; box-sizing: border-box; border: 1px solid #dfe2d6; border-radius: 10px; padding: 12px 13px; font: inherit; color: inherit; background: #fff; }
.checkout-field input:focus, .checkout-field textarea:focus { outline: 2px solid #a8b78b; outline-offset: 1px; }
.checkout-note { color: #73766c; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.checkout-order-items small { color: #73766c; line-height: 1.5; }


/* =========================
   ИНФОРМАЦИОННЫЕ СТРАНИЦЫ
========================= */
.info-page { color: #2b2b2b; }
.info-hero { padding: 76px 0 56px; background: linear-gradient(135deg, #f8f3ff 0%, #fbfafc 65%, #f2f7ed 100%); }
.info-hero h1 { max-width: 820px; margin: 0 0 18px; font-size: clamp(34px, 4vw, 52px); line-height: 1.12; letter-spacing: -1.2px; }
.info-lead { max-width: 700px; color: #69636f; font-size: 17px; line-height: 1.8; }
.info-section { padding: 64px 0; }
.info-section-soft { background: #f7f6f8; }
.info-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.info-card { padding: 30px; border: 1px solid #eee8f4; border-radius: 20px; background: #fff; box-shadow: 0 8px 28px rgba(48, 30, 66, .045); }
.info-card-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 15px; background: #f3eaff; color: #8a4bd6; font-size: 20px; }
.info-card h2 { margin-bottom: 12px; font-size: 20px; line-height: 1.35; }
.info-card p, .info-muted { color: #706b75; font-size: 14px; line-height: 1.8; }
.info-columns { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.info-columns h2, .info-cta h2 { margin-bottom: 16px; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; }
.delivery-steps { display: grid; gap: 0; list-style: none; }
.delivery-steps li { display: flex; gap: 20px; padding: 0 0 26px; position: relative; }
.delivery-steps li:not(:last-child)::after { content: ''; position: absolute; left: 20px; top: 44px; bottom: 0; width: 1px; background: #dfd2ed; }
.delivery-steps li > span { flex: 0 0 42px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fafafa; color: #7337bf; font-size: 13px; font-weight: 800; }
.delivery-steps h3 { margin: 2px 0 6px; font-size: 17px; }
.delivery-steps p { color: #706b75; font-size: 14px; line-height: 1.7; }
.info-cta-section { padding: 0 0 80px; }
.info-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 38px 42px; border-radius: 24px; background: #f1e8fc; }
.info-cta p:not(.section-label) { color: #706b75; line-height: 1.7; }
.info-cta .hero-button { flex-shrink: 0; }
@media (max-width: 768px) { .info-hero { padding: 50px 0 38px; } .info-lead { font-size: 15px; } .info-section { padding: 42px 0; } .info-cards { grid-template-columns: 1fr; gap: 14px; } .info-card { padding: 24px; } .info-columns { grid-template-columns: 1fr; gap: 32px; } .info-cta { align-items: stretch; flex-direction: column; padding: 28px 24px; } .info-cta .hero-button { width: 100%; } .info-cta-section { padding-bottom: 52px; } }


/* Исправление изображений на главной странице */
.hero-image { min-width: 0; }
.hero-image .hero-photo { position: relative; z-index: 1; display: block; width: 100%; height: 100%; min-height: 360px; object-fit: cover; object-position: center; border-radius: inherit; }
.product-image-link { display: block; color: inherit; text-decoration: none; }
.product-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-image .product-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }



/* =========================================
   BRANDBOOK: РАССАДА КРАСНОЯРСК
   Новая визуальная система
========================================= */

:root {
    --brand-purple: #7B3F7E;
    --brand-purple-hover: #653168;
    --brand-green: #495D2C;
    --brand-dark: #292A24;
    --brand-bg: #F6F3EE;
    --brand-white: #FFFFFF;
    --brand-muted: #66675F;
    --brand-border: #E4DED4;
    --brand-lilac: #DFC5E0;
    --brand-green-soft: #E7EBD9;
}

/* Основной фон и типографика */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: var(--color-text);
    font-family: var(--font-main);
    letter-spacing: -0.035em;
}

p {
    color: inherit;
}

a {
    transition: color 0.2s ease;
}

/* Шапка сайта */

.header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: none;
}

.header .nav a {
    color: var(--color-text);
    font-weight: 500;
}

.header .nav a:hover,
.header .nav a.active {
    color: var(--color-primary);
}

.header .logo-image {
    object-fit: contain;
}

/* Главный экран */

.hero {
    background: var(--color-bg);
}

.hero-subtitle,
.section-label,
.sale-label {
    color: var(--color-green);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero h1 {
    color: var(--color-text);
    font-weight: 700;
    letter-spacing: -0.055em;
}

.hero-description {
    color: var(--color-text-muted);
}

.hero-image {
    background: var(--color-green-soft);
    border: 1px solid rgba(73, 93, 44, 0.08);
    border-radius: 18px;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.hero-image::before,
.hero-image::after {
    display: none;
}

.hero-image .hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image:hover {
    transform: translateY(-3px);
}

/* Кнопки */

.hero-button,
.sale-button,
.delivery-button,
.button-primary,
.cart-checkout {
    background: var(--color-primary);
    color: #FFFFFF;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-button);
    box-shadow: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.hero-button:hover,
.sale-button:hover,
.delivery-button:hover,
.button-primary:hover,
.cart-checkout:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.hero-button-light {
    background: transparent;
    color: var(--color-green);
    border: 1px solid var(--color-green);
}

.hero-button-light:hover {
    background: var(--color-green);
    border-color: var(--color-green);
    color: #FFFFFF;
}

/* Блок преимуществ */

.advantage-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: none;
}

.advantage-card:hover {
    border-color: var(--color-green);
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.advantage-icon {
    background: var(--color-green-soft);
    color: var(--color-green);
    border-radius: 12px;
}

/* Заголовки разделов */

.section-header h2,
.section-title-center h2 {
    font-weight: 700;
    letter-spacing: -0.04em;
}

.section-description,
.section-title-center > p:last-child {
    color: var(--color-text-muted);
}

.view-all {
    color: var(--color-primary);
}

.view-all:hover {
    color: var(--color-primary-hover);
}

/* Карточки растений */

.product-card,
.catalog-product-card,
.info-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: none;
    overflow: hidden;
}

.product-card:hover,
.catalog-product-card:hover {
    border-color: #D2C5D0;
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.product-image,
.catalog-product-image {
    background: var(--color-green-soft);
    overflow: hidden;
}

.product-image img,
.catalog-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-category,
.catalog-product-info .product-category {
    color: var(--color-green);
}

.product-name,
.catalog-product-name {
    color: var(--color-text);
    font-weight: 600;
}

.product-price,
.catalog-product-bottom .product-price,
.catalog-product-bottom strong {
    color: var(--color-text);
    font-weight: 700;
}

.product-stock {
    color: var(--color-text-muted);
}

.add-cart-button {
    background: var(--color-green);
    color: #FFFFFF;
    border-radius: 10px;
    box-shadow: none;
}

.add-cart-button:hover {
    background: #374722;
    transform: translateY(-1px);
}

.favorite-button {
    color: var(--color-primary);
    box-shadow: none;
}

.favorite-button:hover {
    color: var(--color-primary-hover);
}

/* Каталог и фильтры */

.catalog-page {
    background: var(--color-bg);
}

.catalog-sidebar,
.catalog-toolbar,
.catalog-search,
.catalog-toolbar select,
.product-format-select {
    border-color: var(--color-border);
}

.catalog-sidebar {
    background: var(--color-surface);
    border-radius: var(--radius-card);
}

.catalog-search,
.catalog-toolbar select,
.product-format-select {
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: 10px;
}

.catalog-search input {
    background: transparent;
    color: var(--color-text);
}

.catalog-search input:focus,
.checkout-field input:focus,
.checkout-field textarea:focus {
    border-color: var(--color-primary);
    outline-color: var(--color-primary);
}

.clear-filters {
    color: var(--color-primary);
}

/* Баннер */

.sale-content {
    background: var(--color-green-soft);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: none;
}

.sale-text h2 {
    color: var(--color-text);
}

.sale-text p {
    color: var(--color-text-muted);
}

.sale-decoration {
    opacity: 0.35;
}

/* Как сделать заказ */

.order-step {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: none;
}

.order-step:hover {
    border-color: var(--color-green);
    box-shadow: var(--shadow-card);
}

.step-number {
    color: var(--color-green);
}

.step-icon {
    color: var(--color-primary);
}

/* Доставка */

.delivery-wrapper {
    background: var(--color-green-soft);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: none;
}

.delivery-content h2 {
    color: var(--color-text);
}

.delivery-description,
.delivery-feature p {
    color: var(--color-text-muted);
}

.delivery-feature-icon {
    color: var(--color-green);
}

/* Информационные страницы */

.info-hero,
.info-section {
    background: transparent;
}

.info-section-soft,
.info-card {
    background: var(--color-surface);
}

.info-card {
    border-color: var(--color-border);
    box-shadow: none;
}

.info-card-icon {
    background: var(--color-green-soft);
    color: var(--color-green);
}

/* Корзина и оформление заказа */

.cart-item,
.cart-summary,
.cart-empty,
.checkout-placeholder,
.checkout-form {
    background: var(--color-surface);
    border-color: var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: none;
}

.cart-page-heading h1,
.cart-item-info h2,
.cart-summary h2 {
    color: var(--color-text);
}

.cart-item-price,
.cart-line-total,
.cart-summary-total strong {
    color: var(--color-text);
}

.quantity-control,
.quantity-control button {
    border-color: var(--color-border);
}

.quantity-control button {
    color: var(--color-green);
}

.cart-continue,
.cart-back-link {
    color: var(--color-green);
}

/* Поля форм */

.checkout-field input,
.checkout-field textarea {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

/* Подвал */

.footer {
    background: var(--color-dark);
    color: var(--color-bg);
}

.footer-brand p,
.footer-column p,
.footer-column a,
.footer-bottom p {
    color: #C3C5B9;
}

.footer-column a:hover {
    color: var(--color-lilac);
}

/* Общие переходы */

button,
input,
textarea,
select {
    font-family: var(--font-main);
}

button {
    cursor: pointer;
}

::selection {
    background: var(--color-lilac);
    color: var(--color-dark);
}



/* ========================================
   BRAND BOOK — CATALOG PAGE
======================================== */

.catalog-page {
    background: var(--color-bg);
    color: var(--color-text);
}

.catalog-heading h1 {
    color: var(--color-text);
    font-family: var(--font-main);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.catalog-heading > div > p:last-child {
    color: var(--color-text-muted);
}

.catalog-sidebar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: none;
}

.filter-block {
    border-bottom-color: var(--color-border);
}

.filter-block h3 {
    color: var(--color-text);
    font-size: 15px;
    font-weight: 600;
}

.filter-option {
    color: var(--color-text-muted);
    font-size: 14px;
}

.filter-option input {
    accent-color: var(--color-green);
}

.clear-filters {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-green);
}

.clear-filters:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: var(--color-bg);
}

.catalog-search input {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text);
    font-family: var(--font-main);
}

.catalog-search input::placeholder {
    color: var(--color-text-muted);
}

.catalog-search input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(123, 63, 126, 0.08);
}

.catalog-search i {
    color: var(--color-text-muted);
}

.catalog-toolbar select {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text);
    font-family: var(--font-main);
}

.catalog-product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
                transform 0.2s ease;
}

.catalog-product-card:hover {
    border-color: #D2C5D0;
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.catalog-product-image {
    background: var(--color-green-soft);
}

.catalog-product-info {
    background: var(--color-surface);
}

.catalog-product-info h3,
.catalog-product-name {
    color: var(--color-text);
    font-family: var(--font-main);
    font-weight: 600;
}

.catalog-product-info p {
    color: var(--color-text-muted);
}

.catalog-product-info .product-category {
    color: var(--color-green);
}

.catalog-product-bottom .product-price {
    color: var(--color-text);
    font-weight: 700;
}

.catalog-product-bottom button,
.catalog-product-bottom .add-cart-button {
    background: var(--color-green);
    color: #FFFFFF;
    border-radius: 10px;
}

.catalog-product-bottom button:hover,
.catalog-product-bottom .add-cart-button:hover {
    background: #374722;
}

.product-format-select {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text);
}

.catalog-empty {
    color: var(--color-text-muted);
}

.catalog-empty h3 {
    color: var(--color-text);
}

.catalog-empty i {
    color: var(--color-green);
}

/* Шапка каталога */

.header {
    background: var(--color-bg);
    border-bottom-color: var(--color-border);
    box-shadow: none;
}

.header .nav a.active,
.header .nav a:hover {
    color: var(--color-primary);
}

/* Подвал каталога */

.footer {
    background: var(--color-dark);
    color: var(--color-bg);
}

.footer .footer-logo {
    color: var(--color-bg);
}

.footer .logo-flower {
    color: var(--color-primary);
}

.footer .footer-column a:hover {
    color: var(--color-lilac-soft);
}

/* Адаптация */

@media (max-width: 768px) {
    .catalog-page {
        padding-top: 35px;
        padding-bottom: 55px;
    }

    .catalog-heading h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .catalog-sidebar {
        position: static;
    }

    .catalog-toolbar {
        flex-wrap: wrap;
    }

    .catalog-search {
        flex-basis: 100%;
    }

    .catalog-toolbar select {
        width: 100%;
    }
}


/* ========================================
   ЕДИНЫЙ ГРАДИЕНТНЫЙ ФОН САЙТА
======================================== */

html {
    min-height: 100%;
    background: #F6F3EE;
}

body {
    min-height: 100vh;
    background: linear-gradient(
        135deg,
        #F6F3EE 0%,
        #F0E8F1 55%,
        #E7EBD9 100%
    );
    background-attachment: fixed;
    color: #292A24;
}

/* Основные области страниц */

main,
.catalog-page,
.cart-page {
    background: transparent;
}

/* Шапка */

.header {
    background: rgba(246, 243, 238, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none;
}

/* Секции не перекрывают общий фон */

.hero,
.advantages,
.products-section,
.sale-section,
.order-steps-section,
.delivery-section,
.info-hero,
.info-section {
    background-color: transparent;
}

/* Карточки сохраняют читаемость */

.product-card,
.catalog-product-card,
.advantage-card,
.order-step,
.info-card,
.catalog-sidebar,
.cart-item,
.cart-summary,
.cart-empty {
    background-color: #FFFFFF;
}

/* Подвал остаётся тёмным */

.footer {
    background: #292A24;
    color: #F6F3EE;
}

/* Мобильные устройства */

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}


/* ========================================
   ИНФОРМАЦИОННЫЕ СТРАНИЦЫ
   О нас / Доставка / Контакты
======================================== */

/* Карточки и информационные блоки */
.info-card,
.info-section .info-card,
.info-hero .info-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #E4DED4;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(41, 42, 36, 0.04);
}

/* Иконки в карточках */
.info-card-icon,
.info-icon {
    background: #E7EBD9;
    color: #495D2C;
    border-radius: 12px;
}

/* Заголовки */
.info-card h2,
.info-card h3,
.info-section h2,
.info-section h3 {
    color: #292A24;
}

/* Текст */
.info-card p,
.info-section p {
    color: #66675F;
}

/* Ссылки и второстепенные действия */
.info-card a,
.info-section a {
    color: #495D2C;
}

.info-card a:hover,
.info-section a:hover {
    color: #7B3F7E;
}

/* Светлые плашки и выделенные блоки */
.info-section-soft {
    background: rgba(255, 255, 255, 0.35);
}

/* Кнопки оставляем фирменными, но спокойными */
.info-section .button-primary,
.info-card .button-primary {
    background: #7B3F7E;
    border-color: #7B3F7E;
    color: #FFFFFF;
    box-shadow: none;
}

.info-section .button-primary:hover,
.info-card .button-primary:hover {
    background: #653168;
    border-color: #653168;
}


/* ========================================
   КНОПКА КАТАЛОГА — СТРЕЛКА
======================================== */

.hero-button,
.hero-button-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hero-button i,
.hero-button-light i,
.hero-button svg,
.hero-button-light svg {
    display: inline-block;
    position: static;
    transform: none;
    flex-shrink: 0;
    line-height: 1;
    vertical-align: middle;
}

/* Если стрелка сделана псевдоэлементом */
.hero-button::after,
.hero-button-light::after {
    line-height: 1;
    vertical-align: middle;
}


/* CTA-блок на страницах «О нас», «Доставка», «Контакты» */
.info-cta-section {
    padding: 44px 0 56px;
    background: transparent;
}

.info-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    padding: 30px 32px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid #E4DED4;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(41, 42, 36, 0.04);
}

/* Текстовая часть */
.info-cta > div {
    min-width: 0;
}

.info-cta .section-label {
    margin-bottom: 8px;
    color: #495D2C;
}

.info-cta h2 {
    margin: 0 0 10px;
    color: #292A24;
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.3;
    font-weight: 700;
}

.info-cta p:not(.section-label) {
    margin: 0;
    color: #66675F;
    line-height: 1.7;
}

/* Кнопка */
.info-cta .hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;

    padding: 14px 22px;
    border: 1px solid #7B3F7E;
    border-radius: 10px;
    background: #7B3F7E;
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.info-cta .hero-button:hover {
    background: #653168;
    border-color: #653168;
}

.info-cta .hero-button i {
    position: static;
    transform: none;
    line-height: 1;
}

/* Планшеты и телефоны */
@media (max-width: 768px) {
    .info-cta-section {
        padding: 28px 0 36px;
    }

    .info-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        padding: 24px;
        border-radius: 16px;
    }

    .info-cta .hero-button {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .info-cta {
        padding: 20px;
    }

    .info-cta .hero-button {
        width: 100%;
    }
}


/* Единый градиентный фон информационных секций */
section.info-section.info-section-soft {
    background: transparent !important;
}


/* Кремовая подложка блока доставки на главной */
.delivery-section .delivery-wrapper {
    background: #F6F3EE !important;
    border: 1px solid #E4DED4;
    border-radius: 18px;
}

.header .icons i,
.header .icons a i,
.header .icons a .fa,
.header .icons a .fas {
    font-size: 28px !important;
}

.header .icons a {
    width: 44px;
    height: 44px;
}

/* Кнопка перехода в каталог в пустой корзине */
.cart-page #cartContent a,
.cart-page #cartContent button {
    color: #FFFFFF !important;
}

/* Настройка стрелки в сортировке каталога */
.catalog-toolbar select {
    appearance: none;
    -webkit-appearance: none;

    padding-left: 15px;
    padding-right: 30px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23292A24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
}

/* Кнопки изменения количества товара в корзине */
.cart-quantity button,
.quantity-control button,
.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #7B3F7E;
    border-radius: 9px;
    background: #F3E8F4;
    color: #7B3F7E;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease,
                transform 0.2s ease;
}

/* Наведение */
.cart-quantity button:hover,
.quantity-control button:hover,
.quantity-btn:hover {
    background: #7B3F7E;
    color: #FFFFFF;
    transform: scale(1.05);
}

/* Нажатие */
.cart-quantity button:active,
.quantity-control button:active,
.quantity-btn:active {
    transform: scale(0.95);
}

/* Социальные сети в шапке и на странице контактов */
.header .social-header-link { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; color:inherit; }
.header .social-header-link i { font-size:23px; }
.max-social-icon { display:inline-flex; align-items:center; justify-content:center; width:21px; height:21px; border:2px solid currentColor; border-radius:7px; font-size:13px; line-height:1; font-weight:800; font-family:Arial,sans-serif; }
.contact-social-links { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.contact-social-links a { display:inline-flex; gap:6px; align-items:center; }
.cart-clear-button { display:block; width:100%; margin-top:12px; cursor:pointer; }

/* Доработки шапки: корзина отделена от компактных иконок мессенджеров */
.header .icons { gap: 0; }
.header .cart-header-link { margin-right: 80px; }
.header .social-header-link + .social-header-link { margin-left: 12px; }
.header .social-header-link { display:inline-flex; align-items:center; justify-content:center; flex: 0 0 24px; text-decoration:none; color:inherit; }
.header .social-header-link i { font-size:18px; }
.max-social-icon { display: inline-block; width: 22px; height: 22px; object-fit: contain; border: 0; border-radius: 0; color: inherit; }
.contact-social-links .max-social-icon { width: 19px; height: 19px; vertical-align: middle; }
.cart-clear-button {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #dfe5d4;
    border-radius: 10px;
    background: #619134;
    color: #596747;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s, border-color .2s, color .2s;
}
.cart-clear-button:hover { background: #e7edda; border-color: #cbd6b9; color: #39472c; }
@media (max-width: 768px) {
    .header .cart-header-link { margin-right: 40px; }
    .header .social-header-link + .social-header-link { margin-left: 9px; }
    .header .social-header-link { flex-basis: 22px; }
    .header .social-header-link i { font-size:17px; }
    .max-social-icon { width: 17px; height: 17px; }
}
@media (max-width: 480px) {
    .header .cart-header-link { margin-right: 30px; }
    .header .social-header-link + .social-header-link { margin-left: 7px; }
    .header .social-header-link { flex-basis: 20px; }
    .header .social-header-link i { font-size:16px; }
    .max-social-icon { width: 16px; height: 16px; }
}


/* Ровное расположение иконок в карточках преимуществ */
.advantages-grid { align-items: stretch; }
.advantage-card { justify-content: flex-start; align-items: flex-start; }
.advantage-icon { flex: 0 0 42px; margin-bottom: 0; }
.advantage-card h3, .advantage-card h4 { margin-top: 0; }
@media (max-width: 480px) {
  .advantages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advantage-card { flex-direction: column; align-items: flex-start; min-width: 0; }
  .advantage-icon { margin-bottom: 2px; }
}

.header .icons a.social-header-link i.fa-telegram,
.header .icons a.social-header-link i.fa-telegram-plane {
    font-size: 22px !important;
}


/* Telegram в блоке контактов */
.contact-social-links .fa-telegram,
.contact-social-links .fa-telegram-plane {
    color: #222 !important;
    font-size: 20px !important;
}

/* Фиолетовая подсветка MAX при наведении */
.header .social-header-link:hover .max-social-icon {
    filter: brightness(0) saturate(100%)
            invert(24%) sepia(48%) saturate(2870%)
            hue-rotate(255deg) brightness(96%) contrast(94%);
}

/* Заглушка для товаров без фотографии */
.catalog-product-image {
    position: relative;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    opacity: 0.18;
    filter: grayscale(1);
    color: #7B3F7E;
    background: #F5F5F2;
}

/* Заглушка цветка в корзине в тон фирменного фона */
.cart-item-image {
    background: #F5F5F2;
}

.cart-product-placeholder {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    filter: grayscale(1);
    opacity: 0.35;
}

/* Заглушка на главной в тон фона каталога */
.product-image .product-placeholder {
    background: #F5F5F2;
    filter: grayscale(1);
    opacity: 0.35;
}



/* Белый текст на кнопке возврата в каталог после заказа */
.cart-empty .button-primary {
    color: #FFFFFF !important;
}

/* Ручной ввод количества в корзине */
.quantity-control .cart-quantity-input {
    width: 42px;
    height: 34px;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity-control .cart-quantity-input::-webkit-inner-spin-button,
.quantity-control .cart-quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-control .cart-quantity-input:focus {
    outline: 1px solid var(--color-green);
    border-radius: 5px;
}

/* ===== Финальная визуальная система ===== */
:root {
    --font-accent: "Caveat", cursive;
    --color-bg-gradient: linear-gradient(125deg, #f0e2f7 0%, #dfe8f0 34%, #dcefcf 68%, #d9efd0 100%);
}

/* На всех страницах — яркий, но не пастельный фиолетово-зелёный фон. */
body {
    background-image: linear-gradient(125deg, #efe0f4 0%, #e2e9f1 38%, #dcebcf 72%, #d4e9c9 100%);
    background-attachment: fixed;
}

/* Caveat только для крупных заголовков. Обычный текст остаётся Manrope. */
h1, h2,
.section-header h2,
.section-title-center h2,
.page-title,
.info-hero h1,
.hero h1 {
    font-family: "Caveat", cursive !important;
    font-weight: 600 !important;
}

.section-label,
.news-kicker,
.handwritten,
.handwritten-accent {
    font-family: "Manrope", sans-serif !important;
    font-weight: 600 !important;
    font-size: inherit !important;
    letter-spacing: normal !important;
}

/* Главный верхний экран: именно title2.png, а не градиент. */
.home-visual {
    background-image: url("../images/title2.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding-bottom: 54px;
}

/* После верхнего блока главной остаётся общий градиент. */
.home-visual + .advantages,
.home-visual + section {
    background-image: linear-gradient(125deg, #efe0f4 0%, #e2e9f1 38%, #dcebcf 72%, #d4e9c9 100%);
}

.home-intro {
    padding: 34px 0 12px;
}

.home-intro-content {
    max-width: 760px;
    text-align: left;
    padding: 18px 0 8px;
}

.home-intro-content h1 {
    margin: 0 0 8px;
    color: #4b3553;
    font-size: clamp(42px, 6vw, 76px);
    line-height: .98;
    text-shadow: 0 2px 14px rgba(255,255,255,.55);
}

.home-intro-content p {
    max-width: 600px;
    margin: 0 0 20px;
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #344139;
}

/* Ссылки на MAX и Telegram — строго одна под другой. */
.header .icons,
.header .header-icons {
    align-items: center;
}
.header .social-header-link {
    display: block !important;
    width: auto !important;
    white-space: nowrap;
    padding: 2px 0 !important;
    margin: 0 !important;
    font-family: "Manrope", sans-serif;
    font-size: 13px !important;
    line-height: 1.25;
    font-weight: 700;
}
.header .icons > .social-header-link + .social-header-link,
.header .header-icons > .social-header-link + .social-header-link {
    margin-top: 0 !important;
}
.header .icons,
.header .header-icons {
    display: flex;
    flex-direction: row;
    gap: 16px;
}
.header .icons .social-header-link:first-of-type,
.header .header-icons .social-header-link:first-of-type {
    margin-left: 0;
}
/* Оборачиваем две текстовые ссылки визуально в вертикальный блок через фиксированный размер каждой ссылки. */
.header .icons .social-header-link,
.header .header-icons .social-header-link {
    min-width: 88px;
}

/* Логотип делаем заметным и одинаковым в шапке и footer. */
.header .logo img.logo-image,
.footer .footer-logo img,
.footer-logo img {
    width: 178px !important;
    max-width: 178px !important;
    max-height: 82px !important;
    height: auto !important;
    object-fit: contain;
}

@media (max-width: 900px) {
    .header .logo img.logo-image,
    .footer .footer-logo img,
    .footer-logo img {
        width: 150px !important;
        max-width: 150px !important;
        max-height: 72px !important;
    }
    .header .social-header-link {
        font-size: 11px !important;
    }
}

@media (max-width: 600px) {
    .header .logo img.logo-image,
    .footer .footer-logo img,
    .footer-logo img {
        width: 124px !important;
        max-width: 124px !important;
        max-height: 60px !important;
    }
    .header .social-header-link {
        font-size: 10px !important;
    }
    .home-intro-content h1 {
        font-size: 48px;
    }
}


/* Новостная лента — широкая версия для компьютеров */

@media (min-width: 769px) {
    .home-visual .news-hero .container {
        width: calc(100% - 80px);
        max-width: 1300px;
    }

    .news-carousel {
        width: 100%;
        box-sizing: border-box;
        min-height: 100px !important;
        padding: 22px 32px !important;
        border-radius: 20px !important;
        display: flex !important;
        align-items: center !important;
        gap: 28px !important;
        background: rgba(255,255,255,.78) !important;
        box-shadow: 0 10px 30px rgba(55,67,44,.10) !important;
        backdrop-filter: blur(10px);
    }

    .news-carousel-copy {
    width: 100%;
    max-width: none !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
}

.news-carousel .news-kicker {
    flex: 0 0 100% !important;
    margin: 0 !important;
    font-size: 17px !important;
}

    .news-carousel .news-kicker {
        flex: 0 0 auto;
        margin: 0 !important;
        font-size: 17px !important;
    }

    .news-carousel h1 {
        flex: 1 1 auto;
        min-width: 180px;
        margin: 0 !important;
        font-family: "Caveat", cursive !important;
        font-size: 27px !important;
        line-height: 1.2 !important;
    }

    .news-carousel-excerpt {
        flex: 1 1 auto;
        margin: 0 !important;
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    .news-carousel-actions {
        flex: 0 0 auto;
        margin: 0 !important;
        display: flex;
        align-items: center;
        gap: 18px;
    }

    .news-carousel-visual {
        display: none !important;
    }

    .news-carousel .hero-button {
    padding: 4px 9px !important;
    font-size: 11px !important;
    min-height: 0 !important;
    border-radius: 9px !important;
}

    .news-carousel-controls {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    .news-carousel {
        min-height: 0 !important;
        padding: 20px !important;
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .news-carousel-copy {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .news-carousel h1 {
        font-size: 24px !important;
    }

    .news-carousel-excerpt {
        flex-basis: 100%;
        font-size: 14px !important;
    }

    .news-carousel-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .news-carousel-visual {
        display: none !important;
    }
}

.home-intro {
    padding-top: 24px;
}


/* Социальные ссылки: отдельный вертикальный блок справа от корзины. */
.header .social-header-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0 !important;
    min-width: 88px;
}
.header .social-header-links .social-header-link {
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 1px 0 !important;
}


/* ===== ФИНАЛЬНЫЙ ФОН ===== */
body {
    background: linear-gradient(
        125deg,
        #DFD0F2 0%,
        #CBE3F5 35%,
        #C9EFE0 65%,
        #C8EBC2 100%
    ) !important;
    background-attachment: fixed;
}

/* Навигация и footer остаются самостоятельными фонами. */
.header, header {
    background: #FAFAFA !important;
}
.footer, footer {
    background: #FAFAFA !important;
}

/* Весь контент сайта прозрачен, чтобы был виден единый градиент body. */
main,
main > section,
main > div,
.home-visual,
.advantages,
.popular-products,
.how-order,
.delivery-section {
    background-color: transparent !important;
}

/* title2.png занимает всю верхнюю часть главной до «Популярных растений». */
.home-visual {
    background-image: url("../images/title2.png") !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    padding-bottom: 0 !important;
}

/* Главный заголовок — Caveat. Обычный мелкий текст остаётся Manrope. */
.home-intro-content h1,
.section-header h2,
.section-title-center h2,
.page-title,
.info-hero h1,
.hero h1 {
    font-family: "Caveat", cursive !important;
    font-weight: 600 !important;
}
.home-intro-content p,
.section-description,
.advantage-text p,
.delivery-description,
.delivery-feature p,
.order-step p,
.news-carousel-excerpt,
.news-kicker,
.section-label {
    font-family: "Manrope", sans-serif !important;
}

/* Новости на главной — только новости, без статей. */
.news-carousel .news-kicker {
    font-family: "Manrope", sans-serif !important;
}


/* ===== Финальные исправления ===== */

/* Footer снова тёмный, как в исходном дизайне. */
.header, header {
    background: #FAFAFA !important;
}

.footer, footer {
    background: #292A24 !important;
    color: #F6F3EE !important;
}

.footer .footer-brand p,
.footer .footer-column p,
.footer .footer-column a,
.footer .footer-bottom p {
    color: #D8D8D2 !important;
}

.footer .footer-column h3 {
    color: #F6F3EE !important;
}

.footer .footer-column a:hover {
    color: #C89BEA !important;
}

.footer .footer-main {
    border-bottom-color: rgba(255,255,255,.18) !important;
}

/* Блок «Наш подход» на информационных страницах — в цвет навигации. */
.info-section.info-section-soft {
    background: #FAFAFA !important;
}

/* Страница «Статьи»: корзина должна быть видимой и выглядеть так же, как в остальных разделах. */
.articles-page .header-icons,
.articles-page .header .icons {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 16px !important;
}

.articles-page .cart-header-link,
.articles-page .header-icons > a:first-child {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    color: #292A24 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.articles-page .cart-header-link i,
.articles-page .header-icons > a:first-child i {
    display: inline-block !important;
    font-size: 21px !important;
    color: #292A24 !important;
}

/* MAX и Telegram остаются ровно друг под другом. */
.articles-page .social-header-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
}

.articles-page .social-header-link {
    display: block !important;
    margin: 0 !important;
    padding: 1px 0 !important;
}

/* title2.png должен продолжаться от верхней части главной до самого блока
   «Популярные растения», включая преимущества. */
.home-visual {
    background-image: url("../images/title2.png") !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
}

.home-visual .advantages {
    background: transparent !important;
}

.home-visual {
    background-image: url("../images/title2.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

/* Единый градиент для всей нижней части главной */
.popular-products,
.how-order,
.delivery-section {
    background: transparent !important;
}

/* Общий фон страницы */
body {
    background: linear-gradient(
        125deg,
        #efe0f4 0%,
        #e2e9f1 38%,
        #dcebcf 72%,
        #d4e9c9 100%
    ) fixed !important;
}

/* Обычный шрифт для названий растений */
.product-name,
.catalog-product-name {
    font-family: "Manrope", sans-serif !important;
}

/* Рукописный шрифт для категорий растений */
.product-category,
.catalog-product-info .product-category {
    font-family: "Caveat", cursive !important;
    font-size: 17px;
    font-weight: 600;
}

/* Иконки слева от текста MAX и Telegram */
@media (min-width: 769px) {
    .header .social-header-links .social-header-link,
    .articles-page .social-header-links .social-header-link {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: auto !important;
    }

    .header .social-header-link .max-social-icon,
    .header .social-header-link .fa-telegram {
        order: -1 !important;
    }
}

/* Скрываем иконки на телефонах */
@media (max-width: 768px) {
    .header .social-header-link .max-social-icon,
    .header .social-header-link .fa-telegram {
        display: none !important;
    }
}
/* Единый вид корзины в шапке */
/* Размер корзины в шапке */
.cart-header-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    color: #292929 !important;
    text-decoration: none;
}

.cart-header-link i {
    display: inline-block !important;
    font-size: 32px !important;
    line-height: 1 !important;
    color: #292929 !important;
}

/* Счётчик товаров */
.cart-header-link .cart-count {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 11px;
}


/* Одинаковые размеры иконок в шапке страницы статьи */
@media (min-width: 769px) {

    .header .header-icons > a.cart-header-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        margin-right: 0 !important;
    }

    .header .header-icons > a.cart-header-link i {
        font-size: 32px !important;
        line-height: 1 !important;
    }

    .header .header-icons .social-header-link .fa-telegram {
        font-size: 22px !important;
        width: 22px !important;
        height: 22px !important;
        line-height: 1 !important;
        flex-shrink: 0 !important;
    }
}

/* Уменьшенные кнопки перелистывания новостей */
.news-carousel-controls button {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    font-size: 17px !important;
    border-radius: 50% !important;
}

.news-carousel-controls {
    gap: 7px !important;
}

.news-carousel-controls span {
    font-size: 11px !important;
}

/* Кнопки новостей всегда справа */
@media (min-width: 769px) {
    .news-carousel-actions {
        margin-left: auto !important;
        justify-content: flex-end !important;
        flex-shrink: 0 !important;
    }
}

/* Плавное появление и исчезновение новостей */
.news-carousel [data-news-title],
.news-carousel [data-news-excerpt],
.news-carousel-visual img {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Исчезновение перед переключением */
.news-carousel.news-is-changing [data-news-title],
.news-carousel.news-is-changing [data-news-excerpt],
.news-carousel.news-is-changing .news-carousel-visual img {
    opacity: 0;
    transform: translateY(6px);
}

/* Прайс-листы в каталоге */
.price-list-open-button { height:46px; padding:0 18px; border:0; border-radius:12px; background:#657f45; color:#fff; font:600 13px Manrope,sans-serif; white-space:nowrap; cursor:pointer; transition:.2s; }
.price-list-open-button:hover { background:#526b36; transform:translateY(-1px); }
.price-list-open-button i { margin-right:7px; }
.price-list-modal { display:none; position:fixed; inset:0; z-index:10000; align-items:center; justify-content:center; padding:20px; }
.price-list-modal.is-open { display:flex; }
.price-list-modal-backdrop { position:absolute; inset:0; background:rgba(27,35,24,.48); backdrop-filter:blur(3px); }
.price-list-modal-card { position:relative; z-index:1; width:min(100%,520px); max-height: min(80vh,680px); overflow:auto; padding:30px; border-radius:20px; background:#fff; box-shadow:0 20px 70px rgba(0,0,0,.2); }
.price-list-modal-card h2 { margin:4px 0 8px; font:600 28px Caveat,cursive; color:#34442c; }
.price-list-modal-description { margin:0 0 20px; color:#777; font-size:13px; }
.price-list-modal-close { position:absolute; top:12px; right:16px; border:0; background:transparent; color:#66705f; font-size:30px; cursor:pointer; }
.price-list-public-items { display:grid; gap:10px; }
.price-list-public-item { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 14px; border:1px solid #e8ebdf; border-radius:12px; background:#fbfcf8; }
.price-list-public-info { display:grid; grid-template-columns:24px 1fr; align-items:center; gap:2px 8px; min-width:0; }
.price-list-public-info i { grid-row:span 2; color:#63834a; font-size:19px; }
.price-list-public-info strong { overflow-wrap:anywhere; font-size:13px; color:#384333; }
.price-list-public-info span { color:#92988c; font-size:11px; }
.price-list-download-link { flex:0 0 auto; padding:9px 13px; border-radius:9px; background:#657f45; color:#fff; text-decoration:none; font-size:12px; font-weight:700; }
.price-list-download-link:hover { background:#526b36; }
body.price-list-modal-open { overflow:hidden; }
@media(max-width:700px) { .catalog-heading { flex-direction:column; } .price-list-open-button { width:100%; } .price-list-modal-card { padding:24px 18px; } .price-list-public-item { align-items:flex-start; } }

/* Ненавязчивый ботанический декор для страниц со светлым градиентным фоном */
body.botanical-page {
    position: relative;
    overflow-x: hidden;
}

body.botanical-page::before,
body.botanical-page::after {
    content: "";
    position: absolute;
    top: 80px;
    bottom: 0;
    width: 400px;
    z-index: 0;
    pointer-events: none;
    background-image: url("../images/botanical-vine.png");
    /* Повторяем длинный рисунок по вертикали, чтобы лианы шли
       вдоль всей страницы до нижнего края контента. */
    background-repeat: repeat-y;
    background-size: 400px 1200px;
    opacity: 0.72;
}

body.botanical-page::before {
    left: 0;
    background-position: left top;
}

body.botanical-page::after {
    right: 0;
    background-position: right top;
    transform: scaleX(-1);
}

body.botanical-page > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    body.botanical-page::before,
    body.botanical-page::after {
        width: 105px;
        background-size: 105px 716px;
        opacity: 0.52;
    }
}

@media (max-width: 600px) {
    body.botanical-page::before,
    body.botanical-page::after {
        width: 58px;
        background-size: 75px 511px;
        opacity: 0.38;
    }
}

/* Исправление модального окна прайс-листов */
#priceListModal.price-list-modal {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    width: 100vw !important;
    height: 100vh !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    margin: 0 !important;
}

#priceListModal.price-list-modal.is-open {
    display: flex !important;
}

#priceListModal .price-list-modal-card {
    position: relative !important;
    z-index: 1 !important;
    margin: auto !important;
}