* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Montserrat', 'Inter', sans-serif; */
}

body {
    background-color: #ffffff;
    padding-top: 72px; 
    font-family: 'Montserrat', sans-serif;
/*    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
*/
}

.future-frame {
    width: 100%;
    min-height: 100vh;
}

.site-header {
    background: #F2F2F2;
    padding: 0;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    height: 72px;
    padding: 0 16px;
}

.site-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-start;
}

.header-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.header-lab {
    color: #3b7bbf;
    font-size: 1.35rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header-icon img {
    width: 22px;
    height: 22px;
    filter: none;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #004A7C;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #004A7C;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0066b3;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3rem;
    color: #004A7C;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #004A7C;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0066b3;
}

.main-banner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 24px auto 0 auto;
    border-radius: 25px;
    overflow: hidden;
    min-height: 300px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background-image: url('/static/images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 300px;
    filter: brightness(0.85);
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 48px;
    box-sizing: border-box;
}

.banner-title {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 500;
    max-width: 700px;
    margin-bottom: 32px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.banner-buttons {
    display: flex;
    gap: 18px;
}

.banner-btn {
    background: #fff;
    color: #222;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    outline: none;
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    width: auto;
}

.banner-btn:hover {
    background: #3b7bbf;
    color: #fff;
}

.about-company {
    position: relative;
    background: #f8f9fa;
    max-width: 1200px;
    margin: 32px auto 32px auto;
    border-radius: 12px;
    overflow: hidden;
    min-height: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}


.about-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 1;
    /* pointer-events: none; */
}

.about-content {
    position: relative;
    z-index: 2;
    padding: 16px 20px 16px 20px;
    display: flex;
    flex-direction: column;
}

.about-title {
    color: #2366a8;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.about-text {
    color: #222;
    font-size: 1.08rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.about-link {
    color: #2366a8;
    font-weight: 700;
    font-size: 1.08rem;
    text-decoration: none;
    align-self: flex-end;
    margin-top: 8px;
    transition: color 0.2s;
}

.about-link:hover {
    color: #174a7c;
    text-decoration: underline;
}

.about-more {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.7s cubic-bezier(.4,0,.2,1), opacity 0.5s;
    margin-top: 0;
    color: #222;
    font-size: 1.05rem;
    font-weight: 400;
    background: transparent;
}

.about-more.open {
    max-height: 600px;
    opacity: 1;
    margin-top: 16px;
}

.about-more p {
    margin-bottom: 10px;
}

.products-section {
    max-width: 1200px;
    margin: 32px auto 32px auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0 0 24px 0;
    position: relative;
    overflow: visible;
}

.products-title {
    color: #2366a8;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 12px 24px;
    padding-top: 24px;
}

.products-slider {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.slider-window {
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    border-radius: 18px;
    position: relative;
    background: #222;
    min-height: 280px;
    margin: 0 16px;
}

.slider-track {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    min-width: 100%;
    max-width: 100%;
    opacity: 0;
    position: absolute;
    top: 0; left: 0;
    transition: opacity 0.3s, transform 0.5s cubic-bezier(.4,0,.2,1);
    z-index: 1;
    display: flex;
    align-items: stretch;
    height: 320px;
    background: #222;
    border-radius: 18px;
    box-sizing: border-box;
}

.slider-slide.active {
    opacity: 1;
    position: relative;
    z-index: 2;
    transform: translateX(0);
}
.slider-slide.to-left {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 3;
}
.slider-slide.to-right {
    opacity: 0;
    transform: translateX(100%);
    z-index: 3;
}
.slider-slide.from-right {
    opacity: 1;
    transform: translateX(100%);
    animation: slideInRight 0.5s forwards;
}
.slider-slide.from-left {
    opacity: 1;
    transform: translateX(-100%);
    animation: slideInLeft 0.5s forwards;
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.slider-img {
    width: 55%;
    object-fit: cover;
    border-radius: 18px 0 0 18px;
    height: 100%;
    background: #222;
}

.slider-content {
    width: 45%;
    padding: 36px 32px 32px 32px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(90deg, rgba(34,34,34,0.95) 80%, rgba(34,34,34,0.7) 100%);
    border-radius: 0 18px 18px 0;
    height: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.slider-slide.active .slider-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.slider-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #fff;
}

.slider-content ul {
    margin-bottom: 18px;
    padding-left: 18px;
    font-size: 1.08rem;
    color: #fff;
}

.slider-btn {
    background: #fff;
    color: #222;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    padding: 10px 22px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    outline: none;
    transition: transform 0.12s;
}

.slider-btn:hover {
    background: #3b7bbf;
    color: #fff;
}

.slider-btn:active {
    transform: scale(0.96);
}

.slider-arrow {
    background: #3b7bbf;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}
.slider-arrow:hover {
    background: #2366a8;
    color: #fff;
}
.slider-arrow .arrow-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: none;
}
.slider-arrow.left {
    left: 0;
}
.slider-arrow.right {
    right: 0;
}

.slider-dots {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    margin: 0;
    /* gap: 6px;  <-- удалено, чтобы не перебивать десктоп */
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d7e2;
    display: inline-block;
    transition: background 0.2s;
    cursor: pointer;
}
.slider-dot.active {
    background: #2366a8;
}

.products-cards {
    max-width: 1200px;
    margin: 0 auto 32px auto;
    background: #f7f9fb;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 32px 0 18px 0;
    position: relative;
}

.cards-row {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 18px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px 18px 24px 18px;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
    transform: scale(1.045) translateY(-6px);
    box-shadow: 0 8px 32px rgba(59,123,191,0.13);
}
.product-img {
    width: 170px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 16px;
}
.product-title {
    color: #2366a8;
    font-weight: bold;
    font-size: 1.15rem;
    margin-bottom: 8px;
    text-align: center;
}
.product-desc {
    color: #222;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 18px;
}
.product-btn {
    background: #fff;
    color: #222;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    outline: none;
    margin-top: auto;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s;
}
.product-btn:hover {
    background: #3b7bbf;
    color: #fff;
}
.product-card:hover .product-btn {
    opacity: 1;
    transform: translateY(0);
}

.cards-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.cards-page {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.cards-page.active {
    background: #2366a8;
    color: #fff;
}
.cards-next {
    background: #3b7bbf;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}
.cards-next:hover {
    background: #2366a8;
}
.cards-next .arrow-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.section-light {
    background: #f7f9fb !important;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s, transform 0.7s;
}
.section-dark {
    background: #dde5ef !important;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s, transform 0.7s;
}

.section-light.visible, .section-dark.visible {
    opacity: 1;
    transform: translateY(0);
}

.main-nav {
    margin-left: 32px;
}

.nav-list {
    display: flex;
    gap: 18px;
    list-style: none;
}

.nav-item {
    font-size: 1.08rem;
    color: #222;
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    background: none;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
}

.nav-item.active, .nav-item:hover {
    background: #e6e6e6;
    color: #222;
}

.news-section {
    max-width: 1200px;
    margin: 0 auto 32px auto;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 32px 0 18px 0;
    position: relative;
    background: #f7f9fb;
}
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 32px 18px 32px;
}
.news-title {
    color: #2366a8;
    font-size: 2rem;
    font-weight: 700;
}
.news-social-buttons {
    display: flex;
    gap: 12px;
}
.news-social {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e6f0fa;
    color: #2366a8;
    font-size: 1.08rem;
    border-radius: 8px;
    padding: 6px 16px;
    text-decoration: none;
    transition: background 0.2s;
}
.news-social:hover {
    background: #d0e4f7;
}
.news-social-tg {
    background: #e6f0fa;
}
.news-social-vk {
    background: #e6f0fa;
}
.news-tg, .news-vk {
    width: 28px;
    height: 28px;
}
.news-cards {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin: 0 32px;
    flex-wrap: wrap;
}
.news-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    width: calc(33.333% - 22px);
    min-width: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.news-card:hover {
    box-shadow: 0 4px 16px rgba(59,123,191,0.13);
}
.news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}
.news-body {
    padding: 18px 18px 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.news-caption {
    font-size: 1.08rem;
    color: #222;
    margin-bottom: 4px;
}
.news-text {
    color: #222;
    font-size: 1rem;
    margin-bottom: 8px;
}
.news-more {
    color: #2366a8;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.98rem;
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #888;
    font-size: 0.98rem;
}
.news-icon {
    width: 18px;
    height: 18px;
    margin-left: 2px;
    margin-right: 8px;
    vertical-align: middle;
}
.news-time {
    margin-left: auto;
    color: #888;
    font-size: 0.95rem;
}

.services-section {
    max-width: 1200px;
    margin: 0 auto 32px auto;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 32px 0 18px 0;
    position: relative;
    background: #dde5ef;
}
.services-title {
    color: #2366a8;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 18px;
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
}
.service {
    background: #f7f9fb;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    position: relative;
    min-height: 150px;
    padding: 18px 18px 18px 18px;
    font-size: 1.3rem;
    color: #222;
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(.4,0,.2,1), box-shadow 0.28s cubic-bezier(.4,0,.2,1);
    will-change: transform, box-shadow;
}
.service:hover, .service:focus-within {
  transform: scale(1.07) translateY(-8px);
  box-shadow: 0 12px 36px rgba(59,123,191,0.18);
  z-index: 2;
}
.service img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    z-index: 1;
}
.service span {
    position: relative;
    z-index: 2;
    color: #2366a8;
    font-size: 1.25rem;
    background: rgba(255,255,255,0.85);
    border-radius: 8px;
    padding: 4px 12px;
    margin-bottom: 8px;
}
.service.service-safety span {
    color: #2366a8;
    background: rgba(255,255,255,0.85);
    border-radius: 8px;
    padding: 4px 12px;
    margin-bottom: 8px;
}
.service.service-safety {
    justify-content: flex-end;
    align-items: flex-start;
}

.partners-section {
    max-width: 100vw;
    margin: 0 auto;
    background: #fff;
    border-radius: 0 0 0 0;
    box-shadow: none;
    padding: 0 0 0 0;
    position: relative;
}
.partners-title {
    color: #2366a8;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 18px 24px;
    padding-top: 24px;
}
.partners-logos {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 36px;
    padding: 0 0 24px 24px;
    flex-wrap: wrap;
}
.partners-logos img {
    height: 140px;
    width: auto;
    object-fit: contain;
    background: none;
}
.partners-footer {
    background: #bdb7b7;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px 32px 24px 32px;
    border-radius: 0 0 18px 18px;
    margin-top: 0;
    flex-wrap: wrap;
}
.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 320px;
}
.footer-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 8px;
}
.footer-lab {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.footer-lab-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.footer-lab-desc {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 400;
}
.footer-meta {
    color: #fff;
    font-size: 0.95rem;
    margin-top: 8px;
}
.footer-meta a {
    color: #fff;
    text-decoration: underline;
    margin-right: 8px;
    font-size: 0.95rem;
}
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
    min-width: 220px;
}
.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #3b7bbf;
    color: #fff;
    font-weight: 700;
    font-size: 1.08rem;
    border-radius: 8px;
    padding: 6px 16px;
    text-decoration: none;
    transition: background 0.2s;
}
.footer-social:hover {
    background: #2366a8;
}
.footer-vk {
    width: 28px;
    height: 28px;
}
.footer-partners {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.footer-partners img {
    height: 32px;
    object-fit: contain;
    background: none;
}

.partners-marquee {
    overflow: hidden;
    width: 100%;
    background: #fff;
    padding: 0 0 24px 0;
    margin-bottom: 0;
    position: relative;
    height: 300px;
}

.partners-marquee:before,
.partners-marquee:after {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: 100px;
    z-index: 2;
}

.partners-marquee:before {
    left: 0;
    background: linear-gradient(to left, #fff0, #fff);
}

.partners-marquee:after {
    right: 0;
    background: linear-gradient(to right, #fff0, #fff);
}

.partners-logos {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: nowrap;
    min-width: 1400px;
    height: 100%;
    padding: 1rem 0;
    animation: marquee 45s linear infinite;
    will-change: transform;
}

.partners-logos img {
    height: 140px;
    width: auto;
    object-fit: contain;
    background: none;
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-block;
}

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

@media (max-width: 768px) {
    .partners-marquee {
        height: 180px;
    }
    .partners-logos {
        gap: 32px;
    }
    .partners-logos img {
        height: 40px;
    }
}

.footer-logo2 {
    width: 170px;
    height: auto;
    object-fit: contain;
    margin-bottom: 8px;
    display: block;
}
.footer-fund {
    height: 48px;
    object-fit: contain;
    background: none;
    margin-right: 8px;
}

/* --- DROPDOWN MENU FOR PRODUCTS --- */
.nav-item-products {
  position: relative;
}

@media (min-width: 901px) {
  .dropdown-menu {
    display: none;
    position: fixed;
    left: 0;
    top: 72px;
    width: 100vw;
    min-width: unset;
    background: #fff;
    box-shadow: 0 8px 32px rgba(34,34,34,0.13);
    border-radius: 0 0 16px 16px;
    padding: 0;
    z-index: 100;
    animation: dropdown-fade-in 0.3s;
    margin: 0;
  }
  .dropdown-inner {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 0 32px 0;
  }
  .dropdown-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px 32px;
    flex: 2 1 0%;
    padding: 0 32px 0 48px;
    margin: 0;
    align-content: flex-start;
  }
  .dropdown-drone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(-20px);
    animation: drone-fade-in 0.4s forwards;
    background: none;
    border-radius: 8px;
    padding: 8px 0;
    cursor: pointer;
    min-width: 140px;
    transition: transform 0.28s cubic-bezier(.4,0,.2,1), box-shadow 0.28s cubic-bezier(.4,0,.2,1);
    will-change: transform, box-shadow;
  }
  .dropdown-drone img {
    width: 90px;
    height: 70px;
    object-fit: contain;
    background: none;
  }
  .dropdown-drone span {
    font-size: 1.08rem;
    color: #2366a8;
    font-weight: 700;
    text-align: center;
  }
  .dropdown-drone:hover span {
    color: #3b7bbf;
    text-decoration: underline;
  }
  .dropdown-drone:nth-child(1) { animation-delay: 0.05s; }
  .dropdown-drone:nth-child(2) { animation-delay: 0.13s; }
  .dropdown-drone:nth-child(3) { animation-delay: 0.21s; }
  .dropdown-drone:nth-child(4) { animation-delay: 0.29s; }
  .dropdown-drone:nth-child(5) { animation-delay: 0.37s; }
  .dropdown-drone:nth-child(6) { animation-delay: 0.45s; }
  .dropdown-drone:nth-child(7) { animation-delay: 0.53s; }
  .dropdown-drone:nth-child(8) { animation-delay: 0.61s; }
  @keyframes drone-fade-in {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav-item-products:hover .dropdown-drone,
  .nav-item-products.open .dropdown-drone {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .dropdown-drone:hover, .dropdown-drone:focus-within {
    transform: scale(1.07) translateY(-8px);
    box-shadow: 0 12px 36px rgba(59,123,191,0.18);
    z-index: 2;
  }
  .dropdown-links {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border-left: 2px solid #e6eaf0;
    padding: 0 48px 0 32px;
    min-width: 260px;
    gap: 24px;
  }
  .dropdown-link {
    font-size: 1.15rem;
    color: #222;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 0;
    transition: color 0.2s;
    display: block;
  }
  .dropdown-link:hover {
    color: #2366a8;
    text-decoration: underline;
  }
  .nav-arrow { display: none !important; }
  .nav-item-products:hover .dropdown-menu,
  .dropdown-menu:hover {
    display: block;
  }
}

.contact-section {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 32px auto;
    min-height: 340px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: #222;
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.contact-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    overflow: hidden;
}
.contact-bg img {
    width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.85);
}
.contact-flex {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    min-height: 340px;
}
.contact-left {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 0 32px 48px;
}
.contact-left-text {
    color: #222;
    font-size: 1.4rem;
    font-weight: 500;
    max-width: 420px;
    background: none;
    z-index: 2;
}
.contact-right {
    flex: 1.2;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 48px 32px 0;
}
.contact-form {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(34,34,34,0.13);
    padding: 32px 28px 28px 28px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-title {
    color: #2366a8;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: left;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 1rem;
    color: #222;
    font-weight: 700;
}
.form-group input,
.form-group textarea {
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid #bdbdbd;
    border-radius: 0;
    font-size: 1rem;
    background: #f7f9fb;
    transition: border-color 0.2s;
    resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom: 1.5px solid #2366a8;
    background: #fff;
}
.contact-submit {
    background: #dde5ef;
    color: #222;
    border: none;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.contact-submit:hover {
    background: #2366a8;
    color: #fff;
}
@media (max-width: 900px) {
    .contact-flex {
        flex-direction: column;
        min-height: unset;
    }
    .contact-left, .contact-right {
        padding: 24px 16px;
        justify-content: center;
    }
    .contact-form {
        min-width: unset;
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    .contact-section {
        border-radius: 0;
        margin: 0 0 24px 0;
    }
    .contact-left, .contact-right {
        padding: 16px 4px;
    }
    .contact-form {
        padding: 18px 8px 18px 8px;
    }
    .contact-title {
        font-size: 1.2rem;
    }
    .contact-desc {
        font-size: 1rem;
        padding: 10px;
    }
    .desktop-only {
        display: none !important;
    }
    .mobile-contact-btn {
        display: block !important;
        margin-bottom: 18px !important;
    }
    .banner-content {
        padding-bottom: 0 !important;
    }
    .about-company {
        max-width: calc(100vw - 16px);
        width: calc(100vw - 16px);
        margin: 12px 8px 0 8px;
        border-radius: 18px;
        min-height: 180px;
    }
    .product-btn {
        opacity: 1 !important;
        transform: none !important;
        background: #3b7bbf !important;
        color: #fff !important;
        box-shadow: 0 2px 8px rgba(59,123,191,0.13);
        transition: none !important;
    }
    .news-social-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-end !important;
        margin-bottom: 12px;
        width: 100%;
        padding: 0 8px 0 0;
    }
    .contact-submit {
        opacity: 1 !important;
        transform: none !important;
        background: #3b7bbf !important;
        color: #fff !important;
        width: 100%;
        margin-top: 18px;
        box-shadow: 0 2px 8px rgba(59,123,191,0.13);
        transition: none !important;
        display: block;
        text-align: center;
    }
    .partners-logos img {
        height: 120px;
        width: auto;
        object-fit: contain;
    }

}
@media (min-width: 601px) {
    .mobile-contact-btn {
        display: none !important;
    }
}

/* --- Анимация fade-in для слайдов --- */
.slider-slide.fade-in {
  animation: fadeIn 0.7s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Bounce для активного слайда --- */
.slider-slide.active {
  animation: bounceIn 0.7s;
}
@keyframes bounceIn {
  0% { transform: scale(0.96); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* --- Анимация появления текста в слайде --- */
.slider-slide.active .slider-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

/* --- Hover-анимация карточек продукции --- */
.product-card {
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  transform: scale(1.045) translateY(-6px);
  box-shadow: 0 8px 32px rgba(59,123,191,0.13);
}
.product-card .product-btn {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
}
.product-card:hover .product-btn {
  opacity: 1;
  transform: translateY(0);
}

/* --- Fade-up для секций при скролле --- */
.section-light, .section-dark {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s, transform 0.7s;
}
.section-light.visible, .section-dark.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Анимация нажатия кнопок --- */
.slider-btn, .product-btn {
  transition: transform 0.12s;
}
.slider-btn:active, .product-btn:active {
  transform: scale(0.96);
}

/* --- Мягкое раскрытие блока "О компании" --- */
.about-more {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.7s cubic-bezier(.4,0,.2,1), opacity 0.5s;
}
.about-more.open {
  max-height: 600px;
  opacity: 1;
}

/* --- Плавное появление окна поиска --- */
#search-popup {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
#search-popup[style*="display: block"] {
  opacity: 1;
  pointer-events: auto;
}

/* --- DROPDOWN MENU FOR SERVICES --- */
#services-dropdown .dropdown-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 0;
}
#services-dropdown .dropdown-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 32px 32px;
  padding: 0;
  margin: 0;
  width: 600px;
  align-content: center;
}
#services-dropdown .dropdown-drone {
  background: #f7f9fb;
  box-shadow: 0 2px 8px rgba(59,123,191,0.06);
  border-radius: 14px;
  transition: transform 0.44s cubic-bezier(.4,0,.2,1), box-shadow 0.44s cubic-bezier(.4,0,.2,1), background 0.44s cubic-bezier(.4,0,.2,1);
  will-change: transform, box-shadow, background;
  padding: 12px 8px 12px 8px;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  height: 100%;
}
#services-dropdown .dropdown-drone:hover, #services-dropdown .dropdown-drone:focus-within {
  transform: scale(1.06) translateY(-5px);
  box-shadow: 0 8px 24px 0 rgba(59,123,191,0.13), 0 2px 8px rgba(59,123,191,0.07);
  background: #eaf2fc;
  z-index: 3;
}
#services-dropdown .dropdown-drone span:first-child {
  color: #2366a8;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}
#services-dropdown .dropdown-drone span:nth-child(2) {
  color: #222;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
#services-dropdown .dropdown-link {
  background: none;
  color: #2366a8;
  font-size: 0.97rem;
  border: none;
  border-radius: 0;
  padding: 0;
  text-decoration: none;
  box-shadow: none;
  transition: color 0.2s;
  cursor: pointer;
  outline: none;
  margin-top: auto;
  opacity: 1;
  transform: none;
  display: inline;
}
#services-dropdown .dropdown-link:hover {
  color: #3b7bbf;
  text-decoration: underline;
}
@media (max-width: 900px) {
  #services-dropdown .dropdown-list {
    width: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 18px 0;
  }
  #services-dropdown .dropdown-drone {
    min-width: unset;
    width: 100%;
  }
}

#services-dropdown .services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  gap: 20px 20px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  align-content: center;
}
#services-dropdown .service-safety,
#services-dropdown .service-excursion,
#services-dropdown .service-industry,
#services-dropdown .service-energy {
  grid-area: unset;
}
@media (max-width: 1100px) {
  #services-dropdown .services-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
}
@media (max-width: 700px) {
  #services-dropdown .services-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }
}

/* Топбар — только здесь Montserrat */
.header-lab, .nav-item, .main-nav, .nav-list {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Жирные подписи и акценты */
.news-caption, .about-link, .about-number-title, .cards-next, .dropdown-drone span:first-child, .dropdown-link {
    font-weight: 700;
}

/* Обычный текст */
.about-text, .about-more, .footer-lab-desc, .news-text, .form-group label, .contact-desc {
    font-weight: 400;
}

/* --- Мобильная кнопка меню --- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  z-index: 1201;
  padding: 0;
  cursor: pointer;
}
@media (max-width: 900px) {
  .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 340px;
    max-width: 96vw;
    height: 100vh;
    background: #fff;
    z-index: 1002;
    box-shadow: -4px 0 32px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    animation: mobileMenuFadeIn 0.25s;
    margin: 0;
  }
  .mobile-menu.active {
    display: flex;
  }
}

/* Убрать overlay */
.mobile-menu-overlay { display: none !important; }

.mobile-divider {
  width: 90%;
  height: 5px;
  margin: 12px auto 8px auto;
  background: #e3e3e3;
  border-radius: 3px;
  border: none;
}

.mobile-menu-link {
  font-weight: 700;
  color: #1C1919;
}
.mobile-subitem {
  font-family: 'Montserrat', Arial, sans-serif !important;
  font-weight: 300 !important;
  font-size: 0.92em !important;
  color: #6e6e6e !important;
  background: #f7f7f7;
  border-radius: 6px;
  margin: 4px 12px 4px 32px;
  padding: 6px 12px 6px 16px;
  display: block;
}
.mobile-menu-mainitem {
  padding: 20px 24px !important;
  margin-bottom: 10px !important;
}
.mobile-menu-mainitem a {
  padding: 0;
  font-weight: 700;
  color: #1C1919;
  text-decoration: none;
  width: 100%;
  display: block;
  margin: 0;
}
.mobile-menu-mainitem ul {
  /* all: unset; */
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: none;
  position: static;
  width: 100%;
}
.mobile-menu-mainitem.has-sub ul.open {
  display: block;
}
.mobile-menu-mainitem ul li {
  padding: 10px 24px;
  font-weight: 400;
  color: #222;
  background: #fff;
}
.mobile-menu-mainitem .arrow {
  width: 14px !important;
  height: 9px !important;
}

@media (max-width: 900px) {
  .main-nav,
  .dropdown-menu {
    display: none !important;
  }
}

/* --- ГАРАНТИРОВАННЫЙ СБРОС ДЛЯ ПОДМЕНЮ ТОЛЬКО ВНУТРИ МОБИЛЬНОГО МЕНЮ --- */
.mobile-menu .mobile-menu-mainitem > ul,
.mobile-menu .mobile-menu-mainitem > ul.open,
.mobile-menu .mobile-menu-mainitem > ul li {
  /* all: unset; */
  display: block !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: static !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  float: none !important;
  color: #222 !important;
  font-weight: 400 !important;
  box-sizing: border-box !important;
  text-align: left !important;
  z-index: auto !important;
}
.mobile-menu .mobile-menu-mainitem > ul { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.35s, opacity 0.25s; }
.mobile-menu .mobile-menu-mainitem > ul.open { max-height: 800px; opacity: 1; transition: max-height 0.45s, opacity 0.3s; }
.mobile-menu .mobile-menu-mainitem > ul li { padding: 10px 24px !important; }

@media (max-width: 600px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .news-social-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: flex-end !important;
    margin-bottom: 12px;
    width: 100%;
    padding: 0 8px 0 0;
  }
  .main-banner {
    max-width: calc(100vw - 16px);
    width: calc(100vw - 16px);
    margin: 12px 8px 0 8px;
    border-radius: 18px;
    min-height: 180px;
  }
  .banner-bg {
    min-height: 180px;
    border-radius: 18px;
  }
  .banner-content {
    padding: 28px 10px 32px 10px;
    justify-content: flex-start;
  }
  .banner-title {
    font-size: clamp(1rem, 4vw, 1.15rem);
    max-width: 98%;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.18;
    margin-bottom: 18px;
  }
  .banner-buttons {
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
    display: flex;
  }
  .banner-btn {
    width: 100%;
  }
  .slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 10px 0 0 0;
    padding: 0 8px;
    box-sizing: border-box;
  }о
  .slider-arrow {
    position: static;
    margin: 0;
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
    flex-shrink: 0;
  }
  .slider-dots {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    margin: 0;
    /* gap: 6px;  <-- удалено, чтобы не перебивать десктоп */
  }
  .news-section {
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 14px;
    margin: 8px 0 8px 0;
    max-width: 100vw;
  }
  .news-title {
    text-align: left;
    font-size: 1.25rem;
    margin: 0 0 12px 10px;
    padding-top: 18px;
    color: #2366a8;
    font-weight: 700;
  }
  .news-social-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: flex-end !important;
    margin-bottom: 12px;
    width: 100%;
    padding: 0 8px 0 0;
  }
  .news-card {
    margin-left: 0;
    margin-right: 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    width: 100%;
    max-width: 100vw;
  }
}

.desktop-only {
  display: block;
}

@media (max-width: 600px) {
    .products-section {
        max-width: calc(100vw - 16px);
        width: calc(100vw - 16px);
        margin: 0px 8px 0 8px;
        border-radius: 18px;
        padding: 0 0 18px 0;
        box-sizing: border-box;
    }
    .products-title {
        text-align: left;
        font-size: 1.25rem;
        margin: 0 0 12px 10px;
        padding-top: 18px;
    }
    .products-slider {
        flex-direction: column;
        min-height: unset;
        align-items: stretch;
        gap: 0;
        padding: 0;
    }
    .slider-window {
        max-width: 100%;
        width: 100%;
        min-height: unset;
        border-radius: 14px;
        margin: 0;
        background: #222;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        overflow: hidden;
    }
    .slider-slide {
        flex-direction: column;
        height: auto;
        min-height: unset;
        border-radius: 14px;
        box-sizing: border-box;
        align-items: stretch;
        justify-content: flex-start;
        padding: 0;
    }
    .slider-img {
        width: 100%;
        height: 180px;
        border-radius: 14px 14px 0 0;
        object-fit: cover;
        background: #222;
        margin: 0;
        display: block;
    }
    .slider-content {
        width: 100%;
        padding: 18px 10px 10px 10px;
        border-radius: 0 0 14px 14px;
        background: linear-gradient(180deg, rgba(34,34,34,0.95) 80%, rgba(34,34,34,0.7) 100%);
        min-height: 100px;
        box-sizing: border-box;
        align-items: flex-start;
    }
    .slider-arrow {
        position: static;
        margin: 10px 8px 0 8px;
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }
    .slider-dots {
        margin-top: 10px;
        margin-bottom: 0;
        /* gap: 6px;  <-- удалено, чтобы не перебивать десктоп */
    }
}

@media (min-width: 601px) {

  .slider-controls.mobile-only {
    display: none;
  }

  .slider-arrow.left.mobile-only {
    display: none;
  }
  .slider-arrow.right.mobile-only {
    display: none;
  }


  .products-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: row;
    min-height: 320px;
  }
  .slider-arrow.left.desktop-only {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }
  .slider-arrow.right.desktop-only {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }
  .slider-window {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 56px;
  }
  .slider-dots.desktop-only {
    position: absolute;
    left: 50%;
    bottom: -32px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    width: auto;
    z-index: 1;
  }
}

@media (max-width: 600px) {

  .slider-dots.slider-dots-mobile {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    width: auto;
    z-index: 1;
  }

.slider-controls.mobile-only {
    display: flex;
  }

  .slider-arrow.left.mobile-only {
    display: flex;
  }
  .slider-arrow.right.mobile-only {
    display: flex;
  }

  /* Убираю влияние на .products-page .cards-row и .product-card, чтобы сетка в два столбца работала только под @media (max-width: 900px) */
  .products-cards:not(.products-page) .cards-row {
    display: flexbox !important;
    margin: 0 !important;
    padding: 0 8px !important;
  }
  .products-cards:not(.products-page) .product-card {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 0 18px 0 !important;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 10px 6px 18px 6px !important;
    background: #fff;
    display: flex !important;
    flex-direction: column;
    align-items: center;
  }
  .products-cards:not(.products-page) .product-card:last-child {
    margin-bottom: 0 !important;
  }
  .products-cards:not(.products-page) .product-card img {
    display: block;
    margin: 0 auto 10px auto;
    max-width: 100%;
    height: auto;
  }
  .products-cards:not(.products-page) .product-title {
    text-align: center !important;
    width: 100%;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
  }
  .products-cards:not(.products-page) .product-desc {
    max-height: 4.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    white-space: normal;
    margin-bottom: 8px;
    text-align: center;
    width: 100%;
  }
  .products-cards:not(.products-page) .product-btn {
    width: 100% !important;
    display: block;
    text-align: center;
    margin-top: auto;
    font-size: 1rem;
    border-radius: 8px;
    background: #3b7bbf !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(59,123,191,0.13);
    padding: 10px 0;
  }
  /* Сброс для .products-page на мобилке — пусть наследует только стили из @media (max-width: 900px) */
  .products-page .cards-row,
  .products-page .product-card,
  .products-page .product-card img,
  .products-page .product-title,
  .products-page .product-desc,
  .products-page .product-btn {
    all: unset;
  }
}

@media (max-width: 900px) {
  .products-page .product-card {
    max-width: 98vw;
    width: 100%;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 8px 4px 14px 4px !important;
    margin: 0 !important;
  }
  .products-page .cards-row {
    gap: 10px 6px !important;
    padding: 0 2px !important;
  }
}

@media (max-width: 600px) {
  .services-section {
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 14px;
    margin: 8px 0 8px 0;
    max-width: 100vw;
  }
  .services-title {
    text-align: left;
    font-size: 1.25rem;
    margin: 0 0 12px 10px;
    padding-top: 18px;
    color: #2366a8;
    font-weight: 700;
  }
  .services-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .service {
    width: 100%;
    min-width: 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .service img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
  }
  .service span {
    padding: 12px 14px;
    font-size: 1.08rem;
    text-align: left;
    background: none;
    border-radius: 0 0 12px 12px;
    color: #2366a8;
    font-weight: 700;
    display: block;
  }
}

/* --- Мобильное меню --- */
.mobile-menu {
  /* opacity, transform, pointer-events, transition убираю отсюда, теперь только через .visible */
}
.mobile-menu.active {
  /* убираю, теперь всё через .visible.active */
}
@keyframes mobileMenuFadeIn {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 8px 24px;
  margin-bottom: 70px;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #222;
}
.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0 0 24px 0;
}
.mobile-menu-mainitem {
  padding: 20px 24px !important;
  margin-bottom: 10px !important;
}
.mobile-menu-mainitem a {
  padding: 0;
  font-weight: 700;
  color: #222;
  text-decoration: none;
  width: 100%;
  display: block;
  margin: 0;
}
.mobile-menu-mainitem ul {
  /* all: unset; */
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: none;
  position: static;
  width: 100%;
}
.mobile-menu-mainitem.has-sub > .mobile-menu-link {
  font-weight: 700;
}
.mobile-menu-mainitem > ul {
  /* all: unset; */
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: none;
  position: static;
  width: 100%;
}
.mobile-menu-mainitem.has-sub > .mobile-menu-link .arrow {
  transform: rotate(0deg);
}
.mobile-menu-mainitem.has-sub > .mobile-menu-link.active .arrow,
.mobile-menu-mainitem.has-sub > .mobile-menu-link[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}
@media (max-width: 900px) {
  .mobile-menu {
    /* display: none; убираю, чтобы не мешать анимации */
  }
  .mobile-menu.active {
    /* display: flex; убираю, теперь только через .visible */
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: block !important;
  }
}
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu.active,
  .mobile-menu-btn {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .mobile-nav-only { display: block !important; }
  .desktop-nav-only { display: none !important; }
}
@media (min-width: 901px) {
  .mobile-nav-only { display: none !important; }
  .desktop-nav-only { display: block !important; }
}

.mobile-menu.visible {
  display: flex !important;
  opacity: 0;
  transform: translateY(-30px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.mobile-menu.visible.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu-sublink {
  display: block;
  color: #222;
  font-size: 1.08rem;
  font-weight: 400;
  padding: 10px 24px;
  text-decoration: none;
  background: none;
  border: none;
  margin: 0;
}
.mobile-menu-sublink:hover {
  background: #f2f2f2;
  color: #2366a8;
}

@media (max-width: 900px) {
  .products-page .products-sidebar {
    display: none !important;
  }
  .products-page .cards-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 16px 10px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    box-sizing: border-box;
  }
  .products-page .product-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 10px 6px 18px 6px !important;
    background: #fff;
    display: flex !important;
    flex-direction: column;
    align-items: center;
  }
  .products-page .product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    display: block;
  }
  .products-page .product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    text-align: center;
    width: 100%;
    margin-bottom: 2px;
  }
  .products-page .product-desc {
    max-height: 4.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    white-space: normal;
    margin-bottom: 8px;
    text-align: center;
    width: 100%;
  }
  .products-page .product-btn {
    width: 100% !important;
    display: block;
    text-align: center;
    margin-top: auto;
    font-size: 1rem;
    border-radius: 8px;
    background: #3b7bbf !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(59,123,191,0.13);
    padding: 10px 0;
  }
}

/* --- Десктопная верстка для страницы продуктов --- */
.products-content.products-page {
    display: flex;
    max-width: 1200px;
    margin: 40px auto 0 auto;
}
.products-sidebar {
    min-width: 270px;
}
.products-cards {
    flex: 1;
}

@media (max-width: 900px) {
  .products-content.products-page {
    display: block;
    max-width: 100vw;
    margin: 0;
  }
  .products-sidebar {
    display: none !important;
  }
  .products-cards {
    width: 100%;
    flex: unset;
  }
  .products-page .cards-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 16px 10px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    box-sizing: border-box;
  }
}

/* Десктопный отступ для карточек продуктов */
.products-page .products-cards {
    margin-left: 132px;
}
@media (max-width: 900px) {
    .products-page .products-cards {
        margin-left: 0 !important;
    }
}

@media (max-width: 600px) {
  #custom-carousel .carousel-slide {
    width: 90vw !important;
    max-width: 320px !important;
    height: 180px !important;
    left: 50% !important;
    margin-left: -45vw !important;
  }
  #custom-carousel .carousel-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }
  #custom-carousel + div {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -5vw !important;
    box-sizing: border-box;
  }
}

@media (max-width: 700px) {
  .container {
    padding: 0 6px !important;
    margin: 20px auto 0 auto !important;
  }
  .container > div[style*='display:flex'] {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    margin-bottom: 18px !important;
  }
  .container > div[style*='display:flex'] > div {
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    padding-right: 0 !important;
  }
  .container img {
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto 12px auto !important;
    display: block !important;
  }
  .container button, .container a#abas-login-btn {
    width: 100% !important;
    font-size: 0.98rem !important;
    padding: 10px 0 !important;
    margin-top: 10px !important;
  }
  .container > div[style*='background:#fff'] {
    padding: 18px 8px 12px 8px !important;
    margin-bottom: 18px !important;
  }
  .container .cookie-banner-text, .container div[style*='font-size:1.5rem'] {
    font-size: 1.08rem !important;
  }
  .container div[style*='font-size:1.13rem'] {
    font-size: 0.98rem !important;
  }
  .container div[style*='font-size:1.05rem'] {
    font-size: 0.93rem !important;
  }
  /* Верхнее изображение education.html */
  .container img[src*='image 28.png'] {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: 220px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 -6px 12px -6px !important;
    object-fit: cover !important;
    display: block !important;
    padding: 0 !important;
  }
  /* Нижние белые блоки */
  .container > div[style*='background:#fff'] {
    padding: 10px 4px 8px 4px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    margin: 10px 0 10px 0 !important;
  }
  /* Вложенные flex-блоки внутри белых блоков */
  .container > div[style*='background:#fff'] > div[style*='display:flex'] {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
    padding: 0 !important;
  }
  .container > div[style*='background:#fff'] > div[style*='display:flex'] > div {
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .container > div[style*='background:#fff'] > div[style*='display:flex'] > div > * {
    font-size: 0.97rem !important;
    word-break: break-word !important;
  }
}

@media (min-width: 901px) {
  .nav-item-services:hover .dropdown-menu,
  .nav-item-services:focus-within .dropdown-menu {
    display: block;
  }
  /* Удаляю .dropdown-menu:hover { display: block; } чтобы не было бага */
  .nav-item-products:hover .dropdown-menu {
    display: block;
  }
  /* .dropdown-menu:hover { display: block; }  <-- УДАЛЕНО */
}

@media (min-width: 601px) {
  .slider-dots.desktop-only {
    gap: 18px !important;
  }
  .slider-dot {
    margin: 0;
  }
}
@media (max-width: 600px) {
  .slider-dots {
    gap: 6px;
  }
}

.news-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;align-items:center;justify-content:center;z-index:10000;padding:16px;opacity:0;transition:opacity .25s ease}
.news-modal-overlay.open{display:flex;opacity:1}
.news-modal{background:#fff;border-radius:12px;max-width:720px;width:100%;max-height:90vh;overflow:auto;box-shadow:0 10px 30px rgba(0,0,0,.2);transform:scale(.96) translateY(6px);transition:transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s;position:relative}
.news-modal.open{transform:scale(1) translateY(0)}
.news-modal-img{width:100%;height:auto;display:block;border-radius:12px 12px 0 0;position:relative;z-index:1}
.news-modal-body{padding:16px;position:relative;z-index:1}
.news-modal-title{font-size:1.2rem;font-weight:700;margin-bottom:8px}
.news-modal-text{font-size:1rem;line-height:1.5;color:#222}
.news-modal-close{position:absolute;top:12px;right:12px;background:#fff;border:none;border-radius:50%;width:36px;height:36px;box-shadow:0 1px 6px rgba(0,0,0,.15);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .15s ease, box-shadow .15s ease;z-index:2}
.news-modal-close:hover{transform:scale(1.06);box-shadow:0 4px 12px rgba(0,0,0,.18)}
@media(max-width:600px){.news-modal{max-width:100%;border-radius:10px}.news-modal-title{font-size:1.1rem}.news-modal-text{font-size:1rem}}

@media (hover:hover) and (pointer:fine){
	.news-card{transition: transform .22s ease, box-shadow .22s ease; cursor: pointer}
	.news-card:hover{transform: translateY(-6px); box-shadow: 0 10px 26px rgba(59,123,191,.18)}
	.news-card .news-img{transition: transform .3s ease}
	.news-card:hover .news-img{transform: scale(1.03)}
}