body {
  font-family: 'Inter', sans-serif;
  background: url(/images/2025-06-24_15.46.10.png) no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  
}

/* LEFT BLOCKS */
.content-block {
  background: #e9ecef;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  transition: transform .3s;
}
.content-block:hover { transform: scale(1.05); }

.image-placeholder {
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
}
.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.image-placeholder img:hover { transform: scale(1.05); }

/* CARDS */
.square-card {
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  height: 400px;
}
.square-card:hover { transform: translateY(-5px); box-shadow:0 8px 20px rgba(0,0,0,0.15); }

.square-card .card-title { text-align:center; margin-bottom:8px; font-size:1.1rem; }

.square-card .card-img-container {
  flex-grow: 1;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 10px;
}
.square-card .card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.square-card .card-img-container img:hover { transform: scale(1.05); }

.square-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-footer .version { font-size:0.85rem; color:#6c757d; margin-left:8px; }
.card-footer .category { font-size:0.8rem; padding:4px 8px; }

/* GRID 3 CARDS */
#schematics-container {
  display:flex;
  flex-wrap:wrap;
  gap:20px;
}
#schematics-container .col-card { flex:0 0 calc(33.333% - 13.33px); }

/* ADAPTIVE */
@media(max-width:992px){#schematics-container .col-card{flex:0 0 calc(50% - 10px);}}
@media(max-width:768px){#schematics-container .col-card{flex:0 0 100%;} .square-card{height:380px;}}


#modal-screenshots {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

#modal-screenshots img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#modal-screenshots img:hover {
  transform: scale(1.5);
  z-index: 10;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Главная картинка */
.modal-main-img {
  width: 70%;           /* по центру и меньше */
  max-height: 300px;    /* ограничиваем высоту */
  object-fit: contain;
  display: block;
  margin: 0 auto 20px auto;
}

/* Скриншоты */
#modal-screenshots img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s;
}

#modal-screenshots img:hover {
  transform: scale(1.3); /* увеличивается при наведении */
  z-index: 10;
}

.footer {
  background-color: #0e121f;
  color: #fff;
  padding: 40px 0;
  border-radius: 15px 15px 0 0;
  text-align: center;
}

.footer p.text-muted {
  color: #fff !important;
}

.square-card {
  background-color: #1a1f2e; /* тёмно-синий, чуть светлее фона */
  color: #fff; /* текст белый, чтобы был виден */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.square-card .card-footer {
  background-color: #161b29; /* чуть темнее нижняя часть карточки */
  color: #ddd;
}

/* Блоки слева */
.content-block {
  background: #1a1f2e; /* тёмно-синий, чуть светлее фона */
  color: #fff; /* текст белый */
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  transition: transform .3s;
}

.content-block h5 {
  color: #aad4ff; /* мягкий голубой для заголовков */
}

.content-block p {
  color: #ccc; /* светло-серый текст */
}

/* Изображения слева */
.image-placeholder {
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #161b29; /* тёмная подложка если изображение не загрузилось */
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.image-placeholder img:hover {
  transform: scale(1.05);
}

.content-block p.text-muted {
  color: #ccc !important; /* светло-серый, хорошо читается на тёмном фоне */
}

/* Фон модального окна */
.modal-content {
  background-color: #0e121f; /* тёмно-синий фон */
  color: #fff;               /* белый текст */
  border-radius: 10px;
}

/* Заголовок модального окна */
.modal-header, .modal-footer {
  border-color: #1a1f33; /* чуть светлее для отделения */
}

/* Кнопки внутри модального окна */
.modal-footer .btn {
  background-color: #1a1f33;
  color: #fff;
  border: none;
}

.modal-footer .btn:hover {
  background-color: #27304d;
}


