:root {
    --primary: #0056b3;
    --primary-light: #3a7fc5;
    --secondary: #ff6600;
    --accent: #ff5722;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --gray: #e0e0e0;
    --success: #28a745;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    box-shadow: none;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    height: 60px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.8em;
    color: var(--white);
}

.logo-text span {
    color: var(--primary);
}

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

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}

.phone-text {
    font-weight: 700;
    font-size: 1.2em;
    color: var(--dark);
    position: relative;
}

.phone-text::before {
    content: '☎';
    margin-right: 8px;
    color: var(--accent);
}

.hero {
    background: linear-gradient(rgba(0, 86, 179, 0.85), rgba(0, 51, 102, 0.70)), url('hero-bg.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 0;
    margin-top: -60px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    color: #ffcc00;
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.hero:hover h1 span::after {
    transform: scaleX(1);
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.promo-banner {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 500;
}

.promo-item i {
    color: var(--success);
}

.catalog {
    padding: 80px 0;
    background: white;
}

.catalog h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: var(--primary);
}

.special-offer {
    max-width: 800px;
    margin: 0 auto 20px;
}

.offer-card {
    background: linear-gradient(135deg, #0056b3, #3a7fc5);
    color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.2);
    transition: transform 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-3px);
}

.offer-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #ff6600;
    color: white;
    padding: 7px 35px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8em;
}

.pulse-slow {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.6); }
    100% { transform: scale(1); }
}

.offer-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.offer-card p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.countdown-item {
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    padding: 8px;
    min-width: 50px;
    backdrop-filter: blur(2px);
}

.countdown-item span:first-child {
    font-size: 1.3em;
    font-weight: 700;
    display: block;
}

.countdown-item span:last-child {
    font-size: 0.7em;
    opacity: 0.8;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.product-card {
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

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

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 1;
}

.product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.5s;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--dark);
}

.price {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1em;
    margin-bottom: 5px;
}

.specs {
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.specs i {
    color: var(--accent);
}

.product-details {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 30px;
    overflow-y: auto;
    display: none;
    color: white;
}

.product-details.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.product-details h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
}

.product-details ul {
    list-style: none;
    margin: 30px auto;
    max-width: 600px;
}

.product-details li {
    margin-bottom: 15px;
    font-size: 1.1em;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-details li strong {
    color: var(--accent);
    display: inline-block;
    min-width: 150px;
}

.btn-details {
    display: block;
    margin: 30px auto;
    max-width: 300px;
    text-align: center;
    background: var(--accent);
}

.close-details {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    color: white;
    border: none;
    font-size: 2em;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-details:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 10px;
    white-space: nowrap;
}

.product-type[data-type="inverter"] {
    background-color: #e3f7ff;
    color: #0056b3;
    border: 1px solid #0056b3;
}

.product-type[data-type="on-off"] {
    background-color: #fff8e6;
    color: #e67e00;
    border: 1px solid #e67e00;
}

.product-card-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
    grid-column: span 1;
}

.product-card-end h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary);
}

.product-card-end p {
    margin-bottom: 10px;
    color: var(--dark);
}

.logo-end {
    margin-top: 20px;
    font-weight: 700;
    font-size: 1.5em;
}

.logo-end span {
    color: white;
    background: var(--primary);
    padding: 0 5px;
    border-radius: 3px;
}

.features {
    padding: 80px 0;
    background: var(--light);
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5em;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-card p {
    color: #666;
}

.reviews {
    padding: 80px 0;
    background: white;
}

.reviews h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: var(--primary);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: var(--light);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.stars {
    color: #ffcc00;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.review-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--dark);
}

.author {
    font-weight: 600;
    color: var(--primary);
}

.date {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

.contacts {
    padding: 80px 0;
    background: var(--light);
}

.contacts h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: var(--primary);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.contact-card i {
    font-size: 2em;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.contact-card p {
    margin-bottom: 5px;
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}

.contact-card a:hover {
    color: var(--accent);
}

.contact-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--dark);
}

.contact-form-wrapper p {
    color: #666;
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.phone-input-wrapper {
    position: relative;
}

#phone {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s;
}

#phone:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}
.contact-form input[type="text"] {
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1em;
}

.contact-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
}

.form-note {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8em;
    color: #666;
    margin-top: 15px;
}

.form-note i {
    color: var(--success);
}

footer {
    background: var(--primary);
    color: white;
    padding: 30px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links h4 {
    margin-bottom: 15px;
    color: white;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-social h4 {
    margin-bottom: 15px;
    color: white;
}

.social {
    display: flex;
    gap: 15px;
}

.social a {
    color: white;
    font-size: 1.2em;
    transition: all 0.3s;
}

.social a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.developer-link {
    margin-top: 10px;
    font-size: 0.9em;
    color: white !important;
}

.developer-link a {
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
}

.developer-link a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.developer-link i {
    color: #FFFFFF;
    font-size: 1.1em;
}

.portfolio {
    padding: 80px 0;
    background: white;
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    aspect-ratio: 4/3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,86,179,0.8), transparent);
    color: white;
    padding: 15px;
}

.portfolio-overlay h3 {
    margin-bottom: 3px;
    font-size: 1em;
    font-weight: 500;
}

.portfolio-overlay p {
    font-size: 0.8em;
    opacity: 0.9;
    line-height: 1.3;
}

/* ==================== */
/* МОБИЛЬНАЯ АДАПТАЦИЯ */
/* ==================== */

@media (max-width: 1024px) {
    /* Планшетная версия */
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .reviews-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }
    
    .review-card {
        min-width: calc(50% - 10px);
        scroll-snap-align: start;
        flex: 0 0 auto;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* 1. Компактная шапка */
    header {
        height: 40px;
        padding: 5px 0 !important;
    }
    
    header .container {
        justify-content: center;
    }
    
    .logo, .phone {
        display: none !important;
    }
    
    nav {
        width: 100%;
        display: flex;
        justify-content: space-around;
        gap: 5px;
    }
    
    nav a {
        padding: 8px 5px;
        font-size: 0.7em;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
    }
    
    nav a.active,
    nav a:hover {
        border-bottom: 2px solid var(--primary);
    }

    /* 2. Каталог товаров - 3 в ряд */
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    
    .product-card {
        padding: 12px;
    }
    
    .product-img {
        height: max;
        width: max;
    }
    
    .product-card h3 {
        font-size: 0.8em;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 3. Отзывы - горизонтальный скролл с 2 видимыми карточками */
    .reviews-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .review-card {
        min-width: calc(80% - 8px);
        scroll-snap-align: start;
        flex: 0 0 auto;
    }

    /* 4. Портфолио - 2 в ряд с мелким шрифтом */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .portfolio-overlay h3 {
        font-size: 0.7em;
        margin-bottom: 2px;
    }
    
    .portfolio-overlay p {
        font-size: 0.6em;
    }

    /* 5. Контакты - форма под контактами */
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        margin-top: 20px;
    }

    /* Общие стили */
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .hero {
        padding: 70px 0;
    }
    
    h2 {
        font-size: 1.5em !important;
    }
}

@media (max-width: 480px) {
    /* 1. Шапка - еще компактнее */
    nav a {
        font-size: 0.65em;
        padding: 6px 3px;
    }

    /* 2. Каталог - 2 в ряд */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 3. Отзывы - 1.5 карточки для наглядности скролла */
    .review-card {
        min-width: calc(70% - 8px);
    }
    
    /* 4. Портфолио - еще меньше шрифт */
    .portfolio-overlay h3 {
        font-size: 0.65em;
    }
    
    /* 5. Герой */
    .hero h1 {
        font-size: 1.4em;
    }
    
    /* Уменьшаем отступы секций */
    .catalog,
    .features,
    .reviews,
    .portfolio,
    .contacts {
        padding: 40px 0;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/*modalka*/
/* ==================== */
/* МОДАЛЬНОЕ ОКНО ТОВАРА */
/* ==================== */
/* Модальное окно */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.product-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 1.5rem;
    color: #0056b3;
    margin: 0;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.modal-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 5px;
}

.modal-price-block {
    margin-bottom: 15px;
    text-align: center;
}

.modal-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6600;
}

.modal-old-price {
    font-size: 1.3rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.modal-details {
    overflow-y: auto;
    padding: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.modal-details ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.modal-details li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
}

.modal-details strong {
    color: #0056b3;
    min-width: 180px;
    display: inline-block;
}

.modal-details .btn {
    display: block;
    margin: 20px auto 0;
    text-align: center;
    max-width: 200px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        padding: 15px;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-price {
        font-size: 1.5rem;
    }
    
    .modal-old-price {
        font-size: 1.1rem;
    }
    
    .modal-details li {
        flex-direction: column;
    }
    
    .modal-details strong {
        min-width: auto;
        margin-bottom: 3px;
    }
}

@media (max-width: 480px) {
    .modal-img {
        height: 150px;
    }
    
    .modal-details {
        padding: 5px;
    }
}
/*mobil adapt otzivi*/
/* Мобильная версия (просто добавь это в конец CSS) */
@media (max-width: 768px) {
    .reviews-grid { display: flex; overflow-x: auto; gap: 10px; }
    .review-card { width: calc(50% - 5px); flex-shrink: 0; }
}

/* Поп-ап стиль */
.discount-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8); /* Прозрачный черный фон */
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.discount-popup.active {
    display: flex;
    animation: fadeIn 0.5s ease-out;
}

.discount-content {
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.discount-header {
    font-size: 1.5em;
    color: var(--primary);
    margin-bottom: 20px;
}

.discount-body p {
    font-size: 1.1em;
    margin: 20px 0;
}

.discount-footer {
    margin-top: 20px;
}

.discount-footer .discount-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.discount-footer .discount-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.discount-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    color: #666;
    cursor: pointer;
}

/* Таймер */
.timer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.timer-item {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 8px;
}

.timer-item span:first-child {
    font-size: 1.5em;
    font-weight: 700;
}

.timer-item span:last-child {
    font-size: 0.8em;
    opacity: 0.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* Кнопка "Бесплатный звонок" */
.call-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--secondary), var(--accent)); /* Аранжевый стиль */
    color: white;
    border-radius: 50%; /* Круглая кнопка */
    padding: 15px; /* Размер кнопки */
    font-size: 1em; /* Размер иконки */
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    transition: all 0.3s;
    cursor: pointer;
    z-index: 1000;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none; /* Убираем овал */
    text-decoration: none; /* Убираем подчеркивание */
}

/* Мобильная версия - круглая кнопка */
@media (max-width: 768px) {
    .call-button {
        width: 60px; /* Устанавливаем фиксированную ширину */
        height: 60px; /* Устанавливаем фиксированную высоту */
        font-size: 1.2em; /* Размер иконки */
        padding: 0; /* Убираем лишние отступы */
    }

    .call-button span {
        display: none; /* Убираем текст */
    }
}

/* Десктоп версия - показываем квадратную кнопку */
@media (min-width: 769px) {
    .call-button {
        padding: 7px 17px; /* Сохраняем квадратные углы и больший размер */
        border-radius: 8px; /* Квадратные углы на десктопе */
    }

    .call-button span {
        font-size: 1em;
        font-weight: bold;
    }
}

.call-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.call-button i {
    font-size: 1.5em; /* Размер иконки */
    margin-right: 0; /* Убираем дополнительное пространство между иконкой и текстом */
}

/* Увеличиваем кнопку закрытия в правом верхнем углу */
.discount-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2.5em; /* Увеличиваем размер */
    color: #999; /* Яркий цвет */
    cursor: pointer;
    transition: all 0.3s;
}

.discount-close:hover {
    color: #e64a19; /* Темный оттенок при наведении */
    transform: scale(1.2); /* Увеличиваем кнопку при наведении */
}
/* Кнопка закрытия внизу поп-апа */
.discount-close-bottom {
    margin-top: 20px;
    text-align: center;
}

.discount-close-btn {
    background-color: #999; /* Цвет кнопки */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.discount-close-btn:hover {
    background-color: #e64a19; /* Темный оттенок при наведении */
    transform: translateY(-3px);
}

/* Кнопка закрытия в правом верхнем углу */
.discount-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8em;
    color: #999;
    cursor: pointer;
}

.call-button1 {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #42a5f5, #1976d2); /* Градиентный голубой */
    color: white;
    text-decoration: none;
    border-radius: 30px; /* Более скругленные углы */
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(25, 118, 210, 0.2);
    text-align: center;
}

.call-button1:hover {
    background: linear-gradient(135deg, #1976d2, #42a5f5); /* Инвертируем градиент */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(25, 118, 210, 0.3);
}

.call-button1:active {
    transform: translateY(1px);
}

.call-button1 i {
    margin-right: 8px;
}

/* Стили для поп-апа с формой */
.discount-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
    animation: fadeIn 0.4s ease-out;
}

.discount-popup.active {
    display: flex;
}

.discount-content {
    background: white;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.discount-header {
    background: linear-gradient(135deg, #ff6600, #ff5722);
    color: white;
    padding: 25px 20px;
    text-align: center;
    position: relative;
}

.discount-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffcc00;
    color: #333;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.discount-header h3 {
    font-size: 1.5em;
    margin: 10px 0 5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.discount-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 0;
}

.discount-value {
    font-weight: bold;
    font-size: 1.2em;
    color: #ffcc00;
}

.discount-body {
    padding: 20px;
}

.discount-form-wrapper {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

#popup-phone {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s;
}

#popup-phone:focus {
    border-color: #ff6600;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2);
}

.discount-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff6600, #ff5722);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    text-align: center;
    text-decoration: none;
}

.discount-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.discount-btn i {
    margin-right: 8px;
}

.form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.8em;
    color: #666;
    margin-top: 10px;
}

.form-note i {
    color: #28a745;
}

.timer {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin: 20px 0;
}

.timer p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.timer-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.timer-item {
    background: #333;
    color: white;
    border-radius: 5px;
    padding: 8px 12px;
    min-width: 60px;
}

.timer-item span:first-child {
    font-size: 1.5em;
    font-weight: bold;
    display: block;
}

.timer-item span:last-child {
    font-size: 0.7em;
    opacity: 0.8;
}

.timer-separator {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin: 0 5px;
}

.discount-benefits {
    margin: 20px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95em;
}

.benefit-item i {
    color: #28a745;
    font-size: 1.2em;
}

.discount-footer {
    background: #f9f9f9;
    padding: 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

.discount-footer p {
    margin-bottom: 10px;
    color: #666;
}

.call-now-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #333;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.call-now-btn:hover {
    background: #ff6600;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,102,0,0.3);
}

.call-now-btn i {
    margin-right: 8px;
}

/* Обновленные компактные стили для поп-апа */
.discount-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
    animation: fadeIn 0.4s ease-out;
}

.discount-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 420px; /* Уменьшили максимальную ширину */
    max-height: 90vh; /* Ограничиваем высоту */
    overflow-y: auto; /* Добавляем скролл если контент не помещается */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.discount-header {
    background: linear-gradient(135deg, #ff6600, #ff5722);
    color: white;
    padding: 20px 15px 15px; /* Уменьшили отступы */
    text-align: center;
    position: relative;
}

.discount-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffcc00;
    color: #333;
    padding: 4px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8em;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.discount-header h3 {
    font-size: 1.3em; /* Уменьшили размер шрифта */
    margin: 5px 0; /* Уменьшили отступы */
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.discount-subtitle {
    font-size: 0.95em; /* Уменьшили размер шрифта */
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.3;
}

.discount-body {
    padding: 15px; /* Уменьшили отступы */
}

.discount-form-wrapper {
    margin-bottom: 15px; /* Уменьшили отступ */
}

#popup-phone {
    padding: 12px 15px; /* Уменьшили отступы внутри поля */
    font-size: 15px; /* Уменьшили размер шрифта */
}

.discount-btn {
    padding: 12px; /* Уменьшили отступы */
    font-size: 1em; /* Уменьшили размер шрифта */
}

.timer {
    padding: 12px; /* Уменьшили отступы */
    margin: 15px 0; /* Уменьшили отступы */
}

.timer p {
    margin-bottom: 8px; /* Уменьшили отступ */
    font-size: 0.9em; /* Уменьшили размер шрифта */
}

.timer-item {
    min-width: 50px; /* Уменьшили ширину */
    padding: 6px 8px; /* Уменьшили отступы */
}

.timer-item span:first-child {
    font-size: 1.3em; /* Уменьшили размер шрифта */
}

.discount-benefits {
    margin: 15px 0; /* Уменьшили отступы */
}

.benefit-item {
    font-size: 0.85em; /* Уменьшили размер шрифта */
    margin-bottom: 8px; /* Уменьшили отступы */
}

.discount-footer {
    padding: 12px; /* Уменьшили отступы */
}

.call-now-btn {
    padding: 10px 20px; /* Уменьшили отступы */
    font-size: 0.9em; /* Уменьшили размер шрифта */
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    .discount-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .discount-header {
        padding: 15px 10px 10px;
    }
    
    .discount-header h3 {
        font-size: 1.2em;
    }
    
    .discount-subtitle {
        font-size: 0.85em;
    }
    
    #popup-phone {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .discount-btn {
        padding: 10px;
    }
    
    .benefit-item {
        font-size: 0.8em;
    }
}

/* Убираем скроллбар для красоты */
.discount-content::-webkit-scrollbar {
    width: 0;
    background: transparent;
}
/* Стили для плавающего чата */
.floating-chat-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 15px;
}

.floating-chat-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4e8cff, #3a7fc5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    box-shadow: 0 4px 15px rgba(78, 140, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

.floating-chat-main:hover {
    transform: scale(1.1);
}

.floating-chat-main.active {
    transform: rotate(45deg);
}

.floating-chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: scale(0);
    transform-origin: bottom right;
    opacity: 0;
    transition: all 0.3s;
    position: absolute;
    bottom: 70px;
    right: 0;
}

.floating-chat-options.active {
    transform: scale(1);
    opacity: 1;
}

.chat-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    text-decoration: none;
}

.chat-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Анимация появления кнопок по очереди */
.floating-chat-options.active a:nth-child(1) {
    animation: fadeInUp 0.3s ease-out;
}
.floating-chat-options.active a:nth-child(2) {
    animation: fadeInUp 0.4s ease-out;
}
.floating-chat-options.active a:nth-child(3) {
    animation: fadeInUp 0.5s ease-out;
}
.floating-chat-options.active a:nth-child(4) {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Предотвращаем всплытие событий для иконок чата */
.chat-option {
    pointer-events: auto;
}

/* Анимация для плавного появления меню */
.floating-chat-options {
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.floating-chat-options.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
/* Убедимся, что меню поверх других элементов */
.floating-chat-options {
    z-index: 1001;
    pointer-events: auto;
}

/* Анимация для плавного появления */
.floating-chat-options {
    transition: all 0.2s ease-out;
    transform: scale(0.9) translateY(10px);
    opacity: 0;
    visibility: hidden;
}

.floating-chat-options.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Иконка чата должна быть кликабельной */
.tawkto-trigger {
    cursor: pointer;
}