/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e79823;
    --primary-dark: #d6891f;
    --secondary-color: #1e1e1e;
    --background-color: #e3e3e3;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.15);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Always Black Text */
.header {
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 100px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.header.scrolled {
    background: linear-gradient(0.367turn, rgba(238,199,25,1) 0%, rgba(255,147,0,1) 84%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo__img {
    height: 70px;
    width: auto;
}

.logo__text {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.header.scrolled .logo__text {
    color: var(--secondary-color);
    text-shadow: none;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav__link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 18px;
    font-family: 'Yanone Kaffeesatz', sans-serif;
}

.header.scrolled .nav__link {
    color: var(--secondary-color);
    text-shadow: none;
}

.nav__link:hover,
.nav__link.active {
    background-color: rgba(231, 152, 35, 0.1);
    color: var(--primary-color);
}

.header.scrolled .nav__link:hover,
.header.scrolled .nav__link.active {
    background-color: rgba(255,255,255,0.2);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Admin Link Styles */
.admin-link {
    padding: 12px !important;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background-color: rgba(231, 152, 35, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.admin-link:hover {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    transform: scale(1.1);
}

.admin-link i {
    font-size: 18px;
}

.header.scrolled .admin-link {
    background-color: rgba(255, 255, 255, 0.2);
}

.header.scrolled .admin-link:hover {
    background-color: var(--white) !important;
    color: var(--secondary-color) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .admin-link {
        display: none;
    }
}

/* Hero Slider */
.hero {
    margin-top: 100px;
    height: 700px;
    position: relative;
    background: var(--background-color);
    overflow: visible;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 100px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide__content {
    flex: 1;
    max-width: 600px;
}

.slide__title {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--secondary-color);
    line-height: 1.1;
}

.slide__description {
    font-size: 22px;
    margin-bottom: 40px;
    color: var(--text-light);
    line-height: 1.6;
}

.slide__image {
    flex: 1;
    text-align: center;
}

.slide__image img {
    max-width: 100%;
    height: 500px;
    object-fit: contain;
    border-radius: 15px;
}

.hero__indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background-color: var(--primary-color);
    border-color: var(--white);
    transform: scale(1.3);
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(231, 152, 35, 0.3);
}

.slider-arrow:hover {
    background-color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(231, 152, 35, 0.5);
}

.slider-arrow--prev {
    left: 30px;
}

.slider-arrow--next {
    right: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-arrow--prev {
        left: 15px;
    }

    .slider-arrow--next {
        right: 15px;
    }
}

/* Buttons */
.btn {
    padding: 16px 40px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 152, 35, 0.4);
}

.btn--outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 152, 35, 0.3);
}

.btn--small {
    padding: 10px 25px;
    font-size: 14px;
}

.btn--sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Section Titles */
.section-title {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 52px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about {
    position: relative;
    padding: 120px 0;
    background-color: var(--background-color);
    overflow: hidden;
}

.about__content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.about__text {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 50px;
    color: var(--text-light);
}

.about__text p {
    margin-bottom: 25px;
}

.about__buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.about__decoration {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    z-index: 1;
}

.about__decoration--left {
    background-color: var(--primary-color);
    top: 100px;
    left: -150px;
    box-shadow: 0 0 250px 180px var(--primary-color);
}

.about__decoration--right {
    background-color: var(--primary-color);
    bottom: 100px;
    right: -150px;
    box-shadow: 0 0 250px 180px var(--primary-color);
}

/* Advantages Section */
.advantages {
    padding: 120px 0;
    background: var(--white);
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.advantage__card {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* temperature filter styles removed (reverted) */

.advantage__icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 32px;
}

.advantage__card h3 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.advantage__card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Gallery Section - Full Width Auto Slider */
.gallery {
    padding: 20px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.gallery__slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.gallery__track {
    display: flex;
    animation: galleryScroll 30s linear infinite;
    width: max-content;
}

.gallery__slide {
    flex: 0 0 auto;
    height: auto;
    margin: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 400px;
}

.gallery__slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.gallery__slide:hover img {
    transform: scale(1.05);
}

.gallery__indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.gallery__indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery__indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

@keyframes galleryScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-66.666%); }
}

/* Pause gallery animation on hover */
.gallery__slider:hover .gallery__track {
    animation-play-state: paused;
}

/* Clients Section - Single Line Auto Slider */
.clients {
    padding: 80px 0;
    background: var(--background-color);
}

.clients__slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.clients__track {
    display: flex;
    animation: clientsScroll 40s linear infinite;
    width: max-content;
}

.client__item {
    flex: 0 0 200px;
    height: 100px;
    margin: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.client__item:hover {
    transform: translateY(-5px);
}

.client__item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client__item:hover img {
    filter: grayscale(0%);
}

@keyframes clientsScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause clients animation on hover */
.clients__slider:hover .clients__track {
    animation-play-state: paused;
}

/* Contacts Section - UPDATED */
.contacts {
    padding: 120px 0;
    background-color: var(--background-color);
}

.contacts__content {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Карта занимает больше места */
    gap: 60px;
    align-items: start;
    min-height: 500px; /* Минимальная высота для выравнивания */
}

.contacts__info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 100%;
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    height: fit-content;
}

.contact__item:hover {
    transform: translateX(10px);
}

.contact__item i {
    color: var(--primary-color);
    font-size: 24px;
    margin-top: 5px;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}

.contact__item div {
    flex: 1;
}

.contact__item strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-family: 'Yanone Kaffeesatz', sans-serif;
}

.contact__item span {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
}

.contacts__map {
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* Контактная информация в две колонки для компактности */
.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.contact-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card__icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--white);
    font-size: 20px;
}

.contact-card__title {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.contact-card__content {
    color: var(--text-light);
    line-height: 1.6;
}

/* Адаптивность для контактов */
@media (max-width: 1200px) {
    .contacts__content {
        grid-template-columns: 1fr 1.2fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .contacts__content {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
    }

    .contacts__map {
        height: 300px;
        order: -1; /* Карта сверху на мобильных */
    }

    .contacts__info {
        gap: 20px;
    }

    .contact__item {
        padding: 20px;
    }

    .contacts__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .contacts__map {
        height: 250px;
    }
    
    .contact__item {
        padding: 15px;
        gap: 15px;
    }
    
    .contact__item i {
        font-size: 20px;
    }
    
    .contact__item strong {
        font-size: 16px;
    }
    
    .contact__item span {
        font-size: 14px;
    }
}

/* Footer */
.footer {
    background-color: #171717;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    justify-items: start;
}

.footer__content > div:last-child {
    justify-self: end;
}

.footer__logo-link {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer__logo-link img {
    height: 60px;
    width: auto;
}

.footer__logo-text {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
}

.footer__description {
    color: #ccc;
    line-height: 1.6;
    font-size: 16px;
}

.footer__menu h3,
.footer__docs h3,
.footer__contacts h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 24px;
    font-family: 'Yanone Kaffeesatz', sans-serif;
}

.footer__menu a,
.footer__docs a {
    display: inline-block;
    color: #ccc;
    text-decoration: none;
    margin-right: 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.footer__menu a:hover,
.footer__docs a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #ccc;
    font-size: 16px;
}

.footer__contact-item i {
    color: var(--primary-color);
    width: 20px;
}

.footer__bottom {
    border-top: 1px solid #333;
    padding-top: 25px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    display: none;
    justify-content: space-around;
    padding: 15px 0;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-menu__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 12px;
    gap: 6px;
    transition: color 0.3s ease;
}

.mobile-menu__item i {
    font-size: 20px;
}

.mobile-menu__item.active {
    color: var(--primary-color);
}

.mobile-menu__item:hover {
    color: var(--primary-color);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-widget__button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(231, 152, 35, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-widget__button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(231, 152, 35, 0.6);
}

.chat-widget__popup {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 350px;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 25px;
    display: none;
    animation: slideUp 0.3s ease;
}

.chat-widget__popup.active {
    display: block;
}

.chat-widget__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.chat-widget__header h3 {
    color: var(--secondary-color);
    font-size: 20px;
    font-family: 'Yanone Kaffeesatz', sans-serif;
}

.chat-widget__close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.chat-widget__close:hover {
    color: var(--primary-color);
}

.chat-widget__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.chat-widget__form input {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.chat-widget__form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(231, 152, 35, 0.1);
}

/* ==================== */
/* UPDATED CATALOG STYLES - FIXED Z-INDEX */
/* ==================== */

/* Page Hero Styles */
.page-hero {
    margin-top: 100px;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.page-hero__title {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-hero__description {
    font-size: 20px;
    opacity: 0.9;
}

/* Catalog Filters Layout */
.catalog-filters {
    padding: 40px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
}

.filters__layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
}

.filters__main {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overflow-x: clip;
    z-index: 10;
}

.filters__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.filters__header h2 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 28px;
    color: var(--secondary-color);
    margin: 0;
}

/* Search and Sort */
.filters__search-sort {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.search-box {
    position: relative;
    margin-bottom: 15px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 12px;
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(231, 152, 35, 0.1);
}

.search-box__button {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin-top: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.search-box__button:hover {
    background-color: #e67e22;
}

.search-box__button:active {
    transform: scale(0.98);
}

/* Temperature presets and slider */
.temperature-presets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.preset-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-color);
}
.preset-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
}
.range-slider {
    position: relative;
    height: 36px;
    margin-bottom: 8px;
}
.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}
.range-inputs {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.range-input label { font-size: 13px; color: var(--text-light); margin-right:6px; }
.range-input input[type="number"] { width: 110px; padding:6px 8px; border:1px solid var(--border-color); border-radius:6px; }

/* Filter Groups */
.filters__groups {
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.filter-group {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h3 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    position: relative;
    z-index: 1;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.filter-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.3s ease;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.filter-checkbox:hover {
    color: var(--primary-color);
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.filter-checkbox span {
    flex: 1;
    line-height: 1.4;
}

/* Temperature Presets Radio Buttons */
.temp-presets {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label.filter-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    font-size: 14px;
    user-select: none;
}

label.filter-radio:hover {
    color: var(--primary-color);
}

label.filter-radio input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    accent-color: var(--primary-color) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: 2px solid #999 !important;
    border-radius: 50% !important;
    background: #fff !important;
    transition: all 0.2s ease !important;
}

label.filter-radio input[type="radio"]:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 4px rgba(231, 152, 35, 0.3) !important;
}

label.filter-radio input[type="radio"]:checked {
    border-color: var(--primary-color) !important;
    background: var(--primary-color) !important;
    box-shadow: none !important;
}

label.filter-radio span {
    line-height: 1.4;
    color: var(--text-color);
    transition: color 0.2s ease;
}

label.filter-radio input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 500;
}

/* Temperature Range Slider */
.temperature-range {
    padding: 20px 0;
}

.range-slider {
    position: relative;
    height: 40px;
    margin: 20px 0;
}

.range-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #3498db, #e74c3c);
    border-radius: 3px;
    transform: translateY(-50%);
}

.range-min, .range-max {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: transparent;
    pointer-events: none;
    transform: translateY(-50%);
    -webkit-appearance: none;
}

.range-min::-webkit-slider-thumb,
.range-max::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    pointer-events: all;
    border: 3px solid var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.range-min::-moz-range-thumb,
.range-max::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    pointer-events: all;
    border: 3px solid var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.range-inputs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.range-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.range-input label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

.range-input input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.range-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-light);
}

/* ==================== */
/* FIXED FILTER TOOLTIP STYLES */
/* ==================== */

.filter-tooltip {
    position: relative;
    display: inline-flex;
    margin-left: 8px;
    color: var(--primary-color);
    cursor: help;
    z-index: 100;
}

.filter-tooltip i {
    font-size: 14px;
    transition: color 0.3s ease;
}

.filter-tooltip:hover i {
    color: var(--primary-dark);
}

.filter-tooltip .tooltip-content {
    position: fixed;
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-hover);
    pointer-events: none;
    text-align: left;
    white-space: normal;
}

.filter-tooltip .tooltip-content::after {
    content: '';
    position: absolute;
    border: 6px solid transparent;
}

/* Позиционирование справа от иконки */
.filter-tooltip.right-tooltip .tooltip-content {
    top: 50vh;
    left: calc(50vw + 200px);
    transform: translateY(-50%) translateX(-10px);
}

.filter-tooltip.right-tooltip .tooltip-content::after {
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    border-right-color: var(--secondary-color);
    border-left: none;
}

.filter-tooltip.right-tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* ==================== */
/* SORTING STYLES */
/* ==================== */

.sort-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sort-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
    white-space: nowrap;
}

.filter-select {
    padding: 10px 35px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.5L1.5 4h9L6 8.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 200px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(231, 152, 35, 0.1);
}

.filter-select:hover {
    border-color: var(--primary-color);
}

/* Mobile sorting */
.mobile-sort {
    display: none;
    width: 100%;
}

.mobile-sort .filter-select {
    width: 100%;
    min-width: auto;
}

/* Enhanced results info with sorting */
.results__info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.results__info .sort-group {
    margin-left: auto;
}

/* Results Section */
.results__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

#resultsCount {
    font-weight: 600;
    color: var(--text-color);
}

#toggleFilters {
    display: none;
}

/* Catalog Grid */
.catalog {
    padding: 60px 0;
    background: var(--background-color);
}

.catalog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* PRODUCT CARD STYLES - FIXED FOOTER ALIGNMENT */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-card__image {
    height: 250px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__no-image {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f2f4f8;
    color: var(--text-light);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-card__no-image i {
    font-size: 32px;
    color: var(--primary-color);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Thumbnail gallery inside card image area */
.product-card__thumbs {
    display: flex;
    gap: 6px;
    padding: 8px;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    overflow: auto;
}
.product-card__thumbs .thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex: 0 0 auto;
}
.product-card__image > .thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card__image .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-card__thumbs {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: flex;
    gap: 8px;
    z-index: 3;
    background: rgba(255,255,255,0.85);
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.product-card__thumbs .thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.9);
}
.product-card__thumbs .thumb:hover {
    transform: scale(1.04);
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 16, 31, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-card__overlay {
    opacity: 1;
}

.product-card__overlay--no-image {
    opacity: 1;
    background: rgba(7, 16, 31, 0.6);
}

.product-card__no-image-label {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.product-card__content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
}

.product-card__category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
    line-height: 1.3;
}

.product-card__sku {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.product-card__description {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 14px;
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
}

.product-card__description-toggle {
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 15px;
    color: var(--primary-color);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    text-decoration: underline;
}

.product-card__description-toggle:hover {
    color: var(--secondary-color);
}

.product-card__characteristics {
    margin-bottom: 20px;
}

.characteristic {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.characteristic:last-child {
    border-bottom: none;
}

.characteristic__label {
    color: var(--text-color);
    font-weight: 500;
}

.characteristic__value {
    color: var(--text-light);
    text-align: right;
}

.product-card__footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.product-card__price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.product-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-card__actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    font-size: 14px;
}

/* Pagination */
.catalog__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.pagination__btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination__btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination__numbers {
    display: flex;
    gap: 8px;
}

.pagination__number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.pagination__number.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination__number:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination__ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-light);
}

/* Product Popup */
.product-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-popup.active {
    display: flex;
}

.product-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.product-popup__content {
    background: var(--white);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    z-index: 2001;
    animation: slideUp 0.3s ease;
}

.product-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    color: #333;
    transition: all 0.3s ease;
    z-index: 2002;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-popup__close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.product-popup__body {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.popup__content {
    display: grid;
    grid-template-columns: 500px 500px;
    gap: 40px;
    align-items: start;
}

.popup__info {
    min-width: 0;
}

.popup__gallery {
    position: relative;
    flex-shrink: 0;
    width: 500px;
    min-width: 500px;
}

.popup__main-image {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    position: relative;
}

.popup__main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.popup__thumbnails-wrapper {
    max-height: 120px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.popup__thumbnails {
    display: flex;
    gap: 10px;
    overflow: hidden;
    max-height: 100px;
    transition: transform 0.3s ease;
    flex: 1;
}

.popup__thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #ddd;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.popup__thumbnail.selected {
    border-color: var(--primary-color);
}

.popup__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup__carousel-next {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    margin-left: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.popup__carousel-next:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.popup__nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.popup__nav-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.popup__nav-prev {
    left: 15px;
}

.popup__nav-next {
    right: 15px;
}

.popup__photo-counter {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.popup__info h1 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.popup__price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* .popup__description base styles moved later to keep a single source of truth */

.popup__specs {
    margin-bottom: 25px;
}

.popup__spec {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.popup__spec:last-child {
    border-bottom: none;
}

.popup__spec strong {
    color: var(--text-color);
}

.popup__actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Consultation Section */
.consultation {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}

.consultation__content h2 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.consultation__content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.consultation__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Loading States */
.catalog__loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.catalog__loading i {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.catalog__empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.catalog__empty i {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.catalog__empty h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.catalog__empty p {
    margin-bottom: 20px;
}

/* Form Messages */
.form-message {
    display: none;
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    background: rgba(7, 16, 31, 0.04);
    border: 1px solid transparent;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-message.success {
    display: block;
    background: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.4);
    color: #148944;
}

.form-message.error {
    display: block;
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.4);
    color: #b1392b;
}

/* ==================== */
/* BLOG PAGE STYLES */
/* ==================== */

.blog {
    padding: 80px 0;
    background: var(--background-color);
}

.blog__featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured__image {
    height: 400px;
}

.featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured__content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article__category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.article__title {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.article__excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 25px;
}

.article__meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--text-light);
}

.article__meta i {
    margin-right: 5px;
}

.blog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.blog__card:hover {
    transform: translateY(-5px);
}

.blog-card__image {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog__card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
    line-height: 1.4;
}

.blog-card__excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1;
}

.blog-card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.blog-card__link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.blog-card__link:hover {
    color: var(--primary-dark);
}

.blog__card .btn {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Blog Pagination */
.blog__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pagination__btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination__btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination__numbers {
    display: flex;
    gap: 8px;
}

.pagination__number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination__number.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination__number:hover:not(.active) {
    border-color: var(--primary-color);
}

.pagination__ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

/* ==================== */
/* DOCUMENTS PAGE STYLES */
/* ==================== */

/* Documents Navigation */
.documents-nav {
    padding: 30px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.documents-nav__content {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.documents-nav__link {
    padding: 12px 25px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.documents-nav__link.active,
.documents-nav__link:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Documents Sections */
.documents-section {
    padding: 80px 0;
    background: var(--background-color);
}

.documents-section__title {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 42px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.document-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    display: flex;
    gap: 20px;
}

.document-card:hover {
    transform: translateY(-5px);
}

.document-card__icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.document-card__content {
    flex: 1;
}

.document-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.document-card__description {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.document-card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.document-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__content {
    background: var(--white);
    border-radius: 15px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal__title {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 24px;
    color: var(--secondary-color);
}

.modal__close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.modal__close:hover {
    color: var(--primary-color);
}

.modal__body {
    padding: 25px;
}

.modal__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;

/* Highlight for recently updated product */
.highlight-updated {
    box-shadow: 0 0 0 4px rgba(231,152,35,0.18), 0 10px 30px rgba(231,152,35,0.08);
    transition: box-shadow 0.3s ease, transform 0.25s ease;
    transform: translateY(-6px);
}
}

/* ==================== */
/* ANIMATIONS & UTILITIES */
/* ==================== */

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Focus States for Accessibility */
button:focus,
input:focus,
a:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

/* Print Styles */
@media print {
    .chat-widget,
    .mobile-menu {
        display: none !important;
    }
    
    .header {
        position: static;
        box-shadow: none;
    }
    
    .hero {
        margin-top: 0;
    }
}

/* ==================== */
/* FIXED MOBILE FILTERS OVERLAY */
/* ==================== */

.filters__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.filters__overlay.active {
    display: block;
}

/* ==================== */
/* RESPONSIVE DESIGN */
/* ==================== */

@media (max-width: 1200px) {
    .slide {
        padding: 0 50px;
    }
    
    .gallery__slide {
        flex: 0 0 50%;
    }
    
    @keyframes galleryScroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-100%); }
    }
    
    .footer__content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .filters__layout {
        grid-template-columns: 280px 1fr;
    }
    
    .popup__content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Contacts Responsive */
    .contacts__content {
        grid-template-columns: 1fr 1.5fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        height: 80px;
    }

    .header__content {
        height: 80px;
    }

    .logo__text {
        font-size: 24px;
    }

    .nav {
        display: none;
    }

    .hero {
        margin-top: 80px;
        height: 500px;
    }

    .slide {
        padding: 0 20px;
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .slide__title {
        font-size: 36px;
    }

    .slide__description {
        font-size: 16px;
    }

    .slide__image img {
        height: 250px;
    }

    .section-title {
        font-size: 36px;
    }

    .gallery__slide {
        flex: 0 0 100%;
        height: 300px;
    }

    .client__item {
        flex: 0 0 150px;
        height: 80px;
        margin: 0 20px;
    }

    /* Contacts Mobile */
    .contacts__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacts__map {
        height: 300px;
        order: -1; /* Карта сверху на мобильных */
    }

    .contacts__info {
        gap: 20px;
    }

    .contact__item {
        padding: 20px;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__logo-text {
        font-size: 28px;
    }

    .mobile-menu {
        display: flex;
    }

    .chat-widget {
        bottom: 90px;
        right: 20px;
    }

    .chat-widget__popup {
        width: 300px;
        right: -20px;
    }
    
    /* Catalog Responsive */
    .page-hero {
        margin-top: 80px;
        padding: 60px 0;
    }
    
    .page-hero__title {
        font-size: 36px;
    }
    
    .filters__layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filters__main {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        max-height: none;
        border-radius: 0;
        display: block;
    }
    
    .filters__main.active {
        transform: translateX(0);
    }
    
    #toggleFilters {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .filter-select {
        min-width: auto;
    }
    
    .catalog__grid {
        grid-template-columns: 1fr;
    }
    
    .results__header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .results__info {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .results__info .sort-group {
        margin-left: 0;
        width: 100%;
    }
    
    .desktop-sort {
        display: none;
    }
    
    .mobile-sort {
        display: block;
    }
    
    /* Filter tooltips mobile */
    .filter-tooltip .tooltip-content {
        width: 250px;
        font-size: 11px;
        padding: 10px 12px;
        left: auto;
        right: 0;
        transform: translateY(-50%) translateX(0);
    }
    
    .filter-tooltip .tooltip-content::after {
        left: auto;
        right: -6px;
        border-right-color: transparent;
        border-left-color: var(--secondary-color);
    }
    
    .filter-tooltip:hover .tooltip-content {
        transform: translateY(-50%) translateX(-5px);
    }
    
    /* Blog Responsive */
    .blog__featured {
        grid-template-columns: 1fr;
    }
    
    .featured__image {
        height: 250px;
    }
    
    .featured__content {
        padding: 25px;
    }
    
    .article__title {
        font-size: 28px;
    }
    
    .blog__grid {
        grid-template-columns: 1fr;
    }
    
    /* Documents Responsive */
    .documents-nav__content {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .document-card {
        flex-direction: column;
        text-align: center;
    }
    
    .document-card__actions {
        justify-content: center;
    }
    
    .consultation__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .consultation__buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .advantages__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-popup__body {
        padding: 20px;
    }
    
    .popup__actions {
        flex-direction: column;
    }
    
    .popup__actions .btn {
        width: 100%;
    }
    
    .catalog__pagination {
        flex-wrap: wrap;
    }
    
    /* Product Card Mobile */
    .product-card__actions {
        flex-direction: column;
    }
    
    .product-card__actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .slide__title {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .logo__text {
        font-size: 20px;
    }

    .footer__logo-text {
        font-size: 24px;
    }

    .client__item {
        flex: 0 0 120px;
        height: 70px;
        margin: 0 15px;
    }

    .chat-widget__popup {
        width: 280px;
        right: -40px;
    }
    
    .gallery__slide {
        height: 250px;
    }
    
    .about__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about__buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .blog__pagination {
        flex-wrap: wrap;
    }
    
    .document-card__actions {
        flex-direction: column;
    }
    
    .document-card__actions .btn {
        width: 100%;
    }
    
    .page-hero__title {
        font-size: 28px;
    }
    
    .popup__thumbnails {
        justify-content: center;
    }
    
    .range-inputs {
        flex-direction: column;
    }

}
/* Temperature Range Slider Styles */
.range-slider {
    position: relative;
    height: 40px;
    margin: 20px 0;
}

.range-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #3498db, #e74c3c);
    border-radius: 3px;
    transform: translateY(-50%);
}

.range-min, .range-max {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: transparent;
    pointer-events: none;
    transform: translateY(-50%);
    -webkit-appearance: none;
}

.range-min::-webkit-slider-thumb,
.range-max::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    pointer-events: all;
    border: 3px solid var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.range-min::-moz-range-thumb,
.range-max::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    pointer-events: all;
    border: 3px solid var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.range-inputs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.range-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.range-input label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

.range-input input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.range-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

.results__info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.results__info .sort-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
/* Enhanced Product Popup */
.product-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.product-popup.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.product-popup__content {
    background: var(--white);
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    z-index: 2001;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.product-popup__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-color);
    transition: all 0.3s ease;
    z-index: 2002;
    box-shadow: var(--shadow-hover);
}

.product-popup__close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg) scale(1.1);
}

.product-popup__body {
    padding: 0;
}

.popup__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 600px;
}

.popup__gallery {
    background: #f8f9fa;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.popup__main-image {
    width: 100%;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup__main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.popup__thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
}

.popup__thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup__thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.popup__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup__info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 600px;
}

.popup__badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popup__info h1 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.popup__price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup__price .old-price {
    font-size: 20px;
    color: var(--text-light);
    text-decoration: line-through;
}

.popup__description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 16px;
    max-height: none;
    overflow: visible;
    position: relative;
    transition: max-height 0.25s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.popup__description .short-desc {
    display: block !important;
    visibility: visible !important;
}

.popup__description .full-desc {
    display: none !important;
}

.popup__description.expanded {
    max-height: none;
    overflow: visible;
}

.popup__description.expanded .short-desc {
    display: none !important;
}

.popup__description.expanded .full-desc {
    display: block !important;
}

/* Button style for description toggle */
.btn--link {
    appearance: none;
    border: none;
    background: #f1f3f5;
    color: var(--secondary-color);
    padding: 12px 22px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}
.btn--link:hover {
    background: #e9ecef;
}

@media (max-width: 768px) {
    .popup__description { max-height: 120px; }
}

.popup__specs {
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.popup__spec {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.popup__spec:last-child {
    border-bottom: none;
}

.popup__spec strong {
    color: var(--text-color);
    font-weight: 600;
}

.popup__spec span {
    color: var(--text-light);
    text-align: right;
    font-weight: 500;
}

.popup__features {
    margin-bottom: 30px;
}

.popup__features h3 {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.popup__features ul {
    list-style: none;
    padding: 0;
}

.popup__features li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.popup__features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.popup__actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.popup__actions .btn {
    flex: 1;
    min-width: 160px;
}

/* Enhanced Temperature Range Slider */
.temperature-range {
    padding: 20px 0;
}

.range-slider {
    position: relative;
    height: 50px;
    margin: 20px 0;
}

.range-track {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 8px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f1c40f, #e74c3c);
    border-radius: 4px;
    transform: translateY(-50%);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.range-min, .range-max {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    height: 8px;
    background: transparent;
    pointer-events: none;
    transform: translateY(-50%);
    -webkit-appearance: none;
    margin: 0;
}

.range-min::-webkit-slider-thumb,
.range-max::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    pointer-events: all;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.range-min::-webkit-slider-thumb:hover,
.range-max::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 152, 35, 0.4);
}

.range-min::-moz-range-thumb,
.range-max::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    pointer-events: all;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.range-min::-moz-range-thumb:hover,
.range-max::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 152, 35, 0.4);
}

.range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.range-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#sortSelect {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--white);
    font-weight: 600;
}
#sortSelect:focus {
    outline: none;
    box-shadow: 0 4px 14px rgba(102,126,234,0.12);
    border-color: var(--primary-color);
}

.range-input label {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 600;
}

.range-input input {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--white);
}

.range-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 152, 35, 0.1);
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 600;
}

.range-values span {
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    min-width: 80px;
    text-align: center;
}

/* Temperature color indicators */
.temp-indicator {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-light);
}

.temp-indicator span {
    flex: 1;
    text-align: center;
}

.temp-indicator span:nth-child(1) { color: #3498db; }
.temp-indicator span:nth-child(2) { color: #2ecc71; }
.temp-indicator span:nth-child(3) { color: #f1c40f; }
.temp-indicator span:nth-child(4) { color: #e67e22; }
.temp-indicator span:nth-child(5) { color: #e74c3c; }

/* Responsive Popup */
@media (max-width: 768px) {
    .popup__content {
        grid-template-columns: 1fr;
        max-height: 80vh;
    }
    
    .popup__gallery {
        padding: 25px;
    }

    .popup__nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .popup__photo-counter {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    /* Contacts Mobile Small */
    .contacts__map {
        height: 250px;
    }
    
    .contact__item {
        padding: 15px;
        gap: 15px;
    }
    
    .contact__item i {
        font-size: 20px;
    }
}

/* Fullscreen Image Viewer */
.image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
}

.image-viewer.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.image-viewer__content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}

.image-viewer__main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    position: relative;
}

.image-viewer__main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
}

.image-viewer__title {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    max-width: 80%;
    text-align: center;
    word-wrap: break-word;
    font-size: 14px;
    z-index: 2010;
    white-space: normal;
    min-height: 20px;
}

.image-viewer__title:empty {
    display: none;
}

.image-viewer__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: #333;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2010;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.image-viewer__close:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 140, 0, 0.4);
    transform: scale(1.1);
}