:root {
    /* Триадная цветовая схема */
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --primary-light: #5dade2;
    
    --secondary-color: #e74c3c;
    --secondary-dark: #c0392b;
    --secondary-light: #f1948a;
    
    --tertiary-color: #2ecc71;
    --tertiary-dark: #27ae60;
    --tertiary-light: #58d68d;
    
    /* Нейтральные цвета */
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --black: #000000;
    
    /* Цвета текста */
    --text-dark: #222222;
    --text-medium: #555555;
    --text-light: #f5f5f5;
    
    /* Тени для неоморфизма */
    --shadow-light: rgba(255, 255, 255, 0.7);
    --shadow-dark: rgba(0, 0, 0, 0.1);
    
    /* Радиусы */
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 25px;
    --border-radius-xl: 40px;
    
    /* Переходы */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* Основные стили */
body, html {
    font-family: 'Nunito', sans-serif;
    color: var(--text-medium);
    background-color: var(--light-gray);
    scroll-behavior: smooth;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-dark);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--tertiary-color));
    margin: 0 auto 3rem;
    border-radius: var(--border-radius-sm);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-medium);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

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

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

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    display: block;
    margin: 0 auto;
}

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

/* Неоморфный стиль */
.neomorphic {
    border-radius: var(--border-radius-md);
    background: var(--light-gray);
    box-shadow: 
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
    transition: var(--transition-fast);
}

.neomorphic:hover {
    box-shadow: 
        12px 12px 20px var(--shadow-dark),
        -12px -12px 20px var(--shadow-light);
}

.neomorphic-inset {
    border-radius: var(--border-radius-md);
    background: var(--light-gray);
    box-shadow: 
        inset 6px 6px 12px var(--shadow-dark),
        inset -6px -6px 12px var(--shadow-light);
}

/* Биоморфный дизайн */
.biomorphic {
    border-radius: 62% 38% 70% 30% / 45% 55% 45% 55%;
    transition: var(--transition-medium);
}

.biomorphic:hover {
    border-radius: 38% 62% 30% 70% / 55% 45% 55% 45%;
}

/* Кнопки */
.btn, 
button:not(.navbar-toggler), 
input[type="submit"] {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: none;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after,
button:not(.navbar-toggler)::after,
input[type="submit"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn:hover::after,
button:not(.navbar-toggler):hover::after,
input[type="submit"]:hover::after {
    height: 100%;
}

.btn-primary, 
.btn-primary:hover, 
.btn-primary:active, 
.btn-primary:focus {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.2),
        -2px -2px 8px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 
        6px 6px 12px rgba(0, 0, 0, 0.3),
        -3px -3px 12px rgba(255, 255, 255, 0.1);
}

.btn-secondary, 
.btn-secondary:hover, 
.btn-secondary:active, 
.btn-secondary:focus {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.2),
        -2px -2px 8px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 
        6px 6px 12px rgba(0, 0, 0, 0.3),
        -3px -3px 12px rgba(255, 255, 255, 0.1);
}

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

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

.btn-lg {
    padding: 15px 30px;
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 2rem;
}

/* Карточки */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    transition: var(--transition-medium);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 
        10px 10px 20px var(--shadow-dark),
        -10px -10px 20px var(--shadow-light);
}

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

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

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

.card-content {
    padding: 1.5rem;
    text-align: center;
    width: 100%;
}

.card-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.card-content p {
    color: var(--text-medium);
}

/* Ссылки "Читать далее" */
.news-link, .resource-link {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    padding-right: 20px;
    margin-top: 10px;
    transition: var(--transition-fast);
}

.news-link::after, .resource-link::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition-fast);
}

.news-link:hover, .resource-link:hover {
    color: var(--primary-dark);
    padding-right: 25px;
}

.news-link:hover::after, .resource-link:hover::after {
    right: -5px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary-dark);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    padding: 8px 16px !important;
    margin: 0 5px;
    position: relative;
    transition: var(--transition-fast);
}

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

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

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

.navbar-toggler {
    border: none;
    background-color: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin-top: 0;
    padding-top: 5rem;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* History Section */
.history-section {
    background-color: var(--white);
}

.history-image {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 
        10px 10px 20px var(--shadow-dark),
        -10px -10px 20px var(--shadow-light);
}

.history-content {
    padding: 2rem;
}

.history-content h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

/* Research Section */
.research-section {
    background-color: var(--light-gray);
}

.research-card {
    height: 100%;
}

.research-card .card-image {
    height: 220px;
}

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

.resource-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
    transition: var(--transition-medium);
    height: 100%;
}

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

.resource-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
}

.resource-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-gray);
}

.testimonial-slider {
    position: relative;
    padding: 2rem 0;
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.8s ease-in-out forwards;
}

.testimonial-slide:first-child {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-image {
    text-align: center;
}

.testimonial-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
}

.testimonial-content {
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
}

.testimonial-content h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.client-position {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.rating {
    color: var(--tertiary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

blockquote {
    font-style: italic;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-control {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 
        4px 4px 8px var(--shadow-dark),
        -4px -4px 8px var(--shadow-light);
    transition: var(--transition-fast);
}

.testimonial-control:hover {
    transform: scale(1.1);
    background-color: var(--primary-color);
    color: var(--white);
}

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

.insights-accordion {
    max-width: 1000px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1.5rem;
    border: none;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
}

.accordion-button {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 1.5rem;
    background-color: var(--white);
    color: var(--primary-dark);
    box-shadow: none !important;
}

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

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

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

/* News Section */
.news-section {
    background-color: var(--light-gray);
}

.news-card {
    height: 100%;
}

.news-card .card-image {
    height: 220px;
}

.news-date {
    color: var(--tertiary-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--white);
}

.contact-info {
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius-md);
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-map {
    margin-top: 2rem;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
}

.contact-form {
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius-md);
    box-shadow: 
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
}

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

.form-control {
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 12px 15px;
    background-color: var(--white);
    box-shadow: 
        inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
    transition: var(--transition-fast);
}

.form-control:focus {
    box-shadow: 
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light),
        0 0 0 3px rgba(52, 152, 219, 0.2);
    border: none;
}

.form-check-input {
    box-shadow: 
        inset 2px 2px 4px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
    border: none;
}

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

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    padding-top: 4rem;
}

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

.footer p {
    color: var(--medium-gray);
}

.footer-about {
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--medium-gray);
    font-weight: 600;
    transition: var(--transition-fast);
}

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

.footer-links ul, 
.footer-services ul, 
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a, 
.footer-services a {
    color: var(--medium-gray);
    transition: var(--transition-fast);
}

.footer-links a:hover, 
.footer-services a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.newsletter {
    margin-top: 2rem;
}

.newsletter h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.newsletter form {
    display: flex;
}

.newsletter input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

.newsletter button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    cursor: pointer;
    transition: var(--transition-fast);
}

.newsletter button:hover {
    background-color: var(--primary-dark);
}

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

.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-legal a {
    color: var(--medium-gray);
    transition: var(--transition-fast);
}

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

/* Cookie Consent */
#cookie-consent {
    transition: var(--transition-fast);
}

#accept-cookies:hover {
    background-color: var(--primary-dark);
}

/* Success Page */
.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.success-container {
    max-width: 600px;
    padding: 3rem;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: 
        10px 10px 20px var(--shadow-dark),
        -10px -10px 20px var(--shadow-light);
}

.success-icon {
    width: 100px;
    height: 100px;
    background-color: var(--tertiary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: var(--white);
}

/* Privacy & Terms Pages */
.page-content {
    padding-top: 100px;
    padding-bottom: 3rem;
}

.page-content h1 {
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.page-content h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: var(--transition-slow);
}

.fade-in.active {
    opacity: 1;
}

.fade-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: var(--transition-slow);
}

.fade-right.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-left {
    opacity: 0;
    transform: translateX(30px);
    transition: var(--transition-slow);
}

.fade-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        border-radius: var(--border-radius-md);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .testimonial-image img {
        width: 200px;
        height: 200px;
    }
    
    .footer-legal {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 500px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .testimonial-content {
        margin-top: 1.5rem;
    }
    
    .contact-form, .contact-info {
        margin-bottom: 2rem;
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input {
        border-radius: var(--border-radius-sm);
        margin-bottom: 1rem;
    }
    
    .newsletter button {
        border-radius: var(--border-radius-sm);
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 450px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .testimonial-image img {
        width: 150px;
        height: 150px;
    }
}