:root {
    --main-color: #0B2447;
    --main-color-light: #1D3B68;
    --main-color-dark: #071A36;
    --text-color: #F0F0F5;
    --text-color-muted: rgba(240, 240, 245, 0.7);
    --transition: all 0.3s ease;
}

/* Общие стили */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--main-color-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--text-color-muted);
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-decoration,
.hero-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
}

.section-decoration .line,
.hero-decoration .line {
    height: 1px;
    width: 50px;
    background-color: var(--text-color-muted);
}

.section-decoration .dot,
.hero-decoration .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-color);
    margin: 0 10px;
}

section {
    padding: 100px 0;
    position: relative;
}

.btn-primary {
    background-color: var(--main-color-light);
    border-color: var(--main-color-light);
    color: var(--text-color);
    padding: 12px 28px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.5s ease-out;
}

.btn-primary:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Липкое меню - улучшенная версия */
.navbar {
    background-color: rgba(4, 16, 33, 0.95); /* Более темный фон для лучшего контраста */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); /* Усиленная тень */
    border-bottom: 1px solid rgba(240, 240, 245, 0.1); /* Тонкая граница для визуального разделения */
    z-index: 1000; /* Больший z-index, чтобы гарантировать, что меню всегда поверх всех элементов */
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(4, 16, 33, 0.98); /* Еще более тёмный и непрозрачный фон при скролле */
}

.navbar-brand {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--text-color);
    letter-spacing: 2px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Тень для текста логотипа */
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(240, 240, 245, 0), rgba(240, 240, 245, 0.7), rgba(240, 240, 245, 0));
    transform: scaleX(0.7);
    transform-origin: center;
    transition: transform 0.5s ease-out;
}

.navbar-brand:hover::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 400;
    margin: 0 15px;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--text-color);
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    visibility: visible;
    width: 100%;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: var(--text-color);
    font-weight: 600;
}

/* Индикатор активного пункта меню - более заметный */
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--text-color);
    border-radius: 50%;
}

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

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

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(240, 240, 245, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Мобильная версия меню - улучшенная */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(4, 16, 33, 0.98);
        padding: 20px;
        border-radius: 8px;
        margin-top: 15px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(240, 240, 245, 0.05);
    }
    
    .navbar-nav .nav-link {
        padding: 12px 10px;
        margin: 5px 0;
        border-radius: 4px;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background-color: rgba(240, 240, 245, 0.05);
    }
    
    .navbar-nav .nav-link::before {
        display: none;
    }
    
    .navbar-nav .nav-link.active::after {
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
    }
}

/* Главный баннер */
.hero-section {
    padding: 150px 0 100px;
    background-color: var(--main-color);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, var(--main-color-light) 0%, var(--main-color) 50%, var(--main-color-dark) 100%);
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-color-muted);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.7s;
}

.hero-decoration {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.6s;
}

.hero-decoration .line {
    height: 1px;
    width: 50px;
    background-color: var(--text-color-muted);
}

.hero-decoration .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-color);
    margin: 0 10px;
}

.hero-image-container {
    margin: 40px auto 0;
    max-width: 600px;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.9s;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(240, 240, 245, 0.1);
}

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

/* Адаптивность для hero секции */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-image-container {
        max-width: 500px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-image-container {
        max-width: 400px;
    }
}

@media (max-width: 575.98px) {
    
    .service-icon, .service-title {
    text-align: center;
    }
    
    .service-divider {
    margin: 0px auto 15px auto;
    }
    
    .hero-section {
        padding: 130px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-image-container {
        max-width: 300px;
    }
}

/* Раздел: Введение */
.intro-section {
    background-color: var(--main-color-dark);
}

.intro-section .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Раздел: Услуги */
.services-section {
    background-color: var(--main-color);
    position: relative;
    overflow: hidden;
}

.services-grid {
    margin-top: 50px;
}

.service-card {
    background-color: rgba(7, 26, 54, 0.5);
    padding: 40px 30px;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(240, 240, 245, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 59, 104, 0.1) 0%, rgba(7, 26, 54, 0.1) 100%);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background-color: rgba(29, 59, 104, 0.4);
}

.service-icon {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 2.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
}

.service-divider {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, var(--text-color), rgba(240, 240, 245, 0));
    margin-bottom: 15px;
}

.service-description {
    color: var(--text-color-muted);
    font-size: 0.95rem;
}

/* Раздел: Экспертиза */
.expertise-section {
    background-color: var(--main-color-dark);
    position: relative;
    overflow: hidden;
}

.expertise-content {
    padding: 30px;
    position: relative;
}

.expertise-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--text-color), rgba(240, 240, 245, 0));
}

.expertise-subtitle {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.expertise-content p {
    margin-bottom: 20px;
    color: var(--text-color-muted);
}

/* Раздел: Подход к работе */
.approach-section {
    background-color: var(--main-color);
    position: relative;
    overflow: hidden;
}

.approach-card {
    position: relative;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(240, 240, 245, 0.05);
    transition: var(--transition);
}

.approach-card:hover {
    background-color: rgba(29, 59, 104, 0.4);
    transform: translateY(-5px);
}

.approach-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    color: rgba(240, 240, 245, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.approach-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.approach-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: var(--text-color-muted);
}

.approach-description {
    color: var(--text-color-muted);
    font-size: 0.95rem;
}

/* Раздел: Преимущества */
.advantages-section {
    background-color: var(--main-color-dark);
    position: relative;
    overflow: hidden;
}

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

.advantages-list li {
    display: flex;
    margin-bottom: 30px;
}

.advantage-icon {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-right: 20px;
    flex-shrink: 0;
}

.advantage-text h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.advantage-text p {
    color: var(--text-color-muted);
    font-size: 0.95rem;
}

/* Финальный раздел */
.final-section {
    background-color: var(--main-color);
    text-align: center;
    padding: 80px 0;
}

.final-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.final-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-color-muted);
}

.final-action {
    margin-top: 40px;
}

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-inner {
    width: 50px;
    height: 50px;
    background-color: var(--main-color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top-inner:hover {
    background-color: var(--main-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top-icon {
    width: 15px;
    height: 15px;
    border-left: 2px solid var(--text-color);
    border-top: 2px solid var(--text-color);
    transform: rotate(45deg);
}

/* Footer */
.footer {
    background-color: var(--main-color-dark);
    padding: 30px 0;
    text-align: center;
}

.footer-content p {
    margin: 0;
    color: var(--text-color-muted);
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(7, 26, 54, 0.98);
        padding: 20px;
        border-radius: 5px;
        margin-top: 10px;
    }

    .navbar-nav .nav-link {
        padding: 10px 0;
    }

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

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

    section {
        padding: 70px 0;
    }

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

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

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

    section {
        padding: 50px 0;
    }

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

    .approach-number {
        font-size: 2.5rem;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
    }
}

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

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

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

    .expertise-subtitle {
        font-size: 1.3rem;
    }

    .final-title {
        font-size: 1.8rem;
    }

    .final-description {
        font-size: 1rem;
    }
}

/* Стили для второй страницы */

/* Партнерская ссылка */
.partner-link {
    color: var(--text-color);
    font-weight: 400;
    text-decoration: underline;
    transition: var(--transition);
}

.partner-link:hover {
    color: var(--text-color);
    text-decoration: none;
}

/* Правовые разделы */
.legal-section {
    position: relative;
    overflow: hidden;
}

.legal-section:nth-child(odd) {
    background-color: var(--main-color-dark);
}

.legal-section:nth-child(even) {
    background-color: var(--main-color);
}

.legal-content {
    padding: 20px 0;
}

.legal-subtitle {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.legal-content p {
    margin-bottom: 20px;
    color: var(--text-color-muted);
}

/* Информационные карточки */
.legal-info-card {
    display: flex;
    background-color: rgba(7, 26, 54, 0.5);
    border: 1px solid rgba(240, 240, 245, 0.1);
    padding: 25px;
    margin: 30px 0;
    border-radius: 3px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.legal-info-icon {
    font-size: 2rem;
    color: var(--text-color);
    margin-right: 20px;
    flex-shrink: 0;
}

.legal-info-text p {
    margin-bottom: 0;
    color: var(--text-color);
}

/* Рекомендации */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.recommendation-card {
    background-color: rgba(7, 26, 54, 0.5);
    border: 1px solid rgba(240, 240, 245, 0.1);
    padding: 30px;
    border-radius: 3px;
    transition: var(--transition);
    height: 100%;
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background-color: rgba(29, 59, 104, 0.4);
}

.recommendation-icon {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 2.5rem;
    transition: var(--transition);
}

.recommendation-card:hover .recommendation-icon {
    transform: scale(1.1);
}

.recommendation-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.recommendation-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: var(--text-color-muted);
}

.recommendation-text {
    color: var(--text-color-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Адаптивность для второй страницы */
@media (max-width: 991.98px) {
    .legal-subtitle {
        font-size: 1.4rem;
    }
    
    .recommendations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .legal-info-card {
        padding: 20px;
    }
}

@media (max-width: 767.98px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .legal-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-info-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 575.98px) {
    .legal-subtitle {
        font-size: 1.3rem;
    }
    
    .recommendation-card {
        padding: 20px;
    }
}