:root {
    --primary: #8a2be2;
    --primary-dark: #6a0dad;
    --secondary: #e328a3;
    --secondary-dark: #c71585;
    --oracle: #ff6b35;
    --oracle-dark: #e55a2b;
    --background: #0c0014;
    --text: #e9d5ff;
    --light: #d8b4fe;
    --card: #2d0066;
    --card-hover: #3c009c;
    --card-back: linear-gradient(135deg, #8a2be2 0%, #e328a3 100%);
    --card-front: radial-gradient(circle at center, #1a0033 0%, #0c0014 100%);
    --gradient-oracle: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 50%, rgba(227, 40, 163, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(216, 180, 254, 0.15) 0%, transparent 30%);
    letter-spacing: 0.3px;
}

/* Навигация */
nav {
    background: rgba(12, 0, 20, 0.95);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, var(--light) 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
    animation: logoGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.4));
}

.nav-logo:hover {
    transform: scale(1.15);
    animation-play-state: paused;
}

@keyframes logoGlow {
    0% { 
        filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.4)); 
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.8)); 
        transform: scale(1.05);
    }
    100% { 
        filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.4)); 
        transform: scale(1);
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.nav-links a:hover::after {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 80px; /* Отступ для фиксированной навигации */
}

header {
    padding: 3rem 0;
    text-align: center;
    position: relative;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
}

h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--light) 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.oracle-title {
    background: linear-gradient(135deg, #ff9a56 0%, var(--oracle) 50%, #f7931e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dreams-title {
    background: linear-gradient(135deg, #4B0082 0%, #9966CC 50%, #E6E6FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--light);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
}

.btn-secondary {
    background: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
}

.btn-oracle {
    background: var(--oracle);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-oracle:hover {
    background: var(--oracle-dark);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.btn-dreams {
    background: linear-gradient(135deg, #4B0082 0%, #9966CC 100%);
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.3);
}

.btn-dreams:hover {
    background: linear-gradient(135deg, #3a006b 0%, #8652a0 100%);
    box-shadow: 0 8px 20px rgba(75, 0, 130, 0.4);
}

.header-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.features, .bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 7rem 0;
}

/* Обеспечиваем одинаковую высоту карточек ботов */
.bots-grid {
    align-items: stretch;
}

.feature-card, .bot-card {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(138, 43, 226, 0.1);
}

/* Выравнивание кнопок в карточках ботов */
.bot-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bot-card .header-buttons {
    margin-top: auto;
    padding-top: 1.5rem;
}

.feature-card::before, .bot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--card-hover) 0%, var(--card) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.feature-card:hover, .bot-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before, .bot-card:hover::before {
    opacity: 1;
}

.feature-icon, .bot-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.oracle-icon {
    background: linear-gradient(135deg, #ff9a56 0%, var(--oracle) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dreams-icon {
    background: linear-gradient(135deg, #4B0082 0%, #9966CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-title, .bot-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Специальные стили для страницы оракула */
.oracle-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 4rem 0;
    perspective: 1000px;
    flex-wrap: wrap;
}

.oracle-card {
    width: 130px;
    height: 220px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    margin: 0.5rem;
    cursor: pointer;
}

.oracle-card:hover {
    transform: rotateY(180deg);
}

.oracle-card-front, .oracle-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.oracle-card-front {
    background: radial-gradient(circle at center, #2d1810 0%, #0c0014 100%);
    font-size: 3.5rem;
    border: 2px solid rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 1;
}

.oracle-card-front::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle at center, rgba(255, 107, 53, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.oracle-card-back {
    background: var(--gradient-oracle);
    transform: rotateY(180deg);
    color: white;
    font-weight: bold;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    letter-spacing: 1px;
    line-height: 1.3;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Специальные стили для страницы снов */
.dreams-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 4rem 0;
    perspective: 1000px;
    flex-wrap: wrap;
}

.dream-card {
    width: 130px;
    height: 220px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    margin: 0.5rem;
    cursor: pointer;
}

.dream-card:hover {
    transform: rotateY(180deg);
}

.dream-card-front, .dream-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.dream-card-front {
    background: radial-gradient(circle at center, #1a0b2e 0%, #16213e 100%);
    font-size: 3.5rem;
    border: 2px solid rgba(75, 0, 130, 0.3);
    position: relative;
    z-index: 1;
}

.dream-card-front::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle at center, rgba(75, 0, 130, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.dream-card-back {
    background: linear-gradient(135deg, #4B0082 0%, #9966CC 100%);
    transform: rotateY(180deg);
    color: white;
    font-weight: bold;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    letter-spacing: 1px;
    line-height: 1.3;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Специальная сетка для 4 карточек снов в одну линию */
.pricing-cards.dreams-pricing {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.how-it-works {
    background: rgba(45, 0, 102, 0.3);
    padding: 5rem 0;
    border-radius: 30px;
    margin: 6rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 3rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 1.8rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.5; }
}

.step h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.step p {
    opacity: 0.9;
    font-weight: 300;
    font-size: 1.05rem;
}

.pricing {
    margin: 7rem 0;
    text-align: center;
}

.pricing h2 {
    margin-bottom: 4rem;
    font-size: 3rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* Специальная сетка для 4 карточек оракула в одну линию */
.pricing-cards.oracle-pricing {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--card);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.1);
}

.pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.pricing-card::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(138, 43, 226, 0.1), transparent);
    top: -50%;
    left: -50%;
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.pricing-card:hover::before {
    animation: shine 1.5s infinite;
}

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

.price {
    font-size: 3rem;
    font-weight: bold;
    margin: 1.5rem 0;
    color: white;
    font-family: 'Cormorant Garamond', serif;
}

.price-info {
    margin-bottom: 2rem;
    color: var(--light);
    font-size: 1.2rem;
    font-weight: 500;
}

.tarot-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 4rem 0;
    perspective: 1000px;
    flex-wrap: wrap;
}

.tarot-card {
    width: 130px;
    height: 220px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    margin: 0.5rem;
    cursor: pointer;
}

.tarot-card:hover {
    transform: rotateY(180deg);
}

.tarot-card-front, .tarot-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.tarot-card-front {
    background: var(--card-front);
    font-size: 3.5rem;
    border: 2px solid rgba(138, 43, 226, 0.3);
    position: relative;
    z-index: 1;
}

.tarot-card-front .tarot-symbol {
    position: relative;
    z-index: 1;
}

.tarot-card-front::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.tarot-card-back {
    background: var(--card-back);
    transform: rotateY(180deg);
    color: white;
    font-weight: bold;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    letter-spacing: 1px;
    line-height: 1.3;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

footer {
    background: rgba(12, 0, 20, 0.8);
    padding: 4rem 0;
    text-align: center;
    margin-top: 6rem;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

.telegram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: rgba(138, 43, 226, 0.2);
    display: inline-flex;
}

.telegram-link:hover {
    color: var(--light);
    background: rgba(138, 43, 226, 0.3);
    transform: translateY(-3px);
}

.floating-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    opacity: 0.5;
    animation: twinkle 5s infinite;
}

.star.large {
    width: 5px;
    height: 5px;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.3);
}

@keyframes twinkle {
    0% { opacity: 0.2; }
    50% { opacity: 0.8; }
    100% { opacity: 0.2; }
}

.copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 300;
}

/* Якорные ссылки с учетом фиксированной навигации */
section[id] {
    scroll-margin-top: 100px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    .tarot-cards, .oracle-cards, .dreams-cards {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .tarot-card, .oracle-card, .dream-card {
        width: 110px;
        height: 190px;
    }
    
    .feature-card, .pricing-card, .bot-card {
        padding: 2rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    /* Адаптивность для карточек оракула и снов */
    .pricing-cards.oracle-pricing, .pricing-cards.dreams-pricing {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 2rem;
    }
}

/* Для планшетов - 2 карточки в ряд */
@media (max-width: 1024px) and (min-width: 769px) {
    .pricing-cards.oracle-pricing {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        gap: 2rem;
    }
} 