/* Обновленные стили для "Методики и курсы для педагогов" 
   в соответствии с дизайном "Платформа для педагогов" */

/* ========== ПЕРЕМЕННЫЕ ========== */
:root {
  --color-primary: #9c43fe;
  --color-secondary: #ff59c7;
  --color-accent: #3ad0cd;
  --color-dark: #171038;
  --color-light: #f8f9ff;
  
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --gradient-secondary: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
  
  --border-radius-sm: 5px;
  --border-radius-md: 10px;
  --border-radius-lg: 20px;
  
  --transition-normal: 0.3s ease;
}

/* ========== ГЛОБАЛЬНЫЕ СТИЛИ ========== */
body {
  font-family: 'Montserrat', sans-serif;
}

/* ========== ГЛАВНЫЙ ЭКРАН ========== */
.courses-hero {
  padding: 8rem 0;
  background: linear-gradient(135deg, #1e0d3d, #2a1352);
  position: relative;
  overflow: hidden;
  color: white;
}

.courses-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
}

.courses-hero__content {
  position: relative;
  z-index: 5;
  opacity: 1 !important;
  visibility: visible !important;
}

.courses-hero__title {
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
  opacity: 1 !important;
  visibility: visible !important;
}

.courses-hero__title span {
  display: block;
  font-size: 3.6rem;
  font-weight: 600;
  color: white;
}

.courses-hero__subtitle {
  font-size: 2rem;
  margin-bottom: 3.5rem;
  line-height: 1.4;
  opacity: 1 !important;
  visibility: visible !important;
}

.courses-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  opacity: 1 !important;
  visibility: visible !important;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.stat:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.stat__value {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  color: transparent;
  position: relative;
}

.stat__value span {
  font-size: 1.8rem;
  position: absolute;
  top: 0;
  background: none;
  -webkit-background-clip: initial;
  color: var(--color-secondary);
}

.stat__label {
  font-size: 1.3rem;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9) !important;
}

.courses-hero__image {
  position: relative;
  z-index: 5;
  opacity: 1 !important;
  visibility: visible !important;
}

.courses-hero__image img {
  width: 100%;
  max-width: 450px;
  border-radius: var(--border-radius-lg);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

/* ========== СЕКЦИЯ КУРСОВ ========== */
.courses-section {
  padding: 8rem 0;
  background: var(--color-light);
}

.section-title {
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--color-dark);
}

.section-subtitle {
  font-size: 1.8rem;
  color: #666;
  text-align: center;
  margin-bottom: 5rem;
}

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

.course-card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-top: 4px solid transparent;
  border-image: var(--gradient-primary);
  border-image-slice: 1;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.course-card__image {
  position: relative;
  overflow: hidden;
}

.course-card__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-card__image img {
  transform: scale(1.05);
}

.course-card__badge {
  position: absolute;
  top: 1rem;
  right: -3rem;
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  transform: rotate(45deg);
  z-index: 3;
}

.course-card__content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-card__title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-dark);
}

.course-card__features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.course-feature {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  color: #666;
}

.course-feature i {
  color: var(--color-primary);
  margin-right: 1rem;
  font-size: 1.6rem;
}

.course-card__description {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.course-card__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Обновленные стили кнопок */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2rem;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 1.5rem;
  transition: all var(--transition-normal);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.btn-primary i {
  margin-right: 0.8rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-5px);
}

.btn-outline i {
  margin-right: 0.8rem;
}

.btn-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(156, 67, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.8rem;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-icon:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.course-card__secondary-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ========== СЕКЦИЯ ПРЕИМУЩЕСТВ ========== */
.benefits-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  position: relative;
  color: white;
}

.benefits-section .section-title {
  color: white;
}

.benefits-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 5rem;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.15);
}

.benefit-card__icon {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  color: white;
  font-size: 2.5rem;
  transition: all var(--transition-normal);
  margin: 0 auto 2.5rem;
}

.benefit-card:hover .benefit-card__icon {
  transform: scale(1.1) rotate(10deg);
  background: rgba(255, 255, 255, 0.25);
}

.benefit-card__title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
  text-align: center;
}

.benefit-card__text {
  font-size: 1.6rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  flex-grow: 1;
  text-align: center;
}

.cta-center {
  text-align: center;
}

.btn-light {
  background: white;
  color: var(--color-primary);
  padding: 1.4rem 3rem;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
}

.btn-light:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.btn-light i {
  margin-left: 1rem;
}

/* ========== CTA СЕКЦИЯ ========== */
.cta-section {
  padding: 8rem 0;
  background: var(--color-light);
}

.cta-box {
  background: var(--gradient-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  padding: 5rem;
  display: flex;
  align-items: center;
  gap: 5rem;
  position: relative;
}

.cta-box__content {
  flex-grow: 1;
  color: white;
  position: relative;
  z-index: 2;
}

.cta-box__title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta-box__text {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.cta-box__image {
  max-width: 300px;
  position: relative;
  z-index: 2;
}

.cta-box__image img {
  width: 100%;
  border-radius: var(--border-radius-lg);
}

.cta-box__decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.decoration-circle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -100px;
}

.decoration-circle:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: -50px;
  right: 50px;
}

.decoration-circle:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 50px;
  right: -50px;
}

.btn-gradient {
  background: white;
  color: var(--color-primary);
  padding: 1.4rem 3rem;
  border-radius: var(--border-radius-md);
}

.btn-gradient:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ========== СЕКЦИЯ КОМАНДЫ ========== */
.team-section {
  padding: 8rem 0;
  background: var(--color-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.team-card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.team-card__image {
  position: relative;
  overflow: hidden;
}

.team-card__image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card__image img {
  transform: scale(1.05);
}

.team-card__social {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.team-card:hover .team-card__social {
  transform: translateY(0);
}

.team-social-link {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.6rem;
  transition: all var(--transition-normal);
}

.team-social-link:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-5px);
}

.team-card__content {
  padding: 2rem;
  text-align: center;
}

.team-card__name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.team-card__position {
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.team-card__description {
  font-size: 1.4rem;
  color: #666;
  line-height: 1.6;
}

.team-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.team-nav-btn {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.team-nav-btn:hover {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.team-pagination {
  display: flex;
  gap: 1rem;
}

.team-page {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.team-page.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* ========== СЕКЦИЯ ОТЗЫВОВ ========== */
.testimonials-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto 5rem;
  position: relative;
}

.testimonials-wrapper {
  position: relative;
  min-height: 300px;
}

.testimonial {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  transform: translateX(50px);
}

.testimonial.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.testimonial__content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial__quotes {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-size: 3rem;
  opacity: 0.3;
}

.testimonial__text {
  font-size: 1.8rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  padding-left: 3rem;
}

.testimonial__author {
  text-align: right;
}

.testimonial__name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.testimonial__city {
  font-size: 1.4rem;
  opacity: 0.8;
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.testimonial-btn {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.testimonial-btn:hover {
  background: white;
  color: var(--color-primary);
}

.testimonial-dots {
  display: flex;
  gap: 1rem;
}

.testimonial-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.testimonial-dot.active {
  background: white;
  transform: scale(1.2);
}

.testimonials-cta {
  text-align: center;
}

/* Принудительное отображение анимированных элементов */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* ========== АДАПТИВНЫЕ СТИЛИ ========== */
@media (max-width: 992px) {
  .courses-hero .container {
    grid-template-columns: 1fr;
  }
  
  .courses-hero__content {
    text-align: center;
  }
  
  .courses-hero__image {
    order: -1;
    margin: 0 auto 3rem;
    max-width: 350px;
  }
  
  .cta-box {
    flex-direction: column;
    padding: 3rem;
    text-align: center;
  }
  
  .cta-box__image {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
  
  .courses-hero__title {
    font-size: 3.6rem;
  }
  
  .courses-hero__title span {
    font-size: 2.8rem;
  }
  
  .courses-hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-box__title {
    font-size: 2.8rem;
  }
}

@media (max-width: 576px) {
  .btn {
    width: 100%;
  }
  
  .course-card__secondary-actions {
    justify-content: space-around;
  }
  
  .courses-hero__title {
    font-size: 3rem;
  }
  
  .courses-hero__title span {
    font-size: 2.4rem;
  }
  
  .cta-box__title {
    font-size: 2.4rem;
  }
}

/* Исправление стилей футера */
.footer {
    background: linear-gradient(to right, #171038, #2d1b5a);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__logo img {
    max-width: 150px;
    margin-bottom: 2rem;
}

.footer__logo p {
    font-size: 1.4rem;
    opacity: 0.8;
    color: white !important;
    margin: 0;
}

.footer h3.footer__title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    color: white !important;
}

.footer__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer__links li {
    margin-bottom: 0.5rem;
}

.footer__links a {
    font-size: 1.4rem;
    opacity: 0.8;
    transition: all 0.2s ease;
    color: white !important;
    text-decoration: none;
}

.footer__links a:hover {
    opacity: 1;
    transform: translateX(5px);
    color: var(--color-secondary) !important;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
}

.footer__copyright, 
.footer__credits {
    font-size: 1.4rem;
    opacity: 0.7;
    margin: 0;
    color: white !important;
}

.footer__credits a {
    color: var(--color-secondary) !important;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer__credits a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Скрыть сообщение об активации Windows */
.footer [class*="active"], 
.footer [class*="activation"],
.footer [id*="active"],
.footer [id*="activation"] {
    display: none !important;
}

/* Исправление для мобильных устройств */
@media (max-width: 992px) {
    .footer__top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer__top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer h3.footer__title {
        margin-top: 2rem;
    }
    
    .footer__title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer__logo {
        align-items: center;
        text-align: center;
    }
    
    .footer__links {
        text-align: center;
    }
}

/* Стили для скачивания приложения */
.footer__app-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.app-link img {
    height: 40px;
    transition: transform 0.3s ease;
}

.app-link:hover img {
    transform: translateY(-5px);
}

