/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
}

.mystical-background {
    min-height: 100vh;
    background: linear-gradient(135deg, #252571 0%, #16213e 25%, #1c1c49 50%, #16213e 75%, #1a1a2e 100%);    position: relative;
    background-attachment: fixed;
}

.mystical-background::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%23ffffff" opacity="0.3"/><circle cx="5" cy="5" r="0.3" fill="%23ffffff" opacity="0.2"/><circle cx="15" cy="15" r="0.4" fill="%23ffffff" opacity="0.25"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>') repeat;
    z-index: -1;
    animation: twinkle 8s linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Плавающие элементы */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.candle {
    position: absolute;
    width: 4px;
    height: 30px;
    background: linear-gradient(to top, #654321 0%, #8b6914 70%, #ffd700 100%);
    border-radius: 2px;
}

.candle::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffa500 0%, #ff6b00 40%, transparent 70%);
    border-radius: 50%;
    animation: flicker 2s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% {
        box-shadow: 0 0 5px #ffa500, 0 0 10px #ffa500, 0 0 15px #ffa500;
        transform: translateX(-50%) scale(1);
    }
    50% {
        box-shadow: 0 0 8px #ffa500, 0 0 16px #ffa500, 0 0 24px #ffa500;
        transform: translateX(-50%) scale(1.1);
    }
    100% {
        box-shadow: 0 0 5px #ffa500, 0 0 10px #ffa500, 0 0 15px #ffa500;
        transform: translateX(-50%) scale(0.9);
    }
}

.candle-1 {
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.candle-2 {
    top: 60%;
    right: 15%;
    animation: float 4s ease-in-out infinite reverse;
}

.candle-3 {
    bottom: 20%;
    left: 20%;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.mirror {
    position: absolute;
    width: 60px;
    height: 80px;
    background: linear-gradient(145deg, #2a2a40, #1a1a30);
    border-radius: 50%;
    border: 2px solid #4a4a6a;
}

.mirror::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: linear-gradient(145deg, #6a6a8a, #3a3a5a);
    border-radius: 50%;
    opacity: 0.8;
}

.mirror-1 {
    top: 30%;
    right: 10%;
    animation: shimmer 8s linear infinite;
}

.mirror-2 {
    bottom: 30%;
    right: 25%;
    animation: shimmer 6s linear infinite reverse;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Заголовок */
.header {
    padding: 20px 0;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo-img {
    width: 150px;
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.logo-text {
    font-family: 'Cormorant', serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Основной контент */
.main-content {
    padding: 40px 0;
}

.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.main-title {
    font-family: 'Cormorant', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #e6e6ff 50%, #ccccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.highlight {
    display: block;
    font-size: 2.2rem;
    margin-top: 15px;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 50%, #7d3c98 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 50px;
    color: #b8b8d4;
    font-weight: 400;
    line-height: 1.6;
}

/* Статистика */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(155, 89, 182, 0.2);
}

.stat-number {
    font-family: 'Cormorant', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #9b59b6;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #b8b8d4;
}

/* CTA секция */
.cta-section {
    margin-bottom: 60px;
}

.cta-button {
    position: relative;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 50%, #7d3c98 100%);
    border: none;
    border-radius: 50px;
    padding: 20px 60px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(155, 89, 182, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(155, 89, 182, 0.5);
}

.button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.cta-button:hover .button-glow {
    opacity: 1;
    transform: rotate(45deg) translateX(100%);
}

.urgency-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ff6b6b;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Отзывы */
.testimonials-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.testimonial-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.testimonial-photo {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.testimonial-photo:hover {
    border-color: rgba(212, 175, 55, 0.7);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.testimonial-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-content {
    flex-grow: 1;
}

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

.testimonial-content p {
    font-style: italic;
    margin-bottom: 15px;
    color: #e6e6ff;
    font-size: 1.05rem;
    line-height: 1.6;
}

.author {
    color: #9b59b6;
    font-weight: 600;
}

/* Гарантия */
.guarantee-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-radius: 15px;
    padding: 20px;
}

.guarantee-icon {
    font-size: 2rem;
}

.guarantee-text {
    color: #b8b8d4;
    line-height: 1.4;
}

/* Pop-up */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(20px);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
}

.popup-cta {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

/* Чат виджет */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.chat-bubble {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    border-radius: 20px;
    padding: 15px 20px;
    max-width: 250px;
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.5);
}

.chat-icon {
    display: inline-block;
    margin-right: 8px;
}

.chat-text {
    display: inline;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .highlight {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonials-preview {
        grid-template-columns: 1fr;
    }
    
    .testimonial-item {
        padding: 20px;
        gap: 15px;
    }
    
    .testimonial-photo {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .floating-elements {
        display: none; /* Скрыть анимации на мобильных */
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .highlight {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 15px 40px;
        font-size: 1.2rem;
    }
    
    .testimonial-item {
        padding: 15px;
        gap: 12px;
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-photo {
        width: 50px;
        height: 50px;
        border-width: 2px;
        align-self: center;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .chat-widget {
        bottom: 20px;
        right: 20px;
    }
}

/* Анимации загрузки */
.fade-in {
    animation: fadeIn 1s ease-in;
}

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

.slide-up {
    animation: slideUp 0.8s ease-out;
}

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

/* Кнопка "Назад" */
.navigation-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #b8b8d4;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

.back-button:hover::before {
    left: 100%;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(155, 89, 182, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.2);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.back-icon {
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.back-button:hover .back-icon {
    transform: translateX(-3px);
}

.back-text {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

/* Адаптивность для кнопки "Назад" */
@media (max-width: 768px) {
    .navigation-buttons {
        margin-top: 25px;
        padding-top: 15px;
    }
    
    .back-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        gap: 6px;
    }
    
    .back-icon {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .navigation-buttons {
        margin-top: 20px;
    }
    
    .back-button {
        padding: 8px 16px;
        font-size: 0.85rem;
        border-radius: 20px;
    }
}

/* ======= СТИЛИ ДЛЯ КЕЙСОВ ======= */
.case-studies {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.case-studies-title {
    font-family: 'Cormorant', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #d4af37;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.case-study-item {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.case-study-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.1);
}

.case-header {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.case-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.case-header.active {
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.case-icon {
    margin-right: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

.case-icon:hover {
    border-color: rgba(212, 175, 55, 0.6);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.case-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.case-header.active .case-photo {
    transform: scale(1.1);
}

.case-info {
    flex-grow: 1;
}

.case-info h4 {
    font-family: 'Cormorant', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 5px;
}

.case-preview {
    color: #b8b8d4;
    font-size: 0.9rem;
    margin: 0;
}

.case-toggle {
    font-size: 1.2rem;
    color: #d4af37;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.case-header.active .case-toggle {
    transform: rotate(180deg);
}

.case-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.case-content.active {
    max-height: 1000px;
    padding: 20px;
}

.case-before,
.case-solution,
.case-after {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid transparent;
    background: rgba(255, 255, 255, 0.03);
}

.case-before {
    border-left-color: #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.case-solution {
    border-left-color: #4ecdc4;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.case-after {
    border-left-color: #45b7d1;
    background: linear-gradient(135deg, rgba(69, 183, 209, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.case-before h5,
.case-solution h5,
.case-after h5 {
    font-family: 'Cormorant', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-before h5 {
    color: #ff8a8a;
}

.case-solution h5 {
    color: #5ee6dd;
}

.case-after h5 {
    color: #66c5e8;
}

.case-before h5::before {
    content: '⚠️';
    font-size: 1.1rem;
}

.case-solution h5::before {
    content: '💡';
    font-size: 1.1rem;
}

.case-after h5::before {
    content: '✅';
    font-size: 1.1rem;
}

.case-before p,
.case-after p {
    color: #f0f0f0;
    line-height: 1.7;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.case-solution ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-solution li {
    color: #f0f0f0;
    padding: 12px 16px;
    padding-left: 45px;
    position: relative;
    font-size: 1rem;
    background: rgba(78, 205, 196, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(78, 205, 196, 0.2);
    transition: all 0.3s ease;
    line-height: 1.5;
}

.case-solution li:hover {
    background: rgba(78, 205, 196, 0.12);
    border-color: rgba(78, 205, 196, 0.4);
    transform: translateX(5px);
}

.case-solution li::before {
    content: '💫';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #5ee6dd;
}

/* Разделитель между блоками */
.case-before::after,
.case-solution::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #d4af37 50%, transparent 100%);
    margin: 20px auto 0;
    opacity: 0.6;
}

/* Специальные стили для лучшей читаемости */
.case-content {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.case-content.active {
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Улучшение для заголовков */
.case-info h4 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.case-preview {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Адаптивные стили для кейсов */
@media (max-width: 768px) {
    .case-studies {
        margin-top: 30px;
        padding: 20px;
    }
    
    .case-studies-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .case-header {
        padding: 15px;
    }
    
    .case-icon {
        margin-right: 10px;
        width: 50px;
        height: 50px;
    }
    
    .case-info h4 {
        font-size: 1.1rem;
    }
    
    .case-preview {
        font-size: 0.85rem;
    }
    
    .case-content.active {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .case-studies {
        padding: 15px;
        margin-top: 25px;
    }
    
    .case-studies-title {
        font-size: 1.3rem;
    }
    
    .case-header {
        padding: 12px;
    }
    
    .case-icon {
        margin-right: 8px;
        width: 45px;
        height: 45px;
    }
    
    .case-info h4 {
        font-size: 1rem;
    }
    
    .case-preview {
        font-size: 0.8rem;
    }
    
    .case-content.active {
        padding: 12px;
    }
    
    .case-before,
    .case-solution,
    .case-after {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .case-before h5,
    .case-solution h5,
    .case-after h5 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .case-before p,
    .case-after p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .case-solution li {
        font-size: 0.95rem;
        padding: 10px 12px;
        padding-left: 40px;
    }
    
    .case-solution li::before {
        left: 12px;
        font-size: 1.1rem;
    }
}

/* ======= СТИЛИ ДЛЯ PLACEHOLDER'ОВ ======= */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
    font-size: inherit;
    font-weight: 400;
}

.validation-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
    font-size: inherit;
    font-weight: 400;
} 