/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цветовая палитра - темная мистическая тема */
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-hero: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 15px;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Шапка сайта */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0.75rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.9rem;
}

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

.nav a:hover {
    color: var(--primary-light);
}

.btn-login {
    padding: 0.4rem 1.2rem;
    background: var(--primary);
    border-radius: 8px;
    color: white !important;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Главный экран */
.hero {
    margin-top: 65px;
    padding: 4rem 0 3rem;
    background: var(--gradient-hero);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.feature-icon {
    font-size: 1.2rem;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--bg-hover);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
}

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

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* О сервисе */
.about {
    background: var(--bg-card);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.about-list {
    list-style: none;
    margin-top: 1.5rem;
}

.about-list li {
    padding: 0.6rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.card-display {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 380px;
    width: 100%;
}

.tarot-card {
    width: 200px;
    height: 330px;
    border-radius: 12px;
    position: absolute;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    transition: all 0.4s ease;
    overflow: hidden;
}

.tarot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Веер из карт - углы поворота */
.tarot-card.card-1 {
    transform: rotate(-30deg) translateY(15px);
    z-index: 1;
}

.tarot-card.card-2 {
    transform: rotate(-15deg) translateY(7px);
    z-index: 2;
}

.tarot-card.card-3 {
    transform: rotate(0deg);
    z-index: 3;
}

.tarot-card.card-4 {
    transform: rotate(15deg) translateY(7px);
    z-index: 2;
}

.tarot-card.card-5 {
    transform: rotate(30deg) translateY(15px);
    z-index: 1;
}

.tarot-card:hover {
    transform: translateY(-30px) scale(1.15) rotate(0deg) !important;
    z-index: 10 !important;
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.7);
}

/* Цены */
.prices {
    background: var(--bg-dark);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.price-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    transition: all 0.3s;
    position: relative;
}

.price-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px var(--shadow);
}

.price-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.badge-popular {
    position: absolute;
    top: -10px;
    right: 15px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.price-badge {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.price-description p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.price-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.price-features li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.price-footer {
    text-align: center;
}

/* Информация об оплате */
.payment-info {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 2.5rem;
    margin-top: 2.5rem;
}

.payment-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.payment-details {
    display: grid;
    gap: 1.5rem;
}

.payment-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.payment-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.payment-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.payment-item p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

.payment-item a {
    color: var(--primary);
    text-decoration: underline;
}

/* Как это работает */
.how-it-works {
    background: var(--bg-card);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.step {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
    color: white;
}

.step-content h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cta-box {
    background: var(--gradient-primary);
    padding: 2.5rem;
    border-radius: 14px;
    text-align: center;
}

.cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

/* Контакты */
.contacts {
    background: var(--bg-dark);
}

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

.contact-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.contact-info p {
    margin-bottom: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.contact-info strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.doc-link {
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.4rem;
}

/* Футер */
.footer {
    background: var(--bg-card);
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-copy {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-copy p {
    margin: 0.2rem 0;
}

/* Плавающая кнопка */
.fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.9rem 1.7rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    z-index: 999;
    transition: all 0.3s;
}

.fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.6);
}

/* Страницы документов */
.document {
    background: var(--bg-dark);
    padding: 4.5rem 0 3.5rem;
    margin-top: 65px;
}

.document-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.document-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.document-date {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
}

.document-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.document-content h2 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.document-content h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
}

.document-content p {
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.document-content ul {
    margin: 0.9rem 0 0.9rem 1.8rem;
    color: var(--text-secondary);
}

.document-content li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.document-content strong {
    color: var(--text-primary);
}

.document-content a {
    color: var(--primary);
    text-decoration: underline;
}

.requisites {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin: 1.5rem 0;
}

.requisites p {
    margin: 0.6rem 0;
}

.document-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
}

.back-button {
    text-align: center;
    margin-top: 2.5rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .card-display {
        height: 250px;
        margin: 1rem 0;
    }
    
    .tarot-card {
        width: 130px;
        height: 215px;
    }
    
    /* Уменьшаем углы веера на мобильных */
    .tarot-card.card-1 {
        transform: rotate(-20deg) translateY(8px);
    }
    
    .tarot-card.card-2 {
        transform: rotate(-10deg) translateY(4px);
    }
    
    .tarot-card.card-4 {
        transform: rotate(10deg) translateY(4px);
    }
    
    .tarot-card.card-5 {
        transform: rotate(20deg) translateY(8px);
    }

    .nav {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-copy {
        text-align: center;
    }

    .fab {
        bottom: 1rem;
        right: 1rem;
        padding: 0.7rem 1.3rem;
        font-size: 0.85rem;
    }

    .document-content {
        padding: 1.5rem;
    }

    .document-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .price-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease-out;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Выделение текста */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}
