/* Базовые сбросы и типографика */
body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  background-color: white;
}

h1 {
  font-size: 36px;
  text-align: center;
}

a:hover {
  text-decoration: none;
}

h2.top {
  margin: 50px 0 20px 0;
  font-weight: 800;
  font-size: 28px;
}

img {
  max-width: 100%;
}

/* Swiper */
.swiper {
  width: 100%;
  height: 440px;
  background-color: #f2f3f8;
  min-width: 0;
}

.swiper-pagination {
  bottom: 3px !important;
}

.swiper-slide {
  width: 87%;
  max-width: 400px;
  height: 400px;
  padding: 0 20px 20px 20px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Кнопка баннера */
.bnr_btn {
  --color: #4494cf;
  display: inline-block;
  padding: 5px 10px;
  margin-top: 20px;
  overflow: hidden;
  background-color: transparent;
  border: 1px solid white;
  border-radius: 6px;
  color: white;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  position: relative;
  z-index: 1;
}

.bnr_btn:hover {
  color: #4494cf;
  border-color: #4494cf;
  background-color: white;
}

/* Главная секция с видео */
.main_home_img {
  position: relative;
  left: 0;
  top: 0;
  width: 100%;
  height: 350px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  overflow: hidden;
}

.main_home_img video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1000;
}

.main_text {
  position: absolute;
  width: auto;
  height: 100%;
  padding: 0 3%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  transition: height 0.9s ease-in-out;
}

.main_text .text {
  margin-top: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main_sub {
  width: 100%;
  font-weight: 400;
  font-size: 14px;
  color: white;
  text-align: center;
}

.btn-grad {
  display: block;
  margin-top: 10px;
  padding: 12px 30px;
  border: 0;
  border-radius: 4px;
  background-color: #4494cf;
  color: white;
  font-weight: 300;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.btn-grad:hover {
  background-color: #1b659c;
}

/* Иконка с тенью */
.res_icon {
  filter: drop-shadow(0 0 7px rgba(0, 0, 0, 0.3));
}

/* Баннеры Choose, Micro, Micro1 – общие стили */
.choose_bnr,
.micro_bnr,
.micro_bnr1,
.res_bnr,
.dashboard_bnr,
.a1_bnr {
  height: 280px;
  margin-top: 30px;
  position: relative;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  display: flex;
  gap: 5%;
  transition: box-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
  cursor: pointer;
  overflow: hidden;
}
.choose_bnr {
  background-image: url('/img/Choose-Your-Vision-System_banner_745x280.jpg');
}
.a1_bnr {
  background-image: url('/img/Vision-A1_banner_745x280.jpg');
}
.dashboard_bnr {
  background-image: url('/img/Vision-Dashboard_banner_745x280_en.jpg');
}
.micro_bnr,
.micro_bnr1 {
  background-color: #009fda;
}

.micro_bnr .image {
  background-image: url('/img/Digitization of microscopy_banner_1020x340_1.png');
}

.micro_bnr1 .image {
  background-image: url('/img/Automation of microscopy_banner_1020x340.png');
}

.micro_bnr .image,
.micro_bnr1 .image,
.res_bnr .image {
  width: 100%;
  height: 100%;
  position: absolute;
  color: white;
}

.res_bnr .image {
  background-image: url('/img/Vision_resources-banner.jpg');
}

.choose_bnr:hover,
.micro_bnr:hover,
.micro_bnr1:hover,
.res_bnr:hover,
.dashboard_bnr:hover,
.a1_bnr:hover {
  box-shadow: 0 8px 13px 2px rgba(34, 60, 80, 0.2);
}

.choose_bnr .text,
.micro_bnr .text,
.micro_bnr1 .text,
.res_bnr .text {
  width: 75%;
  padding: 30px 10px 0 10px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  background-size: cover;
  color: white;
}

.choose_bnr .text {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}

.choose_bnr .text h2,
.micro_bnr .text h2,
.micro_bnr1 .text h2,
.res_bnr .text h2 {
  margin-left: 0;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 20px;
}

.dashboard_bnr .text {
    width: 40%;
    margin-top: 30px;
    margin-left: 30px;
    color: #fff;

}

.a1_bnr .text {
    width: 40%;
    margin-top: 30px;
    margin-left: 30px;
    color: #222;

}

.dashboard_bnr .text h2,
.a1_bnr .text h2
 {
    font-size: 2.75em;
    font-weight: 800;
    line-height: 1.25em;
    margin-bottom: 20px;
}

.dashboard_bnr .text p,
.a1_bnr .text p {
  font-size: 20px;
}

/* Плитки сетки */
.grid-tile {
  height: 170px;
  margin-top: 0;
  border-radius: 8px;
  background-color: rgba(242, 243, 248, 0.6);
  display: flex;
  flex-direction: row;
  align-items: center;
  transition: box-shadow 0.3s ease-in-out, color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.grid-tile:hover {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 13px 2px rgba(34, 60, 80, 0.2);
  cursor: pointer;
  z-index: 0;
}

.tile-text {
  padding: 10px;
  flex: 1;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  backdrop-filter: blur(8px);
}

.square-text-title {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
}

.tile-text p,
.subtitle {
  margin-top: 0;
  font-size: 14px;
  font-weight: 400;
}

/* Сетки систем и приложений */
.systems_block,
.appl_grid,
.adm_mods,
.edu_mods {
  width: 100%;
  display: grid;
  gap: 10px;
}

.systems_block {
  grid-template-columns: repeat(3, 1fr);
}

.systems_block .item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  border-radius: 8px;
  background-color: #f2f3f8;
  transition: box-shadow 0.3s ease-in-out, color 0.3s ease-in-out;
}

.systems_block .item:not(.no-hover):hover {
  background-color: #fff;
  box-shadow: 0 8px 13px 2px rgba(34, 60, 80, 0.2);
  cursor: pointer;
}

.item.category-color-1 {
  background-color: #d4dded;
}
.systems_block .item .item-image {
  width: 100%;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.systems_block .item .item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Сетка приложений */
.appl_grid {
  grid-template-columns: repeat(3, 1fr);
}

.appl_grid .tile-img {
  width: 100%;
  height: 60%;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background-position: 0 0;
  background-size: cover;
  transition: background-position 4s ease;
}

.appl_grid .tile-img:hover {
  background-position: 0 100%;
}

/* Изображения для тайлов приложений */
#bf { 
    background-image: url('/img/Body Fluids_500x1200.jpg');
    background-image: image-set(
      url('/img/Body Fluids_500x1200.jpg') 1x,
      url('/img/Body Fluids_1000x2400.jpg') 2x
    ); 
}
#hm { 
    background-image: url('/img/Hema_500x1200.jpg');
    background-image: image-set(
      url('/img/Hema_500x1200.jpg') 1x,
      url('/img/Hema_1000x2400.jpg') 2x
    );
}
#bm { 
    background-image: url('/img/Bone Marrow_500x1200_2.jpg');
    background-image: image-set(
      url('/img/Bone Marrow_500x1200_2.jpg') 1x,
      url('/img/Bone Marrow_1000x2400_2.jpg') 2x
    );
}
#pap { background-image: url('/img/Cyto Pap_3.png'); }
#std { background-image: url('/img/std_500x1200_1.jpg'); }
#sp { 
    background-image: url('/img/Sperm_500x1200.jpg');
    background-image: image-set(
      url('/img/Sperm_500x1200.jpg') 1x,
      url('/img/Sperm_1000x2400.jpg') 2x
    ); 
}
#ct { 
  background-image: url('/img/karyo_500x1200_1.jpg?v=1');
  background-image: image-set(
    url('/img/karyo_500x1200_1.jpg?v=1') 1x,
    url('/img/karyo_1000x2400.jpg?v=1') 2x
  );
}
#mc { background-image: url('/img/Gram_8.png'); }
#hs { background-image: url('/img/Histo_1.png?v=3'); }
#vt { background-image: url('/img/Vet_Histo_1.png'); }
#es { background-image: url('/img/eb_500x1200.jpg'); }
#ma { background-image: url('/img/Malaria_450x1200.jpg'); }

/* Модули администрирования и обучения */
.adm_mods,
.edu_mods {
  grid-template-columns: repeat(3, 1fr);
}

.adm_mods .item,
.edu_mods .item {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  background-color: #f2f3f8;
  background-size: cover;
}

.edu_mods .item {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.adm_mods .item:hover,
.edu_mods .item:hover {
  box-shadow: 0 8px 13px 2px rgba(34, 60, 80, 0.2);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.adm_mods .inside,
.edu_mods .inside {
  display: flex;
  flex-direction: column;
  align-items: start;
  height: 100%;
}

.adm_mods .inside .image,
.edu_mods .inside .image {
  width: 100%;
  height: 60%;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background-color: #afcdf0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adm_mods .inside .text,
.edu_mods .inside .text {
  padding: 15px;
  width: auto;
}

/* Блок "Другие модули" */
.oth_mod {
  margin-top: 50px;
  padding-bottom: 50px;
  background-color: white;
}

.oth_mod .inside {
  margin-bottom: 50px;
  padding: 10px;
  border: 2px solid #f2f3f8;
  border-radius: 8px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 5%;
}

.oth_mod .inside .gray {
  padding: 20px 40px;
  border-radius: 8px;
  background-color: #f2f3f8;
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 30px;
}

.oth_mod .inside .gray img {
  width: 96px;
}

.oth_mod .inside .text {
  width: 100%;
}

/* ================================
   Медиа-запросы
   ================================ */

/* ≥ 500px */
@media (min-width: 500px) {
  .grid-tile {
    height: 250px;
  }
  .adm_mods .item,
  .edu_mods .item {
    height: 250px;
  }
}

/* ≥ 760px */
@media (min-width: 760px) {
  .square-text-title {
    font-size: 20px;
  }
  .tile-text {
    padding: 15px;
  } 
  .choose_bnr {
    background-image: url('/img/Choose-Your-Vision-System_banner_1005x340.jpg');
    background-position: right;
  } 
  .a1_bnr {
    background-image: url('/img/Vision-A1_banner_1005x340.jpg');
    background-position: right;
  } 
  .dashboard_bnr {
    background-image: url('/img/Vision-Dashboard_banner_1005x340_en.jpg');
    background-position: right;
  } 
  .choose_bnr .text,
  .micro_bnr .text,
  .micro_bnr1 .text,
  .res_bnr .text {
    width: 65%;
    padding: 15px;
  }
  .choose_bnr,
  .micro_bnr,
  .micro_bnr1,
  .res_bnr,
  .dashboard_bnr,
  .a1_bnr {
    height: 340px;
  }
  h1 {
    font-size: 42px;
    text-align: left;
  }
  .main_sub {
    width: 75%;
    font-size: 16px;
    text-align: left;
  }
  .btn-grad {
    font-size: 16px;
  }
  .main_text .text {
    align-items: start;
  }
  .main_home_img {
    height: 400px;
  }
  .adm_mods .item,
  .edu_mods .item {
    height: 300px;
  }
  .grid-tile {
    height: 300px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Максимальная ширина для перестроения сеток */
@media (max-width: 980px) {
    h2.top, h3.top {
        padding: 0 15px;
    }
}
/*@media (max-width: 980px) {
  .systems_block,
  .appl_grid,
  .adm_mods,
  .edu_mods {
    grid-template-columns: repeat(2, 1fr);
  }
}*/

@media (max-width: 760px) {
  .appl_grid,
  .adm_mods,
  .edu_mods {
    grid-template-columns: repeat(1, 1fr);
  }
  .appl_grid .tile-img {
    width: 50%;
    height: 100%;
    border-top-right-radius: 0;
    border-bottom-left-radius: 8px;
  }
  
  .edu_mods .item {
    border-radius: 8px;
  }
  .edu_mods .item:last-of-type {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .dashboard_bnr .text h2,
  .a1_bnr .text h2 {
    font-size: 2em;
    font-weight: 600;
  }
  .dashboard_bnr .text p,
  .a1_bnr .text p {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .grid-tile {
    grid-column: auto;
  }
  .micro_bnr1 .image,
  .micro_bnr .image,
  .res_bnr .image {
    background-size: cover;
    background-position-x: center;
  }
}

@media (max-width: 540px) {
  .systems_block {
    grid-template-columns: repeat(1, 1fr);
  }
  .adm_mods .inside,
  .edu_mods .inside {
    flex-direction: row;
    align-items: center;
  }
  .adm_mods .inside .image,
  .edu_mods .inside .image {
    width: 50%;
    height: 100%;
    border-top-right-radius: 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 0;
  }
  .adm_mods .inside .text,
  .edu_mods .inside .text {
    flex: 1;
  }
}

@media (min-width: 1200px) {  
  .tile-text p, .subtitle {
    font-size: 16px;
  }
}
@media (min-width: 1020px) {    
  h2.top {
      margin-top: 50px;
      font-size: 2.25em;
  }
  .main_text .text {
    margin-top: 100px;
  }
  .main_sub {
    width: 60%;
  }
  .main_text {
    width: 100%;
  }
  .main_home_img {
    height: 420px;
  }
  .choose_bnr {
    background-image: url('/img/Choose-Your-Vision-System_banner_1500x360.jpg');
    background-position: right;
  }
  .a1_bnr {
    background-image: url('/img/Vision-A1_banner_1500x360.jpg');
    background-position: right;
  }
  .dashboard_bnr {
    background-image: url('/img/Vision-Dashboard_banner_1500x360_en.jpg');
    background-position: right;
  }
  .choose_bnr, .micro_bnr, .micro_bnr1, .res_bnr, .dashboard_bnr, .a1_bnr {
    height: 360px;
  }
  .choose_bnr .text h2, .micro_bnr .text h2, .micro_bnr1 .text h2, .res_bnr .text h2 {
    font-size: 24px;
  }
  .choose_bnr .text, .micro_bnr .text, .micro_bnr1 .text, .res_bnr .text {
    padding: 25px;
  }
  .micro_bnr .image, .micro_bnr1 .image, .res_bnr .image {
    background-repeat: no-repeat;
    background-position-y: bottom;
    background-position-x: 10%;
  }
  .swiper {
    height: 460px;
  }
}

@media (min-width: 760px) {
  h1 {
    font-size: 56px;
  }
}