/* ==========================================================================
   1. ГЛОБАЛЬНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ
   ========================================================================== */
:root {
    --primary-color: #6a45ff;
    --background-color: #000000;
    --text-color: #e0e0e0;
    --heading-color: #ffffff;
    --border-color: #333333;
    --font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    line-height: 1.6;
}


/* ==========================================================================
   2. ОБЩИЕ КОМПОНЕНТЫ И УТИЛИТЫ
   ========================================================================== */

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--heading-color);
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

.button-primary {
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid var(--primary-color);
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.button-primary:hover {
    background-color: #5234cc;
}

.button-secondary {
    background-color: transparent;
    color: var(--heading-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.content-section {
    padding: 100px 0;
    background-color: #050505;
}

.content-section p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
}

.text-left {
    text-align: left;
}

/* Эффект пишущей машинки */
.typing::after {
    content: '▌';
    display: inline-block;
    margin-left: 0.2em;
    color: var(--primary-color);
    animation: blink 1s step-end infinite;
}


/* ==========================================================================
   3. СТИЛИ МАКЕТА (ШАПКА И ПОДВАЛ)
   ========================================================================== */

.site-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.site-footer {
    padding: 40px 0;
    text-align: center;
    background-color: #050505;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}


/* ==========================================================================
   4. СТИЛИ СЕКЦИЙ СТРАНИЦЫ
   ========================================================================== */

/* --- Секция "Главная" (Hero) --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #0a1128;
}

#globe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: grab;
}

#globe-container:grabbing {
    cursor: grabbing;
}

.hero-content-container {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.hero-content h1,
.hero-content .subtitle,
.hero-content .form-subtext {
    color: var(--heading-color);
}

.hero-content .pill-badge {
    display: inline-block;
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(5px);
    color: var(--heading-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.hero-content .subtitle {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    opacity: 0.8;
}

.signup-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
    pointer-events: all;
}

.signup-form input {
    width: 300px;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    font-size: 1rem;
    color: #fff;
}

.signup-form input::placeholder {
    color: #ccc;
}

/* Маркеры на глобусе */
#marker-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.globe-marker {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    color: #e0e0e0;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -100%);
    margin-top: -6px;
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    line-height: 1.2;
    transition: all 0.2s ease;
    width: auto;
}

.globe-marker:hover {
    background: rgba(106, 69, 255, 0.9);
    color: #ffffff;
    transform: translate(-50%, -100%) scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* --- Секция "О нас" (About) --- */
#about.content-section {
    padding: 0;
    position: relative;
    height: 100vh;
    background: #000;
    overflow: hidden;
}

#about canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.starry-sky-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: left;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem 3rem;
    border-radius: 15px;
    max-width: 800px;
    border: 1px solid rgba(100, 150, 255, 0.3);
    backdrop-filter: blur(10px);
}

.starry-sky-content h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.starry-sky-content ul {
    padding-left: 20px;
}

.starry-sky-content li {
    margin-bottom: 0.5rem;
}


/* --- Секция "Наш продукт" (Product) --- */
#product.content-section {
    padding: 0;
}

#product .container {
    max-width: 100%;
    padding: 0;
}

/* Скрываем базовый текст, который будет анимирован */
#product .container > h2,
#product .container > p,
#product-description, 
#product-h2 {
    opacity: 0;
}

.black-hole-container {
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #000000;
}

#black-hole-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.black-hole-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: left;
    max-width: 800px;
    padding: 2rem 3rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 150, 255, 0.3);
}

.black-hole-content h2 {
    color: var(--heading-color);
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.black-hole-content p {
    color: #e0e0e0;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.6;
}

#product-cta-button {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

#product-cta-button.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Секция "Цены" (Pricing) --- */
#pricing {
    position: relative;
    overflow: hidden;
    background-color: #000;
    padding: 100px 0;
}

#pricing-star-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#pricing .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

#pricing h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-description,
.pricing-factor-item h3,
.pricing-factor-item p {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

#pricing-cta-button {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

#pricing-cta-button.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-description {
    text-align: left;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
    min-height: 80px;
}

.pricing-factor-item {
    text-align: left;
    margin-bottom: 1.5rem;
}

.pricing-factor-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    min-height: 36px;
}

.pricing-factor-item p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
    max-width: 100%;
    text-align: left;
    min-height: 60px;
}

.pricing-cta-link {
    display: inline-block;
    margin-top: 2rem;
}


/* --- Секция "Проекты" (Projects) --- */
#projects {
    position: relative;
    overflow: hidden;
    background-color: #000;
}

#galaxy-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#projects .container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    text-align: center;
}

.projects-intro {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.9;
    margin: 0 auto 3rem auto;
    max-width: 700px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-bottom: 3rem;
}

.project-card {
    background-color: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(106, 69, 255, 0.5);
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 0.75rem;
}

.project-card p {
    font-size: 1rem;
    text-align: left;
    opacity: 0.8;
    margin: 0;
    flex-grow: 1;
}

.projects-cta {
    margin-top: 2rem;
}


/* --- Секция "Контакты" (Contacts) --- */
#contacts {
    position: relative;
    overflow: hidden;
    background-color: #000;
    color: #fff;
    padding-top: 100px;
    padding-bottom: 100px;
}

#sun-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#contacts .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
}

.contacts-wrapper {
    background-color: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    backdrop-filter: blur(8px);
}

#contacts h2 {
    margin-bottom: 2.5rem;
    font-family: 'Playfair Display', serif;
}

.requisites-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
}

.requisites-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.requisites-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.requisites-info {
    font-size: 1.1rem;
    line-height: 1.6;
}

.requisites-info strong {
    display: block;
    color: #fff;
    margin-bottom: 0.25rem;
}

.requisites-info span,
.requisites-info a {
    color: var(--text-color);
    opacity: 0.9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.requisites-info a:hover {
    color: var(--primary-color);
}


/* ==========================================================================
   5. АНИМАЦИИ (KEYFRAMES)
   ========================================================================== */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
}

@keyframes blink {
    from,
    to {
        color: transparent;
    }
    50% {
        color: var(--primary-color);
    }
}


/* ==========================================================================
   6. МЕДИА-ЗАПРОСЫ (АДАПТИВНОСТЬ)
   ========================================================================== */

@media (max-width: 768px) {
    .black-hole-container {
        height: 70vh;
    }
    .black-hole-content {
        padding: 1.5rem;
        max-width: calc(100% - 2rem);
    }
}

@media (min-width: 768px) {
    .requisites-grid {
        grid-template-columns: 1fr 1fr;
    }
    .requisites-item.full-width {
        grid-column: 1 / -1;
    }
}