/* Базовий CSS reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeSpeed;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* ----------- */

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #F9FAFB;
  color: #1F2937;
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
}


.header {
  background-color: #FFFFFF;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  color: #4F46E5;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header__logo:hover {
  color: #FACC15;
}

.header__list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__link {
  font-weight: 500;
  color: #1F2937;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #4F46E5;
  transition: width 0.3s ease;
}

.header__link:hover {
  color: #4F46E5;
}

.header__link:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .header__list {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
  }
}

.footer {
  background-color: #F9FAFB;
  padding: 3rem 2rem;
  font-family: 'Inter', sans-serif;
  color: #374151;
  border-top: 1px solid #E5E7EB;
}

.footer__container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #4F46E5;
  text-decoration: none;
}

.footer__title {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #111827;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__link {
  color: #374151;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: #4F46E5;
}

.footer__contact {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.about {
  padding: 4rem 2rem;
  background-color: #F3F4F6;
}

.about__container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;

  /* Desktop */
  @media (min-width: 768px) {
    flex-direction: row;
    align-items: center;
  }
}

.about__content {
  flex: 1;
}

.about__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1F2937;
}

.about__text {
  font-size: 1rem;
  line-height: 1.6;
  color: #4B5563;
  margin-bottom: 1.5rem;
}

.about__button {
  display: inline-block;
  background-color: #4F46E5;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.about__button:hover {
  background-color: #4338CA;
}

.about__image {
  flex: 1;
  text-align: center;
}

.about__img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.why-poland {
  padding: 4rem 2rem;
  background-color: #fff;
}

.why-poland__container {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.why-poland__title {
  font-size: 2rem;
  color: #111827;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.why-poland__subtitle {
  color: #6B7280;
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.why-poland__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;

  @media (min-width: 768px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-poland__item {
  background-color: #F9FAFB;
  padding: 2rem;
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-poland__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}

.why-poland__icon {
  font-size: 2rem;
  color: #4F46E5;
  margin-bottom: 1rem;
}

.why-poland__item-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1F2937;
}

.why-poland__item-text {
  font-size: 0.95rem;
  color: #4B5563;
}

.why-poland__button {
  background-color: #4F46E5;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.why-poland__button:hover {
  background-color: #4338CA;
}

.benefits {
  padding: 4rem 2rem;
  background-color: #F3F4F6;
}

.benefits__container {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.benefits__title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.benefits__subtitle {
  font-size: 1rem;
  color: #6B7280;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.benefits__list {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;

  @media (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (min-width: 1024px) {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefits__item {
  background-color: #FFFFFF;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefits__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.benefits__icon {
  font-size: 2rem;
  color: #10B981;
  margin-bottom: 1rem;
}

.benefits__item-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1F2937;
}

.benefits__item-text {
  font-size: 0.95rem;
  color: #4B5563;
}

.benefits__button {
  margin-top: 2.5rem;
  background-color: #10B981;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.benefits__button:hover {
  background-color: #059669;
}

.courses {
  padding: 50px 0;
  background-color: #f4f7fc;
}

.courses__container {
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

.courses__title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.courses__subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
}

.courses__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.course-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: translateY(-10px);
}

.course-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.course-card__title {
  font-size: 1.5rem;
  color: #333;
  padding: 15px;
}

.course-card__desc {
  font-size: 1rem;
  color: #666;
  padding: 0 15px 20px;
}

.course-card__button {
  display: inline-block;
  background-color: #0066cc;
  color: white;
  padding: 10px 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
}

.course-card__button:hover {
  background-color: #0057b7;
}


.reviews {
  padding: 50px 0;
  background-color: #f9f9f9;
}

.reviews__container {
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

.reviews__title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.reviews__subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.review-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 20px;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-10px);
}

.review-card__avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.review-card__img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.review-card__name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.review-card__rating {
  color: #f1c40f;
  margin-bottom: 15px;
}

.review-card__rating i {
  font-size: 1.1rem;
  margin-right: 3px;
}

.review-card__text {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
}
/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 400px;
  display: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  font-family: 'Arial', sans-serif;
}

.cookie-popup__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cookie-popup__message {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 15px;
}

.cookie-popup__button {
  background-color: #f39c12;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cookie-popup__button:hover {
  background-color: #e67e22;
}
/* Загальні стилі для форми */
.contact-form {
  background-color: #f4f6f9;
  padding: 40px 0;
  font-family: 'Arial', sans-serif;
}

.contact-form__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form__title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

/* Стилі для групи елементів */
.form__group {
  margin-bottom: 20px;
}

/* Стилі для лейблів */
.form__label {
  font-size: 1rem;
  color: #555;
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Стилі для полів вводу */
.form__input,
.form__textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.form__input:focus,
.form__textarea:focus {
  border-color: #3498db;
  background-color: #fff;
  outline: none;
}

/* Стилі для кнопок */
.btn {
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  text-align: center;
}

.btn--primary {
  background-color: #3498db;
  color: white;
}

.btn--primary:hover {
  background-color: #2980b9;
}

.btn--secondary {
  background-color: #f39c12;
  color: white;
}

.btn--secondary:hover {
  background-color: #e67e22;
}

/* Стилі для капчі */
.form__captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

#captcha-refresh {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #3498db;
  cursor: pointer;
  transition: color 0.3s ease;
}

#captcha-refresh:hover {
  color: #2980b9;
}

/* Повідомлення про помилку */
.form__error {
  font-size: 0.9rem;
  color: #e74c3c;
  margin-top: 8px;
}

.form__error--captcha {
  display: none;
}

.form-message {
  font-size: 1rem;
  color: #27ae60;
  margin-bottom: 20px;
  text-align: center;
}

/* Стилі для адаптивності */
@media (max-width: 768px) {
  .contact-form__title {
    font-size: 1.5rem;
  }

  .form__group {
    margin-bottom: 15px;
  }

  .form__input,
  .form__textarea {
    font-size: 0.95rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}
