/* ==========================================================================
   ШАПКА (HEADER)
   ========================================================================== */

.t-sociallinks__svg path {
    transition: fill 0.2s ease-in-out !important;
}

.t-sociallinks__item:hover .t-sociallinks__svg path {
    fill: #63b345 !important;
}

/* Адаптив: Логотип в мобильном меню (до 980px) */
@media screen and (max-width: 980px) {
    .tmenu-mobile__imglogo {
        max-width: 115px !important;
        width: 115px !important;
        height: auto !important;
    }
}

/* ==========================================================================
   ФУТЕР (ОБЩИЙ БЛОК)
   ========================================================================== */

.uc-custom-footer {
    border-radius: 0 !important;
    border: none !important;
    -webkit-clip-path: ellipse(150% 100% at 50% 100%);
    clip-path: ellipse(150% 100% at 50% 100%);
    overflow: hidden !important;
    z-index: 1; 
}

/* Адаптив: Смартфоны (до 640px) */
@media screen and (max-width: 640px) {
    .uc-custom-footer {
        -webkit-clip-path: ellipse(220% 100% at 50% 100%) !important;
        clip-path: ellipse(220% 100% at 50% 100%) !important;
    }
}

/* Адаптив: Малые экраны (до 380px) */
@media screen and (max-width: 380px) {
    .uc-custom-footer {
        clip-path: ellipse(260% 100% at 50% 100%) !important;
    }
}

/* ==========================================================================
   ГЛАВНАЯ СТРАНИЦА
   ========================================================================== */

.uc-main-slider {
    border-radius: 0 !important;
    border: none !important;
    -webkit-clip-path: ellipse(130% 100% at 50% 0%);
    clip-path: ellipse(105% 100% at 50% 0%);
    overflow: hidden !important;
    z-index: 1; 
}

/* Адаптив: Планшеты (до 980px) */
@media screen and (max-width: 980px) {
    .tmenu-mobile__imglogo {
        max-width: 115px !important;
        width: 115px !important;
        height: auto !important;
    }
}

/* Адаптив: Смартфоны (до 640px) */
@media screen and (max-width: 640px) {
    .uc-main-slider {
        -webkit-clip-path: ellipse(220% 100% at 50% 0%) !important;
        clip-path: ellipse(220% 100% at 50% 0%) !important;
    }

    .uc-gallery .t-col .t-title,
    .uc-gallery .t-col .t-descr,
    .uc-gallery .t-col .t-text,
    .uc-gallery .t-col div {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        align-self: center !important;
    }
}

/* Адаптив: Малые экраны (до 380px) */
@media screen and (max-width: 380px) {
    .uc-main-slider {
        clip-path: ellipse(260% 100% at 50% 0%) !important;
    }

    .uc-custom-footer {
        clip-path: ellipse(260% 100% at 50% 100%) !important;
    }
}

/* ==========================================================================
   КАТАЛОГ (CATALOG)
   ========================================================================== */

.uc-product-catalog .t951__sidebar-wrapper .t-store__filter__item-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #316447 !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 8px !important;
}

.uc-product-catalog .t951__cont-wrapper .t-store__filter__title, 
.uc-product-catalog .t951__cont-wrapper .t-store__parts-tree-btn-title,
.uc-product-catalog .t951__cont-wrapper .t-store__parts-switch-btn {
    text-decoration: none;
    font-size: 1.1rem !important;
    transition: color 0.3s !important;
}

.uc-product-catalog .t951__cont-wrapper .t-store__filter__title:hover, 
.uc-product-catalog .t951__cont-wrapper .t-store__parts-tree-btn-title:hover {
    color: #1f6952 !important;
}

.uc-product-catalog .t951__cont-wrapper .t-store__parts-switch-btn.t-active {
    font-size: 1.1rem !important;
    opacity: 1 !important;
    color: #1f6952 !important;
    font-weight: normal;
}

.uc-product-catalog .t951__cont-wrapper .t-store__parts-switch-wrapper {
    margin-bottom: 25px !important;
}

.t-store .t-store__card__descr {
    height: 3rem;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
}

.t-store .js-store-prod-name {
    height: auto;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
}

.t-store .t-store__card__textwrapper {
    display: grid !important;
    grid-template-rows: auto 1fr auto auto !important;
    min-height: 12rem !important; 
    gap: 1rem !important; 
}

.t-store .t-store__card__title,
.t-store .t-store__card__descr,
.t-store .t-store__card__price-wrapper {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.store__card__wrap_txt-and-opts.store__card__has-btns {
    margin-bottom: 0 !important;
}

.t-store__card__btns-wrapper--quantity .t-store__prod__quantity {
    background-color: #fcfcf9 !important;
}

.uc-product-catalog .t-store__card__imgwrapper {
    border-radius: 20px !important;
    overflow: hidden !important;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.uc-product-catalog .t-store__card__bgimg {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
    will-change: transform;
}

.uc-product-catalog .t-store__card:hover .t-store__card__bgimg {
    transform: scale(1.04) !important;
}

.uc-product-catalog .t-store__card {
    transition: box-shadow 0.4s ease;
    border-radius: 20px;
}

@media screen and (max-width: 960px) {
    
    .t-store__filter__controls-wrapper {
        justify-content: center !important;
    }
    
        .t-store__filter__item:first-child, .t-store__filter__item {
        border-top: none !important;
        border-bottom: none !important;
    }
    
    .t-store__card .t-typography__descr {
        padding: 0 50px;
    }
    
}

/* ==========================================================================
   ФОРМА ЗАКАЗА / КОНТАКТОВ (CONTACT FORM)
   ========================================================================== */

.uc-contact-form .t-input-title.t-descr.t-descr_md {
    font-size: 16px !important;
}

.uc-contact-form .t-input {
    height: 50px !important;
}

.uc-contact-form .t-input:focus,
.uc-contact-form .t-input-phonemask__wrap:focus-within {
    border: 1px solid #1f6952 !important;
    box-shadow: 0 4px 12px rgba(49, 100, 71, 0.05) !important;
}

.uc-contact-form .t-input-phonemask:focus {
    border: none !important; 
    box-shadow: none !important;
}

.uc-contact-form .t-inputquantity__btn svg {
    fill: #1f6952 !important;
}

/* ==========================================================================
   ДОСТАВКА (DELIVERY)
   ========================================================================== */

.uc-cart-delivery {
    border-radius: 60px 15px 60px 15px;
    border: 1px solid transparent;
    overflow: hidden; 
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
}

.uc-cart-delivery:hover {
    transform: translateY(-10px);
    border-color: #1f6952;
    box-shadow: 0 20px 40px rgba(49, 100, 71, 0.08);
}

.uc-number-background * {
    transition: color 0.4s ease;
}

.uc-cart-delivery:hover .uc-number-background * {
    color: #1f6952;
}

/* ==========================================================================
   СКИДКИ И МЕТКИ (DISCOUNTS / LABELS)
   ========================================================================== */

.uc-label-catalog .t754__mark {
    font-family: 'Montserrat', sans-serif !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(212, 108, 108, 0.4) !important;
    transform: rotate(-10deg) !important;
    z-index: 9 !important;
}

.uc-label-catalog .t754__price_old {
    margin-left: 10px !important;
}

/* ==========================================================================
   О НАС (ABOUT US)
   ========================================================================== */

.uc-image-founder {
    transition: transform 0.5s ease;
}

.uc-image-founder:hover {
    transform: scale(1.03);
}

/* ==========================================================================
   КОНТАКТЫ (CONTACTS / MAP)
   ========================================================================== */

.map-container {
    width: 100%;
    margin-left: -20px !important;
    border-radius: 30px; 
    overflow: hidden; 
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    aspect-ratio: 16 / 9; 
    position: relative;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.uc-cart-delivery {
    box-sizing: border-box;
    border-radius: 80px 15px 80px 15px;
    border: 1px solid transparent;
    overflow: hidden; 
    box-shadow: 20px 20px 60px rgba(49, 100, 71, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.uc-cart-delivery:hover {
    border-color: #1f6952;
    box-shadow: 0 20px 40px rgba(49, 100, 71, 0.08);
}

.uc-number-background * {
    transition: color 0.4s ease;
}

.uc-cart-delivery:hover .uc-number-background * {
    color: #1f6952;
}

.uc-google-map {
    z-index: 0 !important;
}

@media (max-width: 768px) {
    .map-container {
        margin-left: 0 !important; 
        width: 100% !important;
        aspect-ratio: 1 / 1.2; 
        max-height: 400px;
    }
}

/* ==========================================================================
   КАСТОМНЫЙ СЛАЙДЕР (HOME PAGE SLIDER)
   ========================================================================== */

.custom-hero-slider {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background-color: #fcfcf9;
    padding: 0; 
    box-sizing: border-box;
}

.slider-track {
    position: relative;
    min-height: 800px; 
    width: 100%;
    max-width: 100%; 
    margin: 0 auto;
    z-index: 2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.leaf-decoration {
    position: absolute;
    top: 2%; 
    left: 5%;  
    z-index: 5;
    width: 600px; 
    height: auto;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-40px) rotate(-15deg);
    transition: all 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide.active .leaf-decoration {
    opacity: 0.3; 
    transform: translateX(0) rotate(0deg);
}

.leaf-decoration img {
    width: 100%;
    height: auto;
}

.slide-content {
    flex: 1;
    max-width: 500px;
    padding: 60px;
    position: relative;
    z-index: 10;
    margin-left: 8%;
    border-radius: 40px;
    background: transparent;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateX(0);
}

.slide-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(65px) saturate(150%) contrast(110%);
    -webkit-backdrop-filter: blur(65px) saturate(150%) contrast(110%);
    border: 2px solid rgba(255, 255, 255, 1);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.08);
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #1f6952;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.premium-badge::before {
    content: '';
    width: 6px; height: 6px;
    background-color: #1f6952;
    border-radius: 50%;
}

.slide-content h2 {
    font-family: 'Crimson Text', serif;
    font-size: 64px;
    font-weight: 400;
    color: #1f6952;
    margin: 0 0 25px 0;
    letter-spacing: -1px;
    line-height: 1.1;
}

.slide-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #599e89;
    margin: 0 0 40px 0;
}

.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: #1f6952;
    color: #fcfcf9 !important;
    text-decoration: none;
    padding: 18px 45px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
}

.btn-premium:hover {
    background-color: #63b345;
    transform: translateY(-3px);
}

.slide-image-wrapper {
    flex: 1.3;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
}

.premium-layers {
    position: relative;
    width: 700px; height: 700px; 
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.layer-back {
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    transform: scale(0.8) translateZ(-100px);
    transition: all 1.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.slide.active .layer-back {
    opacity: 0.4;
    transform: scale(1) translateZ(-50px);
}

.layer-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(45px) saturate(1.4);
}

.layer-front {
    position: relative;
    width: 580px; height: 580px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 3;
    box-shadow: 0 30px 70px rgba(0,0,0, 0.2);
    opacity: 0;
    transform: scale(0.9);
    transition: all 1.4s cubic-bezier(0.19, 1, 0.22, 1) 0.3s;
}

.slide.active .layer-front {
    opacity: 1;
    transform: scale(1);
}

.layer-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 2s ease 0.3s;
}

.slide.active .layer-front img {
    transform: scale(1);
}

.orbit-3d-container {
    position: absolute;
    width: 850px; height: 500px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotateX(75deg) rotateZ(15deg);
    transform-style: preserve-3d;
    z-index: 4;
    opacity: 0;
    transition: all 1.5s ease 0.3s;
}

.slide.active .orbit-3d-container {
    opacity: 1;
}

.ring-line {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1.5px solid rgba(31, 105, 82, 0.4);
    border-radius: 50%;
}

.slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px; height: 12px;
    background-color: transparent;
    border: 1px solid #b0b0b0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.dot.active {
    border-color: #1f6952;
    transform: scale(1.2);
}

.dot.active::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 6px; height: 6px;
    background-color: #1f6952;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .dot {
    width: 18px; height: 18px;
    }
    
    .custom-hero-slider {
        height: 700px !important;
        width: 100vw !important;
        max-width: 100vw !important;
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        padding: 30px 0 0 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .slider-track {
        height: 700px !important;
        width: 100% !important;
        min-height: auto !important; 
        display: block !important;
        padding-bottom: 80px !important;
        margin: 0 !important;
        left: 0 !important;
    }

    .slide { 
        width: 100% !important;
        position: absolute !important; 
        height: auto !important;
        left: 0 !important;
        transform: none !important;
        flex-direction: column-reverse !important; 
        justify-content: flex-end !important; 
        padding: 20px 0 0 0 !important;
        margin: 0 !important;
    }

    .slide.active {
        position: relative !important;
    }

    .slide-content { 
        width: 80vw !important; 
        max-width: 400px !important;
        margin: -30px auto 0 auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        padding: 30px 20px !important; 
        border-radius: 20px !important;
        text-align: center !important; 
        position: relative !important;
        z-index: 10 !important;
    }

    .slide-content::before {
        box-shadow: none !important;
    }

    .slide-image-wrapper {
        display: flex !important;
        justify-content: center !important;
        align-items: flex-start !important;
        height: 320px !important; 
        width: 100vw !important;
        margin: 10px 0 0 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .premium-layers { 
        width: 300px !important;
        height: 300px !important;
        transform: none !important;
        margin: 0 !important;
        left: 0 !important;
    }

    .layer-back {
        width: 300px !important;
        height: 300px !important;
    }

    .layer-front {
        width: 250px !important; 
        height: 250px !important;
    }

    .orbit-3d-container {
        display: none !important;
    }
    
    .leaf-decoration {
        width: 130vw !important; 
        left: -15vw !important;
        top: 5% !important;
        transform: none !important;
    }

    .slide.active .leaf-decoration {
        opacity: 0.12 !important;
        transform: none !important;
    }

    .premium-badge {
        margin-bottom: 12px !important;
        font-size: 10px !important;
        justify-content: center !important;
    }

    .slide-content h2 {
        font-size: 32px !important;
        margin-bottom: 15px !important;
    }

    .slide-content p {
        font-size: 14px !important;
        margin-bottom: 25px !important;
        line-height: 1.5 !important;
    }

    .btn-premium {
        padding: 16px 20px !important;
        font-size: 13px !important;
        width: 100% !important; 
        justify-content: center !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .slider-nav {
        bottom: 20px !important;
        width: 100vw !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 999 !important;
    }
}

/* ==========================================================================
   КОРЗИНА POP-UP
   ========================================================================== */
   
.t-radio__control {
    font-weight: 600 !important;
    font-size: 18px;
    display: flex !important;
    align-items: center !important;
    padding-left: 0 !important;
    margin-bottom: 14px !important;
}

.t-radio__indicator:after {
    background: #1f6952 !important;
}

/* ==========================================================================
   ГАЛЕРЕЯ (HOME PAGE)
   ========================================================================== */

@media (max-width: 768px) {
    .uc-gallery .t1148__item {
        min-width: 100% !important; 
        width: 100% !important;
    }

    .uc-gallery .t1148__img-wrapper {
        width: 100% !important;
        height: 450px !important;
        max-height: 65vh !important;
    }

    .uc-gallery .t1148__img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; 
        object-position: center !important; 
    }
  }