/* Базовий 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;
}

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;
}
/* ----------- */


/* Подключение Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Roboto:wght@300;400;500&display=swap');

body {
  /* Шрифты */
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333333;

  /* Фоновый цвет и общий фон */
  background-color: #F0F4EF;

  /* Сброс отступов */
  margin: 0;
  padding: 0;

  /* Общие эффекты */
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Типографика для заголовков */
h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  color: #264653;
  margin-top: 0;
}

/* Кнопки (общие стили) */
.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Цветовая палитра */
:root {
  --color-primary: #2A9D8F;      /* акцентный, свежий бирюзовый */
  --color-secondary: #E9C46A;    /* теплый горчичный */
  --color-dark: #264653;         /* глубокий сине-зеленый */
  --color-light: #F0F4EF;        /* очень светлый фон */
  --color-text: #333333;         /* основной текст */
}

/* Пример применения */
.header, .footer {
  background-color: var(--color-dark);
  color: #ffffff;
}
a {
  color: var(--color-primary);
}

/* ------ Хедер ------ */
.header {
  background-color: var(--color-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* Логотип */
.header__logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Навигация */
.nav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

/* Hover-эффект — «подчеркивание» */
.nav__link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-secondary);
  transition: width 0.3s ease;
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link:hover::after {
  width: 100%;
}
/* ======= Контейнер (если ещё нет) ======= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ======= Футер ======= */
.footer {
  background-color: var(--color-dark);
  color: #ffffff;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
}

/* Логотип */
.footer__logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Заголовки колонок */
.footer__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

/* Списки */
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__item {
  margin-bottom: 0.5rem;
}

/* Ссылки */
.footer__link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--color-secondary);
}

/* Контакты: выравнивание иконок и текста */
.footer__list--contact .footer__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__list--contact i {
  font-size: 1rem;
}

/* Адаптивность: отступы и переносы */
@media (max-width: 600px) {
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__list--contact .footer__item {
    justify-content: center;
  }
}
/* ======= Hero Section ======= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #ffffff;
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Текстовый контент с анимацией */
.hero__content {
  max-width: 600px;
  animation: fadeInUp 1s ease-out both;
}

.hero__title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.hero__text {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Кнопка — белая, с hover-эффектом */
.hero__btn {
  background-color: #ffffff;
  color: var(--color-dark);
}
.hero__btn:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

/* Изображение с эффектом «плавания» */
.hero__image img {
  max-width: 100%;
  display: block;
  animation: float 6s ease-in-out infinite;
}

/* Декоративные фигуры */
.hero__shape {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.15);
  animation: float 8s ease-in-out infinite;
}

.hero__shape--circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  top: 10%;
  left: 15%;
}

.hero__shape--triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid rgba(255, 255, 255, 0.15);
  bottom: 15%;
  right: 10%;
  animation-duration: 10s;
}

/* Ключевые анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .hero__inner {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero__shape--circle,
  .hero__shape--triangle {
    display: none;
  }
}
/* ======= Info Section ======= */
.info {
  padding: 4rem 0;
  background-color: #ffffff;
  color: var(--color-dark);
}

.info__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease-out both;
}

.info__text {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  text-align: center;
  line-height: 1.5;
  animation: fadeIn 1s ease-out both;
}

/* Карточки советов */
.info__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.info__card {
  background-color: var(--color-light);
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.info__icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.info__card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.info__card-text {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Кнопка */
.info__btn {
  display: block;
  margin: 0 auto;
  background-color: var(--color-primary);
  color: #ffffff;
}

.info__btn:hover {
  background-color: var(--color-secondary);
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* ======= Stats Section ======= */
.stats {
  padding: 4rem 0;
  background-color: var(--color-light);
  color: var(--color-dark);
}

.stats__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out both;
}

.stats__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.stats__card {
  background-color: #ffffff;
  padding: 2rem 1rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.stats__icon {
  font-size: 2.25rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.stats__number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.stats__label {
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Поддержка анимации уже определённых keyframes */
/* fadeInUp и float мы подключали ранее */
/* ======= Why Us Section ======= */
.why-us {
  padding: 4rem 0;
  background-color: #ffffff;
  color: var(--color-dark);
}

.why-us__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out both;
}

.why-us__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.why-us__item {
  background-color: var(--color-light);
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us__item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--color-secondary) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.why-us__item:hover::before {
  opacity: 0.15;
}

.why-us__icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.why-us__item:hover .why-us__icon {
  transform: rotate(10deg) scale(1.1);
}

.why-us__item-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.why-us__item-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

.why-us__btn {
  display: block;
  margin: 0 auto;
  background-color: var(--color-primary);
  color: #ffffff;
}

.why-us__btn:hover {
  background-color: var(--color-secondary);
}

/* ======= Courses Preview Section ======= */
.courses-preview {
  padding: 4rem 0;
  background-color: #ffffff;
  color: var(--color-dark);
}

.courses-preview__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out both;
}

.courses-preview__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.courses-preview__card {
  background-color: var(--color-light);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.courses-preview__img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 150px;
}

.courses-preview__content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.courses-preview__name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.courses-preview__desc {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: auto;
  color: var(--color-text);
}

.courses-preview__btn {
  
  margin-top: 1.5rem;
  align-self: flex-start;
  background-color: var(--color-primary);
  color: #ffffff;
}

.courses-preview__btn:hover {
  background-color: var(--color-secondary);
}

/* Адаптивность */
@media (max-width: 600px) {
  .courses-preview__img {
    height: 120px;
  }
}
/* ======= CTA Section ======= */
.cta {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #ffffff;
  padding: 3.5rem 0;
  border-radius: 1rem;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cta__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  margin: 0;
  animation: fadeInUp 0.8s ease-out both;
}

.cta__text {
  font-size: 1rem;
  max-width: 500px;
  margin: 0.5rem 0 0;
  animation: fadeIn 1s ease-out both;
}

.cta__btn {
  
  background-color: #ffffff;
  color: var(--color-dark);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta__btn:hover {
  transform: translateY(-3px);
  background-color: rgba(255,255,255,0.9);
}

/* Декоративные анимации */
.cta::before,
.cta::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: rgba(255,255,255,0.15);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite;
}

.cta::before {
  top: -50px;
  left: -50px;
}

.cta::after {
  bottom: -50px;
  right: -50px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .cta__inner {
    flex-direction: column;
    text-align: center;
  }
  .cta__btn {
    align-self: center;
  }
}
/* ======= Cookie Popup ======= */
.cookie-popup {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 90%;
  max-width: 500px;
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
  z-index: 1000;
}

.cookie-popup--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-popup__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1rem;
}

.cookie-popup__message {
  font-size: 0.9rem;
  color: var(--color-text);
  margin: 0;
}

.cookie-popup__link {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-popup__link:hover {
  color: var(--color-secondary);
}

.cookie-popup__btn {
  
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.cookie-popup__btn:hover {
  background-color: var(--color-secondary);
}
/* ======= Courses Detail Page Styles ======= */
.courses-detail__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  text-align: center;
  margin: 2rem 0;
  animation: fadeInUp 0.8s ease-out both;
}

.courses-detail__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.course-detail {
  background-color: var(--color-light);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-detail__name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.course-detail__desc {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.course-detail__modules {
  list-style: disc inside;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.course-detail__modules li {
  margin-bottom: 0.5rem;
}

.course-detail__info {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.course-detail__btn {
  background-color: var(--color-primary);
  color: #ffffff;
  margin-top: 1rem;
}

.course-detail__btn:hover {
  background-color: var(--color-secondary);
}

/* Адаптивность */
@media (min-width: 768px) {
  .courses-detail__list {
    grid-template-columns: 1fr 1fr;
  }
}

/* ======= About Intro Section ======= */
.about-intro {
  padding: 4rem 0;
  background-color: var(--color-light);
  color: var(--color-dark);
}
.about-intro__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 1rem;
}
.about-intro__text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

/* ======= About Values Section ======= */
.about-values {
  padding: 4rem 0;
  background-color: #ffffff;
}
.about-values__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}
.about-values__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.about-values__item {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--color-light);
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-values__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.about-values__icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.about-values__name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.about-values__text {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ======= About Team Section ======= */
.about-team {
  padding: 4rem 0;
  background-color: var(--color-light);
  color: var(--color-dark);
}
.about-team__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}
.about-team__members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.about-team__member {
  text-align: center;
}
.about-team__photo {
  width: 100%;
  border-radius: 50%;
  max-width: 140px;
  margin: 0 auto 1rem;
}
.about-team__name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}
.about-team__role {
  font-size: 0.9rem;
  color: var(--color-text);
}

/* Адаптивность общая */
@media (max-width: 600px) {
  .about-values__list,
  .about-team__members {
    grid-template-columns: 1fr;
  }
}
/* ======= Contact Page Styles ======= */
.contact {
  padding: 4rem 0;
  background-color: var(--color-light);
  color: var(--color-dark);
}
.contact__inner {
  max-width: 600px;
  margin: 0 auto;
}
.contact__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact__label {
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.contact__input,
.contact__textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  width: 100%;
}
.contact__textarea {
  min-height: 150px;
  resize: vertical;
}
.contact__captcha {
  display: flex;
  flex-direction: column;
}
.contact__btn {
  
  background-color: var(--color-primary);
  color: #ffffff;
  align-self: flex-start;
}
.contact__btn:hover {
  background-color: var(--color-secondary);
}
.contact__message {
  margin-top: 1rem;
  font-size: 0.95rem;
}
.contact__message--error {
  color: #d9534f;
}
.contact__message--success {
  color: var(--color-primary);
}
/* ======= Policy Pages (.pages) ======= */
.pages {
  padding: 4rem 0;
  background-color: var(--color-light);
  color: var(--color-dark);
}

.pages .container {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  animation: fadeIn 0.8s ease-out both;
}

/* Заголовки */
.pages h1,
.pages h2 {
  font-family: 'Poppins', sans-serif;
  color: var(--color-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.pages h1 {
  font-size: 2.25rem;
  text-align: center;
}

.pages h2 {
  font-size: 1.75rem;
  border-bottom: 3px solid var(--color-primary);
  display: inline-block;
  padding-bottom: 0.25rem;
}

/* Параграфы */
.pages p {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Списки */
.pages ul {
  list-style: disc inside;
  margin-bottom: 1.5rem;
}

.pages ul li {
  margin-bottom: 0.5rem;
}

/* Ссылки */
.pages a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.pages a:hover {
  color: var(--color-secondary);
}

/* Анимация появления */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
