* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgb(212, 217, 211);
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 40px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  th, td {
    border: 1px solid #ccc;
    padding: 10px 15px;
    text-align: center;
  }

  th {
    background-color: #2960c8;
    color: white;
  }

  tr:nth-child(even) {
    background-color: #f2f2f2;
  }

.img-style{
    border-radius: 10px;
}
.nav-text{
    margin-top: 10px;
}
.nav-link, .dropbtn {
    text-decoration: none;
    color: rgb(255, 255, 255);
    padding: 16px 0px;
    display: inline-block;
    position: relative;
    background: transparent;
    border: none;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
}

.dropdown-content {
    display: none;
    margin-top: 15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2960c8 0%, #1e4a9e 100%);
    min-width: fit-content;
    width: auto;
    white-space: nowrap;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
    z-index: 100000000000;
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(252, 255, 171, 0.2);
    animation: dropdownFadeIn 0.3s ease;
    transform-origin: top center;
  }
  @keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}
  
  .dropdown-content a {
    color: white;
    padding: 14px 25px;
    text-decoration: none;
    display: block;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border-bottom: 1px solid rgba(252, 255, 171, 0.1);
    font-size: 15px;
    letter-spacing: 0.3px;
    text-align: left;
}

.dropdown-content a:last-child {
    border-bottom: none;
}
  .dropdown-content a:hover {
    background: linear-gradient(90deg, #fcffab 0%, #ffd700 100%);
    color: #1e4a9e !important;
    padding-left: 35px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5);
}
.dropdown-content a::before {
    content: "→";
    position: absolute;
    left: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #1e4a9e;
    font-weight: bold;
}
.dropdown-content a:hover::before {
    left: 15px;
    opacity: 1;
}
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #2960c8;
    filter: drop-shadow(0 -2px 5px rgba(0, 0, 0, 0.1));
}
.dropdown-content a.active-dropdown::after {
    content: "✓";
    position: absolute;
    right: 15px; /* Отстояние от десния край */
    top: 50%;
    transform: translateY(-50%);
    color: #fcffab;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}
.dropdown-content a.active-dropdown {
    background: rgba(252, 255, 171, 0.2);
    color: #fcffab !important;
    font-weight: 700;
    position: relative;
    padding-right: 35px;
}

.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content.show {
    display: block;
}
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #2960c8;
    filter: drop-shadow(0 -2px 5px rgba(0, 0, 0, 0.1));
}

@media(max-width:1024px) {
    .dropdown-content {
        position: static;
        left: 0;
        transform: none;
        background: #444;
        box-shadow: none;
        margin-top: 10px;
        width: 100%;
        min-width: 100%;
        white-space: normal;
        border-radius: 8px;
        animation: none;
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown-content::before {
        display: none;
    }
    
    .dropdown-content a {
        text-align: center;
        padding: 12px 20px;
    }
    
    .dropdown-content a:hover {
        padding-left: 20px;
    }
    
    .dropdown-content a::before {
        display: none;
    }
    
    .dropdown-content a.active-dropdown::after {
        right: 10px;
    }

}

/* За много малки екрани */
@media(max-width:700px) {
    .dropdown-content {
        border-radius: 5px;
    }
    
    .dropdown-content a {
        padding: 12px 16px;
        font-size: 14px;
    }
}
.navv:hover .dropdown-content  {
    display: block;
} 

.show {
    display:block;
}
.dropbtn {
    
    color: white;
    font-size: 16px;
    border: none;
    cursor: pointer;
  }
  .dropdown {
    position: relative;
    display: inline-block;
    }   


.contact input[type="text"], .contact input[type="email"] {
    display: block;
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #dfe0e0;
    width: 100%;
}

.contact input[name="email"] {
    position: relative;
    display: block;
}

.contact label {
    position: relative;

}
.contact label i {
    position: absolute;
    color: #dfe2e5;
    top: 16px;
    left: 15px;
    z-index: 10;
}
.contact label i ~ input {
    padding-left: 45px !important;
}

.engine-block{
   color: #585858;
}
.systems{
   margin: auto;
   display: flex;
}
#contact-btn {
    display: none;
}
.engine-center{
    display: flex;
    justify-content: center;
    height: 300px;
    width: auto;
    margin: 10px 0;
}
header {
    background-color: #2960c8;
    position: fixed;
    top:0;
    right:0;
    left:0;
    z-index: 1000;
}
.pistons-3d {
    display: flex;
}
.nav-branding{
    align-items: center;
}
nav img {
    
    height: 70px;
}
.navbar li {
    list-style: none;
    color: rgba(252, 252, 252, 0.518);
}
a {
    color: white;
    text-decoration: none;
    font-weight: 900;
    
}
.logo-container {
    display: flex;
    align-items:center;
    font-size: 1.2em;
    color:#fff;
    font-weight: 700;
}
.logo-container span{
    margin-left: 10px;
}
.navbar img{
    padding: 1.5px 0 1.7px 0;
    display: flex;
    align-items: center;
}
.navbar {
    
    top:0;
    min-height: 70px;
    display:flex;
    /* justify-content:flex-start;  - менюто отляво*/
    justify-content:space-between;
    align-items:center;
    padding: 0 24px;
    
}
.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.nav-left {
    display: flex;
    width: 35%;
    justify-content: flex-start;
    }
.nav-link {
    
    
    
    text-decoration: none;
    color: rgb(255, 255, 255);
    padding: 16px 0px;
    
    display: inline-block;
    position: relative;
    
  }
.nav-link:hover {
    opacity: 1;
  }
  
  .nav-link::before {
    transition: 300ms;
    height: 4px;
    content: "";
    position: absolute;
    background-color: #fcffab;
    border-radius: 5px;
  }
  
.nav-link-ltr::before {
    width: 0%;
    bottom: 10px;
  }
  
  .nav-link-ltr:hover::before {
    width: 100%;
  }


a:hover:not(.active2) {
    color: #fcffab;
  }
  
  .active2 {
    color:#fcffab;
  }

.hamburger {
    display: none;
    cursor: pointer;
}
.bar {
    z-index: 100;
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: rgb(255, 255, 255);
}




/*Описание на съдържанието 

/* снимката на страницата за скутери */
.scooter
{
    border-radius: 10px;
    width: 550px;
    float: left;
    margin:7px 15px 15px 0;
    
}
em {
    color:red;
    font-weight: 600;
    font-size: 18px;
    margin-top: 10px;
    display: block;
    clear: both;
}
.zebra-scooter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.helmet {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 400px;
}
.sign-container {
    margin: 20px 0;
    display: flex;
    justify-content:center;
    gap: 70px;
    align-items:flex-start;
   
}
.sign-container div 
 {
    width: 100%;
}
.sign-container div p
 {
   
    text-align: center;
}
.sign-container img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.el-scooter {
    float:right;
    margin-left: 15px;
}
.engine-page{
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eaeef5;
}
.engine-page section {
    background: #ffffff;
    padding: 50px 60px;
    border-radius: 16px;
    margin-bottom: 60px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.engine-page section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.engine-page h1 {
    font-size: 34px;
    margin-bottom: 25px;
    color: #1e4a9e;
}

.engine-page h2 {
    font-size: 26px;
    margin: 40px 0 20px 0;
    position: relative;
}

.engine-page h2::after {
    content: "";
    width: 50px;
    height: 3px;
    background: #2960c8;
    display: block;
    margin-top: 8px;
    border-radius: 5px;
}

.engine-page p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

.engine-page ul {
    margin-top: 15px;
    padding-left: 25px;
}

.engine-page ul li {
    margin-bottom: 8px;
}

.engine-page model-viewer {
    background: #f8f9fc;
    border-radius: 14px;
    padding: 15px;
    margin: 25px 0;
    border: 1px solid #e4e6eb;
    transition: transform 0.3s ease;
}

.engine-page model-viewer:hover {
    transform: scale(1.02);
}

.image-nav-link {
    transition: 0.3s ease;
}

.image-nav-link:hover {
    transform: translateY(-4px);
}

.image-nav-link p {
    transition: 0.3s ease;
}

.image-nav-link:hover p {
    background-color: #2960c8;
    color: #fff;
}

/* видеото в страницата за пешеходци */
.video-pedestrian
{
    display: block;
    height: 500px;
    margin: 0 auto;
}

/*
Първи ред - снимката и текстът и бутона върху него
*/
.row1 {
    margin: 75px 0 10px 0;
    display:flex;
    justify-content: space-between;
    align-items: center;
}
.intro {
  
    width: 100%;
    background-image: url("../images/main.png");
    min-height: 555px;
    background-repeat: no-repeat;
    background-size:cover;
    background-position: center;
    margin: -20px 0 -78px 0;
}
.image-nav{
    width: auto;
    height: 120px;
}
.main-btn 
{
    font-size: 15px;
    background-color:rgb(194, 18, 18);
    padding: 8px 10px;
    border: none;
    color: #fff;
    margin: 3rem 1rem 1rem 13rem;
    cursor:pointer;
    width: 200px;
    text-align: center;
    outline: none;
    border-radius: 10px;
    box-shadow: inset 0 0 0 0 #f9e506;
    transition: ease-out 0.3s;
}
.main-btn:hover {
    box-shadow: inset 200px 0 0 0 #f9e506;
cursor: pointer;
color: #333;
}
.text-main-content{
    border: solid 3px black;
    border-radius: 20px;
    box-shadow: 10px 10px 10px black;
    margin-left: 20px;
}
.text-img 
{
    position: absolute;
    top: 10vw;
    right: 45vw;

}
.text-img h1
{
    color: rgb(194, 18, 18);
    font-size: 2.3rem;
    padding-bottom: 15px;
}
.text-img p 
{
    color: rgb(167, 12, 12);
    font-size: 22px;
    font-weight: 600;
}
/* втори ред - кутийките */
.row2 
{
    margin: 90px 50px 10px 50px;
    display:flex;
    justify-content: space-between;
    align-items:flex-start;
    gap: 10px 0; /* da go proverq */
    padding-top: 20px;
    
}

.btn-container1{
    margin-top: 20px;
    display: flex;
     gap:20px;
     justify-content:center;
     flex-direction: row;
    
}
.image-nav-link{
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    
}
.image-nav-link .image-nav{
justify-content: center;
align-items: center;

}
.image-nav{
    justify-content: center;
}
.image-nav-link p{
    padding: 2px 5px;
    color: #2960c8;
    border: 1px solid #2960c8;
    border-radius: 15px;
    box-shadow: 3px 5px 10px #2960c8;

}
.image-nav-link  :hover {
    color: #fcffab;
    background-color: #4774c8;
}

/* Info бутон в горния десен ъгъл */
.center1 .info-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    background: linear-gradient(135deg, #2960c8, #1e4a9e) !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 5px 15px rgba(41, 96, 200, 0.3) !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.center1 .info-btn .info-icon {
    width: 18px !important;
    height: 18px !important;
    filter: brightness(0) invert(1) !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.center1 .info-btn:hover {
    transform: scale(1.2) !important;
    background: linear-gradient(135deg, #fcffab, #ffd700) !important;
    box-shadow: 0 8px 20px rgba(252, 255, 171, 0.5) !important;
}

.center1 .info-btn:hover .info-icon {
    filter: brightness(1) invert(0) !important;
    transform: scale(1.1) !important;
}
.center1 .button-container {
    display: flex;
    flex-direction:row-reverse;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 10px;
}
.info-btn:hover {
    transform: scale(1.1);      /* Леко уголемяване при мишка */
}

.info-icon {
    width: 24px;                /* Фиксирана ширина на иконката */
    height: 24px;               /* Фиксирана височина */
    display: block;             /* Премахва излишните разстояния */
}

/* Подсигуряваме, че параграфът (описанието) има хубав отстъп отгоре */
.sign-description {
    margin-top: 15px !important;
    padding-top: 10px;
    border-top: 1px dashed #ccc; /* Светла линия за разделение, може и да се махне */
}

/* Малка корекция за мобилни устройства */
@media (max-width: 700px) {
    .info-icon {
        width: 20px;
        height: 20px;
    }
    .info-btn {
        padding: 3px;
    }
}

.active3 p{
    color: #fcffab;
    border: 1px solid #2960c8;
    border-radius: 15px;
    box-shadow: 3px 5px 10px #2960c8;
    background-color: #4774c8

}

.btn-container1 a{
    color: black !important;
}

/* CSS за бутоните на учениците */
.btn-container {
    margin-top: 20px;
    display: flex;
     gap:20px;
     justify-content:center;
     flex-direction: row;
}



.btn {

    background-color: #0b41a7;
    cursor: pointer;
   padding: 10px;
   color: #fff;
   font-weight: 700;
   border-radius: 15px;
   border:#063182 solid 2px;
   transition: all .35s;
   }
   .btn:hover {
    background-color: rgb(84, 171, 242);
    border: solid 2px #063182;
    
   }
   .btn:after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    border-radius: 4px;
    transition: all .35s;
    background: rgb(84, 171, 242);
   }
   .btn a {
    font-size: 14px;
   }
   .btn a:hover {
    cursor: pointer;
    color: #fff;

   }
   /* Бутони за шофьорите */
    .btn-container-2{
        margin-top: 20px;
    display: block;
    gap: 20px;
    justify-content: center;

   }
/* ol на учениците */
.active-student {
    background-color: #598cea;
    border: solid 2px #0b41a7;
}
.col-1 
{
    flex-basis: 78%;
    background-color: #fff;
    border-radius: 10px;
}
.col-1f 
{
    flex-basis: 78%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
}
.col-1 h1 {

    text-align: center;
    padding-top: 15px;
}

.col-2 
{
    flex-basis: 21%;
}

.art11 {
    padding: 30px 50px;

}
.art11 ol {
    padding-left: 35px;
    line-height: 20px;
}
.art11 p {
    padding-top: 10px;
    text-align: justify;
}
.art11 h3 {
    padding: 10px 0;
}
.art11 ul{
    padding-left: 25px;
}

.art1 ol {
    padding-left: 70px;
}
.art1 ol li {
    padding-bottom: 5px;
    font-weight: 400 !important;
}
.art1 
{
   
    display: flex;
    justify-content: space-between;
    align-content: flex-start; /* подравнява вертикално */
    gap:1%;
    
    padding: 25px;
  
}

.art1f 
{
   
    display: inline-block;
    justify-content: space-between;
    align-content: flex-start; /* подравнява вертикално */
    gap:1%;
    
    padding: 25px;
  
}
.art1 ul {
    list-style: none;
    display: inline-block;
}
.art1 ul li {
    font-weight: 600;
}

.art1 ul li i {
    padding-right: 10px;
    margin-left: 10px !important;
}
.art1 section 
{
  width: 50%;
    padding: 5px 13px 5px 13px;
    
    border-radius: 10px 0;
    background-color: #ffffff;
    margin-bottom: 10px;
}
.art1 ul p {
    margin: 10px;
    text-align: justify;
    padding-left: 30px;
}
.art1 section h2{
    color: rgb(18, 103, 194);
    font-size: 1.22rem;
    padding-bottom: 10px;
    text-align: center;
}


.main-btn2 {

    font-size: 13px;
    background-color: rgb(18, 103, 194);
    
    padding: 8px 10px;
    border: none;
    color: #fff;
    margin: auto 0;
    cursor:pointer;
  border: 1px solid #fff;
 
    outline: none;
    border-radius: 10px;
}

object {
    width: 100%;
    height: 100% !important;
}


aside {
    border: 1px solid rgb(238, 79, 5);
    border-radius: 0 10px;
    padding: 10px;
    background-color: #fff;
    margin: 0 10px;
}
aside h2 {
    color: rgb(238, 187, 5);
    padding-bottom: 10px;
}
aside p {
    padding: 5px;
    color: rgb(238, 79, 5);
    font-weight: 600;
}
aside h2 i{
padding-right: 10px;
}
.aside-icon {
    font-size:24px !important;
    color:rgb(238, 187, 5);
}
.row2:nth-of-type(1) {flex-grow: 4;} 
.row2:nth-of-type(2) {flex-grow: 1;} 
.sect {
  position: relative;
    width: 100%;
   background-image: url("../images/group.jpg");
    min-height: 500px;
    background-repeat: no-repeat;
    background-size:cover;
    margin: 10px 0 5px 0;
}
.dv-sect2 {
    position:absolute;
    top: 320px;
    right:360px;
}
.dv-sect2 h1 {
    color:rgb(18, 103, 194);
    font-weight: 900;
    font-size: 30px;
    
}
.dv-sect2 h3 {
    color:rgb(255, 255, 255);
    font-weight: 900;
    font-size: 18px;
    text-align: center;
    margin-bottom: -15px;
}

/* CSS  за uslugi.html */
.engine-pic{
    text-align: center;
    display: inline-block;
    margin: 0 auto;
}

.art11 h2 {
margin: 20px 0 0 0px;
    color:#2960c8;
    font-size: 1.42rem;
    padding-bottom: 10px;
    text-align: left;
    font-weight: 700;
}

.img-uslugi {
    width: 100%;
}
.art1 .art1-sec1 {

    margin: 0;
    padding: 0;
    border: none;
}

.art1 .art1-sec2 {

    margin-top: 15px;
    margin-bottom: 0;
    padding: 0;
    border: none;
}
.col-1 h2 {
margin: 20px 0 0 10px;
    color:rgb(194, 18, 18);
    font-size: 1.42rem;
    padding-bottom: 10px;
    text-align: left;
    font-weight: 700;
}
main {
    
    transition: margin-top 0.3s ease;
}
.groups-wrapper.show-spy ~ main {
    margin-top: 120px; /* Същото като горното */
}
/* CSS  за about.html */
.main {
    margin-top: 90px;
   
}
.art2 {
    background-color: #fff;
    padding-top: 15px;
    margin-bottom: 15px;
}
.about-pic {
    width: 100%;
    float: right;
}
.art2 {
    display: flex;
    justify-content:center;
 gap: 0 10px;
    align-content: flex-start; /* подравнява вертикално */
}
.art2 section {
    display:inline-block;
    width: 50%;
    padding: 5px 13px 5px 13px;
     
    margin-bottom: 10px;
}
.art2 section h2{
color: rgb(18, 103, 194);
text-align: center;
padding: 20px 0 10px 0;
font-weight: 800;
}
.art2 section p {
    text-align: justify;
    line-height: 25px;
    padding: 30px 30px;
    font-weight: 600;
    font-size: 18px;
}
.art2 section ul {
    list-style-type: square;
    padding: 30px 30px;
    line-height: 25px;
text-align: justify;
font-size: 18px;
}
/* CSS  за футъра */
.footer {
    background-color: rgb(74, 70, 70);
}
.footer ul {
    list-style-type: none;
}
.foot {
    display: flex;
    justify-content: center;
    align-items:flex-start;
    gap: 10px 20px;
    padding: 20px 50px;
   
    margin-top: 20px;
    
}
.foot div {
    width: 30%;
   
    
    color: #fff; 
}
.foot h2 {
    padding-bottom: 10px;
    font-size: 20px;
    
}
.foot a {
    font-size: 12px;
    padding-left: 10px;
    line-height: 24px;
}

.foot p {
    font-size: 12px;
    padding-left: 10px;
    line-height: 24px;
    font-weight: 700;
}
.foot h3 {
    font-size: 14px;
    padding-left: 10px;
    line-height: 24px;
    font-weight: 700;
}
.social ul li{
    display: inline-block;

}
.social img{
    height: 40px;
}
.copyright {
    color: #fff;
    text-align: center;
    padding: 20px 0;
    background-color: black;
font-size: 12px;
}
.fa-icon{
    font-size:20px !important; 
    color:rgb(194, 18, 18);
    text-align:center !important; 
    margin:auto !important; 
    display: inline-block;
}

.test-btn-container {
    display: flex;
    justify-content: center;
}

.test-button {
    padding: 10px;
    border: 2px solid rgb(166, 4, 4);
    width:120px;
    background-color: rgb(194, 18, 18);
    border-radius: 15px;
   margin-bottom: 20px;
   text-align: center;
}
.test-button a{
    color: #ffffff;
}
.test-button:hover{
    background-color: rgb(251, 115, 115);
}

iframe {

    width: 100%;
}

.sp-scroll-up
{
display:block;
position:fixed;
bottom:30px;
right:30px;
width:50px;
height:50px;
line-height:36px;
text-align:center;
font-size:16px;
color:#fff;
opacity: 0;
background:#333;
border-radius:50%;z-index:1000;
transition: all .4s;
line-height: 85px;
}
.fa-arrow {
font-size: 45px !important;

}
.sp-scroll-up.act {
    bottom: 30px;
    pointer-events: auto;
    opacity: 1;
}
.bike-img img{
    width: 80%;
    display: block;
    margin: 0 auto;
}

.video-trot {
    margin: 0 auto;
    display: block;
   padding-top: 10px;
}

.driver-pic {
   height:500px;
   margin:0 auto;
   display: block;
}
.poligon-img2 {
    clear: both;
    float: left;
    width: 500px;
    padding: 0 10px 10px 0;
} 
.poligon-img {
    clear: both;
    float: left;
    height: 300px;
    padding: 0 10px 10px 0;
} 
.poligon-img-par {
    text-align: justify;
    font-size: 22px;
    text-indent: 40px;
    font-family:'Times New Roman', Times, serif
}
.group_header_a{
    display: flex;
    text-align: center;
    justify-content:center;
    margin: 0 45px 20px 45px;
    border: solid red 2px;
    padding: 10px 0;
    border-radius: 20px ;
    color: white;
    background-color: red;
    box-shadow: 3px 5px 10px rgba(255, 0, 0, 0.799);
}

.group_header_b{
    display: flex;
    text-align: center;
    justify-content:center;
    margin: 20px 45px 20px 45px;
    border: solid rgb(255, 204, 0) 2px;
    padding: 10px 0;
    border-radius: 20px ;
    color: white;
    background-color: rgb(255, 204, 0);
    box-shadow: 3px 5px 10px rgba(255, 217, 0, 0.799);
}

.group_header_v{
    display: flex;
    text-align: center;
    justify-content:center;
    margin: 20px 45px 20px 45px;
    border: solid rgb(255, 132, 0) 2px;
    padding: 10px 0;
    border-radius: 20px ;
    color: white;
    background-color: rgb(255, 132, 0);
    box-shadow: 3px 5px 10px rgb(232, 136, 33);
}

.group_header_g{
    display: flex;
    text-align: center;
    justify-content:center;
    margin: 20px 45px 20px 45px;
    border: solid rgb(3, 85, 216) 2px;
    padding: 10px 0;
    border-radius: 20px ;
    color: white;
    background-color: rgb(3, 85, 216);
    box-shadow: 3px 5px 10px rgba(0, 81, 255, 0.799);
}

.group_header_d{
    display: flex;
    text-align: center;
    justify-content:center;
    margin: 20px 45px 20px 45px;
    border: solid rgb(3, 7, 216) 2px;
    padding: 10px 0;
    border-radius: 20px ;
    color: white;
    background-color: rgb(3, 7, 216);
    box-shadow: 3px 5px 10px rgba(31, 100, 248, 0.799)
}

.group_header_e{
    display: flex;
    text-align: center;
    justify-content:center;
    margin: 20px 45px 20px 45px;
    border: solid #399FCC 2px;
    padding: 10px 0;
    border-radius: 20px ;
    color: white;
    background-color: #399FCC;
    box-shadow: 3px 5px 10px #4ba8d0;
}

.group_header_j{
    display: flex;
    text-align: center;
    justify-content:center;
    margin: 20px 45px 20px 45px;
    border: solid rgb(51, 196, 80) 2px;
    padding: 10px 0;
    border-radius: 20px ;
    color: white;
    background-color: rgb(51, 196, 80);
    box-shadow: 3px 5px 10px rgb(64, 201, 91);
}

.group_header_t{
    display: flex;
    text-align: center;
    justify-content:center;
    margin: 20px 45px 20px 45px;
    border: solid rgb(90, 96, 106) 2px;
    padding: 10px 0;
    border-radius: 20px ;
    color: white;
    background-color: rgb(90, 96, 106);
    box-shadow: 3px 5px 10px rgba(93, 100, 117, 0.799);
}

.group_header_s{
    display: flex;
    text-align: center;
    justify-content:center;
    margin: 20px 45px 20px 45px;
    border: solid rgb(12, 233, 166) 2px;
    padding: 10px 0;
    border-radius: 20px ;
    color: white;
    background-color: rgb(12, 233, 166);
    box-shadow: 3px 5px 10px rgb(58, 246, 189);
}

.test-container {
    background-color: #fff;
    border-radius: 10px;
    margin:100px 20px 0 20px;
    padding-top: 10px;
}
.test-container2 {
    background: linear-gradient(145deg, #ffffff, #f8f9ff);
    border-radius: 30px;
    padding: 40px 30px;
    margin: 40px 20px;
    box-shadow: 0 20px 40px rgba(41, 96, 200, 0.08);
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.4s ease;
}

.test-container2:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(41, 96, 200, 0.15);
}
.test-container3{
    padding-bottom: 40px;
}
.test-row2, .test-row1 {
    display: flex;
    justify-content: space-around;
    margin: 10px 50px;
    gap:10px;
    align-items: stretch;
}
.sign-info{
    display: inline-block;
    justify-content: center;
    width: 70%;
    
}
.sign-info h2{
    display: flex;
    justify-content: center;
}


.center1 p.sign-description[style*="block"] {
    display: block !important;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
}
.center1 h3{
    text-align: center;
}
.center2 p{
    width: 100%;
    height: 100% !important;
}
.test-row4-content .center1{
    justify-content: center;
}
.test-row4-content .center1{
    width: 100%;
    height: 100%;
}
.test-row4-content .center2{
    height: 100%;
    width: 100%;
}
@media (hover: hover) {
    .center1:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: 0 25px 40px rgba(0,0,0,0.25);
        border-color: #2960c8;
    }
    .center1::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(255, 255, 255, 0.2), 
            rgba(255, 255, 255, 0.3), 
            transparent
        );
        transition: left 0.8s;
        z-index: 1;
        pointer-events: none;
    }

    .center1:hover::before {
        left: 100%;
    }

    /* Анимация за снимките */
    .center1 img {
        transition: transform 0.5s;
        position: relative;
        z-index: 0;
    }

    .center1:hover img {
        transform: scale(1.08);
    }

    /* Анимация за текста */
    .center1 h2, .center1 h3, .center1 p {
        transition: all 0.3s;
        position: relative;
        z-index: 2;
    }

    .center1:hover h2 {
        color: #2960c8;
    }

    .center1:hover h3 {
        color: #555;
    }

    /* Рамка около картата */
    .center1::after {
        content: '';
        position: absolute;
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        border: 2px solid rgba(41, 96, 200, 0);
        border-radius: 15px;
        transition: all 0.4s;
        pointer-events: none;
        z-index: 3;
    }

    .center1:hover::after {
        border-color: rgba(41, 96, 200, 0.5);
        top: 5px;
        left: 5px;
        right: 5px;
        bottom: 5px;
    }
}



@media (hover: none) {
    .center1:active {
        transform: scale(0.98);
        background: #f5f5f5;
    }
}

/* Responsive padding */
@media(max-width:1024px) {
    .center1 {
        padding: 12px;
    }
    
}

@media(max-width:700px) {
    .center1 {
        padding: 10px;
    }
}
.center1{
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: white;
    border-radius: 20px;
    padding: 15px;
    padding-top: 40px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.center1 h2{
    text-align: center;
    width: 100%;
}
.center2{
    text-align: center;
    border: 2px solid black;
    
}
.text-sign-content{
    width: 20vw;
}
.center {
   display: flex;
   justify-content: center;
}
.sign-row-content{
    align-items: center;
    display: flex;
    flex-direction: column;
    padding-right: 30%;
    justify-content: center;
   
}
.groups-wrapper {
    position: fixed; /* Променяме от sticky на fixed */
    top: 75px; /* Точно под хедъра (колкото е височината на хедъра) */
    left: 15px;
    right: 15px;
    z-index: 999; /* Под хедъра (хедъра е 1000) */
    background: #2960c8;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow:  0 4px 15px rgba(0,0,0,0.2);
    border-radius: 50px; /* Голям радиус за заоблен вид */
    overflow: hidden; /* За да не излиза съдържанието */
;
}
.groups-wrapper.show-spy {
    opacity: 1;
    pointer-events: auto;
}
/* показва се след scroll */
.groups-wrapper.show {
  top: 70px; /* под main navbar */
}
.scroll-progress {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.2); /* Полупрозрачен фон */
    position: relative;
    overflow: hidden;
}

.scroll-progress-bar {
   height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #fcffab, #ffd700);
    transition: width 0.1s linear; /* Плавна анимация */
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0 2px 2px 0;
}
.groups-navbar {
    display: flex;
    
    gap: 15px;
    padding: 12px 20px;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #fcffab #2960c8;
    /* Скриваме скролбара, но запазваме функционалността */
    -ms-overflow-style: none !important;  /* IE и Edge */
    scrollbar-width: none !important;  /* Firefox */
}
.groups-navbar::-webkit-scrollbar {
    display: none;
}
.groups-nav-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #2960c8;
    width: 100%;
    padding: 0;
    border-radius: 0 0 50px 50px; /* Само долните ъгли */
    transition: all 0.3s ease;
}
.groups-nav-container.needs-scroll .groups-navbar {
    mask-image: linear-gradient(90deg, transparent 0, black 30px, black calc(100% - 30px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 30px, black calc(100% - 30px), transparent 100%);
}
@media (max-width: 1024px) {
    .groups-nav-container.needs-scroll .groups-navbar {
        mask-image: linear-gradient(90deg, transparent 20px, black 50px, black calc(100% - 50px), transparent calc(100% - 20px));
        -webkit-mask-image: linear-gradient(90deg, transparent 20px, black 50px, black calc(100% - 50px), transparent calc(100% - 20px));
    }
}
.groups-nav-container.needs-scroll::after {
    content: '';
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(41, 96, 200, 0.3));
    pointer-events: none;
    border-radius: 0 50px 50px 0;
}

.groups-nav-container.needs-scroll::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 100%;
    background: linear-gradient(270deg, transparent, rgba(41, 96, 200, 0.3));
    pointer-events: none;
    border-radius: 50px 0 0 50px;
    z-index: 2;
}
.groups-navbar a {
    color: white;
    padding: 8px 18px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.3s;
    flex: 0 0 auto;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================= */
/* TYPEWRITER ЕФЕКТ - RESPONSIVE */
/* ============================================= */



.typewriter {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    white-space: pre-wrap; /* Запазва интервалите и пренася текста */
    word-wrap: break-word;
}

.typewriter.typing {
    border-right: 3px solid #2960c8; /* Курсор */
    animation: blink-cursor 0.7s step-end infinite;
}

@keyframes blink-cursor {
    from, to { border-color: transparent; }
    50% { border-color: #2960c8; }
}

.typewriter.done {
    border-right: none;
    animation: none;
}

/* Адаптивни настройки */
@media (max-width: 700px) {
    .typewriter.typing {
        border-right-width: 2px;
    }
}

с

/* За по-дълги текстове */
.typewriter-ready {
    min-height: 100px; /* За да не "скача" страницата */
}



/* ============================================= */
/* TYPEWRITER ЕФЕКТ - СТАБИЛЕН */
/* ============================================= */

/* ============================================= */
/* ABOUT СЕКЦИЯ - СТАБИЛНА ВЕРСИЯ */
/* ============================================= */

.about-section {
    display: flex;
    gap: 40px;
    padding: 40px;
    background: linear-gradient(145deg, #ffffff, #f8f9ff);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(41, 96, 200, 0.08);
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid rgba(255,255,255,0.8);
}

.about-image {
    flex: 0 0 40%;
    width: 40%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(41, 96, 200, 0.15);
    transition: all 0.5s ease;
}
.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(252, 255, 171, 0.3), transparent);
    transition: left 0.6s;
    pointer-events: none;
}
.about-image:hover::after {
    left: 100%;
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(41, 96, 200, 0.25);
}
.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: all 0.5s ease;
}
.about-image:hover img {
    transform: scale(1.05);
}
.about-image:hover img {
    transform: scale(1.05);
}
.about-content {
    flex: 1;
    width: 60%;
    display: flex;
    flex-direction: column;
}

.about-content h1 {
    color: #2960c8;
    margin: 0 0 20px 0; /* Премахваме горния маргин */
    font-size: 2rem;
    border-bottom: 3px solid #2960c8;
    padding-bottom: 10px;
}

.about-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Разстояние между параграфите */
}

.about-text p {
    margin: 0; /* Премахваме всички маргини */
    line-height: 1.6;
    font-size: 16px;
    color: #333;
    width: 100%;
    word-wrap: break-word;
}

/* Typewriter стилове */
.about-text .typewriter {
    position: relative;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 1.6em; /* Минимална височина според реда */
}

.about-text .typewriter .typewriter-text {
    display: inline;
}

.about-text .typewriter .typewriter-cursor {
    display: inline;
    color: #2960c8;
    font-weight: bold;
    animation: blink-cursor 0.7s infinite;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.about-text .typewriter.done .typewriter-cursor {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .about-section {
        flex-direction: column !important;
        padding: 35px !important;
        gap: 35px !important;
        align-items: center !important;
    }
    
    .about-image {
        flex: 0 0 auto !important;
        width: 70% !important;  /* Контролирана ширина */
        max-width: 500px !important;
        margin: 0 auto !important;
    }
    
    .about-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 350px !important;
        object-fit: contain !important;
    }
    
    .about-content {
        width: 100% !important;
    }
    
    .about-content h1 {
        font-size: 2rem !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    
    .about-text {
        max-width: 800px !important;  /* Ограничава ширината на текста */
        margin: 0 auto !important;    /* Центрира текста */
    }
    
    .about-text p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        text-align: left !important;
        padding: 0 15px !important;   /* Добавя малко въздух отстрани */
        max-width: 100% !important;
    }
}


@media (max-width: 768px) {
    .pistons-3d {
        flex-direction: column !important; /* Принудително подреждане едно под друго */
        gap: 20px;}
    .about-section {
        flex-direction: column !important;
        padding: 30px 20px !important;
        gap: 30px !important;
        align-items: center !important;
    }
    
    
    
    .about-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 350px !important; /* Увеличена височина */
        object-fit: cover !important; /* Променено от contain на cover */
        border-radius: 20px !important;
        box-shadow: 0 15px 30px rgba(41, 96, 200, 0.2) !important;
    }
    
    .about-content {
        width: 100% !important;
        text-align: left !important; /* Променено от center на left */
    }
    
    .about-content h1 {
        font-size: 1.8rem !important; /* Увеличено от 1.5rem */
        margin-bottom: 20px !important;
        text-align: left !important; /* Променено от center на left */
    }
    
    .about-text p {
        font-size: 1rem !important; /* Увеличено от 0.9rem */
        line-height: 1.6 !important;
        text-align: left !important; /* Променено от justify на left */
        padding: 0 !important;
    }
    }
    
    


/* За много малки екрани */


.group-link {
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    transition: 0.3s;
}

.group-link.active-group {
    color: #fcffab !important;
    border-bottom: 3px solid #fcffab !important;
    animation: glow 1.8s ease-in-out infinite alternate;
    position: relative;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 
                     0 0 10px #fff, 
                     0 0 15px #fcffab;
    }
    to {
        text-shadow: 0 0 10px #fff, 
                     0 0 20px #fff, 
                     0 0 30px #fcffab;
    }
}
@media(max-width:700px) {
    .group-link.active-group {
        animation: glow-mobile 1.5s ease-in-out infinite alternate;
    }
    
    @keyframes glow-mobile {
        from {
            text-shadow: 0 0 3px #fff, 0 0 8px #fcffab;
        }
        to {
            text-shadow: 0 0 6px #fff, 0 0 15px #fcffab;
        }
    }
}

/* Фоново сияние - само за десктоп */
@media (min-width:1025px) {
    .group-link.active-group::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        background: rgba(252, 255, 171, 0.2);
        border-radius: 30px;
        filter: blur(10px);
        z-index: -1;
        animation: pulse-bg 1.5s ease-in-out infinite;
    }

    @keyframes pulse-bg {
        0% { opacity: 0.3; width: 100%; height: 100%; }
        50% { opacity: 0.6; width: 110%; height: 110%; }
        100% { opacity: 0.3; width: 100%; height: 100%; }
    }
}
/* underline */
.groups-navbar a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20px;
    
    height: 3px;
    color: #fcffab;
    background: transparent;
    transition: 0.25s;
}
.groups-navbar a:hover {
    color: #fcffab;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px); /* Леко повдигане */
}
#groupsWrapper {
    opacity: 0;
    transform: translateY(-20px);
    transition: 0.3s ease;
    pointer-events: none;
}

#groupsWrapper.show-spy {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
/* активен таб */
.groups-navbar a.active-group {
    color: #0b41a7;
}

.groups-navbar a.active-group::after {
    background: #0b41a7;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive забавяния */
@media(max-width:1024px) {
    .fade-in {
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
}

@media(max-width:700px) {
    .fade-in {
        transform: translateY(15px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
}

/* Различни забавяния - работят на всички екрани */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }



@media(max-width:1024px) {
    .groups-navbar {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 10px 20px;
        -webkit-overflow-scrolling: touch; /* плавно скролване на iOS */
        gap: 15px;
        scrollbar-width: thin; /* тънък скролбар за Firefox */
        scrollbar-color: #fcffab #2960c8; /* цвят на скролбара */
    }
    .scroll-progress {
        height: 3px;
    }
    
    /* Стилове за скролбара в Chrome/Safari/Edge */
    .groups-navbar::-webkit-scrollbar {
        height: 5px;
    }
    
    .groups-navbar::-webkit-scrollbar-track {
        background: #2960c8;
    }
    
    .groups-navbar::-webkit-scrollbar-thumb {
        background: #fcffab;
        border-radius: 5px;
    }
    
    .groups-navbar a {
        flex: 0 0 auto; /* предотвратява свиването на линковете */
        white-space: nowrap; /* текстът да остава на един ред */
        padding: 10px 15px;
    }
}

@media(max-width:700px) {
    .scroll-progress {
        height: 3px;
    }
    .groups-navbar {
        padding: 8px 15px;
        gap: 10px;
    }
    
    
    .groups-wrapper {
        top: 70px;
        left: 10px;
        right: 10px;
        border-radius: 40px;
    }
    
    .groups-scroll-btn {
        width: 40px;
        height: 50px;
    }
    
    .groups-navbar a {
        font-size: 13px;
        padding: 6px 10px;
    }
    .groups-scroll-btn i {
        font-size: 20px;
    }
    .groups-nav-container {
        border-radius: 0 0 40px 40px;
    }
    
    .groups-scroll-left {
        border-radius: 40px 0 0 40px;
    }
    
    .groups-scroll-right {
        border-radius: 0 40px 40px 0;
    }
}



/* Бутоните със стрелки */
.groups-scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 60px;
    background: #2960c8;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1001;
    flex-shrink: 0;
    transition: all 0.3s;
    border-radius: 30px;
    opacity: 0.3; /* Полупрозрачни когато неактивни */
    pointer-events: none; /* Не може да се клика когато неактивни */
}

.groups-scroll-btn:hover {
    background: #1e4a9e;
    color: #fcffab;
    transform: scale(1.1);
}
.groups-scroll-btn:active {
    transform: scale(0.95);
    opacity: 1;
    pointer-events: auto;
}
.groups-scroll-btn:hover:not(:disabled) {
    background: #1e4a9e;
    color: #fcffab;
    transform: scale(1.1);
}
.groups-scroll-btn i {
    font-size: 24px;
    font-weight: bold;
}
.groups-scroll-left {
    border-radius: 50px 0 0 50px;
    margin-right: 5px;
}

/* Дясна стрелка - специален радиус */
.groups-scroll-right {
    border-radius: 0 50px 50px 0;
    margin-left: 5px;
}

/* Показваме стрелките само на малки екрани */
@media(max-width:1024px) {
    .groups-wrapper {
        top: 75px;
        left: 15px;
        right: 15px;
    }
    
    .groups-scroll-btn {
        display: flex;
        width: 45px;
        height: 55px;
    }
    
    .groups-navbar {
        justify-content: flex-start;
        gap: 15px;
        padding: 10px 15px;
    }
    
    .groups-navbar a {
        font-size: 14px;
        padding: 7px 15px;
    }
}

@media(max-width:700px) {
    .pistons-3d {
        flex-direction: column !important; /* Принудително подреждане едно под друго */
        gap: 20px;
    }
    
    .pistons-3d model-viewer {
        width: 100% !important;
        height: 280px !important; /* Фиксирана височина */
        margin: 0 !important;
        display: block !important;
    }
    
    /* Специално за модел + снимка */
    .pistons-3d img.systems {
        width: 100%;
        height: auto;
        max-height: 280px;
        object-fit: contain;
    }
}

/* Ако искаш и самият wrapper да се нагажда */
.groups-wrapper {
    overflow: hidden; /* за да не излиза съдържанието */
}

.groups-navbar {
    flex-wrap: nowrap; /* забранява пренасянето на нов ред */
}
.test-row4-content {
    flex: 1;
    display: flex;
}
.test-row4-content img{
    max-width: 290px;
    height: auto;
    display: block;
    margin: 15px auto;
}
.test-row4-content p{
    margin: 2px 5px 5px 5px;

    
}
.test-row2-content img, .test-row1-content img {
    height: 17vw;
    
}
.test-row1-content {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 30px 20px 25px 20px;
    box-shadow: 0 15px 30px rgba(41, 96, 200, 0.1);
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.4s ease;
}
.test-row1-content h1 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #2960c8, #1e4a9e, #fcffab);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: 700;
}

.test-row1-content h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #2960c8, #fcffab);
    border-radius: 3px;
    transition: width 0.3s;
}

.test-row1-content:hover h1::after {
    width: 80px;
}
.test-row1-content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin: 15px 0 20px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.5s;
    border: 3px solid transparent;
}

.test-row1-content img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(41, 96, 200, 0.3);
    border-color: #fcffab;
}
.test-row1-content:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(41, 96, 200, 0.2);
    border-color: #2960c8;
}
.test-row3-content{
    margin-bottom: 12px;
}
.test-btn {
    border: none;
    background: linear-gradient(135deg, #2960c8, #1e4a9e);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(41, 96, 200, 0.3);
    text-align: center;
    display: inline-block;
    margin-top: 10px;
}

.test-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(252, 255, 171, 0.4);
    background: linear-gradient(135deg, #fcffab, #ffd700);
    color: #1e4a9e;
}
@media (max-width: 768px) {
    .test-container2 {
        padding: 30px 15px !important;
        margin: 30px 10px !important;
    }
    
    .test-row1 {
        flex-direction: column !important;
        align-items: center !important;
        gap: 25px !important;
    }
    
    .test-row1-content {
        width: 100% !important;
        max-width: 350px !important;
    }
    
    .test-row1-content h1 {
        font-size: 1.5rem !important;
    }
    
    .test-row1-content img {
        height: 180px !important;
    }
}

@media (max-width: 480px) {
    .test-row1-content {
        max-width: 280px !important;
    }
    
    .test-row1-content h1 {
        font-size: 1.3rem !important;
    }
    
    .test-row1-content img {
        height: 150px !important;
    }
    
    .test-btn {
        padding: 10px 25px !important;
        font-size: 0.9rem !important;
    }
}
.test-btn:hover{
    background-color: #4774c8;
}
.test-row1 h1, .test-row2 h1 {
    text-align: center;
    color: #2960c8;
    padding-bottom: 10px;
}
.ciklons-img {
    display: flex;
    flex-direction: column;
    margin:10px;

}
.ciklons-img img{
width: 100%;
}

@media(max-width:700px){

.ciklons-img {
    margin:10px;
}
    .ciklons-img img{
   
        width:100%;
        
        }
     
    .test-row1, .test-row2 {
        flex-direction: column;
        justify-content: center;
        
    }
    .test-row1 {
        margin:10px 10px 10px 10px;
    }
    .test-row2 {
        margin:0 10px;
    }
    .test-row1-content, .test-row2-content {
        margin-bottom: 20px;
        
    }

    .test-row1-content img, .test-row2-content img {
        width: 100%;
        height: 100%;
        margin:0px 0px;
    }
    .text-info li {
        margin-left: 15px;
    }
    .sign {
        width: 100%;
    }
    .art1 section 
    {
      width: 100%;
    }

    .poligon-img {
        width: 100%;
        height: 100%;
        padding: 0;
    } 

    .driver-pic {
        width:100%;
        height: 100%;
    }
    
    .video-trot {
        width: 100%;
    }
    .hamburger {
        display: block;

    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);

    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        
    }
/* Превръщане на знаците в 1 ред */
.sign-container {
    flex-direction: column;
    
}



.video-pedestrian {
    width: 100%;
}
    .art11 {
        padding: 10px 10px;
        margin-left: 0px;
    }
.art11 img {
    width: 100%;
display: block;
}


    .btn-container {
        flex-wrap: wrap;
    }
    .btn {
        font-size: 12px;
    }
    .nav-menu {
       
        position: fixed;
        left:-100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: #777171;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        z-index: 100;
    }
    .nav-item {
        margin: 16px 0;
    }
    .nav-menu.active {
        
        left: 0;
    }
}
    /*съдържанието */
    @media only screen and (max-width:700px)
    {
        .col-2 div img{
            width: 100%;
           
         }
         
        .bike-img img{
            width: 100%;
        }
    .row1, .row2 {
        flex-wrap: wrap;
   
    margin:90px 0 0 0;
    }
    .col-1 {
        width: 100%;
        flex-basis: 100%;
        margin: -30px 10px 10px 10px;
    }
    .col-2 {
        width: 100%;
        flex-basis: 100%;
        
    }
    .row1 {
        display: none;
    }
    .art1 {
        flex-direction: column;
        
    }
    .art1 section {
        width: 100%;
    }
    .foot {
        flex-direction: column;
    }
    #contact-btn {
        display: block;
        margin: 90px auto -120px auto;
    }
    .sect {
        display: none;
    }

    /* about.html */
    .art2 {
        flex-direction: column;
    }
    .art2 section {
        
        width: 100%;
      
    }
    .art2 section p {
        padding: 0;
    }
    .art2 section ul {
        padding: 15px 0 0 10px;
    }
    .art2 section h2 {
        padding: 0 0 10px 0;
        margin-top: -15px;
    }
    .art2 {
        
         margin-top: -16px;
    }
    
    .art1 .art1-sec1 
    {
        margin-top: 15px;
    }
    .main-btn2 {
        display: none;
    }
    .foot div {
        width: 100%;
       
        
        color: #fff; 
    }
    .video-trot {
        width: 100%;
    }
    .sign {
        width:100%
    }
}
@media only screen and (max-width:1024px)
   
{
    
.ciklons-img {
    margin:10px;
    text-align: center;
}
    .ciklons-img img{
        width: 100%;
    }
    .hamburger {
        display: block;

    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);

    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        
    }

.btn-container {
        flex-wrap: wrap;
    }
    .btn {
        font-size: 12px;
    }
    .nav-menu {
       
        position: fixed;
        left:-100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: #777171;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        z-index: 100;
    }
    .nav-item {
        margin: 16px 0;
    }
    .nav-menu.active {
       
        left: 0;
    }
    .test-container3{
        margin-bottom: 0;
        padding-bottom: 0.1px;
    }

        
    
    .center1{
        width: 100%;
        margin: 0 20px
    }

    .group_header_a, .group_header_b, .group_header_v, .group_header_g, .group_header_d, .group_header_e, .group_header_j, .group_header_t, .group_header_s {
        margin: 0 30px;
    }





    .test-row1, .test-row2 {
        flex-direction: column;
        justify-content: center;
        
    }
    .test-row1 {
        margin:10px 10px 10px 10px;
    }
    .test-row2 {
        margin:0 10px;
    }
    .test-row1-content, .test-row2-content {
        margin-bottom: 20px;
    }

    .test-row1-content img, .test-row2-content img {
        width: 100%;
        height: 100%;
        margin:0px 0px;
    }





    .col-2 div img{
        width: 100%;
       
     }
    .row2
    {    
        flex-wrap: wrap; 
        margin-right: 5px;
        margin-left: 5px;
       
        
    }
    .col-2 {
        flex-basis: 100%;
        justify-content:space-between;
       
    }
    .col-1 {
        flex-basis: 100%;
        justify-content:space-between;
    }
    .main-btn2 {
        display: none;
    }
   
    .nav-left {
        display: none;
    }
    
    .dv-sect2 {
        position:absolute;
        top: 1100px;
        right:160px;
    }
    .art1 section 
    {
      width: 100%;
        padding: 15px 13px 5px 13px;
        
        border-radius: 10px 0;
        background-color: #ffffff;
        margin-bottom: 10px;
    }
    .art1 {
        flex-wrap: wrap;
    }
    .text-img 
{
    position: absolute;
    top: 28vw;
    right: 11vw;
}
}
.test {
    margin:10px;
}
.zaglavie{
    text-align: center;
}

/* ============================================= */
/* МОДЕРНИ АНИМАЦИИ И ЕФЕКТИ ЗА ENGINE.HTML */
/* ============================================= */

/* Анимация за зареждане на страницата */
@keyframes pageLoad {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.test-container {
    animation: pageLoad 0.8s ease-out;
}

/* Модерни карти за секциите */
.engine-page section {
    background: linear-gradient(145deg, #ffffff, #f8f9ff);
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 
                0 8px 20px rgba(41, 96, 200, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
}

.engine-page section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, 
                rgba(252, 255, 171, 0.3) 0%, 
                transparent 70%);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
}

.engine-page section:hover::before {
    opacity: 0.5;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.engine-page section:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(41, 96, 200, 0.2),
                0 15px 30px rgba(0,0,0,0.1);
    border-color: rgba(252, 255, 171, 0.5);
}

/* 3D модели със светещ ефект */
model-viewer {
    border-radius: 20px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3),
                inset 0 0 50px rgba(252, 255, 171, 0.3);
    transition: all 0.5s ease;
    cursor: grab;
    border: 2px solid rgba(252, 255, 171, 0.3);
    margin: 20px 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.engine-page .pistons-3d {
    margin: 25px 0;
    padding: 10px 0;
}

model-viewer:active {
    cursor: grabbing;
}

model-viewer:hover {
    
    transform: scale(1.02);
    
}

/* Анимация за буталата - 3D моделите в редица */
.pistons-3d {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    width: 100%;
}

.pistons-3d model-viewer {
    flex: 1;
    min-width: 0;
    height: 350px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #ddd;
    animation: float 6s ease-in-out infinite;
}

.pistons-3d model-viewer:first-child {
    animation-delay: 0s;
}

.pistons-3d model-viewer:last-child {
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.02); }
}

/* Заглавия с анимация */
.engine-page h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, #2960c8, #1e4a9e, #fcffab);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 5px #fcffab); }
    50% { filter: drop-shadow(0 0 20px #2960c8); }
}

.engine-page h2 {
    font-size: 2.2rem;
    color: #2960c8;
    margin: 30px 0 20px;
    padding-left: 15px;
    border-left: 5px solid #fcffab;
    position: relative;
    overflow: hidden;
}

.engine-page h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #2960c8, #fcffab, transparent);
    transform: translateX(-100%);
    animation: slideIn 1.5s ease-in-out forwards;
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

.engine-page h3 {
    font-size: 1.5rem;
    color: #1e4a9e;
    margin: 20px 0 15px;
    position: relative;
    display: inline-block;
}

.engine-page h3::before {
    content: '';
    position: absolute;
    left: -30px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.engine-page h3:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Стилове за параграфи */
.engine-page p {
    line-height: 1.8;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding: 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(41, 96, 200, 0.1);
    transition: all 0.3s;
}

.engine-page p:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(41, 96, 200, 0.1);
    transform: translateX(5px);
}

/* Списъци със стил */
.engine-page ul, .engine-page ol {
    background: linear-gradient(135deg, #f5f7ff, #ffffff);
    padding: 25px 25px 25px 25px;
    border-radius: 20px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
    list-style-type: none;
}

.engine-page li {
    margin: 15px 0;
    padding: 10px 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.3s;
    position: relative;
    counter-increment: item;
}

.engine-page ul li::before {
    content: ' ';
    position: absolute;
    left: -20px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
}

.engine-page ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: -30px;
    color: #2960c8;
    font-weight: bold;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.engine-page li:hover {
    transform: translateX(10px) scale(1.02);
    background: linear-gradient(90deg, #ffffff, #f0f3ff);
    box-shadow: 0 8px 20px rgba(41, 96, 200, 0.15);
}

.engine-page li:hover::before {
    opacity: 1;
    transform: scale(1) translateX(0);
}

/* Таблици с модерен дизайн */
.engine-page table {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin: 30px 0;
    border: none;
    animation: tableGlow 4s ease-in-out infinite;
}
@media (max-width: 700px) {
    /* Опаковаме таблиците в контейнер със скрол */
    .engine-page table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    
    /* Коригираме клетките за мобилни */
    .engine-page table td,
    .engine-page table th {
        white-space: normal;
        min-width: 120px; /* Минимална ширина за четливост */
        padding: 8px 10px;
        font-size: 14px;
    }
    
    /* Първата колона може да е по-широка */
    .engine-page table td:first-child,
    .engine-page table th:first-child {
        min-width: 140px;
    }
    
    /* Добавяме индикатор за скрол */
    .engine-page {
        position: relative;
    }
    
    .engine-page table::after {
        
        display: block;
        text-align: center;
        font-size: 12px;
        color: #2960c8;
        margin-top: 5px;
        opacity: 0.7;
    }
}

/* За по-малки таблети */
@media (min-width: 701px) and (max-width: 1024px) {
    .engine-page table {
        font-size: 14px;
    }
    
    .engine-page table td,
    .engine-page table th {
        padding: 8px;
    }
}

/* Специално за сравнителната таблица (бензин vs дизел) */


/* Подобряваме видимостта на таблиците */
.engine-page th {
    background: #2960c8;
    color: white;
    font-weight: 600;
}

.engine-page tr:nth-child(even) {
    background: #f8f9fa;
}

.engine-page tr:hover {
    background: #e8f0fe;
}
@keyframes tableGlow {
    0%, 100% { box-shadow: 0 20px 40px rgba(41, 96, 200, 0.2); }
    50% { box-shadow: 0 25px 50px rgba(252, 255, 171, 0.3); }
}

.engine-page th {
    background: linear-gradient(135deg, #2960c8, #1e4a9e);
    font-size: 1.1rem;
    padding: 15px 20px;
    border: none;
    position: relative;
    overflow: hidden;
}

.engine-page th::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
                transparent 30%, 
                rgba(255,255,255,0.2) 50%, 
                transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    from { transform: translateX(-100%) rotate(45deg); }
    to { transform: translateX(100%) rotate(45deg); }
}

.engine-page td {
    padding: 15px 20px;
    border: 1px solid #e0e7ff;
    position: relative;
    transition: all 0.3s;
}

.engine-page tr:hover td {
    background: #f0f5ff;
    transform: scale(1.01);
}

/* Изображения с ефекти */
.engine-page img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: all 0.5s;
    filter: brightness(0.95) saturate(1.2);
    max-width: 100%;
    height: auto;
    justify-content: center;
}

.engine-page img:hover {
    transform: scale(1.03) rotate(1deg);
    filter: brightness(1.05) saturate(1.4);
    box-shadow: 0 30px 60px rgba(41, 96, 200, 0.3);
}

/* Анимация за GIF-овете */
.test-row2-content img[src*="gif"] {
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    transition: all 0.5s;
}

.test-row2-content img[src*="gif"]:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(252, 255, 171, 0.4);
}

/* Бутони за навигация между типовете двигатели */
.btn-container1 {
    background: linear-gradient(135deg, #f5f7ff, #ffffff);
    padding: 20px;
    
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(41, 96, 200, 0.1);
    animation: slideDown 0.8s ease-out;
}

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

.image-nav-link {
    position: relative;
    overflow: hidden;
    padding: 20px;
    transition: all 0.4s;
}
@media (max-width: 1024px) {
    /* Навигационни бутони - да се показват в редица */
    .btn-container1 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        padding: 20px !important;
        margin: 100px 10px 20px 10px !important;
        background: linear-gradient(135deg, #ffffff, #f8faff) !important;
        
        box-shadow: 0 10px 30px rgba(41, 96, 200, 0.1) !important;
    }
    .pistons-3d {
        gap: 15px;
    }
    
    .pistons-3d model-viewer {
        height: 280px;
    }
}


.image-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(252, 255, 171, 0.4), transparent);
    transition: left 0.6s;
}

.image-nav-link:hover::before {
    left: 100%;
}

.image-nav {
    transition: all 0.4s;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
}

.image-nav-link:hover .image-nav {
    transform: rotate(5deg) scale(1.1);
    filter: none;
    background: none;
}

.nav-text {
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.image-nav-link:hover .nav-text {
    letter-spacing: 1px;
}

.active3 .nav-text {
    animation: pulse 2s infinite;
}



@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Прогрес бар за скрол */


@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Карти за предимства/недостатъци */
#pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

#pros-cons h3 {
    grid-column: span 2;
    text-align: center;
}

#pros-cons ul {
    height: 100%;
    background: linear-gradient(135deg, #ffffff, #f0f7ff);
    border: 2px solid transparent;
    transition: all 0.4s;
}

#pros-cons ul:first-of-type {
    border-image: linear-gradient(135deg, #00c853, #69f0ae) 1;
}

#pros-cons ul:last-of-type {
    border-image: linear-gradient(135deg, #d50000, #ff5252) 1;
}

#pros-cons ul:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Анимация за статистиките */
.engine-page ul li strong {
    color: #2960c8;
    position: relative;
    display: inline-block;
}

.engine-page ul li strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #fcffab, #2960c8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.engine-page ul li:hover strong::after {
    transform: scaleX(1);
}

/* Секция с технически параметри */
.engine-page ul:first-of-type {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    background: linear-gradient(135deg, #2960c8, #1e4a9e);
    color: white;
}

.engine-page ul:first-of-type li {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    text-align: center;
}

.engine-page ul:first-of-type li:hover {
    background: rgba(252, 255, 171, 0.2);
    transform: translateY(-5px) scale(1.05);
}

/* Интерактивни бутони за информация */
.info-btn {
    background: linear-gradient(135deg, #2960c8, #1e4a9e);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.4s;
    box-shadow: 0 5px 15px rgba(41, 96, 200, 0.3);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.info-btn:hover {
    transform: rotate(360deg) scale(1.2);
    background: linear-gradient(135deg, #fcffab, #ffd700);
    box-shadow: 0 10px 25px rgba(252, 255, 171, 0.5);
}

.info-btn img {
    filter: brightness(0) invert(1);
    transition: all 0.3s;
}

.info-btn:hover img {
    filter: brightness(1) invert(0);
    transform: scale(1.1);
}

/* Анимация за появяване на описанието */
.sign-description {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer с модерен дизайн */
.footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, 
                rgba(41, 96, 200, 0.1) 0%, 
                transparent 70%);
    animation: rotate 30s linear infinite;
}

.foot {
    position: relative;
    z-index: 1;
}

.foot a {
    position: relative;
    transition: all 0.3s;
    
}

.foot a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s;
}

.foot a:hover {
    transform: translateX(10px);
    color: #fcffab;
}

.foot a:hover::before {
    opacity: 1;
    left: -20px;
}

.social ul li {
    display: inline-block;
    margin: 0 10px;
    transition: all 0.3s;
}

.social ul li:hover {
    transform: translateY(-5px) scale(1.2);
}

.social img {
    transition: all 0.3s;
    
}

.social li:hover img {
    filter: grayscale(0%) brightness(1);
    transform: rotate(360deg);
}

/* Скрол бутон */
.sp-scroll-up {
    background: linear-gradient(135deg, #2960c8, #1e4a9e);
    transition: all 0.4s;
    overflow: hidden;
}

.sp-scroll-up::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(252, 255, 171, 0.5);
    transition: all 0.5s;
}

.sp-scroll-up:hover::before {
    width: 100%;
    height: 100%;
}

.sp-scroll-up .fa-arrow {
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.sp-scroll-up:hover .fa-arrow {
    transform: translateY(-5px);
    color: #1e4a9e;
}

/* Медия за мобилни устройства */
@media (max-width: 700px) {
    .engine-page h1 {
        font-size: 2rem;
    }
    
    .engine-page h2 {
        font-size: 1.5rem;
    }
    
    .engine-page section {
        padding: 15px;
    }
    
    .pistons-3d {
        flex-direction: column;
    }
    
    .btn-container1 {
       
        align-items: center;
        
    }
    
    #pros-cons {
        grid-template-columns: 1fr;
    }
    
    .engine-page ul:first-of-type {
        grid-template-columns: 1fr;
    }
    
    model-viewer {
        height: 300px !important;
    }
}

/* Анимация при скрол */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Добавяме класове за забавяне */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================= */
/* ОПТИМИЗАЦИЯ ЗА ПО-БЪРЗО СКРОЛВАНЕ */
/* ============================================= */

/* Спираме всички анимации когато не се виждат */
.engine-page section,
.what-is,
model-viewer,
.pistons-3d model-viewer,
.image-nav-link,
.test-row2-content {
    /* Няма спиране на анимациите - всичко се вижда нормално */
    opacity: 1;
    visibility: visible;
}

/* Намаляваме сложността на анимациите */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Оптимизация за 3D модели */
model-viewer {
    contain: strict !important; /* Оптимизира рендерирането */
    will-change: transform;
    transform: translateZ(0); /* Хардуерно ускорение */
    backface-visibility: hidden;
    perspective: 1000;
}

/* Намаляваме качеството докато скролваме */
.is-scrolling model-viewer {
    image-rendering: optimizeSpeed;
    --progress-bar-color: transparent;
}

/* Спираме авто-ротейт докато скролваме */
.is-scrolling model-viewer[auto-rotate] {
    animation: none !important;
}

/* По-леки сенки */
.engine-page section,
.what-is {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
}

.engine-page section:hover,
.what-is:hover {
    box-shadow: 0 8px 20px rgba(41, 96, 200, 0.1) !important;
}

/* Намаляваме градиентите */
.engine-page section::before,
.what-is::before,
.footer::before {
    display: none !important;
}

/* По-прости ховър ефекти */
.engine-page section:hover,
.what-is:hover {
    transform: translateY(-2px) !important;
}

.engine-page p:hover {
    transform: translateX(2px) !important;
}

.engine-page li:hover {
    transform: translateX(3px) !important;
}

/* Оптимизация за мобилни */
@media (max-width: 768px) {
    /* Намаляваме броя на ефектите */
    .engine-page h2::after,
    .engine-page h3::before,
    .engine-page h3::after,
    .engine-page th::after,
    .engine-page ul li::before,
    .engine-page ol li::before,
    .image-nav-link::before {
        display: none !important;
    }
    
    /* Премахваме анимациите на мобилни */
    .engine-page section,
    .what-is,
    .pistons-3d model-viewer {
        animation: none !important;
        transition: none !important;
    }
    
    /* Опростяваме 3D моделите */
    model-viewer {
        height: 250px !important;
        background: #1a1a2e !important;
    }
    
    /* По-малко сенки */
    .engine-page section,
    .what-is,
    .btn-container1,
    .test-container {
        box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    }
    
    /* По-прост footer */
    .footer::before {
        display: none;
    }
    
    .social img {
        width: 30px !important;
        height: 30px !important;
    }
}
@media (max-width: 480px) {
    .about-section {
        padding: 20px 15px !important;
        gap: 20px !important;
    }
    
    .about-image {
        max-width: 350px !important;
    }
    
    .about-image img {
        max-height: 300px !important;
    }
    
    .about-content h1 {
        font-size: 1.5rem !important;
    }
    
    .about-text p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
}
/* За много малки екрани */
@media (max-width: 480px) {
    model-viewer {
        height: 200px !important;
    }
    
    .pistons-3d model-viewer {
        height: 220px !important;
    }
    
    /* Премахваме всички анимации */
    .engine-page h1,
    .engine-page h2,
    .engine-page h3,
    .active3 .nav-text {
        animation: none !important;
    }
    
    
}

/* Навигационни бутони - опростени */
.btn-container1 {
    padding: 10px !important;
    gap: 10px !important;
}

.image-nav {
    width: 100% !important;
    height: 200px !important;
}

.nav-text {
    
    padding: 4px 8px !important;
}

/* ============================================= */
/* МОДЕРНИ СТИЛОВЕ ЗА ДИЗЕЛОВА СТРАНИЦА - СЪС СИН ЦВЯТ */
/* ============================================= */

/* Стилове за дизелова страница - със син цвят като бензиновата */
.art11 section {
    background: linear-gradient(145deg, #ffffff, #f8f9ff);
    border-radius: 30px;
    padding: 35px 40px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 8px 20px rgba(41, 96, 200, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.art11 section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, 
                rgba(252, 255, 171, 0.3) 0%, 
                transparent 70%);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
}

.art11 section:hover::before {
    opacity: 0.5;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.art11 section:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(41, 96, 200, 0.2),
                0 15px 30px rgba(0,0,0,0.1);
    border-color: rgba(252, 255, 171, 0.5);
}

/* Заглавия - син цвят */
.art11 h1,
.test-row1 h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, #2960c8, #1e4a9e, #fcffab);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 5px #fcffab); }
    50% { filter: drop-shadow(0 0 20px #2960c8); }
}

.art11 h2 {
    font-size: 2.2rem;
    color: #2960c8;
    margin: 30px 0 20px;
    padding-left: 15px;
    border-left: 5px solid #fcffab;
    position: relative;
    overflow: hidden;
}

.art11 h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #2960c8, #fcffab, transparent);
    transform: translateX(-100%);
    animation: slideIn 1.5s ease-in-out forwards;
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

.art11 h3 {
    font-size: 1.5rem;
    color: #1e4a9e;
    margin: 20px 0 15px;
    position: relative;
    display: inline-block;
}

.art11 h3::before {
    content: '⛽';
    position: absolute;
    left: -30px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
    font-size: 1.3rem;
    color: #2960c8;
}

.art11 h3:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Параграфи */
.art11 p {
    line-height: 1.8;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(41, 96, 200, 0.1);
    transition: all 0.3s;
}

.art11 p:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(41, 96, 200, 0.1);
    transform: translateX(5px);
}

/* Списъци */
.art11 ul, .art11 ol {
    background: linear-gradient(135deg, #f5f7ff, #ffffff);
    padding: 25px 25px 25px 45px;
    border-radius: 20px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
    list-style-type: none;
    counter-reset: item;
}

.art11 li {
    margin: 15px 0;
    padding: 10px 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.3s;
    position: relative;
    counter-increment: item;
}

.art11 ul li::before {
    content: '⛽';
    position: absolute;
    left: -20px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
    color: #2960c8;
}

.art11 ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: -30px;
    color: #2960c8;
    font-weight: bold;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.art11 li:hover {
    transform: translateX(10px) scale(1.02);
    background: linear-gradient(90deg, #ffffff, #f0f3ff);
    box-shadow: 0 8px 20px rgba(41, 96, 200, 0.15);
}

.art11 li:hover::before {
    opacity: 1;
    transform: scale(1) translateX(0);
}

/* Таблици */
.art11 table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(41, 96, 200, 0.15);
    background: white;
}

.art11 th {
    background: linear-gradient(135deg, #2960c8, #1e4a9e);
    color: white;
    font-size: 1.1rem;
    padding: 15px 20px;
    border: none;
    position: relative;
    overflow: hidden;
}

.art11 th::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
                transparent 30%, 
                rgba(255,255,255,0.2) 50%, 
                transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    from { transform: translateX(-100%) rotate(45deg); }
    to { transform: translateX(100%) rotate(45deg); }
}

.art11 td {
    padding: 15px 20px;
    border: 1px solid #e0e7ff;
    transition: all 0.3s;
    background: white;
}

.art11 tr:hover td {
    background: #f0f5ff;
    transform: scale(1.01);
}

/* 3D модели */
.art11 model-viewer {
    border-radius: 20px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3),
                inset 0 0 50px rgba(252, 255, 171, 0.3);
    transition: all 0.5s ease;
    cursor: grab;
    border: 2px solid rgba(252, 255, 171, 0.3);
    margin: 20px 0;
}

.art11 model-viewer:hover {
    box-shadow: 0 30px 60px rgba(41, 96, 200, 0.4),
                inset 0 0 80px rgba(252, 255, 171, 0.5);
    transform: scale(1.02);
    border-color: #fcffab;
}

/* Engine center */
.art11 .engine-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    background: linear-gradient(135deg, #f5f7ff, #ffffff);
    border-radius: 25px;
    padding: 20px;
}

.art11 .engine-center img {
    margin: 0;
    max-height: 300px;
    width: auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(41, 96, 200, 0.15);
}

.art11 .engine-center img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(41, 96, 200, 0.25);
}

/* Изображения */
.art11 img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: all 0.5s;
    filter: brightness(0.95) saturate(1.2);
    margin: 25px 0;
    border: 3px solid transparent;
}

.art11 img:hover {
    transform: scale(1.03) rotate(1deg);
    filter: brightness(1.05) saturate(1.4);
    box-shadow: 0 30px 60px rgba(41, 96, 200, 0.3);
}

/* GIF анимации */
.art11 img[src*="gif"] {
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    transition: all 0.5s;
}

.art11 img[src*="gif"]:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(252, 255, 171, 0.4);
}

/* Анимация за появяване на секциите */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.art11 section:nth-child(1) { animation-delay: 0.1s; }
.art11 section:nth-child(2) { animation-delay: 0.2s; }
.art11 section:nth-child(3) { animation-delay: 0.3s; }
.art11 section:nth-child(4) { animation-delay: 0.4s; }
.art11 section:nth-child(5) { animation-delay: 0.5s; }
.art11 section:nth-child(6) { animation-delay: 0.6s; }
.art11 section:nth-child(7) { animation-delay: 0.7s; }
.art11 section:nth-child(8) { animation-delay: 0.8s; }
.art11 section:nth-child(9) { animation-delay: 0.9s; }
.art11 section:nth-child(10) { animation-delay: 1s; }
.art11 section:nth-child(11) { animation-delay: 1.1s; }
.art11 section:nth-child(12) { animation-delay: 1.2s; }
.art11 section:nth-child(13) { animation-delay: 1.3s; }
.art11 section:nth-child(14) { animation-delay: 1.4s; }
.art11 section:nth-child(15) { animation-delay: 1.5s; }

/* Медия за мобилни */
@media (max-width: 768px) {
    .art11 h1 {
        font-size: 2rem;
    }
    
    .art11 h2 {
        font-size: 1.5rem;
    }
    
    .art11 section {
        padding: 20px;
    }
    
    .art11 p {
        font-size: 1rem;
        padding: 12px;
    }
    
    .art11 .engine-center {
        padding: 15px;
    }
    
    .art11 .engine-center img {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .art11 h1 {
        font-size: 1.8rem;
    }
    
    .art11 h2 {
        font-size: 1.3rem;
    }
    
    .art11 .engine-center img {
        max-height: 150px;
    }
}

model-viewer {
    min-height: 200px;
    max-height: 400px;
    width: 100%;
    background: #1a1a2e !important;
}

/* Специално за двойните модели */
.pistons-3d {
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .pistons-3d {
        display: block; /* Пълно блоково показване */
    }
    
    .pistons-3d model-viewer {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .pistons-3d model-viewer:last-child {
        margin-bottom: 0;
    }
}

@media (min-width: 360px) and (max-width: 700px) {
    /* Основен контейнер */
    .test-container {
        margin: 80px 10px 20px 10px !important;
        padding: 15px !important;
    }
    
    /* Навигационни бутони - 2 на ред */
    .btn-container1 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Два равни стълба */
        gap: 12px !important;
        padding: 15px 5px !important;
        margin: 0 0 20px 0 !important;
    }
    
    /* Всеки бутон */
    .image-nav-link {
        width: 100% !important;
        margin: 0 !important;
        padding: 5px !important;
    }
    
    /* Икони */
    .image-nav {
        width: 100% !important;
        height: 80px !important;
        object-fit: contain !important;
    }
    
    /* Текст под иконите */
    .nav-text {
        font-size: 14px !important;
        padding: 5px !important;
        margin: 5px 0 0 0 !important;
        text-align: center !important;
    }
    
    /* Секции със съдържание */
    .engine-page {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }
    
    /* Заглавия */
    .engine-page h1 {
        font-size: 1.6rem !important;
        text-align: center !important;
    }
    
    .engine-page h2 {
        font-size: 1.3rem !important;
    }
    
    /* 3D модели */
    model-viewer {
        height: 220px !important;
        margin: 10px 0 !important;
    }
    
    /* Двойните 3D модели */
    .pistons-3d {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .pistons-3d model-viewer {
        height: 200px !important;
        width: 100% !important;
    }
    
    /* Таблици */
    .engine-page table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        font-size: 14px !important;
    }
    
    /* Изображения */
    .engine-page img,
    .systems {
        width: 100% !important;
        height: auto !important;
    }
    
    /* Текст */
    .engine-page p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        padding: 10px !important;
    }
}

/* ЗА ПО-МАЛКИ ТЕЛЕФОНИ (под 360px) */
@media (max-width: 359px) {
    .btn-container1 {
        grid-template-columns: 1fr !important; /* Един бутон на ред */
    }
    
    .image-nav {
        height: 70px !important;
    }
}

/* ЗА ПО-ГОЛЕМИ ТЕЛЕФОНИ (над 500px) */
@media (min-width: 501px) and (max-width: 700px) {
    .btn-container1 {
        grid-template-columns: repeat(4, 1fr) !important; /* 4 бутона на ред */
    }
    
    .image-nav {
        height: 90px !important;
    }
}

.engine-page div[style*="grid-template-columns: repeat(2, 1fr)"] {
    background: linear-gradient(145deg, #f8f9ff, #ffffff) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: 0 10px 30px rgba(41, 96, 200, 0.1) !important;
    border: 1px solid rgba(41, 96, 200, 0.1) !important;
}

.engine-page div[style*="grid-template-columns: repeat(2, 1fr)"] > div {
    background: white !important;
    border-radius: 12px !important;
    padding: 12px 15px !important;
    border: 1px solid #eaeef5 !important;
    transition: all 0.3s ease !important;
}

.engine-page div[style*="grid-template-columns: repeat(2, 1fr)"] > div:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(41, 96, 200, 0.15) !important;
    border-color: #2960c8 !important;
}

.engine-page div[style*="grid-template-columns: repeat(2, 1fr)"] span[style*="color: #2960c8"] {
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.engine-page div[style*="grid-template-columns: repeat(2, 1fr)"] span[style*="width: 55%"] {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1e2b3c !important;
}

/* МОБИЛНА ВЕРСИЯ - от 360px до 700px */
@media (min-width: 360px) and (max-width: 700px) {
    .engine-page div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 15px !important;
    }
    
    .engine-page div[style*="grid-template-columns: repeat(2, 1fr)"] > div {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 15px !important;
    }
    
    .engine-page div[style*="grid-template-columns: repeat(2, 1fr)"] span[style*="color: #2960c8"] {
        width: 45% !important;
        font-size: 13px !important;
    }
    
    .engine-page div[style*="grid-template-columns: repeat(2, 1fr)"] span[style*="width: 55%"] {
        width: 55% !important;
        font-size: 14px !important;
        text-align: right !important;
    }
}

/* ЗА МНОГО МАЛКИ ТЕЛЕФОНИ (под 360px) */
@media (max-width: 359px) {
    .engine-page div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    
    .engine-page div[style*="grid-template-columns: repeat(2, 1fr)"] > div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
        padding: 12px !important;
    }
    
    .engine-page div[style*="grid-template-columns: repeat(2, 1fr)"] span[style*="color: #2960c8"] {
        width: 100% !important;
        font-size: 12px !important;
    }
    
    .engine-page div[style*="grid-template-columns: repeat(2, 1fr)"] span[style*="width: 55%"] {
        width: 100% !important;
        font-size: 13px !important;
        text-align: left !important;
    }
}

/* ТАБЛИЦИ - мобилна версия */
@media (min-width: 360px) and (max-width: 700px) {
    .engine-page table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
        border-collapse: collapse !important;
        margin: 15px 0 !important;
        font-size: 13px !important;
    }
    
    .engine-page table th,
    .engine-page table td {
        min-width: 120px !important;
        padding: 8px 10px !important;
        border: 1px solid #ddd !important;
    }
    
    .engine-page table th {
        background: #2960c8 !important;
        color: white !important;
    }
    
    .engine-page table td:first-child {
        position: sticky !important;
        left: 0 !important;
        background: #f0f5ff !important;
        font-weight: 600 !important;
    }
}

@media (max-width: 359px) {
    .engine-page table th,
    .engine-page table td {
        min-width: 100px !important;
        padding: 6px 8px !important;
        font-size: 11px !important;
    }
}

/* Много малък телефон */
@media (max-width: 340px) {
    .center1 ul,
    .center1 ol {
        padding-left: 25px !important;
    }
    
    .center1 li {
        font-size: 0.85rem !important;
        margin-left: 10px !important;
    }
}

.center1 p,
.center1 ul,
.center1 ol,
.center1 li {
    display: none !important;
}

/* Когато са показани - всички в една кутия */
.center1 p[style*="display: block"],
.center1 ul[style*="display: block"],
.center1 ol[style*="display: block"] {
    display: block !important;
    background-color: #f8f9fa !important;
    border-left: 4px solid #2960c8 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
    width: 100% !important;
}

/* ПЪРВИ ПАРАГРАФ - горни ъгли */
.center1 p[style*="display: block"]:first-of-type {
    margin: 10px 0 0 0 !important;
    padding: 15px 15px 5px 15px !important;
    border-radius: 8px 8px 0 0 !important;
}

/* ВСИЧКИ ПАРАГРАФИ СЛЕД ПЪРВИЯ */
.center1 p[style*="display: block"] ~ p[style*="display: block"] {
    margin: 0 !important;
    padding: 5px 15px 5px 15px !important;
    border-radius: 0 !important;
}

/* ПЪРВИ СПИСЪК */
.center1 ul[style*="display: block"]:first-of-type,
.center1 ol[style*="display: block"]:first-of-type {
    margin: 0 !important;
    padding: 0 15px 5px 30px !important;
    border-radius: 0 !important;
}

/* ВСИЧКИ СПИСЪЦИ СЛЕД ПЪРВИЯ */
.center1 ul[style*="display: block"] ~ ul[style*="display: block"],
.center1 ul[style*="display: block"] ~ ol[style*="display: block"],
.center1 ol[style*="display: block"] ~ ul[style*="display: block"],
.center1 ol[style*="display: block"] ~ ol[style*="display: block"] {
    margin: 0 !important;
    padding: 0 15px 5px 30px !important;
    border-radius: 0 !important;
}

/* ПОСЛЕДЕН ЕЛЕМЕНТ - долни ъгли */
.center1 :last-child[style*="display: block"] {
    padding-bottom: 15px !important;
    border-radius: 0 0 8px 8px !important;
}

/* ЕЛЕМЕНТИ НА СПИСЪЦИТЕ */
.center1 li[style*="display: list-item"] {
    display: list-item !important;
    margin-bottom: 5px !important;
    line-height: 1.5 !important;
    color: #333 !important;
    margin-left: 5px !important;
}

/* ТЕКСТ НА ПАРАГРАФИТЕ */
.center1 p[style*="display: block"] {
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: justify !important;
}

/* Компютър */
@media (min-width: 1025px) {
    .center1 p[style*="display: block"]:first-of-type {
        padding: 15px 15px 5px 15px !important;
        font-size: 15px !important;
    }
    
    .center1 p[style*="display: block"] ~ p[style*="display: block"] {
        padding: 5px 15px 5px 15px !important;
    }
    
    .center1 ul[style*="display: block"],
    .center1 ol[style*="display: block"] {
        padding: 0 15px 5px 35px !important;
    }
    
    .center1 :last-child[style*="display: block"] {
        padding-bottom: 15px !important;
    }
    
    .center1 li[style*="display: list-item"] {
        font-size: 15px !important;
        margin-left: 10px !important;
    }
}

/* Телефон */
@media (max-width: 700px) {
    .center1 p[style*="display: block"]:first-of-type {
        padding: 12px 12px 2px 12px !important;
        font-size: 13px !important;
    }
    
    .center1 p[style*="display: block"] ~ p[style*="display: block"] {
        padding: 2px 12px 2px 12px !important;
    }
    
    .center1 ul[style*="display: block"],
    .center1 ol[style*="display: block"] {
        padding: 0 12px 2px 25px !important;
    }
    
    .center1 :last-child[style*="display: block"] {
        padding-bottom: 12px !important;
    }
    
    .center1 li[style*="display: list-item"] {
        font-size: 13px !important;
        margin-left: 0px !important;
    }
}