/* --- ОСНОВНІ КОЛЬОРИ ТА ШРИФТИ --- */
:root {
  --primary-deep-blue: #0b2545; /* Глибокий темно-синій для фонів */
  --accent-cyan: #00b4d8;      /* Яскравий блакитний для акцентів та кнопок */
  --text-dark: #1f2d3d;       /* Темний для тексту */
  --text-muted: #6c757d;      /* Сірий для другорядного тексту */
}

/* Глобальні налаштування */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  margin: 0;
  overflow-x: hidden;
}

/* ВЕРХНЯ ПАНЕЛЬ (Top Bar) */
.top-bar {
  background-color: var(--primary-deep-blue);
  color: #fff;
  padding: 10px 0;
  font-size: 0.9rem;
}

/* ГОЛОВНЕ МЕНЮ (Navbar) */
.navbar {
  background-color: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #eaeaea;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-deep-blue);
  text-decoration: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan) !important;
}

/* ГОЛОВНИЙ БАНЕР (Hero Section) */
.hero-section {
  background: linear-gradient(rgba(11, 37, 69, 0.75), rgba(11, 37, 69, 0.6)), 
              url('../img/logotyp.jpg') no-repeat center center/cover;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  color: #fff;
}

/* СЕКЦІЯ ДІЯЛЬНОСТІ (Картки на головній) */
.area-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-top: 5px solid var(--primary-deep-blue) !important;
  transition: transform 0.3s ease, border-top-color 0.3s ease;
}

.area-card:hover {
  transform: translateY(-5px);
  border-top-color: var(--accent-cyan) !important;
}

/* --- СТИЛІ ДЛЯ СТОРІНКИ USŁUGI --- */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-top: 4px solid #0b2545 !important;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    border-top-color: #00b4d8 !important;
}

.service-card ul {
    list-style-type: square;
    padding-left: 20px;
}

.service-card ul li {
    margin-bottom: 5px;
}

/* --- СУЧАСНІ КАРТКИ РЕАЛІЗАЦІЙ (БЕЗ РОЗМИТТЯ ФОТО) --- */
.custom-project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
    border-radius: 8px;
}

.custom-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.project-img-wrapper {
    width: 100%;
    height: 250px; /* Фотографії будуть однакової рівної висоти */
    overflow: hidden;
    background: #eee;
}

.custom-project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Захист від розмиття та деформації фото */
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    transition: transform 0.5s ease;
}

.custom-project-card:hover img {
    transform: scale(1.04);
}
/* Нові стилі для головної картинки реалізації */

.hero-realization-link {
    display: block;
    text-decoration: none;
    transition: 0.3s;
}

.hero-realization-link:hover {
    transform: translateY(-5px); /* Легкий підйом при наведенні */
}

.hero-image-wrap {
    position: relative;
    height: 300px; /* Фіксована висота для блоку, щоб він був рівним тексту */
    width: 100%;
}

.hero-realization-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заповнює блок, не спотворюючись */
}

/* Оверлей при наведенні */
.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 37, 69, 0.7); /* Темно-синій напівпрозорий фон (як шапка) */
    opacity: 0;
    transition: 0.4s;
    border-radius: 0.375rem; /* Збереження закруглення */
}

.hero-realization-link:hover .hero-image-overlay {
    opacity: 1; /* Оверлей з'являється */
}

/* Кнопка всередині оверлею */
.hero-image-overlay .btn {
    transform: translateY(20px);
    transition: 0.4s;
}

.hero-realization-link:hover .hero-image-overlay .btn {
    transform: translateY(0);
}