/* ==========================================================================
   ОБЪЕДИНЁННЫЙ CSS ДЛЯ САЙТА
   Версия: 1.0 (12.06.2025)
   ========================================================================== */

/* ==========================================================================
   HEADER (из header.php)
   ========================================================================== */
:root {
    --primary-color: #1e4dbb;
    --secondary-color: #3a7bd5;
    --text-color: #1e293b;
    --bg-color: #f8fafc;
}

#google_translate_element, .goog-te-banner-frame, .goog-te-menu-value,
.goog-te-menu-frame, .goog-te-gadget-simple, .skiptranslate { display: none !important; }
body { top: 0 !important; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding-top: 85px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 16px;
}

html.accessibility-active body > *:not(.custom-header):not(.mobile-nav):not(.overlay):not(#google_translate_element):not(.search-overlay) {
    filter: grayscale(100%) contrast(120%);
}

html.accessibility-active body { background: #fff !important; color: #000 !important; }
html.accessibility-active .custom-header, html.accessibility-active .mobile-nav {
    background: #fff !important;
    box-shadow: 0 4px 0 #000 !important;
    border: 1px solid #000;
}
html.accessibility-active a { color: #000 !important; text-decoration: underline !important; }

.custom-header {
    background: rgba(255,255,255,.98);
    box-shadow: 0 4px 20px rgba(30,77,187,.08);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10000;
    height: 85px;
    transition: all .3s ease;
    border-bottom: 1px solid rgba(226,232,240,.6);
    box-sizing: border-box;
    filter: none !important;
}

/*.custom-header.scrolled { height: 70px; box-shadow: 0 10px 30px rgba(30,77,187,.15); }*/

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    position: relative;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.logos-wrapper { display: flex; gap: 15px; align-items: center; flex-shrink: 0; }

.logo-img {
    height: 50px !important;
    width: auto !important;
    max-width: 140px;
    object-fit: contain;
    transition: transform .3s;
    display: block;
    filter: none !important;
    -webkit-filter: none !important;
}
.logo-img:hover { transform: scale(1.05); }
/*.custom-header.scrolled .logo-img { height: 40px !important; }*/

.header-text-block {
    padding-left: 20px;
    border-left: 2px solid var(--secondary-color);
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
}
.header-text-block h1 {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1.2;
    text-align: left;
}
.header-text-block p { font-size: .8rem; color: #64748b; margin: 2px 0 0; text-align: left; }

.header-nav { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    padding: 5px;
    background: rgba(241,245,249,.5);
    border-radius: 12px;
    margin: 0;
}

.header-nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    transition: all .3s;
    white-space: nowrap;
}

.header-nav-item > a:hover, .header-nav-item > a.active {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    transform: translateY(-2px);
}

.header-nav-item { position: relative; }

.header-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 260px;
    list-style: none;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(30,77,187,.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    z-index: 1001;
    text-align: left;
    border: 1px solid rgba(226,232,240,.8);
    max-height: 350px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) rgba(226,232,240,.4);
}

.header-submenu::-webkit-scrollbar { width: 6px; }
.header-submenu::-webkit-scrollbar-track { background: rgba(226,232,240,.4); border-radius: 8px; }
.header-submenu::-webkit-scrollbar-thumb { background-color: var(--secondary-color); border-radius: 8px; }

.header-nav-item:hover .header-submenu { opacity: 1; visibility: visible; transform: translateY(8px); }
.header-submenu li { margin-bottom: 4px; }
.header-submenu li:last-child { margin-bottom: 0; }

.header-submenu li a {
    display: block;
    padding: 8px 12px !important;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 13px !important;
    border-radius: 10px;
    transition: all .2s ease;
    white-space: normal;
    line-height: 1.4;
}

.header-submenu li a:hover {
    background: rgba(30,77,187,.05);
    color: var(--primary-color);
    padding-left: 20px !important;
}

.header-submenu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 30px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(226,232,240,.8);
    border-top: 1px solid rgba(226,232,240,.8);
}

html.accessibility-active .header-submenu { border: 2px solid #000 !important; box-shadow: none !important; }
html.accessibility-active .header-submenu li a:hover { background: #000 !important; color: #fff !important; }

.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.98);
    z-index: 10005;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}
.search-overlay.active { display: flex; opacity: 1; }

.search-container { width: 100%; max-width: 800px; padding: 20px; text-align: center; transform: translateY(20px); transition: transform .4s ease; }

.search-form {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(30,77,187,.15);
    border: 1px solid #e2e8f0;
}
.search-form input { flex: 1; border: none; padding: 15px 25px; font-size: 1.4rem; font-family: inherit; outline: none; background: transparent; }
.search-submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    padding: 0 30px;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s;
}

.close-search {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #64748b;
    transition: all .2s;
}

.header-controls { display: flex; gap: 8px; margin-left: 65px; flex-shrink: 0; }

.ctrl-btn {
    height: 40px;
    padding: 0 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .3s;
    white-space: nowrap;
}
.ctrl-btn:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.05); }
.ctrl-btn.active { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: #fff; }

.lang-wrapper { position: relative; }
.lang-list {
    position: absolute;
    top: 100%; right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    padding: 5px;
    margin-top: 10px;
    display: none;
    min-width: 150px;
    z-index: 1002;
}
.lang-list.show { display: block; animation: fadeIn .3s; }
.lang-option { padding: 10px 15px; cursor: pointer; display: flex; align-items: center; gap: 10px; border-radius: 6px; font-size: 13px; color: #333; }

.mobile-toggle {
    display: none;
    width: 45px; height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10002;
    flex-shrink: 0;
}

.mobile-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 300px; height: 100vh;
    background: #fff;
    box-shadow: -5px 0 30px rgba(0,0,0,.1);
    z-index: 10001;
    transition: right .4s ease;
    overflow-y: auto;
    padding-bottom: 20px;
    text-align: left;
}
.mobile-nav.open { right: 0; }
.mobile-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.close-menu { font-size: 24px; background: none; border: none; cursor: pointer; color: #64748b; }

.mobile-body { padding: 15px; }
.mobile-search-box { margin-bottom: 15px; }
.mobile-search-box form { position: relative; display: flex; background: #f1f5f9; border-radius: 10px; padding: 2px; }
.mobile-search-box input { width: 100%; padding: 12px 15px; border: none; background: transparent; font-family: inherit; font-size: 14px; outline: none; }
.mobile-search-box button { background: var(--primary-color); color: #fff; border: none; width: 45px; border-radius: 8px; cursor: pointer; }

.mobile-settings-block { background: #f8fafc; border-radius: 10px; padding: 12px; margin-bottom: 15px; }
.mobile-settings-block .ctrl-btn { width: 100%; margin-bottom: 12px; justify-content: flex-start; height: auto; padding: 12px 15px; background: #fff; white-space: normal; text-align: left; line-height: 1.3; }
.mobile-settings-block .ctrl-btn i { width: 20px; flex-shrink: 0; }
.mobile-settings-block .ctrl-btn span { font-size: 14px; }

.lang-selector-mobile { margin-top: 5px; }
.lang-selector-mobile p { margin: 0 0 10px 5px; font-weight: 600; color: #64748b; font-size: 13px; }
.mobile-lang-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.mobile-lang-grid .ctrl-btn { justify-content: center; margin-bottom: 0; padding: 10px; background: #fff; }

.mobile-links { list-style: none; padding: 0; margin: 0; }
.mobile-links li { margin-bottom: 10px; }
.mobile-links a { display: block; padding: 12px 15px; background: #f8fafc; border-radius: 8px; text-decoration: none; color: #334155; font-weight: 600; font-size: 14px; }
.mobile-links a.active { background: var(--primary-color); color: #fff; }

.mobile-submenu-list { padding-left: 20px; margin-top: 5px; display: none; }
.mobile-links li.has-sub.open .mobile-submenu-list { display: block; }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 10000; display: none; opacity: 0; transition: opacity .3s; }
.overlay.active { display: block; opacity: 1; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

html.accessibility-active .search-overlay { background: #fff !important; }
html.accessibility-active .search-form { border: 2px solid #000 !important; }
html.accessibility-active .search-submit-btn { background: #000 !important; }
html.accessibility-active .mobile-search-box form { border: 1px solid #000; }
html.accessibility-active .mobile-settings-block .ctrl-btn.active { background: #000 !important; color: #fff !important; border: 2px solid #000; }
html.accessibility-active .mobile-settings-block .ctrl-btn.active i, html.accessibility-active .mobile-settings-block .ctrl-btn.active span { color: #fff !important; }
html.accessibility-active .mobile-settings-block .ctrl-btn { border: 1px solid #000; color: #000 !important; }

:root { --header-height: 85px; --ticker-height: 35px; }
@media (max-width: 992px) { :root { --header-height: 75px; --ticker-height: 32px; } }

body.has-ticker { padding-top: calc(var(--header-height) + var(--ticker-height)) !important; }

.ticker-line {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: var(--ticker-height);
    background: var(--primary-color);
    color: #fff;
    z-index: 999;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    border: none;
    margin: 0;
}

/*.custom-header.scrolled { --header-height: 70px; }
.custom-header.scrolled + .ticker-line { top: 70px; }*/

.ticker-scroll { display: inline-block; padding-left: 100%; animation: marquee-v2 15s linear infinite; font-size: 14px; line-height: var(--ticker-height); }

@keyframes marquee-v2 { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

@media (max-width: 1200px) { .header-text-block { display: none; } }
@media (max-width: 992px) {
    .header-nav, .header-controls { display: none; }
    .mobile-toggle { display: flex; align-items: center; justify-content: center; order: 2; }
    body { padding-top: 75px; }
    .custom-header { height: 75px; }
    .header-inner { padding: 0 20px; justify-content: space-between; display: flex; align-items: center; }
    .header-brand { position: static; transform: none; flex: 1; justify-content: flex-start; order: 1; }
    .logos-wrapper { justify-content: flex-start; }
    .logo-img { height: 45px !important; }
}
@media (min-width: 993px) and (max-width: 1250px) {
    .header-brand { justify-content: flex-start !important; flex: 0 1 auto !important; }
    .header-inner { padding: 0 15px !important; }
    .logos-wrapper { gap: 10px !important; }
    .logo-img { height: 36px !important; }
    .header-nav { margin-left: auto !important; }
    .header-nav-item > a { padding: 6px 10px !important; font-size: 13px !important; letter-spacing: -.3px; }
    .header-menu { gap: 2px !important; }
    .header-controls { margin-left: 15px !important; gap: 5px !important; }
    .ctrl-btn { padding: 0 10px !important; height: 38px !important; }
    #lang-btn span { display: none !important; }
    .header-text-block { display: none !important; }
}

/* ==========================================================================
   FOOTER (из footer.php)
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

.info-columns-section { position: relative; overflow: hidden; padding: 60px 20px 30px; min-height: 200px; }
.info-columns-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, #1e4dbb 0%, #3a7bd5 100%); z-index: 1; }
.info-columns-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: pulseBackground 20s ease-in-out infinite alternate;
}

@keyframes pulseBackground { 0% { opacity: 0.3; } 100% { opacity: 0.6; } }

.info-columns-container { position: relative; z-index: 10; max-width: 1200px; margin: 0 auto; }
.columns-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); opacity: 1; transform: translateY(0); height: auto; overflow: visible; align-items: start; }

.info-column {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 20px 25px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2), inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    height: auto;
    min-height: 90px;
    display: flex;
    flex-direction: column;
}

.info-column:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.16); }

.column-header { display: flex; align-items: center; position: relative; cursor: pointer; padding: 5px 0; flex-shrink: 0; min-height: 55px; }
.column-icon { width: 45px; height: 45px; background: rgba(255, 255, 255, 0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-right: 16px; transition: all 0.3s ease; flex-shrink: 0; }
.column-icon svg { width: 22px; height: 22px; fill: white; }
.column-title { font-size: 18px; font-weight: 600; color: white; flex-grow: 1; margin: 0; }
.column-toggle-btn { background: none; border: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: white; }
.toggle-circle { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.3); }
.column-toggle-btn .toggle-icon { width: 20px; height: 20px; fill: white; transition: transform 0.4s ease; }
.info-column.collapsed .column-toggle-btn .toggle-icon { transform: rotate(-90deg); }

.column-content { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.9); max-height: 0; opacity: 0; overflow: hidden; transition: all 0.5s ease; }
.info-column:not(.collapsed) .column-content { max-height: 1000px; opacity: 1; margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.1); }

.column-wave { height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 30' preserveAspectRatio='none'%3E%3Cpath d='M0,10 C150,20 350,0 600,10 L600,30 L0,30 Z' fill='rgba(255,255,255,0.15)'/%3E%3C/svg%3E"); background-size: 800px 8px; opacity: 0; margin-top: 15px; }
.info-column:not(.collapsed) .column-wave { opacity: 1; animation: waveMove 4s linear infinite; }

@keyframes waveMove { 0% { background-position-x: 0; } 100% { background-position-x: 800px; } }

.partners-marquee { width: 100%; overflow: hidden; background: #f8fafc; padding: 30px 0; position: relative; }
.partners-marquee-wrapper { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%); }
.partners-marquee-track { display: flex; align-items: center; animation: marquee 50s linear infinite; width: max-content; gap: 50px; }
.partner-item { width: 160px; height: 80px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.partners-logo-img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(100%) opacity(0.6); transition: all 0.4s ease; }
.partner-item:hover .partners-logo-img { filter: grayscale(0%) opacity(1); transform: scale(1.1); }

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-16.666%); } }

.footer { background: #1a2d6d; color: white; padding: 25px 0 15px; font-family: 'Arial', sans-serif; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 20px; align-items: start; text-align: center; }
.footer-column { display: flex; flex-direction: column; align-items: center; }
.footer-column-title { font-size: 16px; font-weight: 600; color: white; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #2a3f8f; display: inline-block; width: fit-content; }
.footer-column-content { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }
.footer-column-content a { color: rgba(255, 255, 255, 0.9); text-decoration: none; display: inline-block; }
.footer-column-content a:hover { color: #4a90e2; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: center; padding-top: 15px; border-top: 1px solid #2a3f8f; }
.footer-social { display: flex; gap: 12px; }
.social-link { display: inline-block; padding: 6px 14px; background: #2a3f8f; color: white; text-decoration: none; border-radius: 4px; font-size: 13px; transition: background 0.2s ease; }
.social-link:hover { background: #3a4f9f; }

@media (max-width: 1200px) { .columns-wrapper { gap: 25px; padding: 0 20px; } }
@media (max-width: 992px) {
    .columns-wrapper { grid-template-columns: 1fr; max-width: 550px; margin: 0 auto; }
    .footer-content { grid-template-columns: 1fr; gap: 25px; }
}
@media (max-width: 768px) {
    .info-columns-section { padding: 45px 12px 20px; }
    .info-column { padding: 16px 18px; border-radius: 12px; }
    .column-title { font-size: 15px; }
    .partner-item { width: 120px; height: 60px; }
    .partners-logo-img { filter: grayscale(0%) opacity(1) !important; }
}
@media (max-width: 576px) {
    .info-columns-container { width: 100%; padding: 0 10px; }
    .columns-wrapper { width: 100%; }
    .info-column { width: 100%; box-sizing: border-box; }
    .column-header { min-height: 45px; }
    .column-icon { width: 35px; height: 35px; margin-right: 10px; }
    .column-icon svg { width: 18px; height: 18px; }
    .column-title { font-size: 14px; }
    .footer-column-title { font-size: 15px; }
    .footer-column-content { font-size: 12.5px; }
}

html, body { overflow-x: hidden; width: 100%; }
img:not(.partners-logo-img) { filter: none !important; }

/* ==========================================================================
   HOME PAGE (из home.php)
   ========================================================================== */
.number.plus::after { content: '+'; }

.hero-video-wrapper { width: 100%; background: #000; overflow: hidden; position: relative; }
.hero-video-content { width: 100%; height: calc(100vh - 85px) !important; position: relative; display: flex; align-items: center; justify-content: center; }
.hero-main-video { width: 100% !important; height: 100% !important; object-fit: cover !important; }

.stats-section { 
    position: relative;
    padding: 60px 20px; 
    overflow: hidden; 
    background: #f5f9ff; 
    display: flex; 
    flex-direction: column;
    min-height: 400px;
}
.section-title, .advantages-title { text-align: center; font-size: 36px; font-weight: 700; color: #1e4dbbff; position: relative; z-index: 2; margin-bottom: 30px; }
.advantages-container { margin-top: 50px; position: relative; z-index: 10; }

.stats-wrapper { width: 100%; display: block; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; position: relative; z-index: 3; background: transparent !important; max-width: 1140px; margin: 0 auto; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stats-grid .number { font-size: 48px; font-weight: bold; color: #1e4dbbff; line-height: 1; }
.stats-grid .label { margin-top: 15px; color: #1e4dbbff; font-weight: 600; font-size: 20px; }

.advantages-grid { display: grid; grid-template-columns: repeat(4, 250px); gap: 30px; justify-content: center; max-width: 1200px; margin: 0 auto; }
.advantage { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; border-radius: 12px; border: 2px solid transparent; transition: all 0.4s ease; background: transparent; }
.advantage:hover { border: 2px solid rgba(43,108,255,0.4); background: rgba(255,255,255,0.6); transform: scale(1.05); }
.advantage h3 { color: #1e4dbbff; font-weight: 600; font-size: 20px; margin-bottom: 10px; }
.advantage p { color: #000; font-size: 15px; line-height: 1.4; }

#techGrid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

.slide-left { opacity: 0; transform: translateX(-150px); transition: all 0.8s ease-out; }
.slide-right { opacity: 0; transform: translateX(150px); transition: all 0.8s ease-out; }
.slide-left.active, .slide-right.active { opacity: 1; transform: translateX(0); }

@media (max-width: 992px) {
    .hero-video-content { height: calc(100vh - 75px) !important; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); max-width: 600px; }
}
@media (max-width: 767px) {
    .stats-section { padding: 50px 15px; }
    .section-title, .advantages-title { font-size: 28px; margin-bottom: 25px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 10px; padding: 20px 0; }
    .stats-grid .number { font-size: 32px; margin-bottom: 5px; }
    .stats-grid .label { font-size: 13px; line-height: 1.3; min-height: 34px; display: flex; align-items: center; justify-content: center; }
    .advantages-container { margin-top: 60px; }
    .advantages-grid { gap: 12px; }
    .advantage { min-height: 140px; padding: 20px 10px; }
    .advantage i { font-size: 1.5rem !important; margin-bottom: 8px !important; }
    .advantage h3 { font-size: 15px; }
    .advantage p { font-size: 11px; }
}

/* ACTUAL INFO */
.actual-info-section { position: relative; padding: 45px 0 !important; background: #ffffff; overflow: hidden; }
.actual-info-section .advantages-title { font-size: 30px; font-weight: 800; margin-bottom: 45px; color: #1e4dbb; text-align: center; position: relative; z-index: 10; }
.actual-info-container-full { max-width: 1200px; margin: 0 auto; position: relative; }
.actual-info-viewport { position: relative; width: 100%; z-index: 10; background: transparent; }
.actual-info-scroll-area { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; background: transparent; }
.actual-info-scroll-area::-webkit-scrollbar { display: none; }

.actual-info-slide { flex: 0 0 100%; width: 100%; scroll-snap-align: center; display: flex; justify-content: center; align-items: center; background: transparent; }
.actual-info-link { display: flex; justify-content: center; width: 100%; height: auto; background: transparent; }
.actual-slider-img { width: auto; max-width: 100%; height: auto; max-height: 500px; object-fit: contain; display: block; filter: drop-shadow(0 10px 20px rgba(30, 77, 187, 0.15)); }

.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(255, 255, 255, 0.9); border: 2px solid #1e4dbb; border-radius: 50%; z-index: 20; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.nav-arrow:hover { background: #1e4dbb; }
.nav-arrow:hover svg { fill: #fff; }
.nav-arrow svg { width: 30px; fill: #1e4dbb; transition: 0.3s; }
.prev-arrow { left: 10px; }
.next-arrow { right: 10px; }

@media (max-width: 768px) {
    .nav-arrow { display: none; }
    .actual-slider-img { max-height: 350px; }
    .shape { transform: scale(0.5) !important; opacity: 0.07 !important; }
}

.carousel-progress-wrapper { width: 100px; height: 4px; background: rgba(30, 77, 187, 0.1); margin: 30px auto 0; border-radius: 10px; }
.carousel-progress-line { width: 0%; height: 100%; background: #1e4dbb; transition: 0.3s; }

.shape { position: absolute; z-index: 1; pointer-events: none; opacity: 0.15; }
.blue-navy { background: #002d72; }
.blue-cobalt { background: #1e4dbb; }
.blue-azure { background: #007fff; }
.blue-cyan { background: #00aeef; }

.circle-l { width: 250px; height: 250px; border-radius: 50%; }
.circle-m { width: 120px; height: 120px; border-radius: 50%; }
.circle-s { width: 60px; height: 60px; border-radius: 50%; }
.triangle-l { width: 300px; height: 300px; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.triangle-m { width: 120px; height: 120px; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.triangle-s { width: 50px; height: 50px; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.diamond-m { width: 100px; height: 100px; transform: rotate(45deg); }
.square-m { width: 80px; height: 80px; transform: rotate(15deg); }

.anim-float-1 { animation: float1 20s infinite alternate ease-in-out; }
.anim-float-2 { animation: float2 15s infinite alternate ease-in-out; }

@keyframes float1 { from { transform: translate(0,0) rotate(0); } to { transform: translate(50px, 40px) rotate(15deg); } }
@keyframes float2 { from { transform: translate(0,0) rotate(0); } to { transform: translate(-40px, 30px) rotate(-10deg); } }

/* LATEST NEWS (Главная страница) */
.latest-news-section { padding: 40px 0 50px; position: relative; overflow: hidden; background: #f8fbff; }
.bg-main, .bg-pattern { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.bg-main { background: linear-gradient(145deg, #f8fbff 0%, #f2f7ff 100%); }
.bg-pattern { background-image: repeating-linear-gradient(45deg, rgba(30, 77, 187, 0.08) 0px, rgba(30, 77, 187, 0.08) 60px, transparent 60px, transparent 120px); z-index: 2; }
.latest-news-section .news-content { position: relative; z-index: 10; padding: 0 15px; text-align: center; max-width: 1200px; margin: 0 auto; }
.actual-info-title { opacity: 0; transform: translateY(20px); transition: 0.8s ease; font-size: 32px; font-weight: 700; margin-bottom: 40px; color: #1e4dbbff; }
.latest-news-section.visible .actual-info-title { opacity: 1; transform: translateY(0); }

/* Контейнер новостей на главной */
.latest-news-section .news-container { width: 100% !important; margin: 0 auto 30px !important; }
.latest-news-section .news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }

/* Карточка новости на главной */
.latest-news-section .news-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.latest-news-section.visible .news-card { opacity: 1; transform: translateY(0); }

@media (min-width: 992px) {
    .latest-news-section .news-card:hover {
        transform: translateY(-5px) scale(1.02);
        border-color: #1e4dbb;
        box-shadow: 0 12px 30px rgba(30, 77, 187, 0.18);
        z-index: 10;
    }
}

.latest-news-section .news-image-fixed { width: 100%; position: relative; padding-top: 56.25%; background: #e2e8f0; flex-shrink: 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.latest-news-section .stretch-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover !important; object-position: center 25%; display: block; transition: transform 0.3s ease; }

@media (min-width: 992px) {
    .latest-news-section .news-card:hover .stretch-img { transform: scale(1.05); }
}

.latest-news-section .no-image-plug { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 40px; background: #f0f2f5; }

.latest-news-section .news-info { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; text-align: left; }
.latest-news-section .news-date { font-size: 14px; color: #1e4dbb; font-weight: 700; margin-bottom: 10px; }
.latest-news-section .news-title { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; height: 50px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.latest-news-section .news-excerpt { font-size: 14px; color: #555; line-height: 1.5; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.latest-news-section .news-read-more { font-size: 14px; color: #1e4dbb; font-weight: 600; margin-top: auto; }

@media (max-width: 992px) { .latest-news-section .news-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 768px) {
    .latest-news-section .news-container { overflow-x: auto; margin: 0 auto 30px; padding: 0 15px 20px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
    .latest-news-section .news-grid { display: flex; width: max-content; grid-template-columns: none; gap: 20px; align-items: stretch; }
    .latest-news-section .news-card { flex: 0 0 280px; scroll-snap-align: center; opacity: 1; transform: none; height: auto; }
    .latest-news-section .news-container::-webkit-scrollbar { height: 6px; }
    .latest-news-section .news-container::-webkit-scrollbar-thumb { background: #1e4dbb; border-radius: 10px; }
}

.simple-btn { display: inline-block; padding: 14px 40px; background: #1e4dbb; color: white; text-decoration: none; border-radius: 8px; font-weight: 600; margin-top: 20px; transition: background 0.3s ease; }
.simple-btn:hover { background: #153a8f; }

/* ==========================================================================
   PAGE & NEWS (из page.php, news_single.php, news_list.php)
   ========================================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

/* Основное содержимое страниц */
.content { display: block; }

/* Контент страниц и новостей (текст) */
.page-content, .news-single .news-content { font-size: 18px; line-height: 1.8; color: #3f4e5e; margin-bottom: 40px; }
.page-content center { display: block; text-align: center; }
.page-content p, .page-content div, .news-single .news-content p, .news-single .news-content div { display: block; }
.page-content img, .news-single .news-content img { height: auto; max-width: 100%; width: auto; display: inline-block; margin: 10px 5px; vertical-align: middle; }
.page-content *, .news-single .news-content * { box-sizing: border-box; }

.page-content table, .news-single .news-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 16px;
    table-layout: auto;
}

.page-content table thead, .news-single .news-content table thead { vertical-align: middle; border-color: inherit; }
.page-content table th, .page-content table td, .news-single .news-content table th, .news-single .news-content table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
    word-wrap: break-word;
}
.page-content table th, .news-single .news-content table th { background: #f8fafc; font-weight: 600; color: #1e4dbb; }
.page-content table tbody tr:hover, .news-single .news-content table tbody tr:hover { background: #f1f5f9; }

.page-content table::-webkit-scrollbar, .news-single .news-content table::-webkit-scrollbar { height: 6px; }
.page-content table::-webkit-scrollbar-track, .news-single .news-content table::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }
.page-content table::-webkit-scrollbar-thumb, .news-single .news-content table::-webkit-scrollbar-thumb { background: #1e4dbb; border-radius: 3px; }

@media (max-width: 768px) {
    .container { padding: 30px 15px; }
    .page-content img, .news-single .news-content img { max-width: 100%; width: auto; display: inline-block; }
    .page-content div[style*="inline-block"] { display: block !important; width: 100% !important; text-align: center; }
    .page-content table, .news-single .news-content table { font-size: 13px; margin: 20px 0; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .page-content table th, .page-content table td, .news-single .news-content table th, .news-single .news-content table td { padding: 8px 10px; min-width: 60px; word-wrap: break-word; }
}

/* NEWS LIST (news_list.php) */
.news-page { padding: 40px 0; background-color: #f4f7f6; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
.news-page .news-container { max-width: 1000px; margin: 0 auto; }
.news-page h1 { text-align: center; margin-bottom: 20px; color: #1e293b; font-weight: 800; }

.news-page .category-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.news-page .cat-pill { padding: 8px 18px; background: #fff; border: 1px solid #cbd5e1; border-radius: 30px; text-decoration: none; color: #475569; font-size: 14px; font-weight: 600; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.news-page .cat-pill:hover { border-color: #3b82f6; color: #3b82f6; transform: translateY(-1px); }
.news-page .cat-pill.active { background: #3b82f6; color: #fff; border-color: #3b82f6; box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3); }

.news-page .news-card { display: flex; background: #fff; border-radius: 16px; margin-bottom: 25px; border: 1px solid #e2e8f0; overflow: hidden; min-height: 280px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.news-page .news-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(0,0,0,0.07); }
.news-page .news-card-image { flex: 0 0 350px; background-color: #fafafa; border-right: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-page .news-card-image img { width: 100%; height: 100%; max-height: 450px; object-fit: contain; padding: 15px; }
.news-page .news-card-content { flex: 1; padding: 25px 30px; display: flex; flex-direction: column; min-width: 0; }
.news-page .news-card-date { font-size: 14px; color: #3b82f6; font-weight: 600; margin-bottom: 10px; }
.news-page .news-card-header h3 { margin: 0 0 12px 0; font-size: 1.45rem; font-weight: 800; color: #1e293b; line-height: 1.3; }
.news-page .news-card-text { font-size: 16px; color: #475569; line-height: 1.6; margin-bottom: 20px; text-align: justify; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.news-page .news-card-footer { margin-top: auto; padding-top: 15px; display: flex; justify-content: flex-end; }
.news-page .btn-more { background: #3b82f6; color: #fff !important; text-decoration: none; font-weight: 700; font-size: 14px; padding: 10px 22px; border-radius: 8px; transition: background 0.2s; }
.news-page .btn-more:hover { background: #2563eb; }

@media (max-width: 850px) { .news-page .container { padding-left: 15px; padding-right: 15px; } .news-page .news-card-image { flex: 0 0 280px; } }
@media (max-width: 650px) {
    .news-page .news-card { flex-direction: column; min-height: auto; }
    .news-page .news-card-image { flex: none; width: 100%; height: 250px; border-right: none; border-bottom: 1px solid #f1f5f9; }
    .news-page .news-card-text { -webkit-line-clamp: 10; font-size: 15px; }
    .news-page .news-card-content { padding: 20px; }
    .news-page .news-card-header h3 { font-size: 1.25rem; }
}

.news-page .pagination-wrapper { margin-top: 50px; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.news-page .pagination { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.news-page .pg-link { display: flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid #e2e8f0; text-decoration: none; color: #64748b; border-radius: 8px; background: #fff; font-weight: 600; font-size: 13px; transition: all 0.2s; }
.news-page .pg-link:hover { border-color: #cbd5e1; color: #3b82f6; }
.news-page .pg-link.active { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.news-page .pg-link.disabled { opacity: 0.3; pointer-events: none; }

.news-page .goto-page { display: flex; align-items: center; margin-left: 8px; padding-left: 12px; border-left: 1px solid #e2e8f0; gap: 6px; }
.news-page .goto-input { width: 44px; height: 34px; border: 1px solid #e2e8f0; border-radius: 8px; text-align: center; font-size: 13px; color: #475569; font-weight: 700; outline: none; -moz-appearance: textfield; }
.news-page .goto-input::-webkit-outer-spin-button, .news-page .goto-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.news-page .goto-btn { height: 34px; padding: 0 12px; background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; border-radius: 8px; cursor: pointer; font-size: 11px; font-weight: 800; transition: all 0.2s; }
.news-page .goto-btn:hover { background: #3b82f6; color: #fff; border-color: #3b82f6; }

@media (max-width: 600px) { .news-page .goto-page { border-left: none; margin-left: 0; padding-left: 0; width: 100%; justify-content: center; } }

/* NEWS GALLERY */
.news-gallery-grid { margin-top: 50px; padding-top: 30px; border-top: 1px solid #f1f5f9; }
.gallery-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
.gallery-item a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid #e2e8f0; transition: transform 0.3s ease; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item a:hover { transform: translateY(-5px); }

.fancybox__container { z-index: 100001 !important; }
.fancybox__toolbar { padding: 24px !important; background: transparent !important; }
.fancybox__toolbar__items--right { display: flex !important; }
.fancybox__toolbar .f-button { background: rgba(104, 150, 255, 0.9) !important; color: #fff !important; border-radius: 10px !important; width: 46px !important; height: 46px !important; transition: all 0.25s ease !important; margin-right: 10px; }
.fancybox__toolbar .f-button:hover { background: rgba(30, 100, 255, 1) !important; transform: scale(1.08); }
.fancybox__content { margin-top: 90px !important; }
.fancybox__nav .f-button { background: rgba(104, 150, 255, 0.3) !important; }

@media (max-width: 768px) {
    .gallery-container { grid-template-columns: repeat(2, 1fr); }
    .fancybox__toolbar { padding: 15px !important; }
}
