html, body {
  font-family: Montserrat;
  line-height: 1.6;
}

a:link, a:visited {
  color: rgb(176, 15, 15);
  text-decoration: none;
}

a:hover, a:active {
  color: rgb(47, 122, 192);
  text-decoration: underline;
}

#container {
    max-width: 980px;
    margin: 0 auto;
}

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.header-logo {
  flex: 1;
  text-align: left;
}

.header-logo img {
  display: block;
  height: auto;
  max-width: 100%;
}

.header-contact {
  width: 250px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

.header-contact .phone {
  color: black;
  text-decoration: underline;
  font-weight: bold;
}

.header-modules {
  width: 150px;
  text-align: right;
}

#main {
    background: #fff;
    padding: 0px;
    min-height: 400px;
}

#footer {
  padding: 20px;
  background-color: #E9E9E9;
  margin-top: 40px;
}
.clear {
  clear: both;
}
.footer-contacts {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 20px;
}

.footer-left {
  width: 50%;
  text-align: left;
}

.footer-center {
  width: 25%;
  text-align: center;
}

.footer-right {
  width: 25%;
  text-align: right;
}

 .modal {
  display: none;
  position: fixed;
  z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5);
}
.modal-content {
  background: #fff; margin: 10% auto; padding: 20px; width: 400px; border-radius: 6px; position: relative;
}
.close {
  position: absolute; right: 10px; top: 10px; cursor: pointer; font-size: 20px;
}


.home_title {
  text-align: center;
}
.home_title p {
  font-size: 14px;
}

@media (max-width: 768px) {.box_container {flex-direction: column;} .box_container .card {flex: 0 0 100%;}}
.box_container {display: flex;width: 100%;gap: 0;}
.box_container .card {flex: 0 0 25%;height: 370px;box-sizing: border-box;padding: 10px;}
.box_container .card-link {text-decoration: none;color: inherit;display: block;height: 100%;width: 100%;}
.box_container .card-content {height: 100%;width: 100%;border-radius: 12px;border: 1px solid transparent;display: flex;flex-direction: column;align-items: center;justify-content: flex-start;padding: 20px 10px 10px 10px;transition: all 0.3s ease;background-color: #fff;box-sizing: border-box;}
.box_container .card-img {width: 100px;height: auto;object-fit: contain;transition: transform 0.3s ease;margin-bottom: 10px;}
.box_container .card-link:hover .card-content {transform: translateY(-5px);border-color: #e0e0e0;box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1),4px 0 10px rgba(0, 0, 0, 0.05),-4px 0 10px rgba(0, 0, 0, 0.05);}
.box_container .card-link, .card-link:hover {text-decoration: none !important;}
.box_container .card-link:hover .card-content p {text-decoration: none;}
.box_container .card-link:hover .card-img {transform: scale(1.11);}
.box_container .card-content p {margin-top: 15px;color: black;text-align: center;text-decoration: none;font-size: 14px;}
.box_container .card-content p b {font-size: 16px;}

.slider_block {
  background: #fff url('/templates/dtelix_tpl/images/bg1.png') no-repeat left top;
  padding: 10px;
}
.slider_block h3 {
  margin: 0;
}




.slider_wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.slider_container {
    width: 100%;
    height: 270px;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: max-content;
    height: 100%;
    margin: 0;
    padding: 0;
}

.slide {
    flex-shrink: 0;
    width: 100%;
    height: 270px;
    box-sizing: border-box;
}

.slide-content {
    height: 100%;
    padding: 0px 70px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.slide-content .red-btn {
    display: inline-block;
    background-color: rgb(176, 15, 15);
    color: #ffffff;
    padding: 8px 22px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.slide-content .red-btn:hover {
    background-color: #999999;
    text-decoration: none;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
}
.prev-slide { left: 10px; }
.next-slide { right: 10px; }



.info-block {
    display: flex;
    align-items: flex-start;
    margin-top: 30px;
    gap: 25px;
}

.info-img {
    width: 300px;
    flex-shrink: 0;
}

.info-text {
    flex: 1;
}
.info-text li {
    flex: 1;
    padding: 15px;
}

@media (max-width: 650px) {
    .info-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .info-img {
        width: 100%;
        max-width: 300px;
    }
}


.main-news {
    padding-top: 20px;
}
.main-news .header-strip {
    background-color: rgb(176, 15, 15);
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}

.main-news .header-strip h2 {
    margin: 0;
    font-size: 24px;
}

.main-news .content-row {
    display: flex;
    width: 100%;
    gap: 30px;
    padding-top: 20px;
}

.main-news .content-col {
    flex: 1;
    box-sizing: border-box;
    text-align: justify;
}
.main-news .content-col a {
    font-weight: bold;
}

@media (max-width: 768px) {
    .main-news .content-row {
        flex-direction: column;
    }
}


.ask-question {
    margin: 0;
    padding: 8px 12px;
    border: 1px solid black;
    color: black !important;
    text-decoration: none !important;
    font-size: 17px;
    font-weight: 500;
    transition: background-color 0.5s;
}
.ask-question:hover {
    background-color: rgb(176, 15, 15);
    color: white !important;
    transition: background-color 0.5s;
}

.cabinet-possibilities {
    display: grid;
    grid-template-columns: max-content 1fr; 
    gap: 20px;
    margin: 20px auto;
}

.cabinet-possibilities .grid-item {
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cabinet-possibilities .image-box img {
    width: auto;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .cabinet-possibilities {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cabinet-possibilities .grid-item {
        padding: 10px;
    }
    .cabinet-possibilities .image-box img {
        width: auto !important; 
        max-width: 100%;
        margin: 0 auto;
    }
    .cabinet-possibilities .text-box {
        margin-bottom: 20px; 
    }
}

.contacts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 15px;
  background-color: rgb(217, 217, 217);
  border-radius: 10px;
}

.contacts-container .left-block {
  flex: 1;
  min-width: 250px;
}

.contacts-container .right-block {
  width: 400px;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
}
h3.contacts {
    color: rgb(176, 15, 15);
}

.red {
    color: rgb(176, 15, 15);
}
.light-gray {
    color: #9e9e9e;
}
.center {
    text-align: center;
}
.cards-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.cards-container .card {
  flex: 1;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #d1d1d1;
  border-radius: 8px;
  box-shadow: 0 10px 15px -5px rgba(0, 0, 0, 0.2);
  text-align: justify;
}

.cards-container .card-no-border {
  flex: 1;
  text-align: justify;
}

.cards-container .ribbon {
  background-image: url('/images/pages/ribbon.png');
  background-repeat: no-repeat;
  background-position: center top;
  padding-top: 120px;
}
@media (max-width: 768px) {
  .cards-container {
    flex-direction: column;
  }
}


.list-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.list-container .row {
  display: flex;
  align-items: center;
  gap: 30px;
}

.list-container .reverse {
  flex-direction: row-reverse;
}

.list-container .row-img {
  width: auto; 
  height: auto;
  flex: 0 0 auto; 
  max-width: 100%; 
}

.list-container .row-text {
  flex: 1;
}

.list-container .row-text h3 {
  margin: 0 0 10px 0;
}

@media (max-width: 768px) {
  .list-container .row, .list-container .reverse {
    flex-direction: column;
  }
  .list-container .row-img {
    width: 100%;
  }
}

.side-articles-block {
    float: right;
    width: 400px;
    border: 1px solid #cccccc;
    padding: 10px 10px 10px 0;
    margin: 0 0 10px 10px;
    background-color: #ffffff;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .side-articles-block {
        float: none;
        width: 100%;
        margin: 10px 0;
    }
}

.about_gallery {
  display: grid;
  grid-template-columns: repeat(2, 360px); 
  gap: 15px;
  justify-content: center;
}

.about_gallery .gallery-item {
  width: 360px;
  height: 240px;
  display: block;
}

.about_gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cert_container { display: flex; gap: 40px; width: 100%; box-sizing: border-box;}
.cert_card { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; min-height: 150px; border-bottom: 4px solid #EEEEEE; }
.cert_card img {  margin-bottom: 15px;}
.cert_card p { margin: 0; font-weight: bold; color: rgb(102, 102, 102); text-align: center;}

.l7-table { width: 100%; text-align: center;}
.l7-table th, .l7-table td { padding: 15px 20px;}
.l7-table th { background-color:rgb(176,15,15); color: white;}
.l7-table tr { border-bottom: 2px solid white; }
.l7-table .grey_bg {background: rgb(225, 225, 225);}

.l7-container { display: flex; gap: 20px; padding: 20px;}
.l7-container .column { flex: 1; display: flex; flex-direction: column; gap: 20px;}
.l7-container .card { padding: 20px; transition: box-shadow 0.3s ease;}
.l7-container .card:hover { box-shadow: 0 10px 20px 10px rgba(0, 0, 0, 0.1);}

.l7_gal { display: flex; flex-wrap: wrap; gap: 30px; width: fit-content;}
.l7_gal img { width: 220px; height: 440px; object-fit: cover; display: block;}

.rs-container { display: flex; gap: 20px; }
.rs-container .left-column { flex: 0 0 65%; }
.rs-container .right-column { flex: 1; }
.rs-container .rounded { background-color: rgb(248,248,248); border: 1px solid #DDDDDD; border-radius: 5px; padding: 10px; }
@media (max-width: 768px) {
  .rs-container { flex-direction: column; }
  .rs-container .left-column { flex: 1 1 100%; }
}
.rs-comm { border-collapse: collapse; width: 100%; }
.rs-comm th, .rs-comm td { border: 1px solid #DDDDDD; padding: 10px; }
.rs-comm td.first { background-color:rgb(248,248,248); }
.rs-comm th { background-color:rgb(176,15,15); color: white; font-weight: bold; text-align: center; }

.flex-container { display: flex; flex-wrap: wrap; }
.flex-container > div { flex: 1; min-width: 200px; }
.gap10 { gap: 10px; }
.gap20 { gap: 20px; }
.gap40 { gap: 40px; }
.padding10 { padding: 10px; }
.padding20 { padding: 20px; }
.padding40 { padding: 40px; }
.margin0 { margin: 0px; }
.step-item { display: flex; align-items: flex-start; margin-bottom: 20px; }
.step-item i { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; background-color: rgb(176,15,15); color: white; border-radius: 50%; font-size: 24px; font-style: normal; flex-shrink: 0; }
.step-item > div { flex: 1; }
.step-item img { flex-shrink: 0; max-width: 40%; height: auto; display: block; }
.bottom-gradient { background: linear-gradient(to bottom, #ffffff 0%, #DDDDDD 100%); }
.bordered { border: 1px solid #dddddd; padding: 10px; }

.mod-breadcrumbs { display: flex; flex-wrap: wrap; list-style: none; padding: 10px; margin: 0; font-size: 12px; align-items: center; }
.mod-breadcrumbs__item { display: flex; align-items: center; position: relative; padding-right: 20px; margin-right: 5px; }
.mod-breadcrumbs__item:not(:last-child):after { content: ""; display: inline-block; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 6px; border-color: transparent transparent transparent #ccc; position: absolute; right: 5px; top: 50%; transform: translateY(-50%); }
.mod-breadcrumbs__divider { display: none; }
.mod-breadcrumbs__item.active { color: #6c757d; padding-right: 0; }

div.mod-languages ul li.lang-active-custom {
  background-color: #f0f0f0;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
