/* Основные стили и переменные */
:root {
    --primary-dark: #1a1a1a;
    --primary-brown: #2d1810;
    --accent-gold: #d4af37;
    --accent-bronze: #cd7f32;
    --accent-red: #8b0000;
    --text-light: #f5f5f5;
    --text-muted: #b0b0b0;
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-brown) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-bronze) 100%);
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--gradient-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.logo-part {
    color: var(--accent-gold);
    transition: all 0.3s ease;
}

.logo-diamond {
    color: var(--accent-gold);
    font-size: 1.2em;
    margin: 0 2px;
    animation: diamond-glow 3s ease-in-out infinite alternate;
}

.logo-separator {
    color: var(--accent-gold);
    font-size: 0.8em;
    margin: 0 4px;
    opacity: 0.8;
}

.nav-logo:hover .logo-part {
    color: var(--text-light);
    transform: scale(1.05);
}

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

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

.nav-link:hover {
    color: var(--accent-gold);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-gold);
    margin: 3px 0;
    transition: 0.3s;
}

/* Главная секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    z-index: 2;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.title-line {
    display: block;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-glow 2s ease-in-out infinite alternate;
}

.title-line:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-accent);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

/* Кристальный шар и карты */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.crystal-ball {
    position: relative;
    width: 300px;
    height: 300px;
}

.ball-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: ball-pulse 4s ease-in-out infinite;
}

.ball-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(212, 175, 55, 0.8) 50%, rgba(45, 24, 16, 0.6) 100%);
    border-radius: 50%;
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(212, 175, 55, 0.5);
    animation: ball-rotate 20s linear infinite;
}

.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card {
    position: absolute;
    width: 60px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-brown) 100%);
    border-radius: 8px;
    border: 2px solid var(--accent-gold);
    box-shadow: var(--shadow-card);
    animation: card-float 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
    will-change: transform;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.15) 50%, transparent 70%);
    animation: card-shine 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.card-symbol {
    font-size: 24px;
    margin-bottom: 4px;
    z-index: 2;
    position: relative;
}

.card-title {
    font-size: 8px;
    color: var(--accent-gold);
    font-weight: 600;
    text-align: center;
    z-index: 2;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.card-1 {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.card-2 {
    top: 20%;
    right: 20%;
    animation-delay: 1.5s;
}

.card-3 {
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
    animation-delay: 3s;
}

.card-4 {
    bottom: 20%;
    right: 20%;
    animation-delay: 4.5s;
}

.card-5 {
    bottom: 15%;
    left: 15%;
    animation-delay: 6s;
}

/* Индикатор прокрутки */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    transform: rotate(45deg);
}

/* Секции */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.title-decoration {
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.title-decoration i {
    animation: star-twinkle 2s ease-in-out infinite;
}

.title-decoration i:nth-child(2) {
    animation-delay: 0.5s;
}

.title-decoration i:nth-child(3) {
    animation-delay: 1s;
}

/* О Веде */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-avatar {
    display: flex;
    justify-content: center;
}

.avatar-frame {
    position: relative;
    width: 300px;
    height: 300px;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    position: relative;
}

.avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.avatar-image:hover img {
    transform: scale(1.05);
}

.avatar-fallback {
    display: none;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--primary-dark);
}

.avatar-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient-accent);
    border-radius: 50%;
    z-index: -1;
    animation: avatar-pulse 3s ease-in-out infinite;
}

.about-text h3 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.feature i {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(45, 24, 16, 0.6);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-gold);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

/* Специальные стили для иконки карты */
.custom-card-icon {
    width: 40px;
    height: 60px;
    background: var(--primary-dark);
    border-radius: 6px;
    position: relative;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.custom-card-icon::before {
    content: '♠';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: var(--accent-gold);
    font-weight: bold;
}

.service-card:hover .custom-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.service-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Контакты */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(45, 24, 16, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--accent-gold);
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.contact-details h4 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-details p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.contact-link {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    color: var(--text-light);
    border-bottom-color: var(--accent-gold);
}

.contact-form {
    background: rgba(45, 24, 16, 0.6);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-form h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-accent);
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Альтернативная отправка в Telegram */
.alternative-send {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
}

.alternative-send p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.telegram-direct-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #0088cc;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.telegram-direct-btn:hover {
    background: #0077b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
    color: white;
}

.telegram-direct-btn i {
    font-size: 1.2rem;
}

/* Футер */
.footer {
    background: var(--primary-dark);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.footer-logo .logo-text {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-logo .logo-part {
    color: var(--accent-gold);
    transition: all 0.3s ease;
}

.footer-logo .logo-diamond {
    color: var(--accent-gold);
    font-size: 1.2em;
    margin: 0 2px;
    animation: diamond-glow 3s ease-in-out infinite alternate;
}

.footer-logo .logo-separator {
    color: var(--accent-gold);
    font-size: 0.8em;
    margin: 0 4px;
    opacity: 0.8;
}

.footer-logo:hover .logo-part {
    color: var(--text-light);
    transform: scale(1.05);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-muted);
}

/* Анимации */
@keyframes moon-glow {
    0% { text-shadow: 0 0 10px var(--accent-gold); }
    100% { text-shadow: 0 0 20px var(--accent-gold), 0 0 30px var(--accent-gold); }
}

@keyframes diamond-glow {
    0% { 
        text-shadow: 0 0 8px var(--accent-gold);
        transform: scale(1);
    }
    100% { 
        text-shadow: 0 0 15px var(--accent-gold), 0 0 25px var(--accent-gold);
        transform: scale(1.1);
    }
}

@keyframes title-glow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

@keyframes ball-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.4; }
}

@keyframes ball-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes card-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translateY(-20px) rotate(3deg) scale(1.03); 
    }
    50% { 
        transform: translateY(-30px) rotate(6deg) scale(1.06); 
    }
    75% { 
        transform: translateY(-20px) rotate(3deg) scale(1.03); 
    }
}

@keyframes card-shine {
    0%, 100% { 
        opacity: 0; 
        transform: translateX(-100%) scaleX(0.5); 
    }
    50% { 
        opacity: 0.8; 
        transform: translateX(0%) scaleX(1); 
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes star-twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes avatar-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .crystal-ball {
        width: 200px;
        height: 200px;
    }
    
    .ball-core {
        width: 150px;
        height: 150px;
    }
    
    .card {
        width: 40px;
        height: 60px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}
