.popup-wrapper {
  position: fixed;
  z-index: 1000;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 15px;
  visibility: hidden;
  opacity: 0;
  height: 100vh;
  overflow: auto;
  background: var(--bg-overlay);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.popup-content.active,
.popup-wrapper.active {
  visibility: visible;
  opacity: 1;
}
.popup-wrapper .bg-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;

  opacity: 0;
  transition: opacity var(--transition-1);
  z-index: 2;
}

.popup-wrapper.active {
  left: 0;
  transition-delay: 0s;
}

.popup-wrapper.active .bg-layer {
  opacity: 1;
}

.popup-content {
  position: relative;
  width: 100%;
  margin: 0 auto;
  font-size: 0;
  text-align: center;
  letter-spacing: 0;
  padding: 40px 32px;
  overflow: auto;
  /* -webkit-overflow-scrolling: touch;
  backface-visibility: hidden; */
  opacity: 0;
  visibility: hidden;
  transform: translateY(6.25rem);
  transition: var(--transition-1);
  background-color: #fff;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  display: none;
}

.popup-content.active {
  transform: translateY(0%);
  opacity: 1;
  visibility: visible;
  display: block;
}
.popup-content .btn-close {
  position: absolute;
  width: 40px;
  right: 10px;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}
.popup-content .btn-close img {
  width: 24px;
}

/*======================*/
/*  Animations          */
/*======================*/
.text-animate {
  opacity: 0;
}
.text-animate__word > i {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: 1.5s;
  transform-origin: left top;
}
.text-animate__word.animated > i {
  opacity: 1;
  transform: translateY(0%);
}
.text-animated {
  opacity: 1;
}
.slideUp {
  --time: 1.5s;
  --delay: calc(0.11s * var(--animate-index));
  opacity: 0;
  will-change: transform, opacity;
  transform: translateY(3rem);
}
.slideUp.animated {
  animation: var(--time) var(--cubic-2) var(--delay) slideUp forwards;
}
@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0%);
  }
}
.section {
  padding: 90px 0;
}

.section-fit {
  background: var(--bg-light);
}

.section__head {
  max-width: 600px;
  margin-bottom: 48px;
}

.section__title {
  font-size: 40px;
  margin-bottom: 12px;
}

.section__subtitle {
  color: #4a6f6d;
  font-size: 16px;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.fit-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--box-shadow);
  transition: 0.35s ease;
}

.fit-card__icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.fit-card h3 {
  /* font-size: 18px; */
  margin-bottom: 8px;
}

.fit-card p {
  font-size: 14px;
  color: #567;
}

@media (max-width: 900px) {
  .fit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section__title {
    font-size: 28px;
  }
  .section {
    padding: 70px 0;
  }
}

@media (max-width: 520px) {
  .fit-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 55px 0;
  }
}

.section-process {
  background: linear-gradient(180deg, #ffffff 0%, #f2f7f7 100%);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process-step {
  position: relative;
  padding: 32px 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--box-shadow);
  transition: 0.3s ease;
}

.process-step__num {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary-soft);
  opacity: 0.25;
  display: block;
  margin-bottom: 16px;
}

.process-step h3 {
  /* font-size: 18px; */
  margin-bottom: 8px;
}

.process-step p {
  font-size: 14px;
  color: #567;
}
.process-content {
  display: flex;
  gap: 10px;
  flex-direction: column;
  align-items: flex-start;
}
.process-content .btn {
  margin: 20px 0 0;
}
.process-content .btn + p {
  font-size: 14px;
  color: var(--primary);
}

@media (max-width: 900px) {
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .process {
    grid-template-columns: 1fr;
  }
  .process-step {
    padding: 24px 22px;
    border-radius: 16px;
  }
}

/* ===== WHY SECTION ===== */
/* .section-why {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
  padding: var(--sp-xl) 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
}

 
.why-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--box-shadow);
  border: 1px solid transparent;
  transition: var(--transition-1);
  overflow: hidden;
}

 
.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(63, 127, 123, 0.25),
    transparent 60%
  );
  opacity: 0;
  transition: var(--transition-1);
}

@media (hover: hover) {
  .why-card:hover {
    transform: translateY(-6px);
    border-color: rgba(63, 127, 123, 0.35);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  }

  .why-card:hover::before {
    opacity: 1;
  }
}

 
.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(63, 127, 123, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 20px;
}

 
.why-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--text-dark);
}

.why-card p {
  font-size: 14px;
  line-height: 1.5;
  color: #567;
}
 
@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .section-why {
    padding: var(--sp-lg) 0;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-card {
    padding: 26px 22px;
    border-radius: 18px;
  }
} */

.section-brand {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  color: #fff;
}

/* Фонове зображення */
.section-brand .brand-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(15, 47, 46, 0.85) 0%,
      rgba(15, 47, 46, 0.55) 50%,
      rgba(15, 47, 46, 0.2) 100%
    ),
    url("../img/images/brand.jpg") center / cover no-repeat;
  z-index: 1;
}

/* Контент поверх */
.section-brand .container {
  position: relative;
  z-index: 2;
}

.brand {
  max-width: 520px;
}

.section-brand h2 {
  color: #fff;
  margin-bottom: 20px;
}

.brand-list {
  margin-bottom: 32px;
}

.brand-list li {
  font-size: 16px;
  margin-bottom: 12px;
  color: #e8f2f1;
}
.section-brand .brand-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgb(0 0 0 / 85%) 0%,
      rgba(15, 47, 46, 0.55) 50%,
      rgba(15, 47, 46, 0.2) 100%
    ),
    url(../img/images/bg-study.jpg) center / cover no-repeat;
  z-index: 1;
}

@media (max-width: 900px) {
  .brand {
    grid-template-columns: 1fr;
  }
}

/* .section-directions-alt {
  position: relative;
  padding: 120px 0;
  background:
    radial-gradient(
      1200px 400px at 10% -10%,
      rgba(63, 127, 123, 0.25),
      transparent 60%
    ),
    linear-gradient(180deg, #0f2f2e 0%, #123c3a 100%);
  color: #fff;
  overflow: hidden;
}

.directions-alt__head {
  max-width: 520px;
  margin-bottom: 60px;
}

.directions-alt__head h2 {
  color: #fff;
  font-size: 42px;
  margin-bottom: 16px;
}

.directions-alt__head p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
}

.directions-alt {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.direction-item {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 36px 28px;
  transition: 0.35s ease;
}

.direction-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.12);
}

.direction-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 42px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
}

.direction-item h3 {
  color: #fff;
  margin-bottom: 10px;
}

.direction-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}
@media (max-width: 992px) {
  .directions-alt {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .directions-alt {
    grid-template-columns: 1fr;
  }
}
.section-directions-lines {
  padding: 120px 0;
  background: #f6f8f8;
}

.directions-lines__head {
  max-width: 520px;
  margin-bottom: 60px;
}

.directions-lines__head h2 {
  font-size: 42px;
  margin-bottom: 14px;
}

.directions-lines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 24px;
  overflow: hidden;
}

.direction-line {
  position: relative;
  padding: 60px 32px;
  background: #ffffff;
  border-right: 1px solid #e6eceb;
  transition: 0.4s ease;
}

.direction-line:last-child {
  border-right: none;
}

.direction-line:hover {
  background: linear-gradient(180deg, #3f7f7b 0%, #2f5f5c 100%);
  color: #fff;
}

.direction-line h3 {
  font-size: 24px;
  margin-bottom: 12px;
  transition: 0.3s;
}

.direction-line p {
  font-size: 15px;
  color: #6b7f7e;
  transition: 0.3s;
}

.direction-line:hover p {
  color: rgba(255, 255, 255, 0.85);
}

.line-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 52px;
  font-weight: 700;
  color: rgba(63, 127, 123, 0.15);
  transition: 0.3s;
}

.direction-line:hover .line-num {
  color: rgba(255, 255, 255, 0.25);
} */

.section-directions-bg {
  position: relative;
  padding: 140px 0;
  background-image:
    linear-gradient(180deg, rgb(9 12 12 / 75%), rgb(0 0 0 / 65%)),
    url(../img/images/students-campus-1.jpg);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.directions-bg__head {
  max-width: 520px;
  margin-bottom: 60px;
}

.directions-bg__head h2 {
  font-size: 42px;
  color: #fff;
}

.directions-bg__head p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.directions-bg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.direction-bg-item {
  position: relative;
  padding: 64px 32px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f2f2e;
  transition: 0.4s ease;
}
.direction-bg-item h3 {
  margin-bottom: 8px;
}

.direction-bg-item:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.bg-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 54px;
  font-weight: 700;
  color: rgba(63, 127, 123, 0.5);
}
.direction-bg-item p {
  font-size: 14px;
}

@media (max-width: 1024px) {
  .section-directions-bg {
    padding: 100px 0;
  }

  .directions-bg {
    grid-template-columns: repeat(2, 1fr);
  }

  .direction-bg-item {
    padding: 48px 28px;
  }

  .bg-num {
    font-size: 44px;
    top: 16px;
    right: 20px;
  }

  .direction-bg-item:nth-child(2) {
    border-right: none;
  }
}
@media (max-width: 768px) {
  .section-directions-bg {
    padding: 80px 0;
  }

  .directions-bg__head h2 {
    font-size: 32px;
  }

  .directions-bg__head p {
    font-size: 16px;
  }

  .directions-bg {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .direction-bg-item {
    padding: 40px 24px;
    text-align: center;
  }

  .direction-bg-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .bg-num {
    position: static;
    display: block;
    margin-bottom: 12px;
    font-size: 36px;
    opacity: 0.4;
  }
}

/* .section-faq {
  background: var(--bg-light);
  padding: 90px 0;
}

.faq-grid {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  overflow: hidden; 
  transition: var(--transition-1);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  background: var(--primary-soft);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-1);
  border-radius: 20px;
}

.faq-toggle {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
  padding: 0 24px;
  background: #f6f9f9;
  font-size: 15px;
}
.faq-answer p {
  color: var(--text-dark);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 16px 24px;
}
.faq-item.active .faq-question {
  border-radius: 20px 20px 0 0;
}
.faq-item.active .faq-toggle {
  transform: rotate(45deg);
} */

/* Контейнер FAQ + форма */
.faq-row {
  display: grid;
  grid-template-columns: 2fr 1fr; /* 2/3 FAQ, 1/3 форма */
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}

/* FAQ */
.faq-grid {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition-1);
  /* border: 1px solid #ccc; */
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  background: var(--primary-soft);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-1);
  border-radius: 20px;
}

.faq-toggle {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
  padding: 0 24px;
  background: #f6f9f9;
  font-size: 15px;
  color: var(--text-dark);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 16px 24px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}
.faq-item.active .faq-question {
  border-radius: 20px 20px 0 0;
}
/* Форма */
.faq-form-wrapper {
  background: #fff;
  padding: 40px 32px;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
}

.faq-form-title {
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.faq-form input,
.faq-form textarea {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 15px;
  transition: var(--transition-1);
  resize: none;
}

.faq-form input:focus,
.faq-form textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.faq-form button {
  width: 100%;
  padding: 14px 0;
  font-weight: 600;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
}

/* Мобільна адаптація */
@media (max-width: 900px) {
  .faq-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-form-wrapper {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .faq-item {
    border-radius: 12px;
  }
  .faq-question {
    padding: 14px 24px;
    border-radius: 12px;
  }
  .faq-answer p {
    font-size: 14px;
  }
}

.footer {
  background:
    linear-gradient(180deg, rgba(2, 5, 5, 0.85), rgba(15, 47, 46, 0.85)),
    url(../img/images/bg-study.jpg) center / cover no-repeat;
  position: relative;
  color: #fff;
  padding: 80px 0 0;
  font-size: 15px;
  overflow: hidden;
  background-position: center;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-inner p {
  color: #fff;
}

.footer-contacts h4,
.footer-social h4 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #fff;
}

.footer-contacts p,
.footer-social a {
  margin-bottom: 8px;
}

.footer-contacts a,
.footer-social a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.social-icons svg {
  width: 24px;
  height: 24px;
  transition: 0.3s;
}
.social-icons path {
  fill: #fff;
}
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding: 16px 0;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 1);
}

/* Мобільна адаптація */
@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}
@media (min-width: 1024px) {
  .footer-contacts a:hover,
  .footer-social a:hover {
    color: var(--primary);
  }
  .social-icons img:hover {
    transform: scale(1.1);
  }
  .direction-bg-item:hover {
    background: rgba(255, 255, 255, 1);
    /* transform: translateY(-8px); */
  }
  .why-card:hover {
    border-color: var(--primary-soft);
  }
  .fit-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  }
  .process-step:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  }

  .faq-item:hover {
    border-color: var(--primary);
  }
}

.reviews {
  padding: var(--sp-xl) 0;
  background: var(--bg-light);
}

.reviews__head {
  margin-bottom: var(--sp-lg);
}

.reviews .title {
  font-size: 2rem;
  color: var(--text-dark);
}

.title-line {
  display: inline-block;
  width: 50px;
  height: 3px;
  background: var(--primary);
  margin-top: 0.5rem;
}

.review-card {
  background: var(--primary-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.review-top {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reviews .quote {
  font-size: 3rem;
  color: var(--primary);
  line-height: 1;
}

.review-top h4 {
  color: var(--text-dark);
  font-size: 1rem;
}

.reviews .date {
  font-size: 0.85rem;
  color: var(--label-color);
}

.reviews .stars {
  color: #f5b400;
  margin-bottom: 1rem;
}

.review-card p {
  color: var(--label-color);
  flex-grow: 1;
}

.reviews .read-more {
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

.reviews-prev,
.reviews-next {
  color: var(--primary);
}

.reviews__all {
  text-align: center;
  margin-top: var(--sp-lg);
}

.reviews .btn-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-1);
}

.reviews .btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.reviews-arrows {
  display: flex;
  gap: 12px;
  position: absolute;
  top: 50%;
  left: -10px;
  right: -10px;
  z-index: 3;
  transform: translateY(-50%);
  justify-content: space-between;
}

.reviews-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-1);
}

.reviews-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.reviews-arrow:active {
  transform: scale(0.95);
}

.reviews-arrow svg {
  transition: transform var(--transition-1);
}

.reviews-next:hover svg {
  transform: translateX(2px);
}

.reviews-prev:hover svg {
  transform: translateX(-2px);
}

.reviews__slider {
  padding: 10px;
  margin: 0 -10px;
}
.reviews__slider-wrap {
  position: relative;
}

.reviews .swiper-slide {
  height: auto;
}

@media (max-width: 768px) {
  .reviews-arrows {
    left: -15px;
    right: -15px;
  }

  .reviews {
    padding: 50px 0;
  }
}
