/* Общие стили для всех компонентов */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans Semi-bold";
}

:root {
    --primary-color: #1a3a8f;
    --secondary-color: #4e89e8;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --white: #fff;
    --gray: #9B9B9C;
    --light-gray: #e9ecef;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #FAFAFA;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif;
}

/* Стили header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--white);
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);*/
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 55px;
    margin-right: 12px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-right: 30px;
}

.nav-item {
    position: relative;
    margin: 0 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link i {
    margin-left: 6px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* Выпадающее подменю */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.2s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--secondary-color);
    padding-left: 25px;
}

.dropdown-item i {
    margin-right: 10px;
    color: var(--secondary-color);
}

/* Поисковая строка */
.search-container {
    display: flex;
    align-items: center;
    border-radius: 25px;
    padding: 5px 15px;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.search-input {
    border: 1px solid #000;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px 45px 12px 15px;
}

.search-input::placeholder {
    color: black;
}

.search-button {
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

.search-button:hover {
    transform: scale(1.1);
}

/* Мобильное меню */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Основные стили страницы */
.section {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1440px;
    padding: 0 20px;
    margin: 0 auto;
}
/*.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}*/

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: left;
    line-height: normal;
    position: relative;
    color: #102B5D;
}

h2:after {
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), #4ec8e8);
    margin: 15px auto 0;
    border-radius: 2px;
}

.dep {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 48px;
    text-align: left;
    margin: 0 0 30px;
    color: black;
    padding-left: 0;
}

/* Секция Hero */
#hero.section {
    *padding-bottom: 0px !important;
    background: #FAFAFA;
}

.logo-container {
    margin-bottom: 40px;
}

.logo-main {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    text-align: center;
}

.logo-main span {
    display: block;
}

.logo-description {
    font-size: 20px;
    line-height: 1.6;
    width: 57%;
    /*margin: 60px 0 0;*/
    font-weight: 300;
    color: #444;
    text-align: left;
}

/* Изображения */
.images-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 80px;
}

.image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);*/
}

.image-left {
    width: 757px;
    height: 474.91px;
}

.image-right {
    width: 404px;
    height: 460px;
    margin-top: 40px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    text-align: left;
    margin-top: 20px;
    font-style: italic;
    color: #666;
    font-size: 16px;
}

/* Статистика */
.stats-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 80px;
    width: 100%;
}

.stat-item {
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 25px 20px;
    background: var(--light-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: var(--white);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.stat-text {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    color: #000;
}

/* Секция About */
#about.section {
    padding: 0 !important;
    min-height: 140px !important;
    height: 140px !important;
    background-color: var(--light-bg);
}

#about .container {
    padding: 0 10px !important;
}

#about h2 {
    margin-bottom: 8px !important;
    font-size: 1.4rem !important;
}

#about p {
    display: none;
}

#about .containersl {
    margin: 0 auto !important;
    padding: 0 !important;
}

#about .slider-container {
    height: 120px !important;
    padding: 2px 0 !important;
}

#about .slide-link {
    height: 110px !important;
    padding: 1px !important;
}

#about .image-container {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 2px !important;
    border-width: 2px !important;
}

/* Слайдер */
.containersl {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto 0;
    padding: 20px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 15px 0;
    margin: 0 auto;
    height: 160px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    will-change: transform;
}

.slide {
    min-width: 10%;
    padding: 0 5px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slide-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 5px;
    height: 140px;
    width: 100%;
    justify-content: center;
}

.slide-link:hover {
    transform: translateY(-5px);
}

.image-container {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    border: 3px solid var(--white);
    transition: all 0.3s ease;
}

.slide-link:hover .image-container {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    border-color: #f0f0f0;
    transform: scale(1.05);
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slide-link:hover .slide-image {
    transform: scale(1.1);
}

.slide-title {
    font-size: 0.8rem;
    color: var(--text-color);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
    padding: 0 5px;
}

/* Секция Services */
#services {
    background-image: url("/assets/img/Frame_427321813.png");
    padding: 60px 0;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
}

.services-header {
    position: relative;
    margin-bottom: 30px;
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 48px;
    text-align: left;
    margin: 0 0 30px;
    color: black;
    padding-left: 0;
}

.section-title.news {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 48px;
    text-align: left;
    margin: 0 0 30px;
    color: white;
    padding-left: 0;
}

.all-news-btn {
    position: absolute;
    top: -20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    padding: 10px 30px 10px 15px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.all-news-btn:hover {
    color: var(--secondary-color);
}

.all-news-btn:hover .arrow-icon {
    transform: translateX(3px);
}

.arrow-icon {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.services-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 10px 20px;
    background: var(--light-bg);
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.services-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.main-image.full-width {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
}

.main-image.full-width img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.gallery-container-full {
    width: 100%;
    margin: 30px 0;
    padding: 0;
}

.gallery-row-full {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.gallery-item-full {
    flex: 1;
    min-width: 0;
}

.image-with-caption-full {
    position: relative;
    width: 100%;
    height: 100%;
}
.image-with-caption img {
    width: 600px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    display: block;
    margin: 0 auto;

}
.image-with-caption {
    padding-bottom: 20px;
}



.image-with-caption-full img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
}

.caption-full {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    /*background: rgba(0, 0, 0, 0.7);*/
    background: linear-gradient(to bottom,
    rgb(5 34 72 / 80%) 0%,
    rgba(0, 0, 0, 0.4) 20%,
    rgba(0, 0, 0, 0) 100%
    );
    color: var(--white);
    padding: 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    /*border-bottom: 2px solid var(--secondary-color);*/
    z-index: 2;
}

.caption-full h3 {
    font-size: 16px;
    font-weight: 600;
    height: 100%;
    margin: 0;
    line-height: 1.3;
    text-align: left;
    color: var(--white);
}

.main-h3 {
    font-size: 28px;
    padding-left: 20px;
    width: 60%;
}

/* Секция Videos */
.videos-section {
    /*padding: 80px 0;*/
    background: #FAFAFA;
}

.videos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.videos-header {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.videos-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 48px;
    text-align: left;
    margin: 0;
    color: black;
    padding-left: 0;

}

.all-videos-btn {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 15px 30px 10px 15px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.all-videos-btn:hover {
    color: var(--secondary-color);
}

.all-videos-btn:hover .arrow-icon {
    transform: translateX(3px);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.video-card {
    background: #FAFAFA;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail video {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(78, 137, 232, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    transition: all 0.3s ease;
}

.video-card:hover .play-button {
    background: rgba(78, 137, 232, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-content {
    padding: 20px;
}

.video-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.video-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Секция с карточками */
#cards-section {
    /*padding: 80px 0;*/
    background-color: #FAFAFA;
}

.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.cards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*margin-bottom: 40px;*/
}

.section-title.dep {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 48px;
    text-align: left;
    margin: 0 0 30px;
    color: black;
    padding-left: 0;
}

.all-cards-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.all-cards-btn:hover {
    color: var(--accent-color);
}

.all-cards-btn:hover .arrow-icon {
    transform: translateX(4px);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


.card-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    /*height: 160px;*/
    object-fit: cover;
}

/* Стили footer */
.full-width-footer {
    background: var(--white);
    color: #ecf0f1;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.footer-image-container {
    width: 100%;
    height: 229px;
    position: relative;
    overflow: hidden;
}

.footer-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/assets/img/footer1.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    background-color: rgba(0, 0, 0, 0.5);
}

.footer-text {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

.footer-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--gray);
    position: relative;
    padding-bottom: 10px;
}

.footer-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
}

.footer-text p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 17px;
    margin-bottom: 20px;
}

p.ready {
    color: var(--white);
    line-height: 1.0;
    font-size: 80px;
    padding-bottom: 20px;
}

.my-button {
    padding-bottom: 85px;
    padding-right: 65px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    padding: 40px 20px;
    gap: 40px;
}

.footer-columns {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    min-width: 300px;
}

.footer-column {
    flex: 1;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: black;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.footer-links a:hover {
    color: black;
    transform: translateX(5px);
}

.fas {
    color: black;
}

.copyright {
    text-align: center;
    padding: 25px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 16px;
    background: var(--white);
}

/* Адаптивность */
@media (max-width: 1300px) {
    .gallery-row-full,
    .videos-grid {
        gap: 15px;
    }

    .image-with-caption-full img,
    .video-thumbnail {
        height: 220px;
    }

    .main-image.full-width img {
        height: 350px;
    }
}

@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav-links {
        margin-right: 15px;
    }

    .nav-item {
        margin: 0 8px;
    }

    .search-input {
        width: 150px;
    }
}

@media (max-width: 992px) {
    .gallery-row-full {
        flex-wrap: wrap;
        gap: 15px;
    }

    .gallery-item-full {
        flex: 0 0 calc(50% - 8px);
    }

    .image-with-caption-full img,
    .video-thumbnail {
        height: 200px;
    }

    .main-image.full-width img {
        height: 300px;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-text {
        padding-right: 0;
    }

    .footer-columns {
        flex-wrap: wrap;
    }

    .footer-column {
        flex: 1 0 45%;
        margin-bottom: 30px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
        width: 100%;
        height: calc(100vh - 80px);
        padding: 20px;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .dropdown {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 10px;
        border-radius: 6px;
    }

    .nav-item.active .dropdown {
        max-height: 500px;
    }

    .nav-link i {
        transform: rotate(0deg);
    }

    .nav-item.active .nav-link i {
        transform: rotate(180deg);
    }

    .search-container {
        margin-left: auto;
        margin-right: 20px;
    }
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .logo-main {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .logo-description {
        font-size: 18px;
        margin-top: 40px;
        width: 100%;
    }

    .stats-container {
        gap: 15px;
        margin-top: 60px;
    }

    .stat-item {
        min-width: 140px;
        padding: 18px 12px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-text {
        font-size: 16px;
    }

    .images-container {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .image-left, .image-right {
        width: 100%;
        max-width: 757px;
        height: auto;
        margin-top: 0;
    }

    .image-left {
        aspect-ratio: 757/474.91;
    }

    .image-right {
        aspect-ratio: 404/460;
    }

    h2 {
        font-size: 2rem;
    }

    .section-title,
    .videos-title {
        font-size: 36px;
    }

    .gallery-item-full,
    .videos-grid {
        grid-template-columns: 1fr;
    }

    .image-with-caption-full img,
    .video-thumbnail {
        height: 180px;
    }

    .main-image.full-width img {
        height: 250px;
    }

    .all-news-btn,
    .all-videos-btn {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 15px;
        justify-content: center;
    }

    .services-header,
    .videos-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .images-container {
        flex-direction: column;
        gap: 30px;
    }

    .image-left, .image-right {
        width: 100%;
        height: auto;
    }

    .services-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery-row-full {
        flex-direction: column;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-container {
        flex-direction: column;
        gap: 15px;
    }

    .stat-item {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .logo-main {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .logo-description {
        font-size: 16px;
        margin-top: 30px;
    }

    .images-container {
        gap: 30px;
    }

    .image-caption {
        margin-top: 15px;
    }

    .services-nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-btn {
        width: 200px;
        text-align: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .cards-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .all-cards-btn {
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 15px;
    }

    .logo-text {
        font-size: 20px;
    }

    .search-input {
        width: 120px;
    }

    .footer-column {
        flex: 1 0 100%;
    }

    .footer-image-container {
        height: 250px;
    }

    .footer-text h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .video-content {
        padding: 15px;
    }

    .video-content h3,
    .video-title {
        font-size: 1.1rem;
    }

    .video-content p,
    .video-description {
        font-size: 0.9rem;
    }

    .play-button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .video-meta span {
        font-size: 0.8rem;
    }

    .section-title,
    .videos-title {
        font-size: 28px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .section-title, .videos-title {
        font-size: 32px;
    }

    .main-h3 {
        font-size: 20px;
        width: 100%;
        padding-left: 10px;
    }
}

/* Оптимизации производительности */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Улучшенная доступность */
@media (prefers-contrast: high) {
    .stat-item,
    .nav-btn {
        border: 2px solid #000;
    }
}

/* Поддержка темной темы */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: var(--white);
    }

    nav {
        background: rgba(26, 26, 26, 0.95);
    }

    nav a {
        color: var(--white);
    }

    .stat-item {
        background: #2d2d2d;
        border-color: #404040;
    }

    .stat-text,
    .video-title,
    .video-description {
        color: var(--white);
    }

    .video-card {
        background: #2d2d2d;
        border-color: #404040;
    }
}
/*tech*/
.section {

    padding: 0;
    background: white;
    /*border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);*/
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #1a3a8f;
    /*padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;*/
}

/* Секция 1 */
.section-1 {
    display: flex;
    gap: 20px;
}

.large-img {
    width: 677px;
    height: 710px;
    object-fit: cover;
    border-radius: 8px;
}

.small-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.small-img {
    width: 566px;
    height: 346px;
    object-fit: cover;
    border-radius: 8px;
}

/* Секция 2 */
.section-2 {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.medium-img {
    width: 407px;
    height: 342px;
    object-fit: cover;
    border-radius: 8px;
}

/* Секция 3 */
.section-3 {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.wide-img {
    width: 620px;
    height: 346px;
    object-fit: cover;
    border-radius: 8px;
}

/* Эффекты при наведении */
.image-container {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.image-container:hover {
    transform: translateY(-5px);
}

.image-container img {
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.03);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .overlay {
    opacity: 1;
}



/* Адаптивность */
@media (max-width: 1400px) {
    .section-1, .section-2, .section-3 {
        flex-direction: column;
        align-items: center;
    }

    .large-img, .small-img, .medium-img, .wide-img {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .small-images {
        width: 100%;
    }
}

/*Новый слайдер */

 .images-container {
     position: relative;
     display: flex;
     justify-content: space-between;
     width: 100%;
 }

.image-wrapper.image-left {
    /* Левый блок остается без изменений */
    position: static;
}

.slider_main-container {
    position: relative;
    width: 48%; /* Сохраняем исходную ширину правого блока */
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.slide_main {
    min-width: 100%;
    display: flex;
    justify-content: center;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #fff;
}

/*Карточки основное*/

 header h1 {
     text-align: center;
     font-size: 2.5rem;
 }

.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.news-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    width: 100%;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.news-image {
    padding:10px;
    width: 340px;
    height: 280px;
    object-fit: contain;
    flex-shrink: 0;
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.news-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #2c3e50;
    line-height: 1.3;
}

.news-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 1rem;
}



/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }

    .news-image {
        width: 100%;
        height: 200px;
    }

    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    .news-content {
        padding: 20px;
    }

    .news-title {
        font-size: 1.2rem;
    }

    .news-category {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .news-category {
        font-size: 0.6rem;
        padding: 2px 5px;
        letter-spacing: 0.3px;
    }

    .news-content {
        padding: 15px;
    }
}

