:root {
    --primary-color: #1a237e;
    --secondary-color: #3949ab;
    --accent-color: #5c6bc0;
    --light-color: #e8eaf6;
    --dark-color: #0d1533;
    --text-color: #333;
    --light-text: #f5f5f5;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --info-color: #2196f3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f9f9f9;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    width: 100%;
}

.header-container .logo {
    text-decoration: none;
}

/* Исправленный логотип */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-container img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 18px;
    color: var(--primary-color);
    line-height: 1.2;
    text-decoration: none; /* Убираем подчеркивание заголовка */
}

.logo-text p {
    font-size: 12px;
    color: var(--accent-color);
}

/* Единое меню для всех версий */
.main-nav {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
    font-size: 16px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Dropdown menu для десктопа */
.desktop-dropdown {
    position: relative;
}

.desktop-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    z-index: 1000;
    top: 100%;
    left: 0;
    overflow: hidden;
    padding: 10px 0;
}

.desktop-dropdown-content a {
    color: var(--text-color);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    font-weight: 500;
}

.desktop-dropdown-content a:last-child {
    border-bottom: none;
}

.desktop-dropdown-content a:hover,
.desktop-dropdown-content a.active {
    background-color: #f5f5f5;
    color: var(--primary-color);
    padding-left: 25px;
}

.desktop-dropdown:hover .desktop-dropdown-content {
    display: block;
}

/* Мобильное меню - скрытое по умолчанию */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background-color: rgba(26, 35, 126, 0.05);
}

/* Анимация появления блоков */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Кнопки */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    font-size: 16px;
}

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

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

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

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--secondary-color);
    gap: 10px;
}

/* Main Content */
.main-content {
    padding: 80px 0;
    flex: 1;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
}

.section-subtitle h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Hero Section для страниц */
.page-hero {
    padding: 50px 0;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    width: 100%;
}

.page-hero-content h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-hero-content p {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--light-color);
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.next {
    width: auto;
    padding: 0 20px;
}

/* Кнопка возврата */
.back-button {
    text-align: center;
    margin-top: 60px;
}

/* Декоративные элементы орнамента */
.ornament-divider {
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='20' viewBox='0 0 100 20'%3E%3Cpath d='M0,10 Q25,5 50,10 T100,10' fill='none' stroke='%235c6bc0' stroke-width='1' opacity='0.6'/%3E%3Ccircle cx='10' cy='10' r='2' fill='%235c6bc0' opacity='0.8'/%3E%3Ccircle cx='30' cy='10' r='2' fill='%235c6bc0' opacity='0.8'/%3E%3Ccircle cx='50' cy='10' r='2' fill='%235c6bc0' opacity='0.8'/%3E%3Ccircle cx='70' cy='10' r='2' fill='%235c6bc0' opacity='0.8'/%3E%3Ccircle cx='90' cy='10' r='2' fill='%235c6bc0' opacity='0.8'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    margin: 30px 0;
    opacity: 0.7;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-text);
    padding: 60px 0 20px;
    width: 100%;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-section p {
    opacity: 0.8;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--light-text);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1100px) {
	header {
		padding: 0 10px;
	}
	
    .nav-menu {
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 15px;
    }
    
    .page-hero-content h1 {
        font-size: 3rem;
    }
    
    .logo-container img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 992px) {
    .logo-container img {
        width: 60px;
        height: 60px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .page-hero-content h1 {
        font-size: 2.8rem;
    }
    
    .page-hero-content p {
        font-size: 1.3rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 110px;
        left: 20px;
        right: 20px;
        background-color: white;
        flex-direction: column;
        gap: 0;
        border-radius: var(--border-radius);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        padding: 15px 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        padding: 16px 20px;
        font-size: 16px;
        border-bottom: 1px solid #f0f0f0;
        justify-content: space-between;
    }
    
    .nav-menu li:last-child a {
        border-bottom: none;
    }
    
    .nav-menu a:hover {
        background-color: #f9f9f9;
    }
    
    .desktop-dropdown-content {
        display: none !important;
    }
    
    .nav-menu .desktop-dropdown.active .dropdown-toggle i {
        transform: rotate(180deg) !important;
    }
    
    .nav-menu .dropdown-toggle i {
        transition: transform 0.3s ease;
    }

    .logo-container img {
        width: 55px;
        height: 55px;
    }
    
    .logo-text h1 {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 80px 0;
    }
    
    .page-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .page-hero-content p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .main-content {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .logo-container {
        gap: 10px;
    }
    
    .logo-container img {
        width: 45px;
        height: 45px;
    }
    
    .logo-text h1 {
        font-size: 13px;
    }
    
    .logo-text p {
        font-size: 10px;
    }
    
    .nav-menu {
        left: 15px;
        right: 15px;
        top: 100px;
    }
    
    .page-hero-content h1 {
        font-size: 2rem;
    }
    
    .page-hero-content p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .page-hero {
        padding: 60px 0;
    }
}