* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}
.container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}
header {
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-width: 200px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}
.btn-register {
  padding: 10px 20px;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 5;
}
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 400px;
  width: 100%;
}
.footer {
  background: #222;
  color: white;
  padding: 40px 0;
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer-menu,
.footer-subscribe,
.footer-cooperation {
  flex: 1;
  min-width: 200px;
}
.footer h4 {
  margin-bottom: 10px;
  color: #fff;
}
.footer a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
}
.footer p {
  margin-top: 20px;
  font-size: 0.9em;
  color: #888;
}
.subscribe-form input[type="email"] {
  padding: 10px;
  width: 70%;
  border: none;
  border-radius: 5px 0 0 5px;
}
.subscribe-form button {
  padding: 10px;
  border: none;
  background: #0077cc;
  color: white;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}
/* hero */
.hero-block {
  background: linear-gradient(to right, #eaf4ff, #ffffff);
  padding: 80px 20px;
}

.hero-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 40px;
}

.hero-text {
  flex: 1;
  min-width: 280px;
  animation: fadeInLeft 1s ease-in-out;
}

.hero-text h1 {
  font-size: 2.8rem;
  color: #0077cc;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-button {
  display: inline-block;
  background-color: #0077cc;
  color: white;
  padding: 15px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.hero-button:hover {
  background-color: #005fa3;
}

.hero-image {
  flex: 1;
  min-width: 280px;
  animation: fadeInRight 1s ease-in-out;
}

.hero-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* main */
.main-section {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.main-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #0077cc;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.feature {
  flex: 1 1 250px;
  max-width: 300px;
  background: #f1f9ff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #003d66;
}

.feature p {
  font-size: 1rem;
  color: #555;
}

.feature .icon {
  color: #0077cc;
  margin-bottom: 20px;
}

/* about */
.about-us {
  background: #f0f8ff;
  padding: 60px 20px;
  animation: fadeInUp 1s ease forwards;
}

.about-us h2 {
  text-align: center;
  color: #0077cc;
  font-size: 2.8rem;
  margin-bottom: 40px;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.about-text {
  flex: 1 1 400px;
  max-width: 600px;
  font-size: 1.1rem;
  color: #333;
}

.about-text p {
  margin-bottom: 25px;
  line-height: 1.7;
}

.about-features {
  list-style: none;
  margin-bottom: 30px;
  padding-left: 0;
}

.about-features li {
  margin-bottom: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #005fa3;
}

.about-features i {
  color: #0077cc;
  font-size: 1.4rem;
}

blockquote {
  font-style: italic;
  border-left: 4px solid #0077cc;
  padding-left: 15px;
  color: #555;
  font-size: 1rem;
}

.about-image {
  flex: 1 1 350px;
  max-width: 400px;
  min-height: 280px;
  background: #cde5ff;
  border-radius: 12px;
  /* місце під картинку, можна замінити на img */
  display: flex;
  justify-content: center;
  align-items: center;
  color: #0077cc;
  font-size: 1.2rem;
  font-weight: 700;
  user-select: none;
}
.about-image img {
  flex: 1 1 350px;
  max-width: 350px;
  min-height: 230px;
  border-radius: 12px;
}
/* Анімація */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивність */
@media (max-width: 768px) {
  .about-image {
    max-width: 100%;
    height: 220px;
  }
}

/* services */
.services {
  background-color: #f0f7ff;
  padding: 60px 20px;
  color: #222;
  text-align: center;
}

.services .container {
  max-width: 1100px;
  margin: 0 auto;
}

.services h2 {
  font-size: 2.8rem;
  margin-bottom: 40px;
  color: #0077cc;
  font-weight: 700;
}

.services-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.service-item {
  background: white;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 119, 204, 0.15);
  flex: 1 1 280px;
  max-width: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 119, 204, 0.3);
}

.service-icon {
  font-size: 50px;
  color: #0077cc;
  margin-bottom: 20px;
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #004a99;
}

.service-item p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}
.service-icon {
  font-size: 50px;
  color: #0077cc;
  margin-bottom: 20px;
}

.cta-block {
  position: relative;
  background: url("./img/cta.png") no-repeat center center/cover;
  color: white;
  padding: 100px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(
    0,
    119,
    204,
    0.6
  ); /* напівпрозорий синій оверлей для кращої читабельності */
  z-index: 1;
}

.cta-block .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.cta-block h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.cta-block p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.cta-block .btn-primary {
  background: #ffffff;
  color: #0077cc;
  padding: 15px 35px;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cta-block .btn-primary:hover {
  background: #e6f0ff;
}

/* about page */
.about-section {
  background-color: #ffffff;
  padding: 60px 20px;
  color: #333;
  animation: fadeInUp 1s ease forwards;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.about-image {
  flex: 1 1 400px;
  max-width: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 119, 204, 0.2);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

.about-text {
  flex: 1 1 450px;
  max-width: 600px;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #0077cc;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-learn-more {
  background-color: #0077cc;
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.btn-learn-more:hover {
  background-color: #005fa3;
}

/* Анімація появи */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивність */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }
  .about-image,
  .about-text {
    max-width: 100%;
  }
}

.mission-vision-section {
  background-color: #f9f9ff;
  padding: 60px 20px;
}

.mission-vision-section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: #004080;
}

.mv-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.mv-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 40px 30px;
  max-width: 450px;
  text-align: center;
  transition: transform 0.3s ease;
}

.mv-card:hover {
  transform: translateY(-5px);
}

.mv-card h3 {
  font-size: 24px;
  color: #004080;
  margin-top: 15px;
}

.mv-card p {
  font-size: 16px;
  color: #444;
  margin-top: 15px;
  line-height: 1.6;
}

.mv-icon {
  font-size: 40px;
  color: #004080;
}

/* Hero block for courses page */
.courses-hero {
  position: relative;
  background: url("img/courses-hero.jpg") no-repeat center center/cover;
  padding: 100px 20px;
  color: white;
  text-align: center;
  z-index: 1;
}

.courses-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* ТУТ МІРА ЗАТЕМНЕННЯ */
  z-index: -1;
}

.courses-hero .container {
  position: relative;
  z-index: 2;
}

.courses-hero {
  background: url("./img/hero-2.png") no-repeat center center/cover;
  padding: 100px 20px;
  color: #fff;
  text-align: center;
}

.courses-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #fff;
}

.courses-hero p {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Course types section */
.course-types {
  padding: 60px 20px;
  background-color: #f8faff;
}

.course-types h2 {
  text-align: center;
  font-size: 36px;
  color: #004080;
  margin-bottom: 40px;
}

.course-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.course-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 40px 30px;
  max-width: 400px;
  text-align: center;
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
}

.course-icon {
  font-size: 40px;
  color: #004080;
  margin-bottom: 15px;
}

.course-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #004080;
}

.course-card p {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}

.contact-hero {
  position: relative;
  background: url("./img/contact.png") no-repeat center center/cover;
  padding: 100px 20px;
  color: white;
  text-align: center;
}

.contact-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.contact-hero .container {
  position: relative;
  z-index: 2;
}

.contact-details .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.contact-card {
  background: white;
  border-radius: 12px;
  padding: 30px 20px;
  width: 280px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-card i {
  font-size: 32px;
  color: #0077cc;
  margin-bottom: 15px;
}

.contact-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.contact-card p {
  font-size: 16px;
  color: #333;
}

.contact-card a {
  color: #0077cc;
  text-decoration: none;
}

.contact-form-section {
  background-color: #f3f4f6;
  padding: 60px 20px;
  text-align: center;
}

.contact-form-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #2d3748;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e0;
  font-size: 16px;
  font-family: inherit;
}

.contact-form button {
  background-color: #0077cc;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #434190;
}

.map-section iframe {
  width: 100%;
  height: 400px;
  display: block;
  border: none;
}

.page-hero {
  background: #004080;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 1.25rem;
  font-weight: 300;
}

.content-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px 60px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
}

.content-section h2 {
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #004080;
  border-bottom: 2px solid #004080;
  padding-bottom: 8px;
}

.content-section p,
.content-section ul {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.content-section ul {
  padding-left: 20px;
  list-style-type: disc;
}

.content-section a {
  color: #004080;
  text-decoration: none;
}

.content-section a:hover {
  text-decoration: underline;
}

#cookie-banner {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: #0056b3;
  color: #ffffff;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

#cookie-banner span {
  flex: 1 1 auto;
  margin-right: 20px;
}

#cookie-banner button {
  background-color: #ffffff;
  color: #0056b3;
  border: none;
  padding: 10px 25px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-top: 10px;
}

#cookie-banner button:hover {
  background-color: #004494;
  color: #ffffff;
}

/* Загальні стилі для бургеру (ховаємо за замовчуванням) */
/* Початкові стилі для бургер-кнопки */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Мобільна версія */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  nav#nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  nav#nav-menu.nav-active {
    display: flex;
  }

  nav#nav-menu ul {
    flex-direction: column;
  }

  nav#nav-menu li {
    list-style: none;
  }

  nav#nav-menu a {
    text-decoration: none;
    color: #333;
  }
  /* Ховаємо кнопку реєстрації на мобільних, якщо хочеш */
  .btn-register {
    display: none;
  }
  .hero-image img {
    max-width: 90%;
  }
  .container {
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  section {
    min-width: 350px !important;
    width: 100% !important;
  }
  .container {
    padding: 10px; /* Зменшення відступів */
    width: 100%;
    margin: 0;
  }
  .cta-block {
    display: block;
  }
  .services {
    padding: 0;
  }
  .hero-text {
    width: 90%;
  }
  #cookie-banner {
    min-width: 300px;
    width: 90%;
  }
  .services h2, .cta-block h2 {
    font-size: 2rem;
  }
  .services .container {
    margin: 0;
  }
  .service-item h3 {
    font-size: 1.2rem;
  }
  /* Хедер */
  header .container {
    flex-direction: row;
    align-items: center;
    padding: 10px 15px;
  }

  .logo img {
    max-width: 150px; /* Зменшення лого */
  }

  /* Бургер-меню */
  .burger {
    display: flex;
  }

  nav#nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    display: none;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  nav#nav-menu.nav-active {
    display: flex;
  }

  nav#nav-menu ul {
    flex-direction: column;
    gap: 15px;
  }

  /* Герой-секція */
  .hero-block {
    padding: 40px 15px;
  }

  .hero-container {
    flex-direction: column;
    gap: 20px;
  }

  .hero-text h1 {
    font-size: 2rem; /* Зменшення розміру заголовка */
  }

  /* Картки */
  .features,
  .services-grid,
  .course-grid {
    flex-direction: column;
    align-items: center;
  }

  .feature,
  .service-item,
  .course-card {
    max-width: 100%;
    width: 100%;
  }

  /* Футер */
  .footer .container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-menu,
  .footer-subscribe,
  .footer-cooperation {
    min-width: 100%;
  }
}
