/* style.css - Общие стили для всего сайта */
:root {
    --primary-color: #003E53;       /* Основной синий */
    --secondary-color: #2D3F66;     /* Цвет логотипа/вторичный */
    --accent-color: #FF7A45;        /* Акцентный оранжевый для кнопок */
    --light-blue: #E6F2F8;          /* Светлый фон */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 62, 83, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка сайта */
.header {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;        /* как в исходнике */
    box-shadow: 0 4px 20px rgba(0, 62, 83, 0.1);
    z-index: 1000;
    max-width: 1200px;
    margin: 0 auto;  
}

/* внутренний контейнер — стандартные отступы */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 28px;        /* МИНИМАЛЬНЫЕ отступы — воздуха нет */
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.logo div {
    display: flex;
    flex-direction: column;
}
.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #003E53;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.logo-subtext {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;       /* ЗАПРЕЩАЕМ ПЕРЕНОС */
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;        /* НИКАКОГО ПЕРЕНОСА */
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    padding: 4px 0;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #003E53;
}

.nav-link.active {
    color: #003E53;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #003E53;
}

.cta-button {
    background: #FF7A45;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}

.cta-button:hover {
    background: #ff6a2e;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 122, 69, 0.25);
}

.secondary-button {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 26px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.secondary-button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #003E53;
}

/* Подвал сайта */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
}

.footer-form button {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.footer-form button:hover {
    background: #FF6A2E;
}

/* Общие компоненты */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    color: var(--text-light);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.hero {
    background: linear-gradient(rgba(0, 62, 83, 0.9), rgba(45, 63, 102, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 180px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Карточки */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 62, 83, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 28px;
}

 /* Адаптивность */
@media (min-width: 1440px) {
    .header {
        max-width: 92%;      
    }
    .header-container {
        padding: 12px 30px;        
    }

    .logo-text {
        font-size: 26px;            
    }

    .logo-subtext {
        font-size: 12px;           
    }

    .nav {
        gap: 40px;               
    }

    .nav-list {
        gap: 28px;             
    }

    .nav-link {
        font-size: 16px;         
    }

    .cta-button {
        padding: 10px 24px;      
        font-size: 16px;         
        border-radius: 14px;     
    }
}
@media (min-width: 1600px) {
    .header {
        max-width: 92%;      
    }
    .header-container {
        padding: 14px 30px;        
    }

    .logo-text {
        font-size: 26px;            
    }

    .logo-subtext {
        font-size: 12px;           
    }

    .nav {
        gap: 40px;               
    }

    .nav-list {
        gap: 28px;             
    }

    .nav-link {
        font-size: 16px;         
    }

    .cta-button {
        padding: 10px 24px;      
        font-size: 16px;         
        border-radius: 14px;     
    }
}

@media (min-width: 1920px) {
    .header {
        max-width: 92%;      
    }
    .header-container {
        padding: 15px 31px;        
    }

    .logo-text {
        font-size: 26px;            
    }

    .logo-subtext {
        font-size: 12px;           
    }

    .nav {
        gap: 40px;               
    }

    .nav-list {
        gap: 28px;             
    }

    .nav-link {
        font-size: 16px;         
    }

    .cta-button {
        padding: 10px 24px;      
        font-size: 16px;         
        border-radius: 14px;     
    }
}

@media (max-width: 1200px) {
    .header-container {
        padding: 16px 32px;   /* равномерные отступы, не прилипает */
    }
    .nav {
        gap: 20px;
    }
    .nav-list {
        gap: 18px;
    }
    .nav-link {
        font-size: 15px;
    }
    .cta-button {
        padding: 8px 20px;
        font-size: 14px;
    }
}

@media (max-width: 1155px) {
    .header-container {
        padding: 14px 32px;   /* равномерные отступы, не прилипает */
    }
    .nav-list {
        gap: 12px;
    }
    .nav-link {
        font-size: 13px;
    }
    .cta-button {
        padding: 5px 14px;
        font-size: 12.5px;
    }
}
@media (max-width: 1100px) {
    .header-container {
        padding: 14px 32px;   /* равномерные отступы, не прилипает */
    }
    .nav-list {
        gap: 12px;
    }
    .nav-link {
        font-size: 12.5px;
    }
    .cta-button {
        padding: 5px 14px;
        font-size: 12.5px;
    }
}

@media (max-width: 1000px) {
    .nav-list {
        gap: 10px;
    }
    .nav-link {
        font-size: 12px;
    }
    .logo-text {
        font-size: 19px;
    }
    .logo-subtext {
        font-size: 8.5px;
    }
}

@media (max-width: 920px) {
    .nav-list {
        gap: 8px;
    }
    .nav-link {
        font-size: 11.5px;
    }
    .cta-button {
        padding: 5px 12px;
        font-size: 11.5px;
    }
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 40px 20px;
        transition: left 0.3s;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 30px;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav-link {
        font-size: 18px;
    }

    .cta-button {
        width: 100%;
        max-width: 260px;
        padding: 12px 24px;
        font-size: 16px;
    }
}

/* ===== ПЕРЕЛОМ: при 820px включаем перенос кнопки на новую строку ===== 
@media (max-width: 820px) {
    .nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }
    .nav-list {
        gap: 8px;
    }
    .nav-link {
        font-size: 12.5px;
    }
    .cta-button {
        padding: 6px 16px;
        font-size: 12.5px;
        margin-left: auto;
    }
}*/

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .header {
        top: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        background: white;
        backdrop-filter: none;
    }
    .header-container {
        padding: 8px 16px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 30px;
    }
    .logo {
        white-space: normal; /* на мобильных разрешаем перенос */
    }
    .logo-subtext {
        display: inline-block;
        font-size: 10px;
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-left: 4px;
        white-space: nowrap;
    }
    .cta-button {
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header {
        top: 0;
        left: 0;
        right: 0;
        border-radius: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    .footer-form {
        flex-direction: column;
    }

    .footer-form button {
        width: 100%;
    }
}










/* ===== СТРАНИЦА ДОКУМЕНТОВ (СОВРЕМЕННЫЙ ДИЗАЙН) ===== */
/* Стили для модального окна PDF (если ещё не добавлены) */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.pdf-modal-content {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 1000px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(0, 62, 83, 0.1);
    background: linear-gradient(135deg, #f9fafc, white);
    border-radius: 24px 24px 0 0;
}
.pdf-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    flex: 1;
    padding: 0 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pdf-modal-close {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.pdf-modal-close:hover {
    color: var(--accent-color);
}
.pdf-download-btn {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.pdf-download-btn:hover {
    background: var(--accent-color);
    color: white;
}
.pdf-modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    background: #eef2f5;
    position: relative;
}
.pdf-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.9);
    padding: 10px 20px;
    border-radius: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    gap: 15px;
    align-items: center;
    backdrop-filter: blur(5px);
}
.pdf-controls button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: 0.2s;
}
.pdf-controls button:hover {
    background: var(--accent-color);
}
.pdf-controls span {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
}
.pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    padding: 15px 30px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 999;
}
#pdfViewerContainer {
    position: relative;
    height: 100%;
    background: #eef2f5;
    overflow: auto;
}
#pdfCanvasContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pdf-page {
    margin: 10px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: white;
}