:root {
    --teal: #3743ba;
    --dark-blue: #000000;
    --light-blue: #ddeffc;
    --placeholder-bg: #68bfff;
    --white: #ffffff;
    --link-inactive: #035c67;
    --link-active: #3743ba;
    --link-visited: #46848c;
}
body {
    background-color: #fdfdfd;
    color: var(--dark-blue);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
    color: var(--teal);
    font-weight: 600;
}
a {
    color: var(--link-inactive);
    text-decoration: none;
}
a:link {
    color: var(--link-inactive);
}
a:active {
    color: var(--link-active);
}
a:visited {
    color: var(--link-visited);
}
a:hover {
    color: var(--link-active);
}
.bg-light-blue {
    background-color: var(--light-blue);
}
.section-padding {
    padding: 5rem 0;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal);
}
.stat-label {
    font-size: 0.95rem;
    color: var(--dark-blue);
}
.stat-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-4px);
}
.service-card, .product-card, .project-card, .news-card, .article-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover, .product-card:hover, .project-card:hover, .news-card:hover, .article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.service-icon {
    font-size: 2.2rem;
    color: var(--teal);
}
.product-price {
    color: var(--teal);
    font-weight: 600;
    font-size: 1.1rem;
}
.btn-teal:link, .btn-teal:visited, .btn-teal:active, .btn-teal {
    background-color: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}
.btn-teal:hover {
    background-color: #2c3594;
    border-color: #2c3594;
    color: var(--white);
}
.review-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.review-stars {
    color: #ffc107;
}
.partner-logo {
    filter: grayscale(1);
    opacity: 0.6;
    transition: opacity 0.2s;
    max-height: 60px;
}
.partner-logo:hover {
    opacity: 1;
    filter: none;
}
.footer {
    background-color: var(--light-blue);
    color: var(--dark-blue);
}
.footer a {
    color: var(--link-inactive);
}
.footer a:visited {
    color: var(--link-visited);
}
.footer a:hover {
    color: var(--link-active);
}
footer h5 {
    color: var(--teal);
}
.img-fluid {
    max-width: 100% !important;
}

.navbar-nav .nav-link, .navbar-nav .nav-link {
    color: var(--bs-navbar-active-color);
    padding: 15px;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: #3743ba;
    background-color: #f2f9ff;
    padding: 15px;
}
.navbar {
    --bs-navbar-padding-y: 0;
}

.hero-section {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 8rem 0 5rem;
    display: flex;
    align-items: center;
    color: var(--hero-text-color, #fff);
}
.hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-section .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}
.hero-section .hero-subtitle {
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    color: inherit;
    text-transform: uppercase;
}
.hero-title{
    /*color:#FFFFFF !important;*/
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.hero-style-dark .hero-title,
.hero-style-colored .hero-title {
    background: rgba(255, 255, 255, 0.25);
}
.hero-style-light .hero-title,
.hero-style-light .hero-subtitle {
    color: #ffffff;
}
.hero-style-dark .hero-title {
    color: #000000;
}
.hero-style-colored .hero-title {
    color: var(--primary);
}
.hero-style-dark .hero-subtitle,
.hero-style-colored .hero-subtitle {
    background: rgba(255, 255, 255, 0.25);
    color: #000000;
}
.hero-style-colored .hero-subtitle {
    color: var(--primary);
}
/* Hero Carousel */
#hero-carousel {
    position: relative;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: var(--hero-bg-pos, center);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(.4,0,.2,1);
    display: flex;
    align-items: center;
    padding: 8rem 0 5rem;
    color: var(--hero-text-color, #fff);
}
.hero-slide.active {
    opacity: 1;
    z-index: 2;
}
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-slide .hero-overlay {
    z-index: 1;
}
.hero-slide .hero-content {
    z-index: 2;
}
@keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes heroSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes heroSlideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes heroSlideLeft {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes heroSlideRight {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes heroZoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes heroBlurIn {
    from { filter: blur(8px); opacity: 0; }
    to { filter: blur(0); opacity: 1; }
}
.hero-slide.hero-fade-in { animation: heroFadeIn .7s cubic-bezier(.4,0,.2,1) both; }
.hero-slide.hero-slide-up { animation: heroSlideUp .7s cubic-bezier(.4,0,.2,1) both; }
.hero-slide.hero-slide-down { animation: heroSlideDown .7s cubic-bezier(.4,0,.2,1) both; }
.hero-slide.hero-slide-left { animation: heroSlideLeft .7s cubic-bezier(.4,0,.2,1) both; }
.hero-slide.hero-slide-right { animation: heroSlideRight .7s cubic-bezier(.4,0,.2,1) both; }
.hero-slide.hero-zoom-in { animation: heroZoomIn .7s cubic-bezier(.4,0,.2,1) both; }
.hero-slide.hero-blur-in { animation: heroBlurIn .7s cubic-bezier(.4,0,.2,1) both; }
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.hero-dot {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.7);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .3s, transform .3s;
}
.hero-dot.active {
    background: #fff;
    transform: scale(1.2);
}
.hero-dot:hover {
    background: rgba(255,255,255,.4);
}
/* Reviews Carousel */
.reviews-carousel {
    overflow: hidden;
    position: relative;
}
.reviews-track {
    display: flex;
    gap: 1.5rem;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
    cursor: grab;
}
.reviews-track:active {
    cursor: grabbing;
}
.reviews-track .review-card {
    min-width: calc((100% - 3rem) / 3);
    flex-shrink: 0;
    box-sizing: border-box;
}
@media (max-width: 992px) {
    .reviews-track .review-card {
        min-width: calc((100% - 1.5rem) / 2);
    }
}
@media (max-width: 576px) {
    .reviews-track .review-card {
        min-width: 100%;
    }
}
/* Partners Carousel */
.partners-carousel {
    overflow: hidden;
    position: relative;
}
.partners-track {
    display: flex;
    gap: 1.5rem;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
    cursor: grab;
}
.partners-track:active {
    cursor: grabbing;
}
.partners-track .partner-item {
    min-width: calc((100% - 7.5rem) / 6);
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 992px) {
    .partners-track .partner-item {
        min-width: calc((100% - 4.5rem) / 4);
    }
}
@media (max-width: 576px) {
    .partners-track .partner-item {
        min-width: calc((100% - 1.5rem) / 2);
    }
}

/* Компактный герой */
.hero-section.hero-small,
.hero-section.hero-small .hero-slide {
    padding: 2rem 0 1.5rem;
}
.hero-section.hero-small .hero-title {
    font-size: 1.5rem !important;
    margin-bottom: .5rem !important;
}
.hero-section.hero-small .hero-subtitle {
    font-size: .95rem;
    padding: .4rem 1rem;
    margin-bottom: .5rem !important;
}
.hero-section.hero-small .hero-content .btn {
    padding: .4rem 1.5rem;
    font-size: .9rem;
    margin-top: .5rem !important;
}

/* Таблицы без класса */
table:not([class]) {
    width: 100%;
}
table:not([class]) td {
    border: 1px solid #dadada;
    padding: 5px;
}
table:not([class]) th {
    border: 1px solid #dadada;
    background-color: #f4f4f4;
    padding: 5px;
}
table:not([class]) caption {
    caption-side: top;
    border: 1px solid #dadada;
    background-color: #9e9e9e;
    color: #0a0a0a;
    font-weight: bold;
    text-align: center;
    padding: 5px;
}

/* Заголовок статьи/новости в стиле featured-top */
.article-featured-top {
    position: relative;
    background-color: #366163;
    background-size: cover;
    background-position: center;
    color: #eee;
}
.article-featured-top .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.article-featured-top h1 {
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 4px 4px 4px rgba(0, 0, 0, 1);
}
.glass-box {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: calc(100% - 40px);
}
.glass-box.glass-center {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}
.glass-box.glass-right {
    right: 20px;
    left: auto;
    transform: none;
}
.navbar.bg-dark .navbar-brand,
.navbar.bg-dark .nav-link,
.navbar.bg-dark .navbar-toggler {
    color: #ffffff !important;
}
.navbar.bg-dark .nav-link:hover,
.navbar.bg-dark .nav-link:focus,
.navbar.bg-dark .nav-link.dropdown-toggle.show {
    color: #ffffff !important;
    opacity: 0.75;
}
.navbar.bg-black  .nav-link.active:hover,
.navbar.bg-black  .nav-link:hover,
.navbar.bg-black .active

{
    color: #19c2c9 !important;
}
.navbar.bg-dark .navbar-toggler-icon {
    filter: invert(1);
}
.navbar.bg-dark .dropdown-menu {
    background-color: #000000;
    border-color: #333333;
}
.navbar.bg-dark .dropdown-menu .dropdown-item {
    color: #ffffff;
}
.navbar.bg-dark .dropdown-menu .dropdown-item:hover,
.navbar.bg-dark .dropdown-menu .dropdown-item:focus {
    background-color: #333333;
    color: #ffffff;
}

/* === Видео-триггер (превью + play) === */
.video-trigger {
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-trigger:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.video-trigger .card-img-top {
    transition: transform 0.5s ease;
}
.video-trigger:hover .card-img-top {
    transform: scale(1.05);
}
.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    transition: background 0.3s ease;
}
.video-trigger:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.12);
}
.video-play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--teal, #3743ba);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}
.video-trigger:hover .video-play-btn {
    transform: scale(1.1);
    background: #ffffff;
}
.video-embed-16x9 {
    aspect-ratio: 16 / 9;
}

/* === Анимация логотипа === */
.navbar-logo {
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
                filter 0.4s ease;
    transform-origin: center;
    animation: logoFloat 4s ease-in-out infinite;
}
/* Лёгкое парение */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}
/* Одноразовый пульс по наведению (класс ставит JS по mouseenter) */
.navbar-logo.logo-pulse {
    animation: logoFloat 4s ease-in-out infinite, logoPulse 0.7s ease;
}
@keyframes logoPulse {
    0%   { transform: scale(1) rotate(0deg); }
    50%  { transform: scale(1.15) rotate(-3deg);
           filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7))
                   drop-shadow(0 0 14px rgba(55, 67, 186, 0.5)); }
    100% { transform: scale(1) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
    .navbar-logo {
        animation: none;
    }
}
.product-gallery{
    position:relative;
    z-index: 500;
}
