/* Общие стили для body и html */
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* тело растягивается на весь экран */
}

/* Контент растягивается, чтобы футер был внизу */
main {
  padding: 20px;
  background-color: inherit;
  flex: 1 0 auto; /* main занимает всё свободное место */
  min-height: 500px;
}

/* Баннер (шапка) */
header {
  position: relative;
  z-index: 3;
  background-color: #3F92D2;
  padding: 20px;
  color: white;
  display: flex;
  justify-content: center; /* центрируем навигацию */
}

/* Навигация */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.main-nav > * {
  display: inline-block;
}

/* Контейнеры карточек */
.container-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.container {
  width: 250px;
  padding: 20px;
  background-color: #67e46f;
  color: black;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 20px;
}

/* Заголовки и текст */
h1 { color: #AA00A2; font-family: Arial; }
h2 { color: #1f1ab2; font-family: Arial; }
h3 { color: #1240AB; font-family: Arial; }
h4 { color: #000004; font-family: Arial; }
h5 { color: #000005; font-family: Arial; }
li { color: #000006; font-family: Arial; }
p  { color: #00000b; font-family: Arial; }
span { color:#000009; font-family: Arial; }

/* Футер */
footer {
  background-color: #3F92D2;
  color: white;
  text-align: center;
  padding: 10px;
  flex-shrink: 0; /* футер не поднимается вверх */
}

footer * {
  color: inherit;
}

/* Выпадающее меню */
.navbar a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  padding: 10px;
  display: inline-block;
  position: relative;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #3F92D2;
  min-width: 160px;
  z-index: 1;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a:hover {
  background-color: #2a75b0;
}

/* Контейнер баннера */
.banner {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  margin: 0;
}

.banner-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(70%);
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 2;
  padding: 15px 30px;
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
}

/* Адаптивность */
@media (max-width: 992px) {
  .banner { height: 250px; }
}

@media (max-width: 600px) {
  .banner { height: 200px; }
  .banner-text {
    padding: 10px 20px;
  }
  .banner-text h1 { font-size: 1.4em; }
  .banner-text h3 { font-size: 0.9em; }
}

/* Карточки услуг */
.service-card {
  width: 250px;
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #3F92D2;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.service-btn:hover {
  background-color: #2A6BAE;
}
