/* Переменные */
:root {
    /* Основная цветовая схема (раздельно-дополнительная) */
    --primary-color: #3a86ff;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #fb5607;
    --secondary-dark: #d64e00;
    --secondary-light: #ff7c38;
    --accent-color: #ffbe0b;
    --accent-dark: #e6a800;
    --accent-light: #ffd16a;
    
    /* Нейтральные цвета */
    --dark: #1a1a2e;
    --dark-soft: #16213e;
    --medium: #0f3460;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Биоморфные переменные */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --blob-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    
    /* Нейроморфные тени */
    --neuro-shadow-light: 8px 8px 16px rgba(200, 200, 210, 0.5), -8px -8px 16px rgba(255, 255, 255, 0.8);
    --neuro-shadow-dark: 8px 8px 16px rgba(0, 0, 0, 0.2), -8px -8px 16px rgba(60, 60, 70, 0.1);
    --neuro-shadow-inset: inset 2px 2px 5px rgba(0, 0, 0, 0.05), inset -2px -2px 5px rgba(255, 255, 255, 0.3);
    --neuro-shadow-small: 4px 4px 8px rgba(200, 200, 210, 0.5), -4px -4px 8px rgba(255, 255, 255, 0.8);
    
    /* Переходы и анимации */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Шрифты */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Work Sans', sans-serif;
}

/* Reset и базовые стили */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background-color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 5rem 0;
    position: relative;
}

/* Общие компоненты и утилиты */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    box-shadow: var(--neuro-shadow-small);
}

.btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -2;
}

.btn:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    transition: all var(--transition-medium);
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

.btn:active {
    transform: scale(0.98);
    box-shadow: var(--neuro-shadow-inset);
}

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

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

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

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

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

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

.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--neuro-shadow-light);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    border: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Стилизация форм */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--gray-300);
    background-color: var(--white);
    box-shadow: var(--neuro-shadow-inset);
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(58, 134, 255, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-medium);
}

.header.scrolled {
    padding: 0.7rem 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-medium);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 26, 46, 0.8), rgba(15, 52, 96, 0.7));
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Insights Section */
.insights {
    position: relative;
    background-color: var(--white);
}

.insights.dark-bg {
    background-color: var(--dark-soft);
    color: var(--light);
}

.insights.dark-bg .section-header h2,
.insights.dark-bg .card-content h3 {
    color: var(--light);
}

.insights.dark-bg .section-subtitle {
    color: var(--gray-300);
}

.insight-card {
    height: 100%;
    transition: transform var(--transition-medium);
}

.insight-card:hover {
    transform: translateY(-10px);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.card-content p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

/* Media Section */
.media {
    background-color: var(--gray-100);
    position: relative;
}

.media-content {
    padding: 2rem;
}

.media-content h3 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.media-content p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.media-video {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--neuro-shadow-light);
}

.media-video img {
    width: 100%;
    height: auto;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-medium);
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--primary-color);
}

.play-icon {
    font-size: 2rem;
    color: var(--primary-color);
    transition: color var(--transition-medium);
}

.play-button:hover .play-icon {
    color: var(--white);
}

/* Statistics Section */
.statistics {
    background-color: var(--white);
    position: relative;
}

.statistics:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/stats-bg-pattern.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.stats-container {
    position: relative;
    z-index: 1;
}

.stat-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--neuro-shadow-light);
    transition: transform var(--transition-medium);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.stat-description {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.stats-chart {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--neuro-shadow-light);
    margin-bottom: 1.5rem;
}

.stats-chart h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.stats-chart img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Gallery Section */
.gallery {
    background-color: var(--gray-100);
    position: relative;
}

.gallery-container {
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--neuro-shadow-light);
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    transform: translateY(100%);
    transition: transform var(--transition-medium);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--gray-200);
}

/* Resources Section */
.resources {
    background-color: var(--white);
    position: relative;
}

.resources-list {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--neuro-shadow-light);
    height: 100%;
}

.resources-list h3, 
.resources-tools h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.resource-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-links li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.resource-links li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.resource-links a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.resource-links a:hover {
    color: var(--primary-dark);
}

.resource-links p {
    color: var(--gray-600);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.resources-tools {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--neuro-shadow-light);
    height: 100%;
}

.accordion-button {
    background-color: var(--white);
    color: var(--dark);
    font-weight: 600;
    box-shadow: none;
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-light);
}

.accordion-body {
    padding: 1.5rem;
    background-color: var(--gray-100);
}

.accordion-body p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

/* Contact Section */
.contact {
    background-color: var(--gray-100);
    position: relative;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-info:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50% 0 0 70%;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
}

.contact-info p {
    color: var(--gray-200);
    margin-bottom: 2rem;
    position: relative;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    position: relative;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-details .icon {
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details .detail {
    line-height: 1.4;
}

.social-links {
    display: flex;
    gap: 1rem;
    position: relative;
}

.social-link {
    color: var(--white);
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.contact-form {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--neuro-shadow-light);
    height: 100%;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--gray-300);
    padding: 5rem 0 0;
    position: relative;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer-brand h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--gray-400);
    margin-bottom: 2rem;
}

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

.footer-social .social-link {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-social .social-link:hover {
    color: var(--primary-light);
}

.footer-title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-block;
}

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

.footer-subscribe .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.footer-subscribe .form-control::placeholder {
    color: var(--gray-500);
}

.footer-subscribe .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright, .disclaimer {
    margin-bottom: 0;
    color: var(--gray-500);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-bottom .row div {
        text-align: center;
    }
    
    .disclaimer {
        margin-top: 0.5rem;
    }
}

/* Modals */
.modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--neuro-shadow-light);
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: none;
    padding: 1.5rem;
}

.demo-content {
    padding: 1rem;
}

.demo-content p {
    color: var(--gray-700);
    margin-top: 1rem;
}

/* Success page */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light);
}

.success-content {
    text-align: center;
    padding: 3rem;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--neuro-shadow-light);
    max-width: 600px;
    width: 100%;
}

.success-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.success-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.success-message {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Privacy and Terms pages */
.privacy-content, 
.terms-content {
    padding-top: 100px;
    padding-bottom: 3rem;
}

.privacy-content h1,
.terms-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.privacy-content h2,
.terms-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.privacy-content p,
.terms-content p {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.privacy-content ul,
.terms-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.privacy-content li,
.terms-content li {
    margin-bottom: 0.8rem;
    color: var(--gray-700);
}

/* Адаптивный дизайн */
@media (max-width: 1200px) {
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .media-content h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    section {
        padding: 4rem 0;
    }
    
    .hero {
        height: auto;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .media-content {
        margin-bottom: 2rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .card-content h3 {
        font-size: 1.3rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
}

/* Анимации */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 3s ease-in-out infinite;
}

/* Добавляем 3D эффекты для карточек */
.card, 
.stat-card, 
.gallery-item, 
.resources-list, 
.resources-tools, 
.contact-form, 
.contact-info {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card:hover, 
.stat-card:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
}

.gallery-item:hover {
    transform: scale(1.02) rotateY(2deg);
}

/* Дополнительные стили для биоморфного дизайна */
.blob-shape {
    border-radius: var(--blob-radius);
    transition: border-radius var(--transition-slow);
}

.blob-shape:hover {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

html,body{
    overflow-x: hidden;
}