/* Базовые стили для всех страниц */
:root {
    --dark-bg: #1a1a1a;
    --darker-bg: #121212;
    --card-bg: #242424;
    --text-color: #e0e0e0;
    --secondary-color: #8b4513; /* шоколадный */
    --accent-color: #c41e3a; /* красный */
    --gold-color: #d4af37; /* золотой */
    --base-font-size: 18px; /* базовый размер шрифта */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cormorant Garamond', serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.7;
    font-size: var(--base-font-size);
}

/* Стили для главной страницы */

/* Шапка сайта */
header {
    background-color: rgba(26, 26, 26, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 32px;
    color: var(--gold-color);
    font-weight: 700;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 20px;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li a:hover:after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

.header-actions a {
    margin-left: 25px;
    color: var(--text-color);
    font-size: 24px;
    transition: color 0.3s;
}

.header-actions a:hover {
    color: var(--secondary-color);
}

/* Герой секция */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/background.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.9) 100%);
}

.hero-content {
    max-width: 900px;
    padding: 0 30px;
    z-index: 1;
    position: relative;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    color: var(--gold-color);
    line-height: 1.3;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.5;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 16px 40px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    font-size: 20px;
}

.btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--gold-color);
    color: var(--gold-color);
    margin-left: 20px;
}

.btn-outline:hover {
    background-color: var(--gold-color);
    color: var(--dark-bg);
}

/* Особенности */
.features {
    padding: 100px 5%;
    text-align: center;
    background-color: var(--darker-bg);
}

.section-title {
    font-size: 36px;
    margin-bottom: 70px;
    position: relative;
    display: inline-block;
    color: var(--gold-color);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.feature-card {
    padding: 40px;
    border-radius: 15px;
    background-color: var(--card-bg);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 50px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(139, 69, 19, 0.5);
}

.feature-card h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--gold-color);
}

.feature-card p {
    font-size: 18px;
    line-height: 1.6;
}

/* Популярные товары */
.products {
    padding: 100px 5%;
    background-color: var(--dark-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.product-img {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.product-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-info h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: var(--gold-color);
}

.product-price {
    font-size: 20px;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

/* Подписка */
.subscription {
    padding: 100px 5%;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../assets/podpiska.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    position: relative;
}

.subscription::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.9) 100%);
}

.subscription-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.subscription-content p {
    margin-bottom: 40px;
    font-size: 20px;
    line-height: 1.6;
}

.subscription-form {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.subscription-form input {
    padding: 18px 25px;
    width: 350px;
    border: none;
    border-radius: 35px 0 0 35px;
    outline: none;
    font-size: 18px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(139, 69, 19, 0.5);
    border-right: none;
}

.subscription-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
}

.subscription-form button {
    padding: 18px 35px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0 35px 35px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    border: 1px solid var(--secondary-color);
    font-size: 18px;
}

.subscription-form button:hover {
    background-color: #6b3300;
}

/* Футер */
footer {
    background-color: var(--darker-bg);
    color: white;
    padding: 80px 5% 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-col h3 {
    font-size: 24px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    color: var(--gold-color);
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-col p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 18px;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 15px;
    color: white;
    transition: all 0.3s;
    font-size: 22px;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    margin-top: 70px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
}

/* Стили для страниц авторизации и регистрации */

.auth-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1487530811176-3780de880c2d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
}

.auth-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    z-index: 0;
}

.auth-content {
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.auth-logo img {
    height: 60px;
    margin-right: 12px;
    filter: drop-shadow(0 0 5px rgba(139, 69, 19, 0.5));
}

.auth-logo h1 {
    font-size: 32px;
    color: var(--gold-color);
    font-weight: 700;
}

.auth-logo span {
    color: var(--secondary-color);
}

.auth-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--gold-color);
    position: relative;
    display: inline-block;
}

.auth-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gold-color);
    font-size: 18px;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(139, 69, 19, 0.4);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-size: 18px;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.3);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 42px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 18px;
}

.password-container {
    position: relative;
}

.password-requirements {
    margin-top: 8px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}

.requirement {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.requirement i {
    margin-right: 8px;
    font-size: 14px;
}

.requirement.met {
    color: #4caf50;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 16px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
    accent-color: var(--secondary-color);
}

.forgot-password {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

.agreement {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    text-align: left;
    font-size: 16px;
}

.agreement input {
    margin-right: 10px;
    margin-top: 3px;
    accent-color: var(--secondary-color);
}

.agreement a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.agreement a:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

.auth-link {
    margin-top: 20px;
    font-size: 16px;
}

.auth-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-link a:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

.name-fields {
    display: flex;
    gap: 15px;
}

.name-fields .form-group {
    flex: 1;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeIn 0.6s ease-out;
}

/* Стили для карточек в каталоговом стиле */
.products-grid.catalog-style {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 5%;
}

.product-card.catalog-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card.catalog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Бейджи */
.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.product-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.badge-new {
    background-color: var(--accent-color);
    color: white;
}

.badge-sale {
    background-color: var(--gold-color);
    color: var(--dark-bg);
}

/* Кнопка избранного */
.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.favorite-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.favorite-btn.active {
    color: var(--accent-color);
}

.favorite-btn i {
    font-size: 20px;
}

/* Изображение товара */
.product-img {
    height: 250px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.product-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

/* Информация о товаре */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 22px;
    color: var(--gold-color);
}

.product-desc {
    margin-bottom: 15px;
    font-size: 16px;
    color: #ccc;
    line-height: 1.5;
    flex-grow: 1;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.current-price {
    font-size: 22px;
    color: var(--secondary-color);
    font-weight: 700;
}

.old-price {
    font-size: 18px;
    color: #888;
    text-decoration: line-through;
}

/* Кнопки действий */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-cart {
    flex: 1;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cart:hover {
    background-color: #6b3300;
}

.btn-buy {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-buy:hover {
    background-color: #a00;
}

/* Анимации для главной страницы */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Анимация для героя */
.hero-content {
    animation: fadeIn 1s ease-out;
}

.hero-content h2 {
    animation: fadeIn 1s ease-out 0.3s both;
}

.hero-content p {
    animation: fadeIn 1s ease-out 0.6s both;
}

.hero-buttons {
    animation: fadeIn 1s ease-out 0.9s both;
}

/* Анимация для карточек особенностей */
.feature-card {
    animation: fadeIn 0.8s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-icon {
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-icon {
    animation: float 2s ease-in-out infinite;
}

/* Анимация для продуктов */
.product-card {
    animation: fadeIn 0.8s ease-out;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Анимация для подписки */
.subscription-content {
    animation: fadeIn 1s ease-out;
}

.subscription-form {
    animation: fadeIn 1s ease-out 0.3s both;
}

/* Анимация для кнопок */
.btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn:hover {
    animation: pulse 1s;
}

/* Анимация для иконок в футере */
.social-links a {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Анимация появления элементов */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 10px;
    font-size: 16px;
}

.current-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 20px;
}

.product-card .btn {
    padding: 12px 25px;
    font-size: 16px;
    margin-top: 15px;
}

/* Адаптивность для всех страниц */
@media (max-width: 768px) {
    :root {
        --base-font-size: 16px;
    }
    
    .header-container {
        flex-direction: column;
        padding: 15px;
    }
    
    nav ul {
        margin: 20px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 10px 15px;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 20px;
    }
    
    .subscription-form {
        flex-direction: column;
        align-items: center;
    }
    
    .subscription-form input {
        border-radius: 35px;
        margin-bottom: 15px;
        width: 100%;
        max-width: 350px;
        border-right: 1px solid rgba(139, 69, 19, 0.5);
    }
    
    .subscription-form button {
        border-radius: 35px;
        width: 100%;
        max-width: 350px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .feature-card h3 {
        font-size: 22px;
    }
    
    .feature-card p {
        font-size: 16px;
    }
    
    .product-info h3 {
        font-size: 20px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .btn {
        font-size: 16px;
    }
    
    /* Адаптивность для страниц авторизации */
    .auth-card {
        padding: 30px 20px;
    }
    
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .auth-logo h1 {
        font-size: 28px;
    }
    
    .name-fields {
        flex-direction: column;
    }
    
    .name-fields .form-group {
        width: 100%;
    }
    
    .products-grid.catalog-style {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .product-actions {
        flex-direction: column;
    }
}
/* ===== ИСПРАВЛЕНИЯ ДЛЯ ПОПУЛЯРНЫХ БУКЕТОВ ===== */

.products {
    padding: 80px 5% !important;
}

.products-grid.catalog-style {
    gap: 35px !important;
    margin: 50px auto !important;
    padding: 0 20px !important;
}

.product-card.catalog-card {
    margin-bottom: 30px !important;
    transition: all 0.3s ease !important;
}

.product-card.catalog-card:hover {
    transform: translateY(-8px) !important;
    margin-bottom: 38px !important;
}

.product-info {
    padding: 25px !important;
}

.product-info h3 {
    margin-bottom: 15px !important;
    font-size: 22px !important;
    line-height: 1.3 !important;
}

.product-desc {
    margin-bottom: 20px !important;
    line-height: 1.6 !important;
    min-height: 60px !important;
}

.product-price {
    margin-bottom: 20px !important;
    gap: 15px !important;
    align-items: center !important;
}

.current-price {
    font-size: 24px !important;
    font-weight: 700 !important;
}

.old-price {
    font-size: 18px !important;
    color: #888 !important;
}

.product-actions {
    gap: 12px !important;
    margin-top: 25px !important;
}

.btn-cart, .btn-buy {
    padding: 12px 20px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.btn-cart:hover, .btn-buy:hover {
    transform: translateY(-2px) !important;
}

/* Бейджи */
.product-badges {
    top: 15px !important;
    left: 15px !important;
    gap: 10px !important;
    z-index: 20 !important;
}

.product-badge {
    padding: 8px 15px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
}

/* Кнопка избранного */
.favorite-btn {
    top: 15px !important;
    right: 15px !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    transition: all 0.3s ease !important;
}

.favorite-btn:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    transform: scale(1.1) !important;
}

/* Адаптивность для мобильных */
@media (max-width: 1024px) {
    .products-grid.catalog-style {
        gap: 30px !important;
    }
    
    .product-card.catalog-card {
        margin-bottom: 25px !important;
    }
}

@media (max-width: 768px) {
    .products {
        padding: 60px 5% !important;
    }
    
    .products-grid.catalog-style {
        gap: 25px !important;
        margin: 40px auto !important;
        padding: 0 15px !important;
    }
    
    .product-card.catalog-card {
        margin-bottom: 20px !important;
    }
    
    .product-info {
        padding: 20px !important;
    }
    
    .product-info h3 {
        font-size: 20px !important;
    }
    
    .current-price {
        font-size: 22px !important;
    }
}

@media (max-width: 480px) {
    .products-grid.catalog-style {
        gap: 20px !important;
        margin: 30px auto !important;
    }
    
    .product-card.catalog-card {
        margin-bottom: 15px !important;
    }
    
    .product-info {
        padding: 15px !important;
    }
    
    .product-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .btn-cart, .btn-buy {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Улучшения для заголовка секции */
.section-title {
    margin-bottom: 60px !important;
    font-size: 36px !important;
    text-align: center !important;
}

.section-title:after {
    bottom: -20px !important;
    width: 100px !important;
    height: 4px !important;
}

/* Плавные анимации */
.product-card.catalog-card {
    animation: fadeInUp 0.6s ease-out !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшенные тени при наведении */
.product-card.catalog-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
}

/* Градиент для изображений */
.product-img::after {
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%) !important;
}   
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-left: 4px solid #2E7D32;
}

.notification.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    border-left: 4px solid #b71c1c;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
        
/* Стили для секции особенностей с одинаковой высотой */
.features-container {
    padding: 100px 5%;
    background-color: var(--darker-bg);
    text-align: center;
    overflow-x: auto;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    max-width: 100%;
    margin: 50px auto 0;
    flex-wrap: nowrap;
    align-items: stretch; /* Важно: растягиваем все карточки по высоте */
}

.feature-card {
    padding: 30px 20px;
    border-radius: 15px;
    background: linear-gradient(145deg, #242424, #1f1f1f);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 250px;
    flex: 1; /* Равномерное распределение пространства */
    height: auto; /* Автоматическая высота */
}

/* Контейнер для контента внутри карточки */
.feature-content {
    display: flex;
    flex-direction: column;
    height: 100%; /* Занимаем всю высоту карточки */
    width: 100%;
}

.feature-icon-container {
    margin-bottom: 20px;
    flex-shrink: 0; /* Запрещаем сжатие иконки */
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--gold-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.feature-icon i {
    font-size: 30px;
    color: white;
}

.feature-icon:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--gold-color);
    opacity: 0;
    animation: pulse 2s infinite;
}

.feature-card:hover .feature-icon:after {
    opacity: 1;
}

.feature-text {
    flex-grow: 1; /* Текст занимает все доступное пространство */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--gold-color);
    position: relative;
    padding-bottom: 10px;
    flex-shrink: 0; /* Запрещаем сжатие заголовка */
}

.feature-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.feature-card:hover h3:after {
    width: 60px;
}

.feature-card p {
    font-size: 16px;
    line-height: 1.5;
    color: #ccc;
    margin-top: auto; /* Текст прижимается к низу */
    flex-grow: 1; /* Текст занимает оставшееся пространство */
}

/* Альтернативное решение с фиксированной высотой */
.feature-card.fixed-height {
    min-height: 380px; /* Фиксированная минимальная высота */
    height: auto;
}

.feature-card.auto-height {
    min-height: 0;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .features-grid {
        gap: 20px;
    }
    
    .feature-card {
        min-width: 220px;
        padding: 25px 15px;
    }
    
    .feature-card.fixed-height {
        min-height: 400px;
    }
}

@media (max-width: 1024px) {
    .features-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .feature-card {
        flex: 0 0 calc(50% - 20px);
        min-width: auto;
        margin-bottom: 20px;
    }
    
    .feature-card.fixed-height {
        min-height: 360px;
    }
}

@media (max-width: 768px) {
    .feature-card {
        flex: 0 0 100%;
        min-height: auto !important; /* На мобильных авто высота */
        height: auto;
    }
    
    .features-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 20px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .features-grid::-webkit-scrollbar {
        display: none;
    }
    
    .feature-card {
        flex: 0 0 auto;
        width: 300px;
        margin-bottom: 0;
        margin-right: 15px;
        min-height: 350px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .feature-card {
        width: 280px;
        min-height: 320px;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Специальный класс для выравнивания высоты */
.equal-height {
    display: flex;
    flex-wrap: wrap;
}

.equal-height .feature-card {
    display: flex;
    flex-direction: column;
}

.equal-height .feature-content {
    flex: 1;
}

/* ===== ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ ЭКСПРЕСС-БУКЕТОВ - ПРОСТАЯ СЕТКА ===== */
.express-products {
    padding: 80px 5%;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    position: relative;
}

.express-header {
    text-align: center;
    margin-bottom: 50px;
}

.express-subtitle {
    font-size: 18px;
    color: var(--gold-color);
    margin-top: 10px;
    opacity: 0.8;
}

/* ПРОСТАЯ СЕТКА ВМЕСТО СЛАЙДЕРА */
.express-products-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

.express-product-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.express-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.express-delivery-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff6b6b, #c41e3a);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.express-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.express-image-main,
.express-image-hover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.express-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.express-product-card:hover .express-image-main {
    opacity: 0;
}

.express-product-card:hover .express-image-hover {
    opacity: 1;
}

.express-product-info {
    padding: 25px;
}

.express-product-info h3 {
    font-size: 20px;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.express-product-desc {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.5;
    min-height: 60px;
}

.express-product-price {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.express-product-actions {
    display: flex;
    gap: 12px;
}

.btn-express-cart {
    width: 45px;
    height: 45px;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.btn-express-cart:hover {
    background-color: var(--gold-color);
    transform: scale(1.1);
}

.btn-express-buy {
    flex: 1;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border: none;
    border-radius: 25px;
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-express-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.no-express-products {
    text-align: center;
    padding: 60px 20px;
    width: 100%;
    grid-column: 1 / -1;
}

.no-express-products p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 20px;
}

/* Адаптивность для экспресс-букетов */
@media (max-width: 1200px) {
    .express-products-grid-simple {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .express-products {
        padding: 60px 5%;
    }
    
    .express-products-grid-simple {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .express-product-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .express-products-grid-simple {
        grid-template-columns: 1fr;
    }
    
    .express-product-actions {
        flex-direction: column;
    }
    
    .btn-express-cart {
        width: 100%;
        border-radius: 25px;
        height: auto;
        padding: 12px;
    }
}

/* Стили для категорий */
.categories {
    padding: 100px 5%;
    background-color: var(--darker-bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 50px auto 0;
}

.category-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.category-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(212, 175, 55, 0.6));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-overlay h3 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.category-overlay p {
    font-size: 16px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.category-link {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.category-card:hover .category-link {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

/* Адаптивность для категорий */
@media (max-width: 768px) {
    .categories {
        padding: 60px 5%;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .category-overlay h3 {
        font-size: 24px;
    }
    
    .category-overlay p {
        font-size: 14px;
    }
}

/* Анимации для уведомлений */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
/* ------------------------------------------------------------------------------------------------------- */
/* ===== ПЛАВАЮЩАЯ КНОПКА WHATSAPP ===== */
/* ===== АНИМИРОВАННАЯ КНОПКА WHATSAPP/TELEGRAM ===== */
/* Обновленные стили для виджета */
.working-hours-widget {
    position: fixed;
    top: 90px;
    right: 20px;
    background: linear-gradient(135deg, var(--card-bg), #2a2a2a);
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    max-width: 350px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100px);
}

.working-hours-widget.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.working-hours-widget:hover {
    transform: translateX(0) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Блоки мессенджеров */
.messenger-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.messenger-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qr-container {
    text-align: center;
}

.qr-container p {
    margin: 0 0 2px 0;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: white;
    padding: 2px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(139, 69, 19, 0.2);
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Кнопки мессенджеров */
.messenger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc, #006699);
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
    background: linear-gradient(135deg, #006699, #0088cc);
}

/* Адаптивность для виджета */
@media (max-width: 768px) {
    .working-hours-widget {
        top: 80px;
        right: 10px;
        max-width: 300px;
        padding: 15px;
    }
    
    .qr-code {
        width: 100px;
        height: 100px;
    }
    
    .messenger-btn {
        padding: 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .working-hours-widget {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    /* Скрываем QR-коды на мобильных */
    .qr-container {
        display: none;
    }
    
    .messenger-block {
        gap: 8px;
    }
    
    .messenger-section {
        gap: 12px;
    }
}

/* Остальные стили виджета остаются без изменений */
.working-hours-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.working-hours-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.working-hours-icon i {
    font-size: 12px;
    color: white;
}

.working-hours-text {
    flex: 1;
}

.working-hours-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-color);
}

.working-hours-status {
    font-weight: 600;
    color: #FFA500 !important;
}

.working-hours-time {
    font-size: 13px !important;
    color: #ccc !important;
    margin-top: 4px !important;
}

.working-hours-delivery {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 8px;
    border-left: 3px solid #FFA500;
}

.working-hours-delivery p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #ccc;
}

.working-hours-actions {
    border-top: 1px solid rgba(139, 69, 19, 0.2);
    padding-top: 15px;
}

/* Кнопка закрытия */
.close-widget-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.close-widget-btn:hover {
    background: rgba(139, 69, 19, 0.2);
    color: var(--gold-color);
}
/* ===== АНИМИРОВАННАЯ КНОПКА WHATSAPP/TELEGRAM ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.5s ease;
    animation: pulse-whatsapp 2s infinite;
    overflow: hidden;
}

.whatsapp-float.telegram {
    background: linear-gradient(135deg, #0088cc, #006699);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
    animation: pulse-telegram 2s infinite;
}

.whatsapp-icon {
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float.telegram .whatsapp-icon {
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    color: var(--text-color);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 69, 19, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    min-width: 200px;
    text-align: center;
}

.whatsapp-tooltip:after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid var(--card-bg);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.whatsapp-float.telegram:hover {
    box-shadow: 0 12px 35px rgba(0, 136, 204, 0.6);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-10px) translateY(-50%);
}

/* Анимация разделителя в подсказке */
.tooltip-text {
    position: relative;
    display: inline-block;
}

.tooltip-text::after {
    content: '|';
    margin: 0 8px;
    color: var(--secondary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
}

@keyframes pulse-telegram {
    0% {
        box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0, 136, 204, 0.8);
    }
    100% {
        box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
    }
}

/* Анимация переключения иконок */
@keyframes switchIcon {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    45% {
        transform: scale(0.8) rotate(-180deg);
        opacity: 0;
    }
    55% {
        transform: scale(0.8) rotate(180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.whatsapp-float.switching .whatsapp-icon {
    animation: switchIcon 0.6s ease;
}

/* Адаптивность для кнопки */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .whatsapp-tooltip {
        display: none; /* На мобильных скрываем подсказку */
    }
}