/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 107, 180, 0.2), rgba(255, 182, 193, 0.1)), 
                url('background.jpeg') center/cover;
    min-height: 400px;
    position: relative;
    color: white;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(255, 105, 180, 0.1));
    padding: 40px 0;
    min-height: 400px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.organization-info {
    flex: 1;
}

.organization-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.center-name {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.center-description {
    font-size: 1.2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.contact-info {
    flex: 1;
    text-align: right;
    font-size: 0.9rem;
}

.contact-info > div {
    margin-bottom: 10px;
}

.accessibility-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.accessibility-btn:hover {
    background-color: #c0392b;
}

/* Top navigation */
.top-nav {
    background-color: rgba(0,0,0,0.3);
    padding: 15px 0;
    margin-top: 20px;
}

.nav-links {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255,255,255,0.2);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Main container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 30px 20px;
    background-color: white;
    margin-top: -1px;
}

/* Sidebar */
.sidebar {
    flex: 0 0 300px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background-color: #e9ecef;
    color: #333;
    border-left-color: #007bff;
}

.sidebar-menu a.active {
    background-color: #28a745;
    color: white;
    border-left-color: #1e7e34;
}

/* Content area */
.content-area {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.content-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.info-section {
    margin-bottom: 25px;
}

.info-section h3 {
    color: #2980b9;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-list {
    list-style: none;
    padding-left: 0;
}

.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.info-list li:last-child {
    border-bottom: none;
}

.highlight {
    background-color: #fff3cd;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
}

/* Program cards */
.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.program-card {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(155, 89, 182, 0.9)),
                url('https://images.pexels.com/photos/5212345/pexels-photo-5212345.jpeg?auto=compress&cs=tinysrgb&w=800') center/cover;
    border-radius: 12px;
    padding: 40px 30px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8), rgba(155, 89, 182, 0.8));
    z-index: 1;
}

.program-card-content {
    position: relative;
    z-index: 2;
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.program-card p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.program-btn {
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.program-btn:hover {
    background-color: white;
    color: #3498db;
}

/* Program detail page */
.program-detail {
    max-width: 800px;
    margin: 0 auto;
}

.program-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
    border-radius: 12px;
}

.program-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.program-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.download-section {
    text-align: center;
    margin: 30px 0;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #c0392b;
}

.pdf-icon {
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    font-weight: bold;
}

.program-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.program-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.program-content h3 {
    color: #3498db;
    margin: 25px 0 15px 0;
    font-size: 1.2rem;
}

.program-list {
    list-style: none;
    padding-left: 0;
}

.program-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.program-list li::before {
    content: '•';
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.program-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 20px 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #95a5a6;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background-color: #7f8c8d;
}

/* Footer */
.footer {
    background-color: #34495e;
    color: white;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-left h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #ecf0f1;
}

.footer-center {
    flex: 2;
}

.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-item .icon {
    font-size: 1rem;
    margin-top: 2px;
}

.footer-right {
    flex: 1;
    text-align: right;
}

.contact-details p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.license-status {
    font-style: italic;
    color: #bdc3c7;
    margin-top: 15px;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .nav-links {
        justify-content: center;
        font-size: 0.8rem;
    }
    
    .sidebar {
        display: none; /* Hide the entire sidebar on mobile */
    }
    
    .main-container {
        flex-direction: column;
        padding: 20px 15px;
    }
    
    .content-area {
        width: 100%;
    }
    
    .program-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .organization-name {
        font-size: 1.4rem;
    }
    
    .center-name {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .program-card {
        padding: 30px 20px;
    }
}

/* Loading animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #666;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.info-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.info-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.content-text {
    line-height: 1.6;
    color: #444;
}

.content-text p {
    margin-bottom: 15px;
}

.content-text ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-text li {
    margin-bottom: 10px;
}
.privacy-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    font: inherit;
    padding: 0;
}

.privacy-btn:hover {
    opacity: 0.8;
}
.accessibility-controls {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    z-index: 1000;
    display: none;
}

.accessibility-controls.active {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.font-size-controls {
    display: flex;
    gap: 5px;
}

.font-size-btn {
    background: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.font-size-btn:hover {
    background: #e0e0e0;
}

/* Accessibility Font Sizes */
body.accessibility-mode {
    font-size: 16px; /* Base size */
}

body.accessibility-mode.font-large {
    font-size: 20px;
}

body.accessibility-mode.font-larger {
    font-size: 24px;
}

body.accessibility-mode .hero-content {
    font-size: 1.2em;
}

body.accessibility-mode .nav-links a {
    font-size: 1.1em;
}

body.accessibility-mode .sidebar-menu a {
    font-size: 1.1em;
}

body.accessibility-mode .content-area {
    font-size: 1.1em;
}

body.accessibility-mode .footer {
    font-size: 1.1em;
}

/* Переопределяем стили для страницы лицензии */
.license-hero {
    height: 40vh !important; /* Меньшая высота для hero секции */
    background-image: url('../head.jpg') !important; /* Исправлен путь */
}

.license-hero .hero-title {
    font-size: 48px;
}

/* Остальные специфичные стили */
.main-container {
    margin-top: -50px;
    position: relative;
    z-index: 2;
    background: var(--bg-color);
    border-radius: 30px 30px 0 0;
    padding-top: 50px;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--main2);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 20px;
    padding: 15px 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 90%;
    max-width: 700px;
    font-size: 15px;
    color: var(--text-dark);
    z-index: 9999;
    animation: slideUp 0.6s ease forwards;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-accept-btn {
    background: var(--main2);
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.privacy-btn {
    background: none;
    border: none;
    color: var(--main1);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
}

.privacy-btn:hover {
    color: var(--main2);
}

@keyframes slideUp {
    from { opacity: 0; transform: translate(-50%, 50px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
}
/* Медиа запросы */
@media (max-width: 768px) {
    .license-hero .hero-title {
        font-size: 32px;
    }
    
    .main-container {
        margin-top: -30px;
        padding-top: 30px;
    }
}