.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.4s;
  display: flex;
  flex-direction: column;
}

.service-card:hover { border-color: #c01101; background: #0a0a0a; }

.service-title {
  font-family: "Polaris", sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #fff;
}

.service-desc {
  font-family: "Lato", sans-serif;
  font-size: 15px;
  color: #aaa;
  margin-bottom: 30px;
  flex-grow: 1;
}

.service-price {
  font-family: "Polaris", sans-serif;
  font-size: 18px;
  color: #c01101;
  margin-top: auto;
}

.service-card {
  cursor: pointer;
  text-decoration: none; /* Убираем стандартное подчеркивание ссылок */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
  transform: translateY(-10px);
  border-color: #c01101;
}

.service-icon {
  margin-bottom: 20px;
  color: #fff; /* Цвет иконки по умолчанию */
  transition: all 0.4s ease;
}

/* При наведении на карточку — иконка краснеет */
.service-card:hover .service-icon {
  color: #c01101;
  transform: scale(1.1);
}

/* Настраиваем размер, если нужно */
.service-icon svg {
  display: block;
}

@media screen and (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Проекты */
.projects-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid transparent; /* Рамка прозрачная по умолчанию */
  transition: all 0.4s ease;
}

/* Эффект при наведении */
.projects-card:hover {
  border: 1px solid #c01101; /* Красная рамка */
  transform: translateY(-5px);
}

/* Увеличение картинки внутри */
.project-card-img {
  transition: transform 0.6s ease;
}

.projects-card:hover .project-card-img {
  transform: scale(1.05); /* Легкое увеличение */
}

/* Скрываем всё, что раньше было "стрелкой" */
.имя_твоего_класса_со_стрелкой { 
  display: none !important; 
}

/* Инфо */

.centered-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 160px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    width: auto;
}

/* АДАПТИВ: для экранов меньше 768px */
@media screen and (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr; /* 1 колонка (друг под другом) */
    }
    
    /* Дополнительно уменьшим отступы внутри карточек для мобилки */
    .service-card {
        padding: 25px;
    }
}

/* Сетка для картинок внутри кейса */
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.project-gallery-grid img {
    width: 100%;
    border-radius: 12px;
}

/* Ссылка на следующий проект */
.next-project-link {
    display: block;
    text-align: center;
    padding: 80px 0;
    text-decoration: none;
    color: #fff;
}
.next-project-link span { color: #666; font-size: 14px; text-transform: uppercase; }
.next-title { font-size: 40px; font-family: "Polaris"; margin-top: 10px; }

.next-project-compact {
    text-align: center;
    padding: 40px; /* Было 80, делаем компактнее */
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}
.next-label { color: #555; font-size: 12px; text-transform: uppercase; }
.next-title { font-size: 32px; font-family: "Polaris"; color: #fff; text-decoration: none; }

.project-gallery-bento {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
    margin: 40px 0;
}

.bento-vertical {
    grid-column: 2; /* Правая колонка */
    grid-row: 1 / 3; /* Занимает 1 и 2 ряд */
}

.bento-horizontal-1 { grid-column: 1; grid-row: 1; }
.bento-horizontal-2 { grid-column: 1; grid-row: 2; }

.bento-vertical img, 
.bento-horizontal-1 img, 
.bento-horizontal-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

@media screen and (max-width: 767px) {
    .project-gallery-bento {
        grid-template-columns: 1fr;
    }
    .bento-vertical {
        grid-column: 1;
        grid-row: 1;
    }
}