/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    flex: 0 1 auto;
    min-width: 0;
}

.logo h1 {
    font-size: 20px;
    color: #0288D1;
    line-height: 1.3;
    margin: 0;
    word-wrap: break-word;
    font-weight: 600;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.main-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #03A9F4;
}

.header-contact {
    flex: 0 0 auto;
    white-space: nowrap;
}

.header-contact .phone {
    text-decoration: none;
    color: #0288D1;
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #B3E5FC 0%, #81D4FA 50%, #4FC3F7 100%);
    color: #2C3E50;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #03A9F4;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(3, 169, 244, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #0288D1;
    box-shadow: 0 4px 8px rgba(3, 169, 244, 0.3);
}

/* Features Section */
.features {
    padding: 60px 0;
}

.features h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Info Page Styles */
.info-main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.breadcrumbs {
    margin-bottom: 20px;
    color: #666;
}

.breadcrumbs a {
    color: #0288D1;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #03A9F4;
}

.page-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: #0288D1;
    font-weight: 600;
}

/* Info Navigation */
.info-nav {
    background: linear-gradient(135deg, #E1F5FE 0%, #B3E5FC 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #81D4FA;
    position: relative;
    overflow: hidden;
}


.info-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.info-nav a {
    color: #333;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.info-nav a:hover {
    background-color: #03A9F4;
    color: white;
}

/* Info Sections */
.info-content {
    max-width: 900px;
}

/* Info Table - таблица без линий для основных сведений */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.info-table tr {
    border: none;
}

.info-table td {
    padding: 12px 0;
    vertical-align: top;
    border: none;
}

.info-label {
    font-weight: 600;
    color: #2c3e50;
    padding-right: 20px;
    width: 40%;
    min-width: 250px;
}

.info-value {
    color: #333;
    width: 60%;
}

.info-value a {
    color: #0288D1;
    text-decoration: none;
}

.info-value a:hover {
    color: #03A9F4;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .info-table {
        display: block;
    }
    
    .info-table tr {
        display: block;
        margin-bottom: 15px;
    }
    
    .info-table td {
        display: block;
        width: 100%;
        padding: 5px 0;
    }
    
    .info-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .info-value {
        width: 100%;
    }
}

.info-section {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.section-title {
    margin: 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.accordion-btn {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: #2c3e50;
    position: relative;
    transition: background-color 0.3s;
}

.accordion-btn:hover {
    background-color: #e9ecef;
}

.accordion-btn::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 24px;
    transition: transform 0.3s;
}

.accordion-btn[aria-expanded="true"]::after {
    content: '−';
}

.accordion-content {
    display: none;
    padding: 20px;
    background: #fff;
}

.accordion-content.active {
    display: block;
}

.info-item {
    line-height: 1.8;
    padding: 30px;
    background: #fff;
    position: relative;
}


.info-item p {
    margin-bottom: 15px;
}

.info-item h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #0288D1;
    font-size: 24px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #4FC3F7;
}

.info-item h2:first-child {
    margin-top: 0;
}

.info-item h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #0288D1;
    font-size: 20px;
    font-weight: 600;
}

.info-item h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #495057;
}

.info-item ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.info-item a {
    color: #0288D1;
    text-decoration: none;
    font-weight: 500;
}

.info-item a:hover {
    color: #03A9F4;
    text-decoration: underline;
}

.documents-list {
    list-style: none;
    margin-left: 0;
}

.documents-list li {
    margin-bottom: 10px;
}

.doc-link {
    display: inline-block;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.doc-link:hover {
    background: #e9ecef;
}

.programs-list {
    margin-top: 20px;
}

.program-item {
    background: linear-gradient(135deg, #E1F5FE 0%, #B3E5FC 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #4FC3F7;
    position: relative;
    overflow: hidden;
}

.basic-info-block {
    background: linear-gradient(135deg, #E1F5FE 0%, #B3E5FC 100%);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #4FC3F7;
    position: relative;
    overflow: hidden;
}

.basic-info-block .program-item {
    background: rgba(255, 255, 255, 0.7);
    border-left: 4px solid #0288D1;
    margin-top: 15px;
}

.basic-info-block .program-item:first-child {
    margin-top: 0;
}

.basic-info-block h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0288D1;
}

.basic-info-block p {
    margin-bottom: 10px;
}

.basic-info-block p:last-child {
    margin-bottom: 0;
}


/* Footer */
.footer {
    background: linear-gradient(135deg, #0288D1 0%, #0277BD 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Accessibility Widget */
.accessibility-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.accessibility-btn {
    padding: 12px 20px;
    background-color: #03A9F4;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(3, 169, 244, 0.2);
    transition: all 0.3s;
    font-weight: 600;
}

.accessibility-btn:hover {
    background-color: #0288D1;
    box-shadow: 0 4px 8px rgba(3, 169, 244, 0.3);
    transform: translateY(-2px);
}

/* Accessibility Mode */
body.accessibility-mode {
    font-size: 18px;
    line-height: 1.8;
}

body.accessibility-mode .container {
    max-width: 900px;
}

body.accessibility-mode .accordion-btn {
    font-size: 20px;
    padding: 25px;
}

body.accessibility-mode .info-item {
    font-size: 18px;
}

body.accessibility-mode a {
    text-decoration: underline;
}

/* Contacts Page Styles */
.contacts-content {
    max-width: 900px;
}

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

.contact-card {
    background: linear-gradient(135deg, #E1F5FE 0%, #B3E5FC 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(3, 169, 244, 0.1);
    border: 1px solid #81D4FA;
    position: relative;
    overflow: hidden;
}


.contact-card h2 {
    color: #0288D1;
    margin-bottom: 25px;
    font-size: 24px;
    border-bottom: 2px solid #4FC3F7;
    padding-bottom: 10px;
    font-weight: 600;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item h3 {
    color: #495057;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-item p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.contact-item a {
    color: #0288D1;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.contact-item a:hover {
    color: #03A9F4;
    text-decoration: underline;
}

.contact-map {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #E1F5FE 0%, #B3E5FC 100%);
    border-radius: 12px;
    border: 1px solid #81D4FA;
}

.contact-map h2 {
    color: #0288D1;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.contact-map p {
    margin-bottom: 15px;
    color: #333;
}

#yandex-map {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Program Page Styles */
.program-content {
    max-width: 1000px;
}

.program-info {
    background: linear-gradient(135deg, #E1F5FE 0%, #B3E5FC 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #81D4FA;
    position: relative;
    overflow: hidden;
}


.program-info h2 {
    color: #0288D1;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.program-info p {
    color: #495057;
    line-height: 1.6;
}

.pdf-viewer {
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.pdf-viewer iframe {
    display: block;
    width: 100%;
    min-height: 800px;
    background: #f8f9fa;
}

/* Мобильная версия для PDF */
.pdf-mobile {
    display: none;
    margin-bottom: 30px;
}

.mobile-pdf-viewer {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

#pdf-canvas {
    display: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 0 auto 15px;
    background: #fff;
}

.pdf-loading {
    text-align: center;
    padding: 60px 20px;
    color: #0288D1;
    font-size: 18px;
}

.pdf-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #E1F5FE 0%, #B3E5FC 100%);
    border-top: 1px solid #81D4FA;
    gap: 15px;
    flex-wrap: wrap;
}

.pdf-btn {
    padding: 10px 20px;
    background-color: #03A9F4;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.pdf-btn:hover:not(:disabled) {
    background-color: #0288D1;
    transform: translateY(-1px);
}

.pdf-btn:disabled {
    background-color: #B0BEC5;
    cursor: not-allowed;
    opacity: 0.6;
}

#pdf-page-info {
    color: #0288D1;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    flex: 1;
    min-width: 150px;
}

/* Скрываем iframe на мобильных по умолчанию через CSS */
@media (max-width: 768px) {
    .pdf-viewer {
        display: none !important;
    }
    
    .pdf-mobile {
        display: block !important;
    }
    
    /* Убираем src из iframe на мобильных через CSS (если возможно) */
    .pdf-viewer iframe {
        display: none !important;
    }
}

.mobile-pdf-message {
    background: linear-gradient(135deg, #E1F5FE 0%, #B3E5FC 100%);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #81D4FA;
    text-align: center;
}

.mobile-pdf-message p {
    font-size: 18px;
    color: #2C3E50;
    margin-bottom: 30px;
    line-height: 1.6;
}

.mobile-pdf-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.mobile-pdf-buttons .btn-primary {
    min-width: 180px;
}

.pdf-download {
    text-align: center;
    margin-top: 30px;
}

.pdf-download .btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #03A9F4;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(3, 169, 244, 0.2);
}

.pdf-download .btn-primary:hover {
    background-color: #0288D1;
    box-shadow: 0 4px 8px rgba(3, 169, 244, 0.3);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .logo h1 {
        font-size: 18px;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .header-contact {
        width: 100%;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 18px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .info-nav ul {
        flex-direction: column;
    }

    .page-title {
        font-size: 24px;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 20px;
    }

    .pdf-viewer iframe {
        min-height: 600px;
    }

    .program-info h2 {
        font-size: 18px;
    }

    .mobile-pdf-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .mobile-pdf-buttons .btn-primary {
        width: 100%;
        min-width: auto;
    }

    .mobile-pdf-message {
        padding: 30px 20px;
    }

    .mobile-pdf-message p {
        font-size: 16px;
    }

    .pdf-controls {
        flex-direction: column;
        gap: 10px;
    }

    .pdf-btn {
        width: 100%;
    }

    #pdf-page-info {
        order: -1;
        width: 100%;
    }

    #pdf-canvas {
        max-width: 100%;
    }
}

