/* 🍇 iGrape - Стили (извлечено из HTML для кеширования) */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #31b46c 0%, #8a3eff 35%, #f62c84 70%, #f3f348 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    background-size: 400% 400%;
    animation: bgMove 20s ease infinite;
}
@keyframes bgMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(49, 180, 108, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(138, 62, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(246, 44, 132, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* Yandex.Metrika noscript image hidden off-screen without inline styles */
.ym-noscript img {
    position: absolute;
    left: -9999px;
}

/* 🍇 Интерактивные частицы */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    font-size: 16px;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    opacity: 0.6; /* Увеличил постоянную начальную прозрачность до 0.6 */
}

.particle.grape {
    animation: floatGrape 8s ease-in-out infinite;
}

.particle.apple {
    animation: floatApple 10s ease-in-out infinite;
}

@keyframes floatGrape {
    0%, 100% { 
        transform: translate(0px, 0px) rotate(0deg) scale(1);
        opacity: 0.6; /* Сделал постоянную высокую видимость */
    }
    25% { 
        transform: translate(15px, -20px) rotate(5deg) scale(1.1);
        opacity: 0.6; /* Сделал постоянную высокую видимость */
    }
    50% { 
        transform: translate(-10px, -10px) rotate(-3deg) scale(0.9);
        opacity: 0.6; /* Сделал постоянную высокую видимость */
    }
    75% { 
        transform: translate(20px, -30px) rotate(8deg) scale(1.05);
        opacity: 0.6; /* Сделал постоянную высокую видимость */
    }
}

@keyframes floatApple {
    0%, 100% { 
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.6; /* Сделал постоянную высокую видимость */
    }
    33% { 
        transform: translateX(15px) translateY(-25px) rotate(10deg);
        opacity: 0.6; /* Сделал постоянную высокую видимость */
    }
    66% { 
        transform: translateX(-10px) translateY(-15px) rotate(-5deg);
        opacity: 0.6; /* Сделал постоянную высокую видимость */
    }
}

/* Эффект при наведении мыши */
.particle.mouse-near {
    transform: scale(1.5) !important;
    opacity: 0.8 !important;
    filter: drop-shadow(0 4px 12px rgba(255,255,255,0.3)) !important;
}

.container {
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.9);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 4s infinite;
}

/* Подсказка браузеру об изменениях */
.particle, .link-button, .product-card, .logo::before { will-change: transform; }

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #ffffff, #f0f9ff, #fdf2f8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 5px; /* Уменьшил отступ до 5px для более компактного вида */
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 24px; /* Увеличено для лучших touch targets */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.link-button:hover::before,
.link-button:active::before {
    left: 100%;
}

.link-button:hover,
.link-button:active,
.link-button:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    outline: none; /* Убираем стандартный outline */
}

/* Специальный focus state для keyboard navigation */
.link-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2), 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.link-button:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

.icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* Platform specific styling with original iGrape colors - УВЕЛИЧЕНА СПЕЦИФИЧНОСТЬ */
.link-button.telegram { 
    background: linear-gradient(135deg, rgba(49, 180, 108, 0.8), rgba(49, 180, 108, 0.6)) !important;
    border-color: rgba(49, 180, 108, 0.4) !important;
}
.link-button.telegram:hover { 
    background: linear-gradient(135deg, rgba(49, 180, 108, 0.9), rgba(49, 180, 108, 0.7)) !important; 
    border-color: rgba(49, 180, 108, 0.6) !important;
}

.link-button.tiktok { 
    background: linear-gradient(135deg, rgba(138, 62, 255, 0.8), rgba(138, 62, 255, 0.6)) !important; 
    border-color: rgba(138, 62, 255, 0.4) !important;
}
.link-button.tiktok:hover { 
    background: linear-gradient(135deg, rgba(138, 62, 255, 0.9), rgba(138, 62, 255, 0.7)) !important; 
    border-color: rgba(138, 62, 255, 0.6) !important;
}

.link-button.instagram { 
    background: linear-gradient(135deg, rgba(246, 44, 132, 0.8), rgba(246, 44, 132, 0.6)) !important; 
    border-color: rgba(246, 44, 132, 0.4) !important;
}
.link-button.instagram:hover { 
    background: linear-gradient(135deg, rgba(246, 44, 132, 0.9), rgba(246, 44, 132, 0.7)) !important; 
    border-color: rgba(246, 44, 132, 0.6) !important;
}

.link-button.ozon { 
    background: linear-gradient(135deg, rgba(161, 217, 87, 0.8), rgba(161, 217, 87, 0.6)) !important; 
    border-color: rgba(161, 217, 87, 0.4) !important;
}
.link-button.ozon:hover { 
    background: linear-gradient(135deg, rgba(161, 217, 87, 0.9), rgba(161, 217, 87, 0.7)) !important; 
    border-color: rgba(161, 217, 87, 0.6) !important;
}

.link-button.wildberries { 
    background: linear-gradient(135deg, rgba(243, 243, 72, 0.8), rgba(202, 230, 80, 0.6)) !important; 
    border-color: rgba(243, 243, 72, 0.4) !important;
}
.link-button.wildberries:hover { 
    background: linear-gradient(135deg, rgba(243, 243, 72, 0.9), rgba(202, 230, 80, 0.7)) !important; 
    border-color: rgba(243, 243, 72, 0.6) !important;
}

.link-button.yandex { 
    background: linear-gradient(135deg, rgba(98, 196, 99, 0.8), rgba(76, 189, 103, 0.6)) !important; 
    border-color: rgba(98, 196, 99, 0.4) !important;
}
.link-button.yandex:hover { 
    background: linear-gradient(135deg, rgba(98, 196, 99, 0.9), rgba(76, 189, 103, 0.7)) !important; 
    border-color: rgba(98, 196, 99, 0.6) !important;
}

.footer {
    margin-top: 40px;
    font-size: 14px;
    opacity: 0.8;
    animation: fadeIn 1s ease-out 0.5s both;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

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

/* 📦 Стили для карусели товаров */
.product-carousel-section {
    margin-top: 20px; /* Уменьшил отступ сверху, чтобы секция была компактнее */
    width: 100%;
}

.product-carousel-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(45deg, #ffffff, #f0f9ff, #fdf2f8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-carousel {
    display: flex;
    overflow-x: auto; /* Позволяет горизонтальный скролл */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px; /* Отступ для скроллбара */
    gap: 16px;
    flex-wrap: nowrap; /* Добавляем, чтобы элементы не переносились */
}

.product-card {
    flex: 0 0 auto;
    width: 180px; /* Увеличена ширина карточки */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: left;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-decoration: none; /* Убираем подчеркивание */
    position: relative; /* для ripple */
    overflow: hidden;
}

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

.product-card img {
    width: 100%;
    height: 120px;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Увеличиваем до 3 строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 3; /* Стандартное свойство для совместимости */
    color: white;
}

.product-card .price {
    font-size: 16px;
    font-weight: 700;
    color: #fff16a; /* Ярче на фоне */
    margin-top: auto; /* Прижимаем к низу */
    opacity: 0.9;
    text-align: center; /* Выравниваем по центру */
    width: 100%; /* Занимаем всю доступную ширину */
}

/* Улучшение рендеринга SVG иконок */
.icon, .arrow-icon { shape-rendering: geometricPrecision; }

/* Стили для кнопки "Все товары" в карусели */
.all-products-button {
    flex-direction: column; /* Размещаем текст и стрелку вертикально */
    justify-content: center; /* Центрируем содержимое */
    min-width: 180px; /* Сохраняем ширину карточки */
    height: 250px; /* Примерная высота карточки */
    background: rgba(255, 255, 255, 0.18); /* Более яркий фон для кнопки */
    border-color: rgba(255, 255, 255, 0.4); /* Более яркая рамка */
    text-align: center;
}

.all-products-button .button-text {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: white; /* Делаем текст белым */
}

.all-products-button .arrow-icon {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    color: white; /* Делаем стрелку белой */
}

.all-products-button:hover {
    background: rgba(255, 255, 255, 0.28); /* Усиленный ховер эффект */
}

/* Адаптивность для карусели */
@media (max-width: 480px) {
    .logo { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
    .link-button, .product-card { box-shadow: 0 6px 12px rgba(0,0,0,0.15); }
    .product-carousel-section h2 {
        font-size: 20px;
    }
    .product-card {
        width: 160px; /* Увеличена ширина карточки для мобильных */
    }
}

/* Ослабить hover на устройствах без курсора */
@media (hover: none) {
    .link-button:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
}

/* Скрытие скроллбара (опционально, для более чистого вида) */
.product-carousel::-webkit-scrollbar {
    display: none;
}
.product-carousel {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* iPhone X/11/12+ notch support */
@supports (padding: max(0px)) {
    body {
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .link-button {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .logo::before { animation: none; }
    .link-button, .product-card { transition: none; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
}

/* Fallback, если нет поддержки backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
  .logo { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,0.95); border: none; }
}

/* Smooth scrolling for iOS */
html {
    -webkit-overflow-scrolling: touch;
}

/* Disable text selection for better mobile experience */
.logo, h1, .subtitle {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Animation delays for staggered effect */
.link-button:nth-child(1) { animation: slideInLeft 0.6s ease-out 0.2s both; }
.link-button:nth-child(2) { animation: slideInLeft 0.6s ease-out 0.3s both; }
.link-button:nth-child(3) { animation: slideInLeft 0.6s ease-out 0.4s both; }
.link-button:nth-child(4) { animation: slideInLeft 0.6s ease-out 0.5s both; }
.link-button:nth-child(5) { animation: slideInLeft 0.6s ease-out 0.6s both; }
.link-button:nth-child(6) { animation: slideInLeft 0.6s ease-out 0.7s both; }
.link-button:nth-child(7) { animation: slideInLeft 0.6s ease-out 0.8s both; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Haptic feedback simulation */
.link-button {
    -webkit-tap-highlight-color: transparent;
}

/* Additional responsive improvements */
@media (max-width: 480px) {
    .container {
        max-width: 360px;
    }
    .logo {
        width: 100px;
        height: 100px;
    }
    .logo img {
        width: 60px;
        height: 60px;
    }
    h1 {
        font-size: 28px;
    }
    .link-button {
        padding: 22px 24px; /* Минимум 44px высота для touch targets */
        font-size: 15px;
        min-height: 44px; /* Гарантированная высота для доступности */
    }
}

/* Click effect styles */
.particle[style*="--end-x"] {
    animation: clickBurst 1s ease-out forwards !important;
}

@keyframes clickBurst {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(var(--end-x), var(--end-y)) scale(0);
        opacity: 0;
    }
} 

/* 💬 Плавающая кнопка чата */
.floating-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(45deg, #8a3eff, #f62c84);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px; /* Расстояние между иконкой и текстом */
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 🌊 Ripple-эффект для кликов */
.ripple-effect {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.35);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 600ms ease-out forwards;
}
@keyframes ripple {
    to { transform: translate(-50%, -50%) scale(20); opacity: 0; }
}

/* 👉 Подсказка «Свайпните» */
.swipe-hint {
    position: absolute;
    right: 10px;
    top: -6px;
    padding: 6px 10px;
    font-size: 12px;
    background: rgba(0,0,0,0.35);
    color: #fff;
    border-radius: 9999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity .25s ease, visibility .25s ease;
}
.swipe-hint.hidden { opacity: 0; visibility: hidden; }

/* ⏳ Скелетоны для карусели */
.skeleton-card {
    flex: 0 0 auto;
    width: 180px;
    height: 250px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(255,255,255,0.2), rgba(255,255,255,0.12));
    background-size: 200% 100%;
    animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 🔔 Toast уведомления */
.toast-container {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2000;
}
.toast {
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    animation: toastIn .2s ease-out;
    font-size: 14px;
}
.toast.success { background: rgba(49,180,108,0.95); }
.toast.error { background: rgba(246,44,132,0.95); }
@keyframes toastIn {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.floating-chat-button .icon-emoji {
    font-size: 20px; /* Размер эмодзи */
    line-height: 1;
}

/* 📦 Стили модального окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Темный полупрозрачный фон */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1); /* Более прозрачный фон, чтобы просвечивал основной градиент */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 18px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    color: white; /* Изменяем цвет основного текста в модальном окне на белый */
    text-align: center;
    transform: translateY(20px); /* Для анимации появления */
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Тонкая рамка */
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white; /* Заголовок тоже белый */
}

.modal-content p {
    font-size: 16px;
    margin-bottom: 15px; /* Сделал отступ 15px для более компактного и единого стиля */
    line-height: 1.5;
    color: white; /* Параграфы тоже белый */
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button:hover {
    color: #333;
}

.form-group {
    margin-bottom: 15px;
    display: flex; /* Используем Flexbox */
    flex-direction: column; /* Элементы в колонку */
    align-items: center; /* Центрируем по горизонтали */
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white; /* Лейблы тоже белый */
}

.form-group input[type="tel"],
.form-group textarea {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Более тонкая и прозрачная рамка */
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit; /* Наследуем основной шрифт */
    font-weight: 400; /* Обычный вес шрифта */
    color: white; /* Текст в полях ввода белый */
    background-color: rgba(255, 255, 255, 0.1); /* Более прозрачный фон для полей */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0,0,0,0.1); /* Улучшенная тень для объемности */
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-group input[type="tel"]::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7); /* Плейсхолдер чуть менее белый, чем текст */
    opacity: 1; /* Убираем дефолтную прозрачность Firefox */
    font-family: inherit; /* Наследуем основной шрифт */
    font-weight: 400; /* Обычный вес шрифта */
}

.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    border-color: #8a3eff;
    box-shadow: 0 0 0 3px rgba(138, 62, 255, 0.2); /* Фокус-эффект */
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-button {
    background: linear-gradient(45deg, #31b46c, #8a3eff); /* Градиент кнопки */
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 28px; /* Уменьшаем правый отступ для оптического выравнивания */
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: calc(100% - 20px); /* Делаем ширину как у полей ввода */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0 auto; /* Центрируем кнопку */
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Адаптивность для модального окна на мобильных */
@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    .floating-chat-button {
        bottom: 15px;
        right: 15px;
        padding: 10px 15px;
        font-size: 14px;
    }
} 

.modal-content form {
    max-width: 380px; /* Ограничиваем максимальную ширину формы */
    margin: 0 auto; /* Центрируем форму внутри модального окна */
} 